TGFKeyboardKey
Objective-C
enum TGFKeyboardKey : NSInteger {}
Swift
enum TGFKeyboardKey : Int, @unchecked Sendable
An enumeration that represents the logical keys on the secure keyboard.
This enum is used by the TGFKeyboardDelegate to inform the application about
user input, allowing it to update the UI accordingly (e.g., adding or removing
characters from a secure text field).
@since 1.0.0
-
A key representing a character input (e.g., a number). This key press should result in adding a character to the passcode entry.
Declaration
Objective-C
TGFKeyboardKeyInputSwift
case input = 0 -
The delete or backspace key. This key press should result in removing the last character from the passcode entry.
Declaration
Objective-C
TGFKeyboardKeyDeleteSwift
case delete = 1 -
The “Done” or “Enter” key. This key press indicates that the user has finished entering the passcode and wishes to submit it for validation or authentication.
Declaration
Objective-C
TGFKeyboardKeyDoneSwift
case done = 2