pub unsafe trait UITextInputTraits: NSObjectProtocol + MainThreadOnly {
Show 34 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 { ... }
}Available on crate feature
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.
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
Available on crate features
UIResponder and UIView and UISearchBar only.impl UITextInputTraits for UISearchTextField
Available on crate features
UIControl and UIResponder and UITextField and UIView and UISearchTextField only.impl UITextInputTraits for UITextField
Available on crate features
UIControl and UIResponder and UIView and UITextField only.impl UITextInputTraits for UITextView
Available on crate features
UIResponder and UIScrollView and UIView and UITextView only.