AliAuth class Null safety

阿里云一键登录类 原来的全屏登录和dialog 统一有配置参数isDislog来控制

Constructors

AliAuth()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

appleLogin Future
苹果登录iOS专用
read-only
checkCellularDataEnable Future
read-only
platformVersion Future<String?>
获取设备版本信息
read-only
sdkVersion Future<String?>
获取SDK版本号
read-only
streamSubscription StreamSubscription?
read / write

Static Methods

dispose() → dynamic
销毁监听
initSdk(AliAuthModel? config) Future
初始化SDK sk 必须 isDialog 是否使用Dialog 弹窗登录 非必须 默认值false 非Dialog登录 debug 是否开启调试模式 非必须 默认true 开启 使用一键登录传入 SERVICE_TYPE_LOGIN 2 使用号码校验传入 SERVICE_TYPE_AUTH 1 默认值 2
login({int timeout = 5000}) Future
一键登录
loginListen({bool type = true, required Function onEvent, Function? onError, dynamic isOnlyOne = true}) → dynamic
数据监听
onChange({bool type = true}) Stream?
初始化监听
openPage(String? pageRoute) Future<void>
pageRoute
pause() → dynamic
暂停
quitPage() Future<void>
强制关闭一键登录授权页面
resume() → dynamic
恢复