Initialization
The method for initializing the Wepin Android PIN Pad Library is as follows.
import com.wepin.android.pinlib.WepinPinBefore creating an instance of WepinPin, please pass the app’s Activity Context, the app ID, and the app key assigned after app registration to the WepinPinParams object as shown below.
val wepinPinParams = WepinPinParams(
context = this,
appId = "your-wepin-app-id",
appKey = "your-wepin-app-key"
)Please create a WepinPin instance by passing the previously created WepinPinParams.
val wepinPin = WepinPin(wepinPinParams)After creating the WepinPin instance, call the initialize method to complete the initialization.
val res = wepinPin.initialize(attributes)parameters
atrributes <WepinPinAttributes>
defualtLanguage<String> The default language setting for the PIN pad screen is'en'. Currently supported languages are'ko','en', and'ja'.
Return value
CompletableFuture <Boolean>
Returns true if successful, and false if it fails.
Example
isInitialized
You can use the isInitialized method to check if the WepinPin instance has been successfully initialized.
The return values are as follows
<Boolean> Returns true if initialization was successful and false if it failed.
Example
changeLanguage
Changes the language displayed on the PIN pad screen. Currently, only 'ko', 'en', and 'ja' are supported.
Parameters
language<String>
Return value
CompletableFuture<Boolean> Returns true if successful and false if it fails.
Example
Last updated
Was this helpful?