HarmonyPluginPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • HarmonyPluginPlatform
Implementers

Constructors

HarmonyPluginPlatform.new()
Constructs a HarmonyPluginPlatform.

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

getHarmonyVersion() Future<String>
获取鸿蒙系统版本
isHarmonyOS() Future<bool>
是否是鸿蒙系统
isHarmonyPureMode() Future<bool>
是否是鸿蒙纯净模式
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 Properties

instance HarmonyPluginPlatform
The default instance of HarmonyPluginPlatform to use.
getter/setter pair