expo-geetest-onelogin 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/expo/modules/geetestonelogin/ExpoGeetestOneloginModule.kt +24 -2
- package/build/ExpoGeetestOnelogin.types.d.ts +173 -168
- package/build/ExpoGeetestOnelogin.types.d.ts.map +1 -1
- package/build/ExpoGeetestOnelogin.types.js.map +1 -1
- package/package.json +1 -1
- package/src/ExpoGeetestOnelogin.types.ts +653 -648
|
@@ -1,536 +1,541 @@
|
|
|
1
|
-
import { ColorValue } from
|
|
1
|
+
import { ColorValue } from "react-native";
|
|
2
2
|
|
|
3
3
|
export type ChangeEventPayload<T> = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type?: string;
|
|
5
|
+
callbackId?: string;
|
|
6
|
+
result?: T;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export type ExpoGeetestOneloginViewProps = {
|
|
10
|
-
|
|
10
|
+
name: string;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export type AndroidOneLoginResponse = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
14
|
+
/**
|
|
15
|
+
* 极验后台配置唯一id android only
|
|
16
|
+
*/
|
|
17
|
+
app_id: string;
|
|
18
|
+
/**
|
|
19
|
+
* 客户端,1 表示 Android
|
|
20
|
+
*/
|
|
21
|
+
clienttype: string;
|
|
22
|
+
/**
|
|
23
|
+
* @see https://docs.geetest.com/onelogin/deploy/Returncode
|
|
24
|
+
* 错误码
|
|
25
|
+
*/
|
|
26
|
+
errorCode: string;
|
|
27
|
+
metadata: {
|
|
28
|
+
error_data: string;
|
|
29
|
+
};
|
|
30
|
+
model: string;
|
|
31
|
+
/**
|
|
32
|
+
* 运营商返回的状态信息
|
|
33
|
+
*/
|
|
34
|
+
msg: string;
|
|
35
|
+
/**
|
|
36
|
+
* 客户端获取的运营商
|
|
37
|
+
*/
|
|
38
|
+
operator: string;
|
|
39
|
+
/**
|
|
40
|
+
* 流水号(有效期10分钟) android only
|
|
41
|
+
*/
|
|
42
|
+
process_id: string;
|
|
43
|
+
release: string;
|
|
44
|
+
sdk: string;
|
|
45
|
+
/**
|
|
46
|
+
* 状态码,状态码为 200
|
|
47
|
+
*/
|
|
48
|
+
status: number;
|
|
49
|
+
/**
|
|
50
|
+
* 电信运营商返回的authcode, 非必需
|
|
51
|
+
*/
|
|
52
|
+
authcode: string;
|
|
53
|
+
token: string;
|
|
49
54
|
};
|
|
50
55
|
|
|
51
56
|
export type IOSOneLoginResponse = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
57
|
+
/**
|
|
58
|
+
* 极验后台配置唯一id ios only
|
|
59
|
+
*/
|
|
60
|
+
appID: string;
|
|
61
|
+
/**
|
|
62
|
+
* 电信运营商返回的authcode, 非必需
|
|
63
|
+
*/
|
|
64
|
+
authcode: string;
|
|
65
|
+
/**
|
|
66
|
+
* @see https://docs.geetest.com/onelogin/deploy/Returncode
|
|
67
|
+
* 错误码
|
|
68
|
+
*/
|
|
69
|
+
errorCode: string;
|
|
70
|
+
expire_time: number;
|
|
71
|
+
gwAuth: string;
|
|
72
|
+
model: string;
|
|
73
|
+
/**
|
|
74
|
+
* 运营商返回的状态信息
|
|
75
|
+
*/
|
|
76
|
+
msg: string;
|
|
77
|
+
number: string;
|
|
78
|
+
/**
|
|
79
|
+
* 运营商类型。0:未知 1:中国移动 2:中国联通 3:中国电信
|
|
80
|
+
*/
|
|
81
|
+
operatorType: string;
|
|
82
|
+
preGetTokenSuccessedTime: number;
|
|
83
|
+
pre_token_time: string;
|
|
84
|
+
/**
|
|
85
|
+
* 流水号(有效期10分钟) ios only
|
|
86
|
+
*/
|
|
87
|
+
processID: string;
|
|
88
|
+
release: string;
|
|
89
|
+
/**
|
|
90
|
+
* 状态码,状态码为 200
|
|
91
|
+
*/
|
|
92
|
+
status: number;
|
|
93
|
+
token: string;
|
|
89
94
|
};
|
|
90
95
|
|
|
91
96
|
export type AndroidOneLoginUIConfig = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
97
|
+
statusBar?: {
|
|
98
|
+
statusBarColor: ColorValue;
|
|
99
|
+
statusBarStyle:
|
|
100
|
+
| "UserInterfaceStyle.UNSPECIFIED"
|
|
101
|
+
| "UserInterfaceStyle.LIGHT"
|
|
102
|
+
| "UserInterfaceStyle.DARK";
|
|
103
|
+
bgLayoutInStatusBar: boolean;
|
|
104
|
+
};
|
|
105
|
+
authBGImgPath?: string;
|
|
106
|
+
dialogTheme?: {
|
|
107
|
+
isDialogTheme: boolean;
|
|
108
|
+
dialogWidth: number;
|
|
109
|
+
dialogHeight: number;
|
|
110
|
+
dialogX: number;
|
|
111
|
+
dialogY: number;
|
|
112
|
+
isDialogBottom: boolean;
|
|
113
|
+
isWebViewDialogTheme: boolean;
|
|
114
|
+
};
|
|
115
|
+
authNavLayout?: {
|
|
116
|
+
navColor: ColorValue;
|
|
117
|
+
authNavHeight: number;
|
|
118
|
+
authNavTransparent: boolean;
|
|
119
|
+
authNavGone: boolean;
|
|
120
|
+
};
|
|
121
|
+
authNavTextView?: {
|
|
122
|
+
navText: string;
|
|
123
|
+
navTextColor: ColorValue;
|
|
124
|
+
navTextSize: number;
|
|
125
|
+
navWebTextNormal: boolean;
|
|
126
|
+
navWebText: string;
|
|
127
|
+
navWebTextColor: ColorValue;
|
|
128
|
+
navWebTextSize: number;
|
|
129
|
+
};
|
|
130
|
+
switchViewLayout?: {
|
|
131
|
+
switchImgPath: string;
|
|
132
|
+
switchWidth: number;
|
|
133
|
+
switchHeight: number;
|
|
134
|
+
};
|
|
135
|
+
logBtnTextView?: {
|
|
136
|
+
logBtnText: string;
|
|
137
|
+
logBtnColor: ColorValue;
|
|
138
|
+
logBtnTextSize: number;
|
|
139
|
+
};
|
|
140
|
+
logBtnLoadingView?: {
|
|
141
|
+
loadingView: string;
|
|
142
|
+
loadingViewWidth: number;
|
|
143
|
+
loadingViewHeight: number;
|
|
144
|
+
loadingViewOffsetRight: number;
|
|
145
|
+
};
|
|
146
|
+
privacyUnCheckedToastText?: string;
|
|
147
|
+
privacyClauseText?: {
|
|
148
|
+
clauseNameOne: string;
|
|
149
|
+
clauseUrlOne: string;
|
|
150
|
+
clauseNameTwo: string;
|
|
151
|
+
clauseUrlTwo: string;
|
|
152
|
+
clauseNameThree: string;
|
|
153
|
+
clauseUrlThre: string;
|
|
154
|
+
};
|
|
155
|
+
privacyTextGravity?: "Gravity.CENTER_HORIZONTAL" | number; // android.view.Gravity
|
|
156
|
+
privacyClauseView?: {
|
|
157
|
+
baseClauseColor: ColorValue;
|
|
158
|
+
clauseColor: ColorValue;
|
|
159
|
+
privacyClauseTextSize: number;
|
|
160
|
+
};
|
|
161
|
+
privacyTextView?: {
|
|
162
|
+
privacyTextViewTv1: string;
|
|
163
|
+
privacyTextViewTv2: string;
|
|
164
|
+
privacyTextViewTv3: string;
|
|
165
|
+
privacyTextViewTv4: string;
|
|
166
|
+
};
|
|
167
|
+
authNavTextViewTypeface?: {
|
|
168
|
+
navTextTypeface: string;
|
|
169
|
+
navWebTextTypeface: string;
|
|
170
|
+
};
|
|
171
|
+
numberViewTypeface?: string;
|
|
172
|
+
switchViewTypeface?: string;
|
|
173
|
+
logBtnTextViewTypeface?: string;
|
|
174
|
+
logoImgView?: {
|
|
175
|
+
logoImgPath: string;
|
|
176
|
+
logoWidth: number;
|
|
177
|
+
logoHeight: number;
|
|
178
|
+
logoHidden: boolean;
|
|
179
|
+
logoOffsetY: number;
|
|
180
|
+
logoOffsetY_B: number;
|
|
181
|
+
logoOffsetX: number;
|
|
182
|
+
};
|
|
183
|
+
authNavReturnImgView?: {
|
|
184
|
+
returnImgPath: string;
|
|
185
|
+
returnImgWidth: number;
|
|
186
|
+
returnImgHeight: number;
|
|
187
|
+
returnImgHidden: boolean;
|
|
188
|
+
returnImgOffsetX: number;
|
|
189
|
+
};
|
|
190
|
+
numberView?: {
|
|
191
|
+
numberColor: ColorValue;
|
|
192
|
+
numberSize: number;
|
|
193
|
+
numberOffsetY: number;
|
|
194
|
+
numberOffsetY_B: number;
|
|
195
|
+
numberOffsetX: number;
|
|
196
|
+
};
|
|
197
|
+
sloganView?: {
|
|
198
|
+
sloganColor: ColorValue;
|
|
199
|
+
sloganSize: number;
|
|
200
|
+
sloganOffsetY: number;
|
|
201
|
+
sloganOffsetY_B: number;
|
|
202
|
+
sloganOffsetX: number;
|
|
203
|
+
};
|
|
204
|
+
logBtnLayout?: {
|
|
205
|
+
logBtnImgPath: string;
|
|
206
|
+
logBtnUncheckedImgPath: string;
|
|
207
|
+
logBtnWidth: number;
|
|
208
|
+
logBtnHeight: number;
|
|
209
|
+
logBtnOffsetY: number;
|
|
210
|
+
logBtnOffsetY_B: number;
|
|
211
|
+
logBtnOffsetX: number;
|
|
212
|
+
};
|
|
213
|
+
switchView?: {
|
|
214
|
+
switchText: string;
|
|
215
|
+
switchColor: ColorValue;
|
|
216
|
+
switchSize: number;
|
|
217
|
+
switchHidden: boolean;
|
|
218
|
+
switchOffsetY: number;
|
|
219
|
+
switchOffsetY_B: number;
|
|
220
|
+
switchOffsetX: number;
|
|
221
|
+
};
|
|
222
|
+
privacyCheckBox?: {
|
|
223
|
+
unCheckedImgPath: string;
|
|
224
|
+
checkedImgPath: string;
|
|
225
|
+
privacyState: boolean;
|
|
226
|
+
privacyCheckBoxWidth: number;
|
|
227
|
+
privacyCheckBoxHeight: number;
|
|
228
|
+
privacyCheckBoxOffsetY: number;
|
|
229
|
+
privacyCheckBoxMarginRight: number;
|
|
230
|
+
};
|
|
231
|
+
privacyLayout?: {
|
|
232
|
+
privacyLayoutWidth: number;
|
|
233
|
+
privacyOffsetY: number;
|
|
234
|
+
privacyOffsetY_B: number;
|
|
235
|
+
privacyOffsetX: number;
|
|
236
|
+
isUseNormalWebActivity: boolean;
|
|
237
|
+
};
|
|
238
|
+
sloganViewTypeface?: string;
|
|
239
|
+
privacyClauseViewTypeface?: {
|
|
240
|
+
privacyClauseBaseTypeface: string;
|
|
241
|
+
privacyClauseTypeface: string;
|
|
242
|
+
};
|
|
243
|
+
customViews?: {
|
|
244
|
+
x: number;
|
|
245
|
+
y: number;
|
|
246
|
+
maxWidth: number;
|
|
247
|
+
maxHeight: number;
|
|
248
|
+
imageResourceName: string;
|
|
249
|
+
margin?:
|
|
250
|
+
| {
|
|
251
|
+
left: number;
|
|
252
|
+
top: number;
|
|
253
|
+
right: number;
|
|
254
|
+
bottom: number;
|
|
255
|
+
}
|
|
256
|
+
| undefined;
|
|
257
|
+
}[];
|
|
253
258
|
};
|
|
254
259
|
|
|
255
260
|
export type IOSOneLoginUIConfig = {
|
|
256
|
-
|
|
261
|
+
/**
|
|
257
262
|
状态栏样式。 默认 `UIStatusBarStyleDefault`。
|
|
258
263
|
*/
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
264
|
+
statusBarStyle?:
|
|
265
|
+
| "UIStatusBarStyle.darkContent"
|
|
266
|
+
| "UIStatusBarStyle.lightContent"
|
|
267
|
+
| "UIStatusBarStyle.default"; // UIStatusBarStyle
|
|
263
268
|
|
|
264
|
-
|
|
269
|
+
// Navigation/导航
|
|
265
270
|
|
|
266
|
-
|
|
271
|
+
/**
|
|
267
272
|
导航栏标题距离屏幕左右两边的间距。默认为36,隐私条款导航栏保持一致。
|
|
268
273
|
*/
|
|
269
|
-
|
|
270
|
-
|
|
274
|
+
navTextMargin?: number;
|
|
275
|
+
/**
|
|
271
276
|
授权页导航的标题。默认为空字符串。
|
|
272
277
|
*/
|
|
273
|
-
|
|
278
|
+
naviTitle?: RNOLAuthViewModelNSAttributedString;
|
|
274
279
|
|
|
275
|
-
|
|
280
|
+
/**
|
|
276
281
|
授权页导航的背景颜色。默认白色。
|
|
277
282
|
*/
|
|
278
|
-
|
|
283
|
+
naviBgColor?: ColorValue;
|
|
279
284
|
|
|
280
|
-
|
|
285
|
+
/**
|
|
281
286
|
授权页导航左边的返回按钮的图片。默认黑色系统样式返回图片。
|
|
282
287
|
*/
|
|
283
|
-
|
|
284
|
-
|
|
288
|
+
naviBackImage?: RNUImage;
|
|
289
|
+
/**
|
|
285
290
|
导航栏隐藏。默认不隐藏。
|
|
286
291
|
*/
|
|
287
|
-
|
|
292
|
+
naviHidden?: boolean;
|
|
288
293
|
|
|
289
|
-
|
|
294
|
+
/**
|
|
290
295
|
返回按钮位置及大小,返回按钮最大size为CGSizeMake(40, 40)。
|
|
291
296
|
*/
|
|
292
|
-
|
|
297
|
+
backButtonRect?: RNOLAuthViewModelOLRect;
|
|
293
298
|
|
|
294
|
-
|
|
299
|
+
/**
|
|
295
300
|
返回按钮隐藏。默认不隐藏。
|
|
296
301
|
*/
|
|
297
|
-
|
|
302
|
+
backButtonHidden?: boolean;
|
|
298
303
|
|
|
299
|
-
|
|
304
|
+
/**
|
|
300
305
|
授权页面上展示的图标。默认为 "OneLogin" 图标。
|
|
301
306
|
*/
|
|
302
|
-
|
|
307
|
+
appLogo?: RNUImage;
|
|
303
308
|
|
|
304
|
-
|
|
309
|
+
/**
|
|
305
310
|
Logo 位置及大小。
|
|
306
311
|
*/
|
|
307
|
-
|
|
312
|
+
logoRect?: RNOLAuthViewModelOLRect;
|
|
308
313
|
|
|
309
|
-
|
|
314
|
+
/**
|
|
310
315
|
Logo 图片隐藏。默认不隐藏。
|
|
311
316
|
*/
|
|
312
|
-
|
|
317
|
+
logoHidden?: boolean;
|
|
313
318
|
|
|
314
|
-
|
|
319
|
+
/**
|
|
315
320
|
logo圆角,默认为0。
|
|
316
321
|
*/
|
|
317
|
-
|
|
322
|
+
logoCornerRadius?: number;
|
|
318
323
|
|
|
319
|
-
|
|
324
|
+
// Phone Number Preview/手机号预览
|
|
320
325
|
|
|
321
|
-
|
|
326
|
+
/**
|
|
322
327
|
号码预览文字的颜色。默认黑色。
|
|
323
328
|
*/
|
|
324
|
-
|
|
329
|
+
phoneNumColor?: ColorValue;
|
|
325
330
|
|
|
326
|
-
|
|
331
|
+
/**
|
|
327
332
|
号码预览文字的字体。默认粗体,24pt。
|
|
328
333
|
*/
|
|
329
|
-
|
|
334
|
+
phoneNumFont?: RNOLAuthViewModelUIFont;
|
|
330
335
|
|
|
331
|
-
|
|
336
|
+
/**
|
|
332
337
|
号码预览 位置及大小
|
|
333
338
|
*/
|
|
334
|
-
|
|
339
|
+
phoneNumRect?: RNOLAuthViewModelOLRect;
|
|
335
340
|
|
|
336
|
-
|
|
341
|
+
/**
|
|
337
342
|
号码富文本,默认为空。
|
|
338
343
|
*/
|
|
339
|
-
|
|
344
|
+
attrPhone?: RNOLAuthViewModelNSAttributedString;
|
|
340
345
|
|
|
341
|
-
|
|
346
|
+
// Switch Button/切换按钮
|
|
342
347
|
|
|
343
|
-
|
|
348
|
+
/**
|
|
344
349
|
授权页切换账号按钮的文案。默认为“切换账号”。
|
|
345
350
|
*/
|
|
346
|
-
|
|
351
|
+
switchButtonText?: String;
|
|
347
352
|
|
|
348
|
-
|
|
353
|
+
/**
|
|
349
354
|
授权页切换账号按钮的颜色。默认蓝色。
|
|
350
355
|
*/
|
|
351
|
-
|
|
356
|
+
switchButtonColor?: ColorValue;
|
|
352
357
|
|
|
353
|
-
|
|
358
|
+
/**
|
|
354
359
|
授权页切换账号按钮背景颜色。默认为 nil。
|
|
355
360
|
*/
|
|
356
|
-
|
|
361
|
+
switchButtonBackgroundColor?: ColorValue;
|
|
357
362
|
|
|
358
|
-
|
|
363
|
+
/**
|
|
359
364
|
授权页切换账号的字体。默认字体,15pt。
|
|
360
365
|
*/
|
|
361
|
-
|
|
366
|
+
switchButtonFont?: RNOLAuthViewModelUIFont;
|
|
362
367
|
|
|
363
|
-
|
|
368
|
+
/**
|
|
364
369
|
授权页切换账号按钮 位置及大小。
|
|
365
370
|
*/
|
|
366
|
-
|
|
371
|
+
switchButtonRect?: RNOLAuthViewModelOLRect;
|
|
367
372
|
|
|
368
|
-
|
|
373
|
+
/**
|
|
369
374
|
隐藏切换账号按钮。默认不隐藏。
|
|
370
375
|
*/
|
|
371
|
-
|
|
376
|
+
switchButtonHidden?: boolean;
|
|
372
377
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
378
|
+
/**
|
|
379
|
+
* 点击授权页面切换账号按钮的回调
|
|
380
|
+
*/
|
|
381
|
+
clickSwitchButtonBlock?: RNFunction;
|
|
377
382
|
|
|
378
|
-
|
|
383
|
+
// Authorization Button/认证按钮
|
|
379
384
|
|
|
380
|
-
|
|
385
|
+
/**
|
|
381
386
|
授权页认证按钮的背景图片, @[正常状态的背景图片, 不可用状态的背景图片, 高亮状态的背景图片]。默认正常状态为蓝色纯色, 不可用状态的背景图片时为灰色, 高亮状态为灰蓝色。
|
|
382
387
|
*/
|
|
383
|
-
|
|
388
|
+
authButtonImages?: Array<RNUImage>;
|
|
384
389
|
|
|
385
|
-
|
|
390
|
+
/**
|
|
386
391
|
授权按钮文案。默认白色的"一键登录"。
|
|
387
392
|
*/
|
|
388
|
-
|
|
393
|
+
authButtonTitle?: RNOLAuthViewModelNSAttributedString;
|
|
389
394
|
|
|
390
|
-
|
|
395
|
+
/**
|
|
391
396
|
授权按钮 位置及大小。
|
|
392
397
|
*/
|
|
393
|
-
|
|
398
|
+
authButtonRect?: RNOLAuthViewModelOLRect;
|
|
394
399
|
|
|
395
|
-
|
|
400
|
+
/**
|
|
396
401
|
授权按钮圆角,默认为0。
|
|
397
402
|
*/
|
|
398
|
-
|
|
403
|
+
authButtonCornerRadius?: number;
|
|
399
404
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
405
|
+
/**
|
|
406
|
+
* 点击授权页面授权按钮的回调,用于监听授权页面登录按钮的点击
|
|
407
|
+
*/
|
|
408
|
+
clickAuthButtonBlock?: RNFunction;
|
|
404
409
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
410
|
+
/**
|
|
411
|
+
* 未勾选隐私条款时点击授权页面登录按钮的回调, 可用于自定义授权弹窗. 当返回 YES 时, 可以在 block 中添加自定义操作
|
|
412
|
+
*/
|
|
413
|
+
// @property (nullable, nonatomic, copy) OLCustomDisabledAuthActionBlock customDisabledAuthActionBlock;
|
|
409
414
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
415
|
+
/**
|
|
416
|
+
* 自定义授权页面登录按钮点击事件,用于完全接管授权页面点击事件,当返回 YES 时,可以在 block 中添加自定义操作
|
|
417
|
+
*/
|
|
418
|
+
// @property (nullable, nonatomic, copy) OLCustomAuthActionBlock customAuthActionBlock;
|
|
414
419
|
|
|
415
|
-
|
|
420
|
+
// Slogan/口号标语
|
|
416
421
|
|
|
417
|
-
|
|
422
|
+
/**
|
|
418
423
|
Slogan 文案。
|
|
419
424
|
*/
|
|
420
|
-
|
|
425
|
+
sloganText?: String;
|
|
421
426
|
|
|
422
|
-
|
|
427
|
+
/**
|
|
423
428
|
Slogan 位置及大小。
|
|
424
429
|
*/
|
|
425
|
-
|
|
430
|
+
sloganRect?: RNOLAuthViewModelOLRect;
|
|
426
431
|
|
|
427
|
-
|
|
432
|
+
/**
|
|
428
433
|
Slogan 文字颜色。默认灰色。
|
|
429
434
|
*/
|
|
430
|
-
|
|
435
|
+
sloganTextColor?: ColorValue;
|
|
431
436
|
|
|
432
|
-
|
|
437
|
+
/**
|
|
433
438
|
Slogan字体。默认字体, 12pt。
|
|
434
439
|
*/
|
|
435
|
-
|
|
440
|
+
sloganTextFont?: RNOLAuthViewModelUIFont;
|
|
436
441
|
|
|
437
|
-
|
|
442
|
+
// CheckBox & Privacy Terms/隐私条款勾选框及隐私条款
|
|
438
443
|
|
|
439
|
-
|
|
444
|
+
/**
|
|
440
445
|
授权页面上条款勾选框初始状态。默认 NO。
|
|
441
446
|
*/
|
|
442
|
-
|
|
447
|
+
defaultCheckBoxState?: boolean;
|
|
443
448
|
|
|
444
|
-
|
|
449
|
+
/**
|
|
445
450
|
授权页面上勾选框勾选的图标。默认为蓝色图标。推荐尺寸为12x12。
|
|
446
451
|
*/
|
|
447
|
-
|
|
452
|
+
checkedImage?: RNUImage;
|
|
448
453
|
|
|
449
|
-
|
|
454
|
+
/**
|
|
450
455
|
授权页面上勾选框未勾选的图标。默认为白色图标。推荐尺寸为12x12。
|
|
451
456
|
*/
|
|
452
|
-
|
|
457
|
+
uncheckedImage?: RNUImage;
|
|
453
458
|
|
|
454
|
-
|
|
459
|
+
/**
|
|
455
460
|
授权页面上条款勾选框大小及位置,请不要设置勾选框的横向偏移,整体隐私条款的横向偏移,请通过 termsRect 设置
|
|
456
461
|
*/
|
|
457
|
-
|
|
462
|
+
checkBoxRect?: RNOLAuthViewModelOLRect;
|
|
458
463
|
|
|
459
|
-
|
|
464
|
+
/**
|
|
460
465
|
隐私条款文字属性。默认基础文字灰色, 条款蓝色高亮, 12pt。
|
|
461
466
|
*/
|
|
462
|
-
|
|
467
|
+
privacyTermsAttributes?: RNNSAttributedStringKey;
|
|
463
468
|
|
|
464
|
-
|
|
469
|
+
/**
|
|
465
470
|
额外的条款。默认为空。
|
|
466
471
|
*/
|
|
467
|
-
|
|
472
|
+
additionalPrivacyTerms?: RNOLPrivacyTermItem[];
|
|
468
473
|
|
|
469
|
-
|
|
474
|
+
/**
|
|
470
475
|
服务条款普通文字的颜色。默认灰色。
|
|
471
476
|
*/
|
|
472
|
-
|
|
477
|
+
termTextColor?: ColorValue;
|
|
473
478
|
|
|
474
|
-
|
|
479
|
+
/**
|
|
475
480
|
隐私条款 位置及大小,隐私条款,宽需大于50,高需大于20,才会生效。
|
|
476
481
|
*/
|
|
477
|
-
|
|
482
|
+
termsRect?: RNOLAuthViewModelOLRect;
|
|
478
483
|
|
|
479
|
-
|
|
484
|
+
/**
|
|
480
485
|
除隐私条款外的其他文案,数组大小必须 >= 4,元素依次为:条款前的文案、条款一和条款二连接符、条款二和条款三连接符、条款三和条款四连接符、……,条款后的文案。
|
|
481
486
|
默认为@[@"登录即同意", @"和", @"、", @"并使用本机号码登录"]
|
|
482
487
|
*/
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
488
|
+
auxiliaryPrivacyWords?: Array<String>;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* 点击授权页面隐私协议前勾选框的回调
|
|
492
|
+
*/
|
|
493
|
+
// @property (nullable, nonatomic, copy) OLClickCheckboxBlock clickCheckboxBlock;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* 服务条款文案对齐方式,默认为NSTextAlignmentLeft
|
|
497
|
+
*/
|
|
498
|
+
termsAlignment?: String;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* 点击授权页面运营商隐私协议的回调
|
|
502
|
+
*/
|
|
503
|
+
// @property (nullable, nonatomic, copy) OLViewPrivacyTermItemBlock carrierTermItemBlock;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* 是否在运营商协议名称上加书名号《》
|
|
507
|
+
*/
|
|
508
|
+
hasQuotationMarkOnCarrierProtocol?: boolean;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* 未勾选勾选框时,是否禁止一键登录按钮的点击
|
|
512
|
+
*/
|
|
513
|
+
disableAuthButtonWhenUnchecked?: boolean;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* 未勾选授权页面隐私协议前勾选框时,点击授权页面登录按钮时提示 block
|
|
517
|
+
*/
|
|
518
|
+
// @property (nonatomic, copy) OLNotCheckProtocolHintBlock hintBlock;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* 未勾选授权页面隐私协议前勾选框时,点击授权页面登录按钮时勾选框与协议的抖动样式,默认不抖动
|
|
522
|
+
*/
|
|
523
|
+
shakeStyle?: String;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* 勾选框与服务条款文案之间的间距。默认为 2
|
|
527
|
+
*/
|
|
528
|
+
spaceBetweenCheckboxAndTermsText?: number;
|
|
529
|
+
|
|
530
|
+
// 授权页文案多语言配置
|
|
531
|
+
/**
|
|
532
|
+
* 多语言配置,支持中文简体,中文繁体,英文
|
|
533
|
+
*/
|
|
534
|
+
languageType?: String;
|
|
535
|
+
|
|
536
|
+
// Custom Area/自定义区域
|
|
537
|
+
|
|
538
|
+
/**
|
|
534
539
|
自定义区域视图的处理block
|
|
535
540
|
|
|
536
541
|
@discussion
|
|
@@ -538,363 +543,363 @@ export type IOSOneLoginUIConfig = {
|
|
|
538
543
|
如果导航栏没有隐藏, 顶部与导航栏底部对齐, 左边与屏幕左边对齐, 右边与屏幕右边对齐, 底部与屏幕底部对齐。
|
|
539
544
|
如果导航栏隐藏, 顶部与状态栏底部对齐, 左边与屏幕左边对齐, 右边与屏幕右边对齐, 底部与屏幕底部对齐。
|
|
540
545
|
*/
|
|
541
|
-
|
|
546
|
+
// @property (nullable, nonatomic, copy) OLCustomUIHandler customUIHandler;
|
|
542
547
|
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
548
|
+
/**
|
|
549
|
+
* 授权页面旋转时的回调,可在该回调中修改自定义视图的frame,以适应新的布局
|
|
550
|
+
*/
|
|
551
|
+
// @property (nullable, nonatomic, copy) OLAuthVCTransitionBlock authVCTransitionBlock;
|
|
547
552
|
|
|
548
|
-
|
|
553
|
+
// Background Image/授权页面背景图片
|
|
549
554
|
|
|
550
|
-
|
|
555
|
+
/**
|
|
551
556
|
授权页背景颜色。默认白色。
|
|
552
557
|
*/
|
|
553
|
-
|
|
558
|
+
backgroundColor?: ColorValue;
|
|
554
559
|
|
|
555
|
-
|
|
560
|
+
/**
|
|
556
561
|
授权页面背景图片
|
|
557
562
|
*/
|
|
558
|
-
|
|
563
|
+
backgroundImage?: RNUImage;
|
|
559
564
|
|
|
560
|
-
|
|
565
|
+
/**
|
|
561
566
|
横屏模式授权页面背景图片
|
|
562
567
|
*/
|
|
563
|
-
|
|
568
|
+
landscapeBackgroundImage?: String;
|
|
564
569
|
|
|
565
|
-
|
|
566
|
-
|
|
570
|
+
// Background Gif/授权页面背景 gif
|
|
571
|
+
/**
|
|
567
572
|
授权页面背景Gif路径,与背景图片、视频,三者只有一个有效,视频优先级最高,背景图其次,gif 最后
|
|
568
573
|
*/
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
574
|
+
backgroundGifPath?: String;
|
|
575
|
+
// Background Video/授权页面背景视频
|
|
576
|
+
/**
|
|
572
577
|
授权页面背景视频路径,可支持本地和网络视频,与背景图片、gif,三者只有一个有效,视频优先级最高,背景图其次,gif 最后
|
|
573
578
|
*/
|
|
574
|
-
|
|
579
|
+
backgroundVideoPath?: String;
|
|
575
580
|
|
|
576
|
-
|
|
581
|
+
// Autolayout
|
|
577
582
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
583
|
+
/**
|
|
584
|
+
* 授权页面视图控件自动布局回调
|
|
585
|
+
*/
|
|
586
|
+
// @property (nullable, nonatomic, copy) OLAuthVCAutoLayoutBlock autolayoutBlock;
|
|
582
587
|
|
|
583
|
-
|
|
588
|
+
// orientation
|
|
584
589
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
590
|
+
/**
|
|
591
|
+
* 授权页面支持的横竖屏方向
|
|
592
|
+
*/
|
|
593
|
+
supportedInterfaceOrientations?: String;
|
|
589
594
|
|
|
590
|
-
|
|
595
|
+
// Popup
|
|
591
596
|
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
597
|
+
/**
|
|
598
|
+
* 是否为弹窗模式
|
|
599
|
+
*/
|
|
600
|
+
isPopup?: boolean;
|
|
596
601
|
|
|
597
|
-
|
|
602
|
+
/**
|
|
598
603
|
弹窗 位置及大小。弹窗模式时,x轴偏移只支持portraitLeftXOffset和landscapeLeftXOffset。
|
|
599
604
|
*/
|
|
600
|
-
|
|
605
|
+
popupRect?: RNOLAuthViewModelOLRect;
|
|
601
606
|
|
|
602
|
-
|
|
607
|
+
/**
|
|
603
608
|
弹窗圆角,默认为6。
|
|
604
609
|
*/
|
|
605
|
-
|
|
610
|
+
popupCornerRadius?: number;
|
|
606
611
|
|
|
607
|
-
|
|
612
|
+
/**
|
|
608
613
|
当只需要设置弹窗的部分圆角时,通过popupCornerRadius设置圆角大小,通过popupRectCorners设置需要设置圆角的位置。
|
|
609
614
|
popupRectCorners数组元素不超过四个,超过四个时,只取前四个。比如,要设置左上和右上为圆角,则传值:@[@(UIRectCornerTopLeft), @(UIRectCornerTopRight)]
|
|
610
615
|
*/
|
|
611
|
-
|
|
616
|
+
popupRectCorners?: number[];
|
|
612
617
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
618
|
+
/**
|
|
619
|
+
* 弹窗动画类型,当popupAnimationStyle为OLAuthPopupAnimationStyleStyleCustom时,动画为用户自定义,用户需要传一个CATransition对象来设置动画
|
|
620
|
+
*/
|
|
621
|
+
popupAnimationStyle?: String;
|
|
617
622
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
623
|
+
/**
|
|
624
|
+
* 弹窗自定义动画
|
|
625
|
+
*/
|
|
626
|
+
popupTransitionAnimation?: String;
|
|
622
627
|
|
|
623
|
-
|
|
628
|
+
/**
|
|
624
629
|
弹窗关闭按钮图片,弹窗关闭按钮的尺寸跟图片尺寸保持一致。
|
|
625
630
|
弹窗关闭按钮位于弹窗右上角,目前只支持设置其距顶部偏移和距右边偏移。
|
|
626
631
|
*/
|
|
627
|
-
|
|
632
|
+
closePopupImage?: String;
|
|
628
633
|
|
|
629
|
-
|
|
634
|
+
/**
|
|
630
635
|
弹窗关闭按钮距弹窗顶部偏移。
|
|
631
636
|
*/
|
|
632
|
-
|
|
637
|
+
closePopupTopOffset?: number;
|
|
633
638
|
|
|
634
|
-
|
|
639
|
+
/**
|
|
635
640
|
弹窗关闭按钮距弹窗右边偏移。
|
|
636
641
|
*/
|
|
637
|
-
|
|
642
|
+
closePopupRightOffset?: number;
|
|
638
643
|
|
|
639
|
-
|
|
644
|
+
/**
|
|
640
645
|
是否需要通过点击弹窗的背景区域以关闭授权页面。
|
|
641
646
|
*/
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
647
|
+
canClosePopupFromTapGesture?: boolean;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* 点击授权页面弹窗背景的回调
|
|
651
|
+
*/
|
|
652
|
+
// @property (nonatomic, copy, nullable) OLTapAuthBackgroundBlock tapAuthBackgroundBlock;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* 弹窗蒙板视图
|
|
656
|
+
*/
|
|
657
|
+
// popupMaskView: UIView;
|
|
658
|
+
|
|
659
|
+
// Auth Dialog/授权弹窗
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* 未勾选同意协议时是否弹出授权弹窗
|
|
663
|
+
*/
|
|
664
|
+
willAuthDialogDisplay?: boolean;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* 点击授权弹窗外是否关闭授权弹窗
|
|
668
|
+
*/
|
|
669
|
+
canCloseAuthDialogFromTapGesture?: boolean;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* 授权弹窗宽、高、起始点位置
|
|
673
|
+
*/
|
|
674
|
+
authDialogRect?: RNOLAuthViewModelOLRect;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* 授权弹窗是否显示在屏幕下方
|
|
678
|
+
*/
|
|
679
|
+
isAuthDialogBottom?: boolean;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* 授权弹窗背景颜色
|
|
683
|
+
*/
|
|
684
|
+
authDialogBgColor?: ColorValue;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* 授权弹窗标题文字
|
|
688
|
+
*/
|
|
689
|
+
authDialogTitleText?: String;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* 授权弹窗标题颜色
|
|
693
|
+
*/
|
|
694
|
+
authDialogTitleColor?: ColorValue;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* 授权弹窗字体样式及大小
|
|
698
|
+
*/
|
|
699
|
+
authDialogTitleFont?: RNOLAuthViewModelUIFont;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* 授权弹窗富文本字体样式及大小
|
|
703
|
+
*/
|
|
704
|
+
authDialogContentFont?: RNOLAuthViewModelUIFont;
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* 授权弹窗不同意按钮文字
|
|
708
|
+
*/
|
|
709
|
+
authDialogDisagreeBtnText?: String;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* 授权弹窗不同意按钮样式及大小
|
|
713
|
+
*/
|
|
714
|
+
authDialogDisagreeBtnFont?: RNOLAuthViewModelUIFont;
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* 授权弹窗不同意按钮文字颜色
|
|
718
|
+
*/
|
|
719
|
+
authDialogDisagreeBtnColor?: ColorValue;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* 授权弹窗不同意按钮的背景图片, @[正常状态的背景图片, 高亮状态的背景图片]。默认正常状态为灰色, 高亮状态为深灰色。
|
|
723
|
+
*/
|
|
724
|
+
authDialogDisagreeBtnImages?: Array<String>;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* 授权弹窗同意按钮文字
|
|
728
|
+
*/
|
|
729
|
+
authDialogAgreeBtnText?: String;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* 授权弹窗同意按钮样式及大小
|
|
733
|
+
*/
|
|
734
|
+
authDialogAgreeBtnFont?: RNOLAuthViewModelUIFont;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* 授权弹窗同意按钮文字颜色
|
|
738
|
+
*/
|
|
739
|
+
authDialogAgreeBtnColor?: ColorValue;
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* 授权弹窗同意按钮的背景图片, @[正常状态的背景图片, 高亮状态的背景图片]。默认正常状态为蓝色纯色, 高亮状态为灰蓝色。
|
|
743
|
+
*/
|
|
744
|
+
authDialogAgreeBtnImages?: ColorValue;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* 授权弹窗圆角,默认为10。
|
|
748
|
+
*/
|
|
749
|
+
authDialogCornerRadius?: number;
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* 当只需要设置授权弹窗的部分圆角时,通过 authDialogCornerRadius 设置圆角大小,通过 authDialogRectCorners 设置需要设置圆角的位置。
|
|
753
|
+
* authDialogRectCorners 数组元素不超过四个,超过四个时,只取前四个。比如,要设置左上和右上为圆角,则传值:@[@(UIRectCornerTopLeft), @(UIRectCornerTopRight)]
|
|
754
|
+
*/
|
|
755
|
+
authDialogRectCorners?: Array<number>;
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* 授权弹窗动画类型,当authDialogAnimationStyle为OLAuthDialogAnimationStyleCustom时,动画为用户自定义,用户需要传一个CATransition对象来设置动画
|
|
759
|
+
*/
|
|
760
|
+
authDialogAnimationStyle?: String;
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* 授权弹窗自定义动画
|
|
764
|
+
*/
|
|
765
|
+
authDialogTransitionAnimation?: String;
|
|
766
|
+
|
|
767
|
+
/**
|
|
763
768
|
服务条款页面导航栏隐藏。默认不隐藏。
|
|
764
769
|
*/
|
|
765
|
-
|
|
770
|
+
webNaviHidden?: boolean;
|
|
766
771
|
|
|
767
|
-
|
|
772
|
+
/**
|
|
768
773
|
服务条款页面导航栏的标题,默认与协议名称保持一致,粗体、17pt。
|
|
769
774
|
设置后,自定义协议的文案、颜色、字体都与设置的值保持一致,
|
|
770
775
|
运营商协议的颜色、字体与设置的值保持一致,文案不变,与运营商协议名称保持一致。
|
|
771
776
|
*/
|
|
772
|
-
|
|
777
|
+
webNaviTitle?: RNOLAuthViewModelNSAttributedString;
|
|
773
778
|
|
|
774
|
-
|
|
779
|
+
/**
|
|
775
780
|
服务条款页面导航的背景颜色。默认白色。
|
|
776
781
|
*/
|
|
777
|
-
|
|
782
|
+
webNaviBgColor?: ColorValue;
|
|
778
783
|
|
|
779
|
-
|
|
784
|
+
// Hint
|
|
780
785
|
|
|
781
|
-
|
|
786
|
+
/**
|
|
782
787
|
未勾选服务条款复选框时,点击登录按钮的提示。默认为"请同意服务条款"。
|
|
783
788
|
*/
|
|
784
|
-
|
|
789
|
+
notCheckProtocolHint?: String;
|
|
785
790
|
|
|
786
|
-
|
|
791
|
+
// OLAuthViewLifeCycleBlock
|
|
787
792
|
|
|
788
|
-
|
|
793
|
+
/**
|
|
789
794
|
授权页面视图生命周期回调。
|
|
790
795
|
*/
|
|
791
|
-
|
|
796
|
+
// @property (nullable, nonatomic, copy) OLAuthViewLifeCycleBlock viewLifeCycleBlock;
|
|
792
797
|
|
|
793
|
-
|
|
798
|
+
// UIModalPresentationStyle
|
|
794
799
|
|
|
795
|
-
|
|
800
|
+
/**
|
|
796
801
|
present授权页面时的样式,默认为UIModalPresentationFullScreen
|
|
797
802
|
*/
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
803
|
+
modalPresentationStyle?: String;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* present授权页面时的自定义动画
|
|
807
|
+
*/
|
|
808
|
+
modalPresentationAnimation?: String;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* dismiss授权页面时的自定义动画
|
|
812
|
+
*/
|
|
813
|
+
modalDismissAnimation?: String;
|
|
814
|
+
|
|
815
|
+
// OLPullAuthVCStyle
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* @abstract 进入授权页面的方式,默认为 modal 方式,即 present 到授权页面,从授权页面进入服务条款页面的方式与此保持一致
|
|
819
|
+
*/
|
|
820
|
+
pullAuthVCStyle?: String;
|
|
821
|
+
|
|
822
|
+
// UIUserInterfaceStyle
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* @abstract 授权页面 UIUserInterfaceStyle,iOS 12 及以上系统,默认为 UIUserInterfaceStyleLight
|
|
826
|
+
*
|
|
827
|
+
* UIUserInterfaceStyle
|
|
828
|
+
* UIUserInterfaceStyleUnspecified - 不指定样式,跟随系统设置进行展示
|
|
829
|
+
* UIUserInterfaceStyleLight - 明亮
|
|
830
|
+
* UIUserInterfaceStyleDark - 暗黑 仅对 iOS 13+ 系统有效
|
|
831
|
+
*/
|
|
832
|
+
userInterfaceStyle?: String;
|
|
833
|
+
|
|
834
|
+
backgroundImageView?: RNUIImageView;
|
|
835
|
+
floatGoBackImageViewButton?: RNUIImageView;
|
|
836
|
+
customViews?: RNUIImageView[];
|
|
832
837
|
};
|
|
833
838
|
|
|
834
839
|
export type RNUIImageView = {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
840
|
+
frame: { x: number; y: number; width: number; height: number };
|
|
841
|
+
uiImage: RNUImage;
|
|
842
|
+
callbackId?: number;
|
|
843
|
+
onClick?: () => void;
|
|
839
844
|
};
|
|
840
845
|
|
|
841
846
|
export type RNFunction = {
|
|
842
|
-
|
|
843
|
-
|
|
847
|
+
callbackId?: number;
|
|
848
|
+
onClick?: () => void;
|
|
844
849
|
};
|
|
845
850
|
|
|
846
851
|
export type RNOLAuthViewModelNSAttributedString = {
|
|
847
|
-
|
|
848
|
-
|
|
852
|
+
backgroundColor: String;
|
|
853
|
+
string: String;
|
|
849
854
|
};
|
|
850
855
|
|
|
851
856
|
export type RNUImage = {
|
|
852
|
-
|
|
857
|
+
named?: String;
|
|
853
858
|
};
|
|
854
859
|
|
|
855
860
|
export type RNOLAuthViewModelUIFontDescriptor = {
|
|
856
|
-
|
|
857
|
-
|
|
861
|
+
textStyle: String;
|
|
862
|
+
size: number;
|
|
858
863
|
};
|
|
859
864
|
|
|
860
865
|
export type RNOLAuthViewModelUIFont = {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
866
|
+
name: string;
|
|
867
|
+
size: number;
|
|
868
|
+
fontAttributes?: RNOLAuthViewModelUIFontDescriptor;
|
|
864
869
|
};
|
|
865
870
|
|
|
866
871
|
export type RNOLPrivacyTermItem = {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
+
title: string;
|
|
873
|
+
/**
|
|
874
|
+
* 带协议的URL
|
|
875
|
+
*/
|
|
876
|
+
linkURL: string;
|
|
872
877
|
};
|
|
873
878
|
export type RNNSAttributedStringKey = {
|
|
874
|
-
|
|
875
|
-
|
|
879
|
+
foregroundColor: ColorValue;
|
|
880
|
+
backgroundColor: ColorValue;
|
|
876
881
|
};
|
|
877
882
|
|
|
878
883
|
export type CGSize = { width: number; height: number };
|
|
879
884
|
|
|
880
885
|
export type RNOLAuthViewModelOLRect = {
|
|
881
|
-
|
|
886
|
+
/**
|
|
882
887
|
竖屏时
|
|
883
888
|
导航栏隐藏时,为控件顶部到状态栏的距离;导航栏显示时,为控件顶部到导航栏底部的距离
|
|
884
889
|
弹窗时
|
|
885
890
|
为控件顶部到弹窗顶部的距离
|
|
886
891
|
*/
|
|
887
|
-
|
|
892
|
+
portraitTopYOffset: number;
|
|
888
893
|
|
|
889
|
-
|
|
894
|
+
/**
|
|
890
895
|
竖屏时
|
|
891
896
|
控件的x轴中点到屏幕x轴中点的距离,默认为0
|
|
892
897
|
弹窗时
|
|
893
898
|
控件的x轴中点到弹窗x轴中点的距离,默认为0
|
|
894
899
|
*/
|
|
895
|
-
|
|
900
|
+
portraitCenterXOffset: number;
|
|
896
901
|
|
|
897
|
-
|
|
902
|
+
/**
|
|
898
903
|
竖屏时
|
|
899
904
|
控件的左边缘到屏幕左边缘的距离,默认为0
|
|
900
905
|
弹窗时
|
|
@@ -903,25 +908,25 @@ export type RNOLAuthViewModelOLRect = {
|
|
|
903
908
|
portraitLeftXOffset与portraitCenterXOffset设置一个即可,portraitLeftXOffset优先级大于portraitCenterXOffset,
|
|
904
909
|
设置此属性时,portraitCenterXOffset属性失效
|
|
905
910
|
*/
|
|
906
|
-
|
|
911
|
+
portraitLeftXOffset: number;
|
|
907
912
|
|
|
908
|
-
|
|
913
|
+
/**
|
|
909
914
|
横屏时
|
|
910
915
|
导航栏隐藏时,为控件顶部到屏幕顶部的距离;导航栏显示时,为控件顶部到导航栏底部的距离
|
|
911
916
|
弹窗时
|
|
912
917
|
为控件顶部到弹窗顶部的距离
|
|
913
918
|
*/
|
|
914
|
-
|
|
919
|
+
landscapeTopYOffset: number;
|
|
915
920
|
|
|
916
|
-
|
|
921
|
+
/**
|
|
917
922
|
横屏时
|
|
918
923
|
控件的x轴中点到屏幕x轴中点的距离,默认为0
|
|
919
924
|
弹窗时
|
|
920
925
|
控件的x轴中点到弹窗x轴中点的距离,默认为0
|
|
921
926
|
*/
|
|
922
|
-
|
|
927
|
+
landscapeCenterXOffset: number;
|
|
923
928
|
|
|
924
|
-
|
|
929
|
+
/**
|
|
925
930
|
横屏时
|
|
926
931
|
控件的左边缘到屏幕左边缘的距离,默认为0
|
|
927
932
|
弹窗时
|
|
@@ -930,10 +935,10 @@ export type RNOLAuthViewModelOLRect = {
|
|
|
930
935
|
landscapeLeftXOffset与landscapeCenterXOffset设置一个即可,landscapeLeftXOffset优先级大于landscapeCenterXOffset,
|
|
931
936
|
设置此属性时,landscapeCenterXOffset属性失效
|
|
932
937
|
*/
|
|
933
|
-
|
|
938
|
+
landscapeLeftXOffset: number;
|
|
934
939
|
|
|
935
|
-
|
|
940
|
+
/**
|
|
936
941
|
控件大小,只有宽度、高度同时大于0,设置的size才会生效,否则为控件默认的size
|
|
937
942
|
*/
|
|
938
|
-
|
|
943
|
+
size: CGSize;
|
|
939
944
|
};
|