FlutterAutoOrientationPlatform class abstract
The base class for the plugin platform interface. All platform implementations (Android/iOS/Web, etc.) must inherit from this class and be registered through FlutterAutoOrientationPlatform.instance.
插件平台接口基类。
所有平台(Android/iOS/Web 等)的实现都需要继承此类, 并通过 FlutterAutoOrientationPlatform.instance 注册。
- Inheritance
-
- Object
- PlatformInterface
- FlutterAutoOrientationPlatform
- Implementers
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
-
setOrientation(
String method, {bool forceSensor = false}) → Future< void> - Sets the screen orientation. This method must be implemented by all concrete platforms. 设置屏幕方向。所有具体平台必须实现此方法。
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterAutoOrientationPlatform
-
The current plugin instance, which defaults to
MethodChannelAutoOrientation. 当前插件实例,默认使用MethodChannelAutoOrientation。getter/setter pair