Trait UITextInputTraits

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

Provided Methods§

Source

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

Source

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

Source

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

Source

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

Setter for autocorrectionType.

Source

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

Source

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

Setter for spellCheckingType.

Source

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

Source

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

Setter for smartQuotesType.

Source

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

Source

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

Setter for smartDashesType.

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Setter for keyboardType.

Source

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

Source

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

Setter for keyboardAppearance.

Source

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

Source

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

Setter for returnKeyType.

Source

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

Source

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

Source

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

Source

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

Setter for isSecureTextEntry.

Source

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

Source

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

Setter for textContentType.

Source

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

Source

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

Setter for passwordRules.

Source

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

Source

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

Source

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

Source

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

Source

unsafe 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

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

Available on crate feature UIConversationContext only.

Setter for conversationContext.

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.