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 { ... }
}
UITextInputTraits
only.Expand description
Provided Methods§
unsafe fn autocapitalizationType(&self) -> UITextAutocapitalizationType
Sourceunsafe fn setAutocapitalizationType(
&self,
autocapitalization_type: UITextAutocapitalizationType,
)
unsafe fn setAutocapitalizationType( &self, autocapitalization_type: UITextAutocapitalizationType, )
Setter for autocapitalizationType
.
unsafe fn autocorrectionType(&self) -> UITextAutocorrectionType
Sourceunsafe fn setAutocorrectionType(
&self,
autocorrection_type: UITextAutocorrectionType,
)
unsafe fn setAutocorrectionType( &self, autocorrection_type: UITextAutocorrectionType, )
Setter for autocorrectionType
.
unsafe fn spellCheckingType(&self) -> UITextSpellCheckingType
Sourceunsafe fn setSpellCheckingType(
&self,
spell_checking_type: UITextSpellCheckingType,
)
unsafe fn setSpellCheckingType( &self, spell_checking_type: UITextSpellCheckingType, )
Setter for spellCheckingType
.
unsafe fn smartQuotesType(&self) -> UITextSmartQuotesType
Sourceunsafe fn setSmartQuotesType(&self, smart_quotes_type: UITextSmartQuotesType)
unsafe fn setSmartQuotesType(&self, smart_quotes_type: UITextSmartQuotesType)
Setter for smartQuotesType
.
unsafe fn smartDashesType(&self) -> UITextSmartDashesType
Sourceunsafe fn setSmartDashesType(&self, smart_dashes_type: UITextSmartDashesType)
unsafe fn setSmartDashesType(&self, smart_dashes_type: UITextSmartDashesType)
Setter for smartDashesType
.
unsafe fn smartInsertDeleteType(&self) -> UITextSmartInsertDeleteType
Sourceunsafe fn setSmartInsertDeleteType(
&self,
smart_insert_delete_type: UITextSmartInsertDeleteType,
)
unsafe fn setSmartInsertDeleteType( &self, smart_insert_delete_type: UITextSmartInsertDeleteType, )
Setter for smartInsertDeleteType
.
unsafe fn inlinePredictionType(&self) -> UITextInlinePredictionType
Sourceunsafe fn setInlinePredictionType(
&self,
inline_prediction_type: UITextInlinePredictionType,
)
unsafe fn setInlinePredictionType( &self, inline_prediction_type: UITextInlinePredictionType, )
Setter for inlinePredictionType
.
unsafe fn mathExpressionCompletionType( &self, ) -> UITextMathExpressionCompletionType
Sourceunsafe fn setMathExpressionCompletionType(
&self,
math_expression_completion_type: UITextMathExpressionCompletionType,
)
unsafe fn setMathExpressionCompletionType( &self, math_expression_completion_type: UITextMathExpressionCompletionType, )
Setter for mathExpressionCompletionType
.
unsafe fn keyboardType(&self) -> UIKeyboardType
Sourceunsafe fn setKeyboardType(&self, keyboard_type: UIKeyboardType)
unsafe fn setKeyboardType(&self, keyboard_type: UIKeyboardType)
Setter for keyboardType
.
unsafe fn keyboardAppearance(&self) -> UIKeyboardAppearance
Sourceunsafe fn setKeyboardAppearance(
&self,
keyboard_appearance: UIKeyboardAppearance,
)
unsafe fn setKeyboardAppearance( &self, keyboard_appearance: UIKeyboardAppearance, )
Setter for keyboardAppearance
.
unsafe fn returnKeyType(&self) -> UIReturnKeyType
Sourceunsafe fn setReturnKeyType(&self, return_key_type: UIReturnKeyType)
unsafe fn setReturnKeyType(&self, return_key_type: UIReturnKeyType)
Setter for returnKeyType
.
unsafe fn enablesReturnKeyAutomatically(&self) -> bool
Sourceunsafe fn setEnablesReturnKeyAutomatically(
&self,
enables_return_key_automatically: bool,
)
unsafe fn setEnablesReturnKeyAutomatically( &self, enables_return_key_automatically: bool, )
Setter for enablesReturnKeyAutomatically
.
unsafe fn isSecureTextEntry(&self) -> bool
Sourceunsafe fn setSecureTextEntry(&self, secure_text_entry: bool)
unsafe fn setSecureTextEntry(&self, secure_text_entry: bool)
Setter for isSecureTextEntry
.
unsafe fn textContentType(&self) -> Retained<UITextContentType>
Sourceunsafe fn setTextContentType(
&self,
text_content_type: Option<&UITextContentType>,
)
unsafe fn setTextContentType( &self, text_content_type: Option<&UITextContentType>, )
Setter for textContentType
.
unsafe fn passwordRules(&self) -> Option<Retained<UITextInputPasswordRules>>
Sourceunsafe fn setPasswordRules(
&self,
password_rules: Option<&UITextInputPasswordRules>,
)
unsafe fn setPasswordRules( &self, password_rules: Option<&UITextInputPasswordRules>, )
Setter for passwordRules
.
unsafe fn writingToolsBehavior(&self) -> UIWritingToolsBehavior
Sourceunsafe fn setWritingToolsBehavior(
&self,
writing_tools_behavior: UIWritingToolsBehavior,
)
unsafe fn setWritingToolsBehavior( &self, writing_tools_behavior: UIWritingToolsBehavior, )
Setter for writingToolsBehavior
.
unsafe fn allowedWritingToolsResultOptions(&self) -> UIWritingToolsResultOptions
Sourceunsafe fn setAllowedWritingToolsResultOptions(
&self,
allowed_writing_tools_result_options: UIWritingToolsResultOptions,
)
unsafe fn setAllowedWritingToolsResultOptions( &self, allowed_writing_tools_result_options: UIWritingToolsResultOptions, )
Setter for allowedWritingToolsResultOptions
.
Sourceunsafe fn conversationContext(&self) -> Option<Retained<UIConversationContext>>
Available on crate feature UIConversationContext
only.
unsafe fn conversationContext(&self) -> Option<Retained<UIConversationContext>>
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/inputDelegateor
UITextField/inputDelegate``.
Sourceunsafe fn setConversationContext(
&self,
conversation_context: Option<&UIConversationContext>,
)
Available on crate feature UIConversationContext
only.
unsafe fn setConversationContext( &self, conversation_context: Option<&UIConversationContext>, )
UIConversationContext
only.Setter for conversationContext
.
Trait Implementations§
Source§impl ProtocolType for dyn UITextInputTraits
impl ProtocolType for dyn UITextInputTraits
impl<T> ImplementedBy<T> for dyn UITextInputTraits
Implementations on Foreign Types§
impl<T> UITextInputTraits for ProtocolObject<T>where
T: ?Sized + UITextInputTraits,
Implementors§
impl UITextInputTraits for UISearchBar
UISearchBar
only.impl UITextInputTraits for UISearchTextField
UISearchTextField
only.impl UITextInputTraits for UITextField
UITextField
only.impl UITextInputTraits for UITextView
UITextView
only.