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 trueif successful, and falseif it fails.
Example
let appKey: String="Wepin-App-Key"let appId: String="Wepin-App-ID"var wepinWidget: WepinWidget?=nillet initWidgetParam =WepinWidgetParams(appId: appId, appKey: appKey)wepinWidget =WepinWidget(initWidgetParam)// Call initialize functionlet attributes =WepinWidgetAttributes(defaultLanguage:"en", defaultCurrency:"USD")iflet res =tryawait wepinWidget?.initialize(attributes: attributes){self.tvResult.text="Successed: \(res)"}else{self.tvResult.text="Failed: No result returned from initialization"}
isInitialized
You can use the isInitialized method to check if the WepinWidget instance has been successfully initialized.
<Bool>Returns trueif initialization was successful and falseif it failed.
changeLanguage
Changes the language displayed on the widget screen. Currently, only 'ko', 'en', and 'ja' are supported.