TextInputType¶
The type of input which a text entry view and its keyboard should optimize for.
Definition¶
namespace bdn::ui
{
enum class TextInputType
{
Text,
URL,
Number,
Phone,
EMail,
DateTime,
MultiLine,
};
}
Enum Values¶
-
TextInputType::Text
Use case: A single line of text
Corresponds to
UIKeyboardTypeDefaulton iOS and toInputType::TYPE_CLASS_TEXTon Android. -
TextInputType::URL
Use case: A URL
Corresponds to
UIKeyboardTypeURLon iOS and toInputType::TYPE_CLASS_TEXT | InputType::TYPE_TEXT_VARIATION_URIon Android. -
TextInputType::Number
Use case: A single number with possible decimal and sign
Corresponds to
UIKeyboardTypeNumbersAndPunctuationon iOS and toInputType::TYPE_CLASS_NUMBER | InputType::TYPE_NUMBER_FLAG_DECIMAL | InputType::TYPE_NUMBER_FLAG_SIGNEDon Android. -
TextInputType::Phone
Use case: A phone number
Corresponds to
UIKeyboardTypePhonePadon iOS and toInputType::TYPE_CLASS_PHONEon Android. -
TextInputType::EMail
Use case: An email address
Corresponds to
UIKeyboardTypeEmailAddresson iOS and toInputType::TYPE_CLASS_TEXT | InputType::TYPE_TEXT_VARIATION_EMAIL_ADDRESSon Android. -
TextInputType::DateTime
Use case: A date and time value
Corresponds to
UITextContentTypeDefaulton iOS and toInputType::TYPE_CLASS_DATETIMEon Android. -
TextInputType::MultiLine
Use case: A multiline text input
Corresponds to
UITextContentTypeDefaulton iOS and toInputType::TYPE_CLASS_TEXT | InputType::TYPE_TEXT_VARIATION_LONG_MESSAGEon Android.