From d4d57ed136327feeea0745228930c5e50880c273 Mon Sep 17 00:00:00 2001 From: Brian Immel Date: Mon, 26 Feb 2018 14:37:55 -0800 Subject: [PATCH 1/2] Fix for Identity.yml Fixed a few indenting issues with Identity.yml. See https://jira.appcelerator.org/browse/TIDOC-3078 for details. --- apidoc/Identity.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apidoc/Identity.yml b/apidoc/Identity.yml index e26821e..b457822 100644 --- a/apidoc/Identity.yml +++ b/apidoc/Identity.yml @@ -43,19 +43,19 @@ description: | You can you use the 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 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'; - } + + 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 @@ -114,6 +114,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. @@ -182,7 +183,6 @@ properties: permission: read-only platforms: [iphone, ipad] since: "6.1.0" - - name: BIOMETRY_TYPE_NONE summary: The device does not support biometry. description: | From 971090f725996955217f6cff6245b8f6e2c149e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20Kn=C3=B6chel?= Date: Thu, 8 Mar 2018 11:00:19 +0100 Subject: [PATCH 2/2] Update Identity.yml --- apidoc/Identity.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apidoc/Identity.yml b/apidoc/Identity.yml index b457822..a6084af 100644 --- a/apidoc/Identity.yml +++ b/apidoc/Identity.yml @@ -49,13 +49,13 @@ description: | Use the 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' + 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'; - } + 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