LimitingDirectionCsx class

Constructors

LimitingDirectionCsx()

Properties

currentDeviceOrientation UIDeviceOrientation
第一次获取可能为默认值Unknown, 如果方便的话可以调用LimitingDirectionCsx().getNowDeviceDirection来获取当前的状态, 或者使用LimitingDirectionCsx().getDeviceDirection以流的方式处理状态变化
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDeviceDirectionStream() Stream<UIDeviceOrientation>
获取陀螺仪的陈列方位的变化流
getNowDeviceDirection() Future<UIDeviceOrientation?>
实时获取当前陀螺仪的陈列方位
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

setScreenDirection(DeviceDirectionMask directionMask) Future
设置屏幕支持的方位
setUpScreenDirection(DeviceDirectionMask directionMask) Future