Enum android_activity::input::KeyboardType
source · #[non_exhaustive]#[repr(u32)]pub enum KeyboardType {
Numeric,
Predictive,
Alpha,
Full,
SpecialFunction,
}
Expand description
An enum representing the types of keyboards that may generate key events
§Android Extensible Enum
This is a runtime extensible enum and
should be handled similar to a #[non_exhaustive]
enum to maintain
forwards compatibility.
This implements Into<u32>
and From<u32>
for converting to/from Android
SDK integer values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Numeric
A numeric (12-key) keyboard.
A numeric keyboard supports text entry using a multi-tap approach. It may be necessary to tap a key multiple times to generate the desired letter or symbol.
This type of keyboard is generally designed for thumb typing.
Predictive
A keyboard with all the letters, but with more than one letter per key.
This type of keyboard is generally designed for thumb typing.
Alpha
A keyboard with all the letters, and maybe some numbers.
An alphabetic keyboard supports text entry directly but may have a condensed layout with a small form factor. In contrast to a full keyboard, some symbols may only be accessible using special on-screen character pickers. In addition, to improve typing speed and accuracy, the framework provides special affordances for alphabetic keyboards such as auto-capitalization and toggled / locked shift and alt keys.
This type of keyboard is generally designed for thumb typing.
Full
A full PC-style keyboard.
A full keyboard behaves like a PC keyboard. All symbols are accessed directly by pressing keys on the keyboard without on-screen support or affordances such as auto-capitalization.
This type of keyboard is generally designed for full two hand typing.
SpecialFunction
A keyboard that is only used to control special functions rather than for typing.
A special function keyboard consists only of non-printing keys such as HOME and POWER that are not actually used for typing.
Trait Implementations§
source§impl Clone for KeyboardType
impl Clone for KeyboardType
source§fn clone(&self) -> KeyboardType
fn clone(&self) -> KeyboardType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyboardType
impl Debug for KeyboardType
source§impl From<KeyboardType> for u32
impl From<KeyboardType> for u32
source§fn from(enum_value: KeyboardType) -> Self
fn from(enum_value: KeyboardType) -> Self
source§impl From<u32> for KeyboardType
impl From<u32> for KeyboardType
source§impl FromPrimitive for KeyboardType
impl FromPrimitive for KeyboardType
source§impl Hash for KeyboardType
impl Hash for KeyboardType
source§impl PartialEq for KeyboardType
impl PartialEq for KeyboardType
source§fn eq(&self, other: &KeyboardType) -> bool
fn eq(&self, other: &KeyboardType) -> bool
self
and other
values to be equal, and is used
by ==
.