TouchIDManager

public protocol TouchIDManager

Touch ID manager.

  • isActive Default implementation

    Indicates if TouchID is active.

    Default Implementation

    Undocumented

    Declaration

    Swift

    var isActive: Bool
  • isAvailable() Default implementation

    Indicates 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.

  • activate() Default implementation

    Activates 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()
  • deactivate() Default implementation

    Deactivate 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()
  • authenticate(forReason:completion:) 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.

    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.