Enables you to implement a mechanism to block access to an app unless the user enters a passcode or uses the touchID functionality, by providing information weather the user entered valid credentials.
Depending on which method is available and enabled on a particular device, the authentication mechanism asks for the device's passcode or fingerprint validation. The API can only be used on devices that support it. Therefore, it is necessary to verify presence of this the functionality in advance.
This API is currently available for iOS devices only.
An instance of the LocalAuthentication
object can be obtained via the
LocalAuthentication
reference.
Name | Description |
---|---|
authenticate | Begins authentication and calls a callback with the result. |