TokenFieldDelegate
@objc
public protocol TokenFieldDelegate : NSObjectProtocol
The protocol defines the messages sent to a delegate. All the methods are optional.
-
Tells the delegate that editing began for the token field.
Declaration
Swift
@objc optional func tokenFieldDidBeginEditing(_ tokenField: TokenField)
-
Tells the delegate that editing stopped for the token field.
Declaration
Swift
@objc optional func tokenFieldDidEndEditing(_ tokenField: TokenField)
-
Tells the delegate that the token field will process the pressing of the return button.
Declaration
Swift
@objc optional func tokenFieldWillReturn(_ tokenField: TokenField)
-
Tells the delegate the input text is changed.
Declaration
Swift
@objc optional func tokenField(_ tokenField: TokenField, didChangeInputText text: String)
-
Asks the delegate if the text should become a token in the token field.
Declaration
Swift
@objc optional func tokenField(_ tokenField: TokenField, shouldCompleteText text: String) -> Bool
-
Tells the delegate that the text becomes a token in the token field.
Declaration
Swift
@objc optional func tokenField(_ tokenField: TokenField, didCompleteText text: String)
-
Tells the delegate that the token at certain index is removed from the token field.
Declaration
Swift
@objc optional func tokenField(_ tokenField: TokenField, didDeleteText text: String, atIndex index: Int)
-
Asks the delegate for the subsequent delimiter string for a completed text in the token field.
Declaration
Swift
@objc optional func tokenField(_ tokenField: TokenField, subsequentDelimiterForCompletedText text: String) -> String