JpushFlutterPluginIOS class
The iOS implementation of JpushFlutterPluginPlatform
.
- Inheritance
-
- Object
- PlatformInterface
- JpushFlutterPluginIOS
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteAlias(
int sequence) → Future< void> - 调用此 API 来删除别名。
-
getPlatformName(
) → Future< String?> - Return the current platform name.
-
init(
String appKey, String channel, JpushFlutterPluginHandler handler) → Future< void> - 初始化推送服务 API 调用了本 API 后,JPush 推送服务进行初始化。 建议在自定义的 Application 中的 onCreate 中调用。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAlias(
int sequence, String alias) → Future< void> -
设置别名
调用此 API 来设置别名。
需要理解的是,这个接口是覆盖逻辑,而不是增量逻辑。即新的调用会覆盖之前的设置。
参数定义
sequence
-
setAuth(
{bool auth = false}) → Future< void> - 隐私确认接口
-
setDebugMode(
{bool debugMode = false}) → Future< void> - 设置调试模式 API 该接口需在 init 接口之前调用,避免出现部分日志没打印的情况。 多进程情况下建议在自定义的 Application 中 onCreate 中调用。 @param debugMode debugMode 为 true 则会打印 debug 级别的日志, false 则只会打印 warning 级别以上的日志
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
) → void -
Registers this class as the default instance of
JpushFlutterPluginPlatform