AutoOrientation class
提供以编程方式横向或纵向旋转设备的类
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
fullAutoMode(
) → dynamic - 将设备旋转到横向自动模式
-
landscapeAutoMode(
) → dynamic - 将设备旋转到横向自动模式
-
landscapeLeftMode(
) → dynamic - 将设备旋转到横向左侧模式
-
landscapeRightMode(
) → dynamic - 将设备旋转到横向右侧模式
-
portraitAutoMode(
) → dynamic - 将设备旋转到纵向自动模式
-
portraitDownMode(
) → dynamic - 将设备旋转到纵向向下模式
-
portraitUpMode(
) → dynamic - 将设备旋转到纵向模式
-
setOrientation(
OrientationMode mode) → dynamic - 此方法用于提供给开发者以更简便的方式取修改设备方向