TouchIDManager
public protocol TouchIDManager
Touch ID manager.
-
isActiveDefault 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
trueif Touch ID is available.falseif 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 -> BoolReturn Value
trueif Touch ID is available.falseif 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
reasonThe reason why you try to authenticate. The string will be displayed in the TouchID alert.
completionThe completion block.
- Parameters:
TouchIDManager Protocol Reference