UITextInputTraits

Trait UITextInputTraits 

Source
pub unsafe trait UITextInputTraits: NSObjectProtocol + MainThreadOnly {
Show 38 methods // Provided methods fn autocapitalizationType(&self) -> UITextAutocapitalizationType where Self: Sized + Message { ... } fn setAutocapitalizationType( &self, autocapitalization_type: UITextAutocapitalizationType, ) where Self: Sized + Message { ... } fn autocorrectionType(&self) -> UITextAutocorrectionType where Self: Sized + Message { ... } fn setAutocorrectionType( &self, autocorrection_type: UITextAutocorrectionType, ) where Self: Sized + Message { ... } fn spellCheckingType(&self) -> UITextSpellCheckingType where Self: Sized + Message { ... } fn setSpellCheckingType(&self, spell_checking_type: UITextSpellCheckingType) where Self: Sized + Message { ... } fn smartQuotesType(&self) -> UITextSmartQuotesType where Self: Sized + Message { ... } fn setSmartQuotesType(&self, smart_quotes_type: UITextSmartQuotesType) where Self: Sized + Message { ... } fn smartDashesType(&self) -> UITextSmartDashesType where Self: Sized + Message { ... } fn setSmartDashesType(&self, smart_dashes_type: UITextSmartDashesType) where Self: Sized + Message { ... } fn smartInsertDeleteType(&self) -> UITextSmartInsertDeleteType where Self: Sized + Message { ... } fn setSmartInsertDeleteType( &self, smart_insert_delete_type: UITextSmartInsertDeleteType, ) where Self: Sized + Message { ... } fn inlinePredictionType(&self) -> UITextInlinePredictionType where Self: Sized + Message { ... } fn setInlinePredictionType( &self, inline_prediction_type: UITextInlinePredictionType, ) where Self: Sized + Message { ... } fn mathExpressionCompletionType(&self) -> UITextMathExpressionCompletionType where Self: Sized + Message { ... } fn setMathExpressionCompletionType( &self, math_expression_completion_type: UITextMathExpressionCompletionType, ) where Self: Sized + Message { ... } fn keyboardType(&self) -> UIKeyboardType where Self: Sized + Message { ... } fn setKeyboardType(&self, keyboard_type: UIKeyboardType) where Self: Sized + Message { ... } fn keyboardAppearance(&self) -> UIKeyboardAppearance where Self: Sized + Message { ... } fn setKeyboardAppearance(&self, keyboard_appearance: UIKeyboardAppearance) where Self: Sized + Message { ... } fn returnKeyType(&self) -> UIReturnKeyType where Self: Sized + Message { ... } fn setReturnKeyType(&self, return_key_type: UIReturnKeyType) where Self: Sized + Message { ... } fn enablesReturnKeyAutomatically(&self) -> bool where Self: Sized + Message { ... } fn setEnablesReturnKeyAutomatically( &self, enables_return_key_automatically: bool, ) where Self: Sized + Message { ... } fn isSecureTextEntry(&self) -> bool where Self: Sized + Message { ... } fn setSecureTextEntry(&self, secure_text_entry: bool) where Self: Sized + Message { ... } fn textContentType(&self) -> Retained<UITextContentType> where Self: Sized + Message { ... } fn setTextContentType(&self, text_content_type: Option<&UITextContentType>) where Self: Sized + Message { ... } fn passwordRules(&self) -> Option<Retained<UITextInputPasswordRules>> where Self: Sized + Message { ... } fn setPasswordRules( &self, password_rules: Option<&UITextInputPasswordRules>, ) where Self: Sized + Message { ... } fn writingToolsBehavior(&self) -> UIWritingToolsBehavior where Self: Sized + Message { ... } fn setWritingToolsBehavior( &self, writing_tools_behavior: UIWritingToolsBehavior, ) where Self: Sized + Message { ... } fn allowedWritingToolsResultOptions(&self) -> UIWritingToolsResultOptions where Self: Sized + Message { ... } fn setAllowedWritingToolsResultOptions( &self, allowed_writing_tools_result_options: UIWritingToolsResultOptions, ) where Self: Sized + Message { ... } fn conversationContext(&self) -> Option<Retained<UIConversationContext>> where Self: Sized + Message { ... } fn setConversationContext( &self, conversation_context: Option<&UIConversationContext>, ) where Self: Sized + Message { ... } fn allowsNumberPadPopover(&self) -> bool where Self: Sized + Message { ... } fn setAllowsNumberPadPopover(&self, allows_number_pad_popover: bool) where Self: Sized + Message { ... }
}
Available on crate feature UITextInputTraits only.
Expand description

Provided Methods§

Source

fn autocapitalizationType(&self) -> UITextAutocapitalizationType
where Self: Sized + Message,

Source

fn setAutocapitalizationType( &self, autocapitalization_type: UITextAutocapitalizationType, )
where Self: Sized + Message,

Source

fn autocorrectionType(&self) -> UITextAutocorrectionType
where Self: Sized + Message,

Source

fn setAutocorrectionType(&self, autocorrection_type: UITextAutocorrectionType)
where Self: Sized + Message,

Setter for autocorrectionType.

Source

fn spellCheckingType(&self) -> UITextSpellCheckingType
where Self: Sized + Message,

Source

