TrustedWebActivityScreenOrientation class
Class representing Screen Orientation Lock type value of a Trusted Web Activity: https://www.w3.org/TR/screen-orientation/#screenorientation-interface
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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
-
toNativeValue(
) → int - Gets int native value.
-
toString(
) → String -
A string representation of this object.
override
-
toValue(
) → int - Gets int value.
Operators
-
operator ==(
Object value) → bool -
The equality operator.
override
Static Properties
-
values
→ Set<
TrustedWebActivityScreenOrientation> -
Set of all values of TrustedWebActivityScreenOrientation.
final
Static Methods
-
fromNativeValue(
int? value) → TrustedWebActivityScreenOrientation? - Gets a possible TrustedWebActivityScreenOrientation instance from a native value.
-
fromValue(
int? value) → TrustedWebActivityScreenOrientation? - Gets a possible TrustedWebActivityScreenOrientation instance from int value.
Constants
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.