Initialization
Here is how to initialize the Wepin widget flutter SDK.
Initialize
First, create an instance of the Wepin widget. Then, use the BuildContext
of the app widget, the App ID and App Key assigned after app registration to initialize the instance.
WepinOptions
WepinOptions
The interface of the WepinOptions
class, which is used as a parameter for initialization, is as follows.
appId
: String App ID assigned during registrationappKey
: String App Key assigned during registrationattributes
: Object (optional)Properties of the Wepin Widget
defaultLanguage
: String The language to be displayed on the widget. The default value isko
. The currently supported languages areen
andko
.defaultCurrency
: String The currency to be displayed on the widget. The default value isKRW
. The currently supported currencies areUSD
andKRW
.
isInitialized
isInitialized
You can use the isInitialized
method to check if the Wepin instance has been initialized successfully.
The returned value is as follows.
boolean init result;
true
if Wepin SDK is already initialized, otherwisefalse
.
Handle DeepLink / Universal Link
To handle the URL schemes added to the app's Info file or AndroidManifest for use with Wepin, add the following code to the app using Wepin.
Last updated