ProximitySensorService class

iOS / OHOS 语音播放时的接近感应适配器。

接近感应由插件端负责打开系统「贴近耳朵熄屏」行为;其他平台保持空操作, 避免把移动端专属的传感器语义泄漏到播放器或消息气泡中。

Constructors

ProximitySensorService({MethodChannel? channel, TargetPlatform? platform})

Properties

hashCode → int
The hash code for this object.
no setterinherited
isSupported → bool
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
setEnabled(bool enabled) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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