AliAuthModel class

登录窗口配置

Constructors

AliAuthModel(String? androidSk, String? iosSk, {bool? isDebug = true, bool? isDelay = false, PageType? pageType = PageType.fullPort, int? privacyOffsetX, String? statusBarColor, String? bottomNavColor, bool? lightColor, bool? isStatusBarHidden, UIFAG? statusBarUIFlag, String? navColor, String? navText, String? navTextColor, String? navReturnImgPath, int? navReturnImgWidth, int? navReturnImgHeight, CustomView? customReturnBtn, bool? navReturnHidden, ScaleType? navReturnScaleType, bool? navHidden, String? logoImgPath, bool? logoHidden, String? numberColor, int? numberSize, bool? switchAccHidden, bool? switchCheck, String? switchAccTextColor, String? logBtnText, int? logBtnTextSize, String? logBtnTextColor, String? protocolOneName, String? protocolOneURL, String? protocolTwoName, String? protocolTwoURL, String? protocolThreeName, String? protocolThreeURL, String? protocolCustomColor, String? protocolColor, Gravity? protocolLayoutGravity, String? sloganTextColor, String? protocolOwnColor, String? protocolOwnOneColor, String? protocolOwnTwoColor, String? protocolOwnThreeColor, String? sloganText, String? logBtnBackgroundPath, String? loadingImgPath, int? sloganOffsetY, int? logoOffsetY, int? logoOffsetY_B, ScaleType? logoScaleType, int? numFieldOffsetY, int? numFieldOffsetY_B, int? numberFieldOffsetX, Gravity? numberLayoutGravity, int? switchOffsetY, int? switchOffsetY_B, int? logBtnOffsetY, int? logBtnOffsetY_B, int? logBtnWidth, int? logBtnHeight, int? logBtnOffsetX, int? logBtnMarginLeftAndRight, Gravity? logBtnLayoutGravity, int? privacyOffsetY, int? privacyOffsetY_B, int? sloganOffsetY_B, int? checkBoxWidth, int? checkBoxHeight, bool? checkboxHidden, int? navTextSize, int? logoWidth, int? logoHeight, int? switchAccTextSize, String? switchAccText, int? sloganTextSize, bool? sloganHidden, String? uncheckedImgPath, String? checkedImgPath, bool? privacyState, Gravity? protocolGravity, int? privacyTextSize, int? privacyMargin, String? privacyBefore, String? privacyEnd, String? vendorPrivacyPrefix, String? vendorPrivacySuffix, bool? tapAuthPageMaskClosePage = false, int? dialogWidth, int? dialogHeight, bool? dialogBottom, int? dialogOffsetX, int? dialogOffsetY, List<int>? dialogCornerRadiusArray, String? pageBackgroundPath, int? pageBackgroundRadius, String? webViewStatusBarColor, String? webNavColor, String? webNavTextColor, int? webNavTextSize, String? webNavReturnImgPath, bool? webSupportedJavascript, String? authPageActIn, String? activityOut, String? authPageActOut, String? activityIn, int? screenOrientation, bool? logBtnToastHidden, double? dialogAlpha, int? privacyOperatorIndex, List<String>? privacyConectTexts, String? protocolAction, String? packageName, String? loadingBackgroundPath, bool? isHiddenLoading, bool? isHiddenCustom, CustomThirdView? customThirdView, String? backgroundPath = "assets/background_image.jpeg", String? bottomNavBarColor, bool? alertBarIsHidden, String? alertTitleBarColor, bool? alertCloseItemIsHidden, String? alertCloseImage, int? alertCloseImageX, int? alertCloseImageY, int? alertCloseImageW, int? alertCloseImageH, String? alertBlurViewColor, double? alertBlurViewAlpha, PNSPresentationDirection? presentDirection, bool privacyAlertIsNeedShow = false, bool privacyAlertIsNeedAutoLogin = true, bool privacyAlertMaskIsNeedShow = true, double privacyAlertMaskAlpha = 0.3, double privacyAlertAlpha = 0.2, String? privacyAlertBackgroundColor, String? privacyAlertEntryAnimation, String? privacyAlertExitAnimation, List<int>? privacyAlertCornerRadiusArray, Gravity? privacyAlertAlignment, int? privacyAlertWidth, int? privacyAlertHeight, int? privacyAlertOffsetX, int? privacyAlertOffsetY, String? privacyAlertTitleBackgroundColor, Gravity? privacyAlertTitleAlignment, int? privacyAlertTitleOffsetX, int? privacyAlertTitleOffsetY, int privacyAlertTitleTextSize = 18, String? privacyAlertTitleColor, String? privacyAlertContentBackgroundColor, int? privacyAlertContentTextSize = 16, Gravity? privacyAlertContentAlignment, String? privacyAlertContentColor, String? privacyAlertContentBaseColor, bool? privacyAlertProtocolNameUseUnderLine = false, int? privacyAlertContentHorizontalMargin, int? privacyAlertContentVerticalMargin, String? privacyAlertBtnBackgroundImgPath, String? privacyAlertBtnTextColor, int? privacyAlertBtnTextSize = 18, int? privacyAlertBtnWidth, int? privacyAlertBtnHeigth, bool? privacyAlertCloseBtnShow, String? privacyAlertCloseImagPath, ScaleType? privacyAlertCloseScaleType, int? privacyAlertCloseImgWidth, int? privacyAlertCloseImgHeight, String? privacyAlertOwnOneColor, String? privacyAlertOwnTwoColor, String? privacyAlertOwnThreeColor, String? privacyAlertOperatorColor, bool tapPrivacyAlertMaskCloseAlert = true, bool? autoQuitPage = true, bool? isHideToast = false, String? toastText = '请先阅读用户协议', String? toastBackground = '#FF000000', String? toastColor = '#FFFFFFFF', int? toastPadding = 9, int? toastMarginTop = 0, int? toastMarginBottom = 0, String? toastPositionMode = 'bottom', int? toastDelay = 3})
const

