pub enum UiModeType {
Normal,
Desk,
Car,
Television,
Appliance,
Watch,
VrHeadset,
}Expand description
The kind of device the application runs on, as the type part of Android’s
Configuration.uiMode (UI_MODE_TYPE_TELEVISION is
UiModeType::Television).
Variants§
Normal
A phone, a tablet, a desktop computer or a browser.
Desk
A device in a desk dock.
Car
A device in a car dock or a car’s own display.
Television
A TV: Android TV, Google TV or Apple TV, driven by a remote.
Appliance
A device with no display of its own, or one that is not mainly for people to look at.
Watch
A watch.
VrHeadset
A virtual reality headset.
Trait Implementations§
Source§impl Clone for UiModeType
impl Clone for UiModeType
impl Copy for UiModeType
Source§impl Debug for UiModeType
impl Debug for UiModeType
Source§impl Default for UiModeType
impl Default for UiModeType
impl Eq for UiModeType
Source§impl Hash for UiModeType
impl Hash for UiModeType
Source§impl PartialEq for UiModeType
impl PartialEq for UiModeType
impl StructuralPartialEq for UiModeType
Auto Trait Implementations§
impl Forget for UiModeType
impl Freeze for UiModeType
impl Move for UiModeType
impl RefUnwindSafe for UiModeType
impl Send for UiModeType
impl Sync for UiModeType
impl Unpin for UiModeType
impl UnsafeUnpin for UiModeType
impl UnwindSafe for UiModeType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more