TrustedWebActivityScreenOrientation enum

Class representing Screen Orientation Lock type value of a Trusted Web Activity: https://www.w3.org/TR/screen-orientation/#screenorientation-interface

Inheritance
Available extensions

Values

DEFAULT → const TrustedWebActivityScreenOrientation

The default screen orientation is the set of orientations to which the screen is locked when there is no current orientation lock.

PORTRAIT_PRIMARY → const TrustedWebActivityScreenOrientation

Portrait-primary is an orientation where the screen width is less than or equal to the screen height. If the device's natural orientation is portrait, then it is in portrait-primary when held in that position.

PORTRAIT_SECONDARY → const TrustedWebActivityScreenOrientation

Portrait-secondary is an orientation where the screen width is less than or equal to the screen height. If the device's natural orientation is portrait, then it is in portrait-secondary when rotated 180° from its natural position.

LANDSCAPE_PRIMARY → const TrustedWebActivityScreenOrientation

Landscape-primary is an orientation where the screen width is greater than the screen height. If the device's natural orientation is landscape, then it is in landscape-primary when held in that position.

LANDSCAPE_SECONDARY → const TrustedWebActivityScreenOrientation

Landscape-secondary is an orientation where the screen width is greater than the screen height. If the device's natural orientation is landscape, it is in landscape-secondary when rotated 180° from its natural orientation.

ANY → const TrustedWebActivityScreenOrientation

Any is an orientation that means the screen can be locked to any one of portrait-primary, portrait-secondary, landscape-primary and landscape-secondary.

LANDSCAPE → const TrustedWebActivityScreenOrientation

Landscape is an orientation where the screen width is greater than the screen height and depending on platform convention locking the screen to landscape can represent landscape-primary, landscape-secondary or both.

PORTRAIT → const TrustedWebActivityScreenOrientation

Portrait is an orientation where the screen width is less than or equal to the screen height and depending on platform convention locking the screen to portrait can represent portrait-primary, portrait-secondary or both.

NATURAL → const TrustedWebActivityScreenOrientation

Natural is an orientation that refers to either portrait-primary or landscape-primary depending on the device's usual orientation. This orientation is usually provided by the underlying operating system.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<TrustedWebActivityScreenOrientation>
A constant List of the values in this enum, in order of their declaration.