TouchIDManager
public protocol TouchIDManager
Touch ID manager.
-
isActive
Default implementationIndicates if TouchID is active.
Default Implementation
Undocumented
Declaration
Swift
var isActive: Bool
-
isAvailable()
Default implementationIndicates if Touch ID is available for the device.
Returns
true
if Touch ID is available.false
if not.Throws
The authentication error.Default Implementation
Authenticates the user using TouchID.
- Parameters:
- reason: The reason why you try to authenticate. The string will be displayed in the TouchID alert.
- completion: The completion block.
Declaration
Swift
func isAvailable() throws -> Bool
Return Value
true
if Touch ID is available.false
if not. - Parameters:
-
activate()
Default implementationActivates TouchID.
Default Implementation
Authenticates the user using TouchID.
- Parameters:
- reason: The reason why you try to authenticate. The string will be displayed in the TouchID alert.
- completion: The completion block.
Declaration
Swift
func activate()
- Parameters:
-
deactivate()
Default implementationDeactivate TouchID.
Default Implementation
Authenticates the user using TouchID.
- Parameters:
- reason: The reason why you try to authenticate. The string will be displayed in the TouchID alert.
- completion: The completion block.
Declaration
Swift
func deactivate()
- Parameters:
-
authenticate(forReason:completion:)
Default implementationAuthenticates the user using TouchID.
- Parameters:
- reason: The reason why you try to authenticate. The string will be displayed in the TouchID alert.
- completion: The completion block.
Default Implementation
Authenticates the user using TouchID.
- Parameters:
- reason: The reason why you try to authenticate. The string will be displayed in the TouchID alert.
- completion: The completion block.
Declaration
Swift
func authenticate(forReason reason: String,
Parameters
reason
The reason why you try to authenticate. The string will be displayed in the TouchID alert.
completion
The completion block.
- Parameters: