initialization
The method for initializing the Wepin iOS Widget Library is as follows.
Before creating an instance of WepinWidget
, please pass the App ID and App Key to the WepinWidgetParams
object as shown below.
Please create a WepinWidget
instance by passing the previously created WepinPinParams
.
After creating the WepinWidget
instance, call the initialize
method to complete the initialization.
parameters
attributes
<WepinWidgetAttributes>
defaultLanguage
<String> The default language setting for the widget screen is'en'
. Currently supported languages are'ko'
,'en'
, and'ja'
.defaultCurrency
<String> The default language setting for the widget screen is'USD'
. Currently supported languages are'KRW'
,'USD'
, and'JPY'
.
Return value
<Bool>
Returns true if successful, and false if it fails.
Example
isInitialized
You can use the isInitialized
method to check if the WepinWidget
instance has been successfully initialized.
<Bool> Returns true if initialization was successful and false if it failed.
changeLanguage
Changes the language displayed on the widget screen. Currently, only 'ko'
, 'en'
, and 'ja'
are supported.
Parameters
_ language
<String>currency
<String> optional
Return value
<Void>
Example
Last updated
Was this helpful?