Initialization

The method for initializing the Wepin PIN Pad Library is as follows.

init

Initialize the Wepin PIN Pad Library. During initialization, set the language to be displayed on the PIN pad screen.

await wepinPinPad.init(String? language)

Parameters

  • language: <String> optional The default language setting for the PIN pad screen is 'en'. Currently supported languages are 'ko', 'en', and 'ja'.

Return value

  • Future<void>

Example

await wepinPinPad.init('ko')

isInitialized

You can use the isInitialized method to check if the WepinPin instance has been successfully initialized.

wepinPinPad.isInitialized()

Parameters

  • <void>

Return Value

  • <bool> Returns true if initialization was successful and false if it failed.

Example

if(wepinPinPad.isInitialized()) {
  print('wepinPin is initialized!')
}

changeLanguage

wepinPinPad.changeLanguage(String language)

Changes the language displayed on the PIN pad screen. Currently, only 'ko', 'en', and 'ja' are supported.

Parameters

  • language <String>

Return value

  • <void>

Example

wepinPinPad.changeLanguage('ko')

Last updated