EMAuthService
Objective-C
@protocol EMAuthService <NSObject>
Swift
protocol EMAuthService : NSObjectProtocol
A protocol that represents authentication service.
Since
3.2-
Get authentication mode reference corresponding to this service.
Since
3.2
Return Value
current auth mode.
-
Indicates if the authentication mode is supported by the hardware.
Since
3.2
Declaration
Objective-C
- (BOOL)isSupported:(NSError **)error;Parameters
errorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in
NULL.Return Value
‘YES’ if authentication is supported, ‘NO’ otherwise.
-
Indicates if the authentication mode is configured and ready for use. For example, a user may need to configure the OS to use a particular feature, such as TouchID, Face ID, before this authentication mode can be used.
TouchID authentication mode is configured only if the following conditions met:
- At least one touch ID user is registered into the system
- Touch ID service is available. If the touch ID is temporarily locked out because there were too many failed Touch ID attempts, the function will return false and an error.
Face ID authentication mode is configured only if the following conditions met:
- Face ID authentication service is initialized, and
- One user is enrolled.
Since
3.2
Declaration
Objective-C
- (BOOL)isConfigured:(NSError **)error;Parameters
errorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in
NULL.Return Value
‘YES’ if the platform is correctly configured to support the authentication mode; ‘NO’ otherwise.
-
Indicates if the authentication mode is supported by the hardware.
Note
Use this API instead of isSupported: if you are using Swift in your code
Since
6.1.0
Declaration
Objective-C
- (BOOL)isSupported;Swift
func isSupported() -> BoolReturn Value
‘YES’ if authentication is supported, ‘NO’ otherwise.
-
Indicates if the authentication mode is configured and ready for use. For example, a user may need to configure the OS to use a particular feature, such as TouchID, Face ID, before this authentication mode can be used.
TouchID authentication mode is configured only if the following conditions met:
- At least one touch ID user is registered into the system
- Touch ID service is available. If the touch ID is temporarily locked out because there were too many failed Touch ID attempts, the function will return false and an error.
Face ID authentication mode is configured only if the following conditions met:
- Face ID authentication service is initialized, and
- One user is enrolled.
Note
Use this API instead of isConfigured: if you are using Swift in your code
Since
6.1.0
Declaration
Objective-C
- (BOOL)isConfigured;Swift
func isConfigured() -> BoolReturn Value
‘YES’ if the platform is correctly configured to support the authentication mode; ‘NO’ otherwise.
EMAuthService Protocol Reference