EMSecureInputUiOkButtonBehavior
Objective-C
enum EMSecureInputUiOkButtonBehavior : NSInteger {}
Swift
enum EMSecureInputUiOkButtonBehavior : Int, @unchecked Sendable
Secure Input UI OK button behavior.
Since
4.4-
OK button is not visible on screen.
OK button is automatically triggered when the input length reaches minimum/maximum input length.
Runtime exception is thrown if the minimum input length does not equal to maximum input length.
Declaration
Objective-C
EMSecureInputUiOkButtonNone = 0Swift
case none = 0 -
OK button is visible on screen. OK button is grayed out (disabled state) by default.
OK button is automatically enabled (normal state) when the input length reaches minimum input length.
Declaration
Objective-C
EMSecureInputUiOkButtonAutomaticallyEnabled = 1Swift
case automaticallyEnabled = 1 -
OK button is always visible on screen.
User have to manually trigger the OK button.
Declaration
Objective-C
EMSecureInputUiOkButtonAlwaysEnabled = 2Swift
case alwaysEnabled = 2 -
OK button is always visible on screen.
OK button is automatically triggered when the input length reaches minimum/maximum input length. To override the OK button behavior, do set the [EMSecureInputUi customUiDelegate] and handle the [EMSecureInputCustomUiDelegate secureInputUiOkButtonPressed:] callback respectively.
Runtime exception is thrown if the minimum input length does not equal to maximum input length.
Declaration
Objective-C
EMSecureInputUiOkButtonCustom = 3Swift
case custom = 3 -
OK button does not exist.
No automatic simulation of OK button is done. Ok button is never automatically simulated, everything needs to be done programmatically both in single input and double input mode.
Declaration
Objective-C
EMSecureInputUiOkButtonNoneDisabled = 4Swift
case noneDisabled = 4
EMSecureInputUiOkButtonBehavior Enumeration Reference