Properties

activityIn String?
final
activityOut String?
final
alertBarIsHidden bool?
/// ------- 十一、ios 弹窗设置参数 --------- /// 是否隐藏bar bar 为true 时 alertCloseItemIsHidden 也为true
final
alertBlurViewAlpha double?
底部蒙层背景透明度,默认0.5 0 ~ 1
final
alertBlurViewColor String?
底部蒙层背景颜色,默认黑色
final
alertCloseImage String?
关闭按钮的图片路径
final
alertCloseImageH int?
关闭按钮的图片高度
final
alertCloseImageW int?
关闭按钮的图片宽度
final
alertCloseImageX int?
关闭按钮的图片X坐标
final
alertCloseImageY int?
关闭按钮的图片Y坐标
final
alertCloseItemIsHidden bool?
bar的关闭按钮
final
alertTitleBarColor String?
bar的背景色 默认颜色为白色 #FFFFFF
final
androidSk String?
aliyun sk
final
authPageActIn String?
final
authPageActOut String?
final
autoQuitPage bool?
成功获取token后是否自动关闭授权页面
final
backgroundPath String?
final
bottomNavBarColor String?
底部虚拟导航栏
final
bottomNavColor String?
设置底部虚拟按键背景⾊(系统版本 5.0 以上可设置)
final
checkBoxHeight int?
复选框图片的高度
final
checkboxHidden bool?
设置复选框是否隐藏
final
checkBoxWidth int?
复选框图片的宽度
final
checkedImgPath String?
设置复选框未选中时图片
final
customReturnBtn CustomView?
自定义返回按钮参数
final
customThirdView CustomThirdView?
第三方图标相关参数只对iOS有效,android 请使用布局文件实现 第三方图标按钮居中布局 第三方布局图片路径
final
dialogAlpha double?
final
dialogBottom bool?
final
dialogCornerRadiusArray List<int>?
final
dialogHeight int?
弹窗高度
final
dialogOffsetX int?
final
dialogOffsetY int?
final
dialogWidth int?
弹窗宽度
final
hashCode int
The hash code for this object.
no setterinherited
iosSk String?
aliyun sk
final
isDebug bool?
是否开启debug模式
final
isDelay bool?
是否延迟
final
isHiddenCustom bool?
------- 八、自定义控件区 --------- /// 是否隐藏第三方布局
final
isHiddenLoading bool?
是否隐藏loading
final
isHideToast bool?
/// ------- 十三、toast设置 --------- /// 为勾选用户协议时的提示文字
final
isStatusBarHidden bool?
设置状态栏是否隐藏
final
lightColor bool?
设置状态栏文字颜色(系统版本6.0以上可设置黑色白色),true为黑色
final
loadingBackgroundPath String?
final
loadingImgPath String?
设置登录loading dialog 背景图⽚路径24
final
logBtnBackgroundPath String?
login_btn_bg_xml 设置登录按钮背景图⽚路径 是一个逗号拼接的图片路径 例如:'assets/login_btn_normal.png,assets/login_btn_unable.png,assets/login_btn_press.png' 如果设置错误或者找不到图片则使用默认样式
final
logBtnHeight int?
设置登录按钮⾼度,单位dp
final
logBtnLayoutGravity Gravity?
设置登陆按钮布局对⻬⽅式, 只⽀持Gravity.CENTER_HORIZONTAL、 Gravity.LEFT、 Gravity.RIGHT三种对⻬⽅式
final
logBtnMarginLeftAndRight int?
设置登录按钮相对于屏幕左右边缘边距
final
logBtnOffsetX int?
设置登陆按钮X轴偏移量,如果设置了setLogBtnMarginLeftAndRight,并且布局对⻬⽅式为左对⻬或者右对⻬,则会在margin的基础上再增加offsetX的偏移量,如果是居中对⻬,则仅仅会在居中的基础上再做offsetX的偏移。
final
logBtnOffsetY int?
设置登录按钮相对导航栏顶部的位移,单位 dp
final
logBtnOffsetY_B int?
设置登录按钮相对底部的位移,单位 dp
final
logBtnText String?
------- 六、登录按钮 --------- /// 设置登录按钮⽂字
final
logBtnTextColor String?
设置登录按钮⽂字颜⾊
final
logBtnTextSize int?
设置登录按钮⽂字⼤⼩ @Deprecated("即将删除的属性......")
final
logBtnToastHidden bool?
设置checkbox未勾选时,点击登录按钮toast是否隐藏 (android 独有)
final
logBtnWidth int?
设置登录按钮宽度,单位 dp
final
logoHeight int?
设置logo 控件⾼度
final
logoHidden bool?
隐藏logo
final
logoImgPath String?
------- 三、LOGO区 --------- /// 设置logo 图⽚
final
logoOffsetY int?
设置logo 控件相对导航栏顶部的位移,单位dp
final
logoOffsetY_B int?
设置logo 控件相对底部的位移,单位dp
final
logoScaleType ScaleType?
设置logo图⽚缩放模式 FIT_XY, FIT_START, FIT_CENTER, FIT_END, CENTER, CENTER_CROP, CENTER_INSIDE
final
logoWidth int?
设置logo 控件宽度
final
设置导航栏主题色
final
------- 二、导航栏 --------- /// 设置默认导航栏是否隐藏
final
设置导航栏返回按钮隐藏
final
设置导航栏返回按钮隐藏高度
final
设置导航栏返回按钮图片路径
final
设置导航栏返回按钮宽度
final
设置导航栏返回按钮缩放模式
final
设置导航栏标题文案内容
final
设置导航栏标题文字颜色
final
设置导航栏标题文字大小 @Deprecated("即将删除的属性......")
final
numberColor String?
------- 五、掩码栏 --------- /// 设置⼿机号码字体颜⾊
final
numberFieldOffsetX int?
设置号码栏相对于默认位置的X轴偏移量,单位dp
final
numberLayoutGravity Gravity?
设置⼿机号掩码的布局对⻬⽅式,只⽀持 Gravity.CENTER_HORIZONTAL、 Gravity.LEFT、 Gravity.RIGHT三种对⻬⽅式
final
numberSize int?
设置⼿机号码字体⼤⼩ @Deprecated("即将删除的属性......")
final
numFieldOffsetY int?
设置号码栏控件相对导航栏顶部的位移,单位 dp
final
numFieldOffsetY_B int?
设置号码栏控件相对底部的位移,单位 dp
final
packageName String?
包名
final
pageBackgroundPath String?
final
pageBackgroundRadius int?
背景图片圆角
final
pageType PageType?
页面类型 必须
final
presentDirection PNSPresentationDirection?
final
privacyAlertAlignment Gravity?
设置屏幕居中、居上、居下、居左、居右,默认居中显示。
final
privacyAlertAlpha double
设置二次隐私协议弹窗透明度。默认值1.0。
final
privacyAlertBackgroundColor String?
设置二次隐私协议弹窗背景色(同意并继续按钮区域)。
final
privacyAlertBtnBackgroundImgPath String?
设置按钮背景图片路径。
final
privacyAlertBtnHeigth int?
设置按钮高度。(单位:dp)
final
privacyAlertBtnTextColor String?
设置按钮文字颜色。
final
privacyAlertBtnTextSize int?
设置按钮文字大小,默认值18 sp。
final
privacyAlertBtnWidth int?
设置按钮宽度。(单位:dp)
final
privacyAlertCloseBtnShow bool?
设置右上角的关闭按钮。true(默认值):显示关闭按钮。
final
privacyAlertCloseImagPath String?
关闭按钮图片路径。
final
privacyAlertCloseImgHeight int?
关闭按钮高度。(单位:dp)
final
privacyAlertCloseImgWidth int?
关闭按钮宽度。(单位:dp)
final
privacyAlertCloseScaleType ScaleType?
关闭按钮缩放类型。
final
privacyAlertContentAlignment Gravity?
设置二次隐私协议弹窗协议文案支持居中、居左,默认居左显示。
final
privacyAlertContentBackgroundColor String?
设置协议内容背景颜色。
final
privacyAlertContentBaseColor String?
设置服务协议非协议文字颜色。
final
privacyAlertContentColor String?
设置服务协议文字颜色。
final
privacyAlertContentHorizontalMargin int?
设置服务协议左右两侧间距。
final
privacyAlertContentTextSize int?
设置服务协议文字大小,默认值16 sp。
final
privacyAlertContentVerticalMargin int?
设置服务协议上下间距。
final
privacyAlertCornerRadiusArray List<int>?
设置二次隐私协议弹窗的四个圆角值。说明 顺序为左上、右上、右下、左下,需要填充4个值,不足4个值则无效,如果值小于等于0则为直角。
final
privacyAlertEntryAnimation String?
设置二次隐私协议弹窗显示自定义动画。
final
privacyAlertExitAnimation String?
设置二次隐私协议弹窗隐藏自定义动画。
final
privacyAlertHeight int?
设置弹窗高度。
final
privacyAlertIsNeedAutoLogin bool
设置二次隐私协议弹窗点击按钮是否需要执行登录 true(默认值)
final
privacyAlertIsNeedShow bool
/// ------- 十二、二次弹窗设置 --------- /// 设置二次隐私协议弹窗是否需要显示。false(默认值)
final
privacyAlertMaskAlpha double
设置二次隐私协议弹窗蒙层透明度。默认值0.3
final
privacyAlertMaskIsNeedShow bool
设置二次隐私协议弹窗背景蒙层是否显示。true(默认值)
final
privacyAlertOffsetX int?
设置弹窗水平偏移量。(单位:dp)
final
privacyAlertOffsetY int?
设置弹窗竖直偏移量。(单位:dp)
final
privacyAlertOperatorColor String?
设置授权页运营商协议文本颜色。
final
privacyAlertOwnOneColor String?
设置授权页协议1文本颜色。
final
privacyAlertOwnThreeColor String?
设置授权页协议3文本颜色。
final
privacyAlertOwnTwoColor String?
设置授权页协议2文本颜色。
final
privacyAlertProtocolNameUseUnderLine bool?
二次弹窗协议名称是否添加下划线, 默认false
final
privacyAlertTitleAlignment Gravity?
设置二次隐私协议弹窗标题支持居中、居左,默认居中显示。
final
privacyAlertTitleBackgroundColor String?
设置二次隐私协议弹窗标题背景颜色。
final
privacyAlertTitleColor String?
设置标题文字颜色。
final
privacyAlertTitleOffsetX int?
设置标题文字水平偏移量。(单位:dp)
final
privacyAlertTitleOffsetY int?
设置标题文字竖直偏移量。(单位:dp)
final
privacyAlertTitleTextSize int
设置标题文字大小,默认值18 sp。
final
privacyAlertWidth int?
设置弹窗宽度。
final
privacyBefore String?
设置开发者隐私条款前置自定义文案
final
privacyConectTexts List<String>?
final
privacyEnd String?
设置开发者隐私条款尾部自定义文案
final
privacyMargin int?
设置隐私条款距离手机左右边缘的边距,单位dp
final
privacyOffsetX int?
设置隐私条款X的位移,单位dp
final
privacyOffsetY int?
------- 十、其它全屏属性 --------- /// 设置隐私条款相对导航栏顶部的位移,单位dp
final
privacyOffsetY_B int?
设置隐私条款相对底部的位移,单位dp
final
privacyOperatorIndex int?
final
privacyState bool?
设置隐私条款是否默认勾选
final
privacyTextSize int?
设置隐私条款文字大小
final
protocolAction String?
暴露名
final
protocolColor String?
基础文字颜色
final
protocolCustomColor String?
自定义协议名称颜色
final
protocolGravity Gravity?
设置隐私栏的布局对齐方式,该接口控制了整个隐私栏
final
protocolLayoutGravity Gravity?
设置隐私条款文字对齐方式,单位Gravity.xx
final
protocolOneName String?
------- 九、协议栏 --------- /// 自定义第一条名称
final
protocolOneURL String?
自定义第一条url
final
protocolOwnColor String?
设置授权页运营商协议文本颜色。
final
protocolOwnOneColor String?
设置授权页协议1文本颜色。
final
protocolOwnThreeColor String?
授权页协议3文本颜色。
final
protocolOwnTwoColor String?
授权页协议2文本颜色。
final
protocolThreeName String?
自定义第三条名称
final
protocolThreeURL String?
自定义第三条url
final
protocolTwoName String?
自定义第二条名称
final
protocolTwoURL String?
自定义第二条url
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenOrientation int?
final
sloganHidden bool?
------- 四、slogan区 --------- /// 设置是否隐藏slogan
final
sloganOffsetY int?
设置slogan 相对导航栏顶部的 位移,单位dp
final
sloganOffsetY_B int?
设置slogan 相对底部的 位移,单位dp
final
sloganText String?
设置slogan ⽂字内容
final
sloganTextColor String?
设置slogan ⽂字颜⾊
final
sloganTextSize int?
设置slogan ⽂字⼤⼩ @Deprecated("即将删除的属性......")
final
statusBarColor String?
------- 一、状态栏 --------- /// statusBarColor 设置状态栏颜⾊(系统版本 5.0 以上可设置)
final
statusBarUIFlag UIFAG?
设置状态栏U属性
final
switchAccHidden bool?
------- 七、切换到其他方式 --------- /// 设置切换按钮点是否可⻅
final
switchAccText String?
设置切换按钮⽂字内容
final
switchAccTextColor String?
设置切换按钮⽂字颜⾊
final
switchAccTextSize int?
设置切换按钮⽂字⼤⼩ @Deprecated("即将删除的属性......")
final
switchCheck bool?
是否需要点击切换按钮时校验是否勾选协议 默认值true
final
switchOffsetY int?
设置换按钮相对导航栏顶部的位移,单位 dp
final
switchOffsetY_B int?
设置换按钮相对底部的位移,单位 dp
final
tapAuthPageMaskClosePage bool?
授权页弹窗模式点击非弹窗区域关闭授权页
final
tapPrivacyAlertMaskCloseAlert bool
设置二次隐私协议弹窗点击背景蒙层是否关闭弹窗。true(默认值):表示关闭
final
toastBackground String?
toast的背景色
final
toastColor String?
文字颜色
final
toastDelay int?
关闭的时长 默认3s
final
toastMarginBottom int?
只有设置mode为bottom时才起作用,距离低部的距离
final
toastMarginTop int?
只有设置mode为top时才起作用,距离顶部的距离
final
toastPadding int?
toast的padding
final
toastPositionMode String?
toast的显示位置可用值 top、center、bottom
final
toastText String?
为勾选用户协议时的提示文字
final
uncheckedImgPath String?
设置复选框未选中时图片
final
vendorPrivacyPrefix String?
设置运营商协议后缀符号,只能设置⼀个字符,且只能设置<>()《》【】『』[]()中的⼀个
final
vendorPrivacySuffix String?
设置运营商协议后缀符号,只能设置⼀个字符,且只能设置<>()《》【】『』[]()中的⼀个
final
webNavColor String?
设置协议页顶部导航栏背景色不设置则与授权页设置一致
final
webNavReturnImgPath String?
设置协议页导航栏返回按钮图片路径不设置则与授权页设
final
webNavTextColor String?
设置协议页顶部导航栏标题颜色不设置则与授权页设置一致
final
webNavTextSize int?
设置协议页顶部导航栏文字大小不设置则与授权页设置一
final
webSupportedJavascript bool?
final
webViewStatusBarColor String?
设置协议⻚状态栏颜⾊(系统版本 5.0 以上可设置)不设置则与授权⻚设置⼀致
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited