AliAuthPlugin class
阿里云一键登录类 原来的全屏登录和dialog 统一有配置参数isDislog来控制
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onBatteryStateChanged → Stream?
-
初始化监听
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- appleLogin → Future
-
@Deprecated('该接口将在 v0.0.6 之前可继续使用,在以后版本执行删除,请尽快修改')
一键登录( 弹窗 )
苹果登录iOS专用
no setter
-
checkVerifyEnable
→ Future<
bool?> -
SDK判断网络环境是否支持
no setter
- login → Future
-
一键登录
no setter
- preLogin → Future
-
@Deprecated('该接口将在 v0.1.2 之前可继续使用,在以后版本执行删除,请尽快修改')
一键登录
static Future
no setter
Static Methods
-
initSdk(
{required String sk, AliAuthModel? config}) → Future - 初始化SDK sk 必须 isDialog 是否使用Dialog 弹窗登录 非必须 默认值false 非Dialog登录 debug 是否开启调试模式 非必须 默认true 开启 使用一键登录传入 SERVICE_TYPE_LOGIN 2 使用号码校验传入 SERVICE_TYPE_AUTH 1 默认值 2
-
loginListen(
{bool type = true, required Function onEvent, Function? onError}) → dynamic - 数据监听