fn setSpellCheckingType(&self, spell_checking_type: UITextSpellCheckingType)
where Self: Sized + Message,

Setter for spellCheckingType.

Source

fn smartQuotesType(&self) -> UITextSmartQuotesType
where Self: Sized + Message,

Source

fn setSmartQuotesType(&self, smart_quotes_type: UITextSmartQuotesType)
where Self: Sized + Message,

Setter for smartQuotesType.

Source

fn smartDashesType(&self) -> UITextSmartDashesType
where Self: Sized + Message,

Source

fn setSmartDashesType(&self, smart_dashes_type: UITextSmartDashesType)
where Self: Sized + Message,

Setter for smartDashesType.

Source

fn smartInsertDeleteType(&self) -> UITextSmartInsertDeleteType
where Self: Sized + Message,

Source

fn setSmartInsertDeleteType( &self, smart_insert_delete_type: UITextSmartInsertDeleteType, )
where Self: Sized + Message,

Source

fn inlinePredictionType(&self) -> UITextInlinePredictionType
where Self: Sized + Message,

Source

fn setInlinePredictionType( &self, inline_prediction_type: UITextInlinePredictionType, )
where Self: Sized + Message,

Source

fn mathExpressionCompletionType(&self) -> UITextMathExpressionCompletionType
where Self: Sized + Message,

Source

fn setMathExpressionCompletionType( &self, math_expression_completion_type: UITextMathExpressionCompletionType, )
where Self: Sized + Message,

Source

fn keyboardType(&self) -> UIKeyboardType
where Self: Sized + Message,

Source

fn setKeyboardType(&self, keyboard_type: UIKeyboardType)
where Self: Sized + Message,

Setter for keyboardType.

Source

fn keyboardAppearance(&self) -> UIKeyboardAppearance
where Self: Sized + Message,

Source

fn setKeyboardAppearance(&self, keyboard_appearance: UIKeyboardAppearance)
where Self: Sized + Message,

Setter for keyboardAppearance.

Source

fn returnKeyType(&self) -> UIReturnKeyType
where Self: Sized + Message,

Source

fn setReturnKeyType(&self, return_key_type: UIReturnKeyType)
where Self: Sized + Message,

Setter for returnKeyType.

Source

fn enablesReturnKeyAutomatically(&self) -> bool
where Self: Sized + Message,

Source

fn setEnablesReturnKeyAutomatically( &self, enables_return_key_automatically: bool, )
where Self: Sized + Message,

Source

fn isSecureTextEntry(&self) -> bool
where Self: Sized + Message,

Source

fn setSecureTextEntry(&self, secure_text_entry: bool)
where Self: Sized + Message,

Setter for isSecureTextEntry.

Source

fn textContentType(&self) -> Retained<UITextContentType>
where Self: Sized + Message,

Source

fn setTextContentType(&self, text_content_type: Option<&UITextContentType>)
where Self: Sized + Message,

Setter for textContentType.

This is copied when set.

Source

fn passwordRules(&self) -> Option<Retained<UITextInputPasswordRules>>
where Self: Sized + Message,

Source

fn setPasswordRules(&self, password_rules: Option<&UITextInputPasswordRules>)
where Self: Sized + Message,

Setter for passwordRules.

This is copied when set.

Source

fn writingToolsBehavior(&self) -> UIWritingToolsBehavior
where Self: Sized + Message,

Source

fn setWritingToolsBehavior( &self, writing_tools_behavior: UIWritingToolsBehavior, )
where Self: Sized + Message,

Source

fn allowedWritingToolsResultOptions(&self) -> UIWritingToolsResultOptions
where Self: Sized + Message,

Source

fn setAllowedWritingToolsResultOptions( &self, allowed_writing_tools_result_options: UIWritingToolsResultOptions, )
where Self: Sized + Message,

Source

fn conversationContext(&self) -> Option<Retained<UIConversationContext>>
where Self: Sized + Message,

Available on crate feature UIConversationContext only.

A reference to a conversation, such as a mail or messaging thread.

Set this conversation context before the keyboard appears; the keyboard uses this context to initialize its conversation context value. When updates occur in the conversation, call UITextInputDelegate/conversationContext(_:didChange:) on the inputDelegate property for UITextInput objects, such as UITextView/inputDelegateorUITextField/inputDelegate``.

Source

fn setConversationContext( &self, conversation_context: Option<&UIConversationContext>, )
where Self: Sized + Message,

Available on crate feature UIConversationContext only.

Setter for conversationContext.

Source

fn allowsNumberPadPopover(&self) -> bool
where Self: Sized + Message,

Source

fn setAllowsNumberPadPopover(&self, allows_number_pad_popover: bool)
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UITextInputTraits

Source§

const NAME: &'static str = "UITextInputTraits"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn UITextInputTraits

Implementations on Foreign Types§

Source§

impl<T> UITextInputTraits for ProtocolObject<T>

Implementors§

Source§

impl UITextInputTraits for UISearchBar

Available on crate feature UISearchBar only.
Source§

impl UITextInputTraits for UISearchTextField

Available on crate feature UISearchTextField only.
Source§

impl UITextInputTraits for UITextField

Available on crate feature UITextField only.
Source§

impl UITextInputTraits for UITextView

Available on crate feature UITextView only.