Skip to content

Commit

Permalink
Merge pull request #11 from jawa9000/patch-4
Browse files Browse the repository at this point in the history
Fix for Identity.yml
  • Loading branch information
hansemannn authored Mar 8, 2018
2 parents 70a813e + 971090f commit 7683fe3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions apidoc/Identity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ description: |
You can you use the <Modules.Identity.invalidate> method to force the user to be prompted every time a
new authentication is triggered. On iOS 9 and later, this can also be called to cancel a current
evaluation of an auth-context, e.g. to hide the auth-dialoag.
## Distinguish between Touch ID and Face ID
Use the <Modules.Identity.biometryType> to receive the currently used biometry type. See an example of
using the property to create a personalized interface when using Touch ID and Face ID:
var authPhrase = 'Unknown'
if (TiIdentity.biometryType == TiIdentity.BIOMETRY_TYPE_FACE_ID) { // Face ID
authPhrase = 'Face ID';
} else if (TiIdentity.biometryType == TiIdentity.BIOMETRY_TYPE_TOUCH_ID) { // Touch ID
authPhrase = 'Touch ID';
}
var authPhrase = 'Unknown';
if (TiIdentity.biometryType === TiIdentity.BIOMETRY_TYPE_FACE_ID) { // Face ID
authPhrase = 'Face ID';
} else if (TiIdentity.biometryType === TiIdentity.BIOMETRY_TYPE_TOUCH_ID) { // Touch ID
authPhrase = 'Touch ID';
}
### Native Keychain Integration
Expand Down Expand Up @@ -116,6 +116,7 @@ methods:
summary: Determines if the current device supports Touch ID or Face ID.
returns:
type: Boolean

properties:
- name: authenticationPolicy
summary: Sets the global authentication policy used in this Touch ID / Face ID context.
Expand Down Expand Up @@ -184,7 +185,6 @@ properties:
permission: read-only
platforms: [iphone, ipad, android]
since: "6.1.0"

- name: BIOMETRY_TYPE_NONE
summary: The device does not support biometry.
description: |
Expand Down

0 comments on commit 7683fe3

Please sign in to comment.