PDDevelopKitPlatform class abstract
pd_develop_kit 的平台接口定义。
通过 instance 提供当前平台的实现(默认是 MethodChannelPDDevelopKit), 平台侧实现需要在赋值 instance 时通过 token 校验。
- Inheritance
-
- Object
- PlatformInterface
- PDDevelopKitPlatform
- Implementers
Constructors
- PDDevelopKitPlatform()
- 创建一个平台接口实例,并绑定内部 token。
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
-
getPlatformVersion(
) → Future< String?> - 获取当前平台的版本信息。
-
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 ↔ PDDevelopKitPlatform
-
获取当前平台实现。
getter/setter pair