Usage
For iOS, there are a few steps that needed to be followed as below:
Then, import "OkayIDLite" module into the swift file.
After that, build the configuration object as follow:
Then, start the process by calling "startMyKadScanning" on the OkayIDLite class with the config object. It is also a must to pass a valid license string and a reference to the view controller. The "self" is referring to the current view controller in the example below:
Code above is an example to handle the success or failure of the MyKad scanning that the action can be customized by the user.
If it is not successful, the result will be returning nil
These are the explanation of the results that the OkayID Lite will be returning as follow:
These are the error code that will be raised after each of the scanned is done.Usage
For iOS, there are a few steps that needed to be followed as below:
Then, import "OkayIDLite" module into the swift file.
After that, build the configuration object as follow:
Then, start the process by calling "startMyKadScanning" on the OkayIDLite class with the config object. It is also a must to pass a valid license string and a reference to the view controller. The "self" is referring to the current view controller in the example below:
Code above is an example to handle the success or failure of the MyKad scanning that the action can be customized by the user.
If it is not successful, the result will be returning nil
These are the explanation of the results that the OkayID Lite will be returning as follow:
These are the error code that will be raised after each of the scanned is done.Usage
For iOS, there are a few steps that needed to be followed as below:
Then, import "OkayIDLite" module into the swift file.
After that, build the configuration object as follow:
Then, start the process by calling "startMyKadScanning" on the OkayIDLite class with the config object. It is also a must to pass a valid license string and a reference to the view controller. The "self" is referring to the current view controller in the example below:
Code above is an example to handle the success or failure of the MyKad scanning that the action can be customized by the user.
If it is not successful, the result will be returning nil
These are the explanation of the results that the OkayID Lite will be returning as follow:UsageThe user cancels during the scanning process (eg. user press back button)