@rsmax/ali 1.3.14 → 2.0.0-canary.91

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/cjs/api.d.ts DELETED
@@ -1,4395 +0,0 @@
1
- /// <reference types="@mini-types/my" />
2
- /// <reference types="@mini-types/my" />
3
- /**
4
- * 基础 API
5
- */
6
- export declare const canIUse: typeof my.canIUse;
7
- export declare const env: {
8
- USER_DATA_PATH: string;
9
- clientName: string;
10
- clientVersion: string;
11
- language: string;
12
- platform: string;
13
- };
14
- export declare const isIDE: boolean;
15
- export declare const getLaunchOptionsSync: typeof my.getLaunchOptionsSync;
16
- export declare const getEnterOptionsSync: typeof my.getEnterOptionsSync;
17
- export declare const SDKVersion: string;
18
- export declare const getAccountInfoSync: typeof my.getAccountInfoSync;
19
- export declare const getAppIdSync: typeof my.getAppIdSync;
20
- export declare const getRunScene: (arg?: ({
21
- success?(data: {
22
- envVersion: "release" | "develop" | "trial" | "gray";
23
- }): void;
24
- fail?(err: {
25
- error?: number | undefined;
26
- errorMessage?: string | undefined;
27
- }): void;
28
- complete?(arg: {
29
- envVersion: "release" | "develop" | "trial" | "gray";
30
- } | {
31
- error?: number | undefined;
32
- errorMessage?: string | undefined;
33
- }): void;
34
- } & import("@rsmax/framework-shared").PromisifyArgs<{
35
- envVersion: "release" | "develop" | "trial" | "gray";
36
- }, {
37
- error?: number | undefined;
38
- errorMessage?: string | undefined;
39
- }>) | undefined) => Promise<{
40
- envVersion: "release" | "develop" | "trial" | "gray";
41
- }>;
42
- export declare const base64ToArrayBuffer: typeof my.base64ToArrayBuffer;
43
- export declare const arrayBufferToBase64: typeof my.arrayBufferToBase64;
44
- export declare const getPerformance: any;
45
- export declare const setEnableDebug: (arg?: any) => Promise<any>;
46
- export declare const onAppShow: typeof my.onAppShow;
47
- export declare const offAppShow: typeof my.offAppShow;
48
- export declare const onAppHide: typeof my.onAppHide;
49
- export declare const offAppHide: typeof my.offAppHide;
50
- export declare const onPageNotFound: typeof my.onPageNotFound;
51
- export declare const offPageNotFound: typeof my.offPageNotFound;
52
- export declare const onUnhandledRejection: typeof my.onUnhandledRejection;
53
- export declare const offUnhandledRejection: typeof my.offUnhandledRejection;
54
- export declare const onError: typeof my.onError;
55
- export declare const offError: typeof my.offError;
56
- export declare const onComponentError: typeof my.onComponentError;
57
- export declare const offComponentError: typeof my.offComponentError;
58
- export declare const onLazyLoadError: any;
59
- export declare const offLazyLoadError: any;
60
- export declare const setNavigationBar: (arg?: ({
61
- title?: string | undefined;
62
- image?: string | undefined;
63
- backgroundColor?: string | undefined;
64
- borderBottomColor?: string | undefined;
65
- reset?: boolean | undefined;
66
- frontColor?: string | undefined;
67
- success?(data: {}): void;
68
- fail?(err: {
69
- error?: number | undefined;
70
- errorMessage?: string | undefined;
71
- }): void;
72
- complete?(arg: {
73
- error?: number | undefined;
74
- errorMessage?: string | undefined;
75
- }): void;
76
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
77
- error?: number | undefined;
78
- errorMessage?: string | undefined;
79
- }>) | undefined) => Promise<{}>;
80
- export declare const setNavigationBarTitle: (arg?: ({
81
- title?: string | undefined;
82
- image?: string | undefined;
83
- success?(data: {}): void;
84
- fail?(err: {
85
- error?: number | undefined;
86
- errorMessage?: string | undefined;
87
- }): void;
88
- complete?(arg: {
89
- error?: number | undefined;
90
- errorMessage?: string | undefined;
91
- }): void;
92
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
93
- error?: number | undefined;
94
- errorMessage?: string | undefined;
95
- }>) | undefined) => Promise<{}>;
96
- export declare const setNavigationBarColor: (arg?: ({
97
- backgroundColor?: string | undefined;
98
- frontColor?: string | undefined;
99
- success?(data: {}): void;
100
- fail?(err: {
101
- error?: number | undefined;
102
- errorMessage?: string | undefined;
103
- }): void;
104
- complete?(arg: {
105
- error?: number | undefined;
106
- errorMessage?: string | undefined;
107
- }): void;
108
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
109
- error?: number | undefined;
110
- errorMessage?: string | undefined;
111
- }>) | undefined) => Promise<{}>;
112
- export declare const setNavigationBarBottomLineColor: (arg?: ({
113
- borderBottomColor?: string | undefined;
114
- success?(data: {}): void;
115
- fail?(err: {
116
- error?: number | undefined;
117
- errorMessage?: string | undefined;
118
- }): void;
119
- complete?(arg: {
120
- error?: number | undefined;
121
- errorMessage?: string | undefined;
122
- }): void;
123
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
124
- error?: number | undefined;
125
- errorMessage?: string | undefined;
126
- }>) | undefined) => Promise<{}>;
127
- export declare const hideBackHome: (arg?: ({
128
- success?(data: {}): void;
129
- fail?(err: {
130
- error?: number | undefined;
131
- errorMessage?: string | undefined;
132
- }): void;
133
- complete?(arg: {
134
- error?: number | undefined;
135
- errorMessage?: string | undefined;
136
- }): void;
137
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
138
- error?: number | undefined;
139
- errorMessage?: string | undefined;
140
- }>) | undefined) => Promise<{}>;
141
- export declare const getTitleColor: (arg?: ({
142
- success?(data: {
143
- color: string;
144
- }): void;
145
- fail?(err: {
146
- error?: number | undefined;
147
- errorMessage?: string | undefined;
148
- }): void;
149
- complete?(arg: {
150
- color: string;
151
- } | {
152
- error?: number | undefined;
153
- errorMessage?: string | undefined;
154
- }): void;
155
- } & import("@rsmax/framework-shared").PromisifyArgs<{
156
- color: string;
157
- }, {
158
- error?: number | undefined;
159
- errorMessage?: string | undefined;
160
- }>) | undefined) => Promise<{
161
- color: string;
162
- }>;
163
- export declare const getMenuButtonBoundingClientRect: typeof my.getMenuButtonBoundingClientRect;
164
- export declare const getLeftButtonsBoundingClientRect: typeof my.getLeftButtonsBoundingClientRect;
165
- export declare const showNavigationBarLoading: (arg?: ({
166
- success?(data: {}): void;
167
- fail?(err: {
168
- error?: number | undefined;
169
- errorMessage?: string | undefined;
170
- }): void;
171
- complete?(arg: {
172
- error?: number | undefined;
173
- errorMessage?: string | undefined;
174
- }): void;
175
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
176
- error?: number | undefined;
177
- errorMessage?: string | undefined;
178
- }>) | undefined) => Promise<{}>;
179
- export declare const hideNavigationBarLoading: (arg?: ({
180
- success?(data: {}): void;
181
- fail?(err: {
182
- error?: number | undefined;
183
- errorMessage?: string | undefined;
184
- }): void;
185
- complete?(arg: {
186
- error?: number | undefined;
187
- errorMessage?: string | undefined;
188
- }): void;
189
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
190
- error?: number | undefined;
191
- errorMessage?: string | undefined;
192
- }>) | undefined) => Promise<{}>;
193
- export declare const showTabBar: (arg?: ({
194
- animation?: boolean | undefined;
195
- success?(data: {}): void;
196
- fail?(err: {
197
- error?: number | undefined;
198
- errorMessage?: string | undefined;
199
- }): void;
200
- complete?(arg: {
201
- error?: number | undefined;
202
- errorMessage?: string | undefined;
203
- }): void;
204
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
205
- error?: number | undefined;
206
- errorMessage?: string | undefined;
207
- }>) | undefined) => Promise<{}>;
208
- export declare const hideTabBar: (arg?: ({
209
- animation?: boolean | undefined;
210
- success?(data: {}): void;
211
- fail?(err: {
212
- error?: number | undefined;
213
- errorMessage?: string | undefined;
214
- }): void;
215
- complete?(arg: {
216
- error?: number | undefined;
217
- errorMessage?: string | undefined;
218
- }): void;
219
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
220
- error?: number | undefined;
221
- errorMessage?: string | undefined;
222
- }>) | undefined) => Promise<{}>;
223
- export declare const setTabBarBadge: (arg?: ({
224
- index: number;
225
- text: string;
226
- success?(data: {}): void;
227
- fail?(err: {
228
- error?: number | undefined;
229
- errorMessage?: string | undefined;
230
- }): void;
231
- complete?(arg: {
232
- error?: number | undefined;
233
- errorMessage?: string | undefined;
234
- }): void;
235
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
236
- error?: number | undefined;
237
- errorMessage?: string | undefined;
238
- }>) | undefined) => Promise<{}>;
239
- export declare const setTabBarItem: (arg?: ({
240
- index: number;
241
- text: string;
242
- iconPath?: string | undefined;
243
- selectedIconPath?: string | undefined;
244
- success?(data: {}): void;
245
- fail?(err: {
246
- error?: number | undefined;
247
- errorMessage?: string | undefined;
248
- }): void;
249
- complete?(arg: {
250
- error?: number | undefined;
251
- errorMessage?: string | undefined;
252
- }): void;
253
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
254
- error?: number | undefined;
255
- errorMessage?: string | undefined;
256
- }>) | undefined) => Promise<{}>;
257
- export declare const setTabBarStyle: (arg?: ({
258
- color: string;
259
- selectedColor: string;
260
- backgroundColor: string;
261
- borderStyle: string;
262
- success?(data: {}): void;
263
- fail?(err: {
264
- error?: number | undefined;
265
- errorMessage?: string | undefined;
266
- }): void;
267
- complete?(arg: {
268
- error?: number | undefined;
269
- errorMessage?: string | undefined;
270
- }): void;
271
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
272
- error?: number | undefined;
273
- errorMessage?: string | undefined;
274
- }>) | undefined) => Promise<{}>;
275
- export declare const removeTabBarBadge: (arg?: ({
276
- index: number;
277
- success?(data: {}): void;
278
- fail?(err: {
279
- error?: number | undefined;
280
- errorMessage?: string | undefined;
281
- }): void;
282
- complete?(arg: {
283
- error?: number | undefined;
284
- errorMessage?: string | undefined;
285
- }): void;
286
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
287
- error?: number | undefined;
288
- errorMessage?: string | undefined;
289
- }>) | undefined) => Promise<{}>;
290
- export declare const showTabBarRedDot: (arg?: ({
291
- index: number;
292
- success?(data: {}): void;
293
- fail?(err: {
294
- error?: number | undefined;
295
- errorMessage?: string | undefined;
296
- }): void;
297
- complete?(arg: {
298
- error?: number | undefined;
299
- errorMessage?: string | undefined;
300
- }): void;
301
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
302
- error?: number | undefined;
303
- errorMessage?: string | undefined;
304
- }>) | undefined) => Promise<{}>;
305
- export declare const hideTabBarRedDot: typeof my.hideTabBarRedDot;
306
- export declare const switchTab: (arg?: ({
307
- url: string;
308
- resolvedPath?: string | undefined;
309
- success?(data: {}): void;
310
- fail?(err: {
311
- error?: number | undefined;
312
- errorMessage?: string | undefined;
313
- }): void;
314
- complete?(arg: {
315
- error?: number | undefined;
316
- errorMessage?: string | undefined;
317
- }): void;
318
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
319
- error?: number | undefined;
320
- errorMessage?: string | undefined;
321
- }>) | undefined) => Promise<{}>;
322
- export declare const navigateTo: (arg?: ({
323
- url: string;
324
- events?: my.IMyNavigateToEvents | undefined;
325
- resolvedPath?: string | undefined;
326
- success?(data: {
327
- eventChannel: my.EventChannel;
328
- }): void;
329
- fail?(err: {
330
- error?: number | undefined;
331
- errorMessage?: string | undefined;
332
- }): void;
333
- complete?(arg: {
334
- eventChannel: my.EventChannel;
335
- } | {
336
- error?: number | undefined;
337
- errorMessage?: string | undefined;
338
- }): void;
339
- } & import("@rsmax/framework-shared").PromisifyArgs<{
340
- eventChannel: my.EventChannel;
341
- }, {
342
- error?: number | undefined;
343
- errorMessage?: string | undefined;
344
- }>) | undefined) => Promise<{
345
- eventChannel: my.EventChannel;
346
- }>;
347
- export declare const navigateBack: (arg?: ({
348
- delta?: string | number | undefined;
349
- success?(data: {}): void;
350
- fail?(err: {
351
- error?: number | undefined;
352
- errorMessage?: string | undefined;
353
- }): void;
354
- complete?(arg: {
355
- error?: number | undefined;
356
- errorMessage?: string | undefined;
357
- }): void;
358
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
359
- error?: number | undefined;
360
- errorMessage?: string | undefined;
361
- }>) | undefined) => Promise<{}>;
362
- export declare const redirectTo: (arg?: ({
363
- url: string;
364
- resolvedPath?: string | undefined;
365
- success?(data: {}): void;
366
- fail?(err: {
367
- error?: number | undefined;
368
- errorMessage?: string | undefined;
369
- }): void;
370
- complete?(arg: {
371
- error?: number | undefined;
372
- errorMessage?: string | undefined;
373
- }): void;
374
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
375
- error?: number | undefined;
376
- errorMessage?: string | undefined;
377
- }>) | undefined) => Promise<{}>;
378
- export declare const reLaunch: (arg?: ({
379
- url: string;
380
- resolvedPath?: string | undefined;
381
- success?(data: {}): void;
382
- fail?(err: {
383
- error?: number | undefined;
384
- errorMessage?: string | undefined;
385
- }): void;
386
- complete?(arg: {
387
- error?: number | undefined;
388
- errorMessage?: string | undefined;
389
- }): void;
390
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
391
- error?: number | undefined;
392
- errorMessage?: string | undefined;
393
- }>) | undefined) => Promise<{}>;
394
- export declare const showLoading: (arg?: ({
395
- content?: string | undefined;
396
- delay?: number | undefined;
397
- success?(data: {}): void;
398
- fail?(err: {
399
- error?: number | undefined;
400
- errorMessage?: string | undefined;
401
- }): void;
402
- complete?(arg: {
403
- error?: number | undefined;
404
- errorMessage?: string | undefined;
405
- }): void;
406
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
407
- error?: number | undefined;
408
- errorMessage?: string | undefined;
409
- }>) | undefined) => Promise<{}>;
410
- export declare const hideLoading: (arg?: ({
411
- page?: unknown;
412
- success?(data: {}): void;
413
- fail?(err: {
414
- error?: number | undefined;
415
- errorMessage?: string | undefined;
416
- }): void;
417
- complete?(arg: {
418
- error?: number | undefined;
419
- errorMessage?: string | undefined;
420
- }): void;
421
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
422
- error?: number | undefined;
423
- errorMessage?: string | undefined;
424
- }>) | undefined) => Promise<{}>;
425
- export declare const showModal: (arg?: ({
426
- title?: string | undefined;
427
- content?: string | undefined;
428
- showCancel?: boolean | undefined;
429
- cancelText?: string | undefined;
430
- cancelColor?: string | undefined;
431
- confirmText?: string | undefined;
432
- confirmColor?: string | undefined;
433
- editable?: boolean | undefined;
434
- placeholderText?: string | undefined;
435
- success?(data: {
436
- confirm: boolean;
437
- content?: string | undefined;
438
- }): void;
439
- fail?(err: {
440
- error?: number | undefined;
441
- errorMessage?: string | undefined;
442
- }): void;
443
- complete?(arg: {
444
- confirm: boolean;
445
- content?: string | undefined;
446
- } | {
447
- error?: number | undefined;
448
- errorMessage?: string | undefined;
449
- }): void;
450
- } & import("@rsmax/framework-shared").PromisifyArgs<{
451
- confirm: boolean;
452
- content?: string | undefined;
453
- }, {
454
- error?: number | undefined;
455
- errorMessage?: string | undefined;
456
- }>) | undefined) => Promise<{
457
- confirm: boolean;
458
- content?: string | undefined;
459
- }>;
460
- export declare const alert: (arg?: ({
461
- title?: string | undefined;
462
- content?: string | undefined;
463
- buttonText?: string | undefined;
464
- confirmColor?: string | undefined;
465
- success?(data: {}): void;
466
- fail?(err: {
467
- error?: number | undefined;
468
- errorMessage?: string | undefined;
469
- }): void;
470
- complete?(arg: {
471
- error?: number | undefined;
472
- errorMessage?: string | undefined;
473
- }): void;
474
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
475
- error?: number | undefined;
476
- errorMessage?: string | undefined;
477
- }>) | undefined) => Promise<{}>;
478
- export declare const showToast: (arg?: ({
479
- content?: string | undefined;
480
- type?: "none" | "success" | "fail" | "exception" | "loading" | undefined;
481
- duration?: number | undefined;
482
- delay?: number | undefined;
483
- xOffset?: number | undefined;
484
- yOffset?: number | undefined;
485
- success?(data: {}): void;
486
- fail?(err: {
487
- error?: number | undefined;
488
- errorMessage?: string | undefined;
489
- }): void;
490
- complete?(arg: {
491
- error?: number | undefined;
492
- errorMessage?: string | undefined;
493
- }): void;
494
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
495
- error?: number | undefined;
496
- errorMessage?: string | undefined;
497
- }>) | undefined) => Promise<{}>;
498
- export declare const hideToast: (arg?: ({
499
- success?(data: {}): void;
500
- fail?(err: {
501
- error?: number | undefined;
502
- errorMessage?: string | undefined;
503
- }): void;
504
- complete?(arg: {
505
- error?: number | undefined;
506
- errorMessage?: string | undefined;
507
- }): void;
508
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
509
- error?: number | undefined;
510
- errorMessage?: string | undefined;
511
- }>) | undefined) => Promise<{}>;
512
- export declare const showActionSheet: (arg?: ({
513
- title?: string | undefined;
514
- destructiveBtnIndex?: number | undefined;
515
- badges?: my.IMyShowActionSheetBadges[] | undefined;
516
- items: string[];
517
- cancelButtonText?: string | undefined;
518
- success?(data: {
519
- index: number;
520
- success: true;
521
- }): void;
522
- fail?(err: {
523
- error?: number | undefined;
524
- errorMessage?: string | undefined;
525
- }): void;
526
- complete?(arg: {
527
- index: number;
528
- success: true;
529
- } | {
530
- error?: number | undefined;
531
- errorMessage?: string | undefined;
532
- }): void;
533
- } & import("@rsmax/framework-shared").PromisifyArgs<{
534
- index: number;
535
- success: true;
536
- }, {
537
- error?: number | undefined;
538
- errorMessage?: string | undefined;
539
- }>) | undefined) => Promise<{
540
- index: number;
541
- success: true;
542
- }>;
543
- export declare const confirm: (arg?: ({
544
- title?: string | undefined;
545
- content?: string | undefined;
546
- confirmButtonText?: string | undefined;
547
- cancelButtonText?: string | undefined;
548
- confirmColor?: string | undefined;
549
- cancelColor?: string | undefined;
550
- success?(data: {
551
- confirm: boolean;
552
- }): void;
553
- fail?(err: {
554
- error?: number | undefined;
555
- errorMessage?: string | undefined;
556
- }): void;
557
- complete?(arg: {
558
- confirm: boolean;
559
- } | {
560
- error?: number | undefined;
561
- errorMessage?: string | undefined;
562
- }): void;
563
- } & import("@rsmax/framework-shared").PromisifyArgs<{
564
- confirm: boolean;
565
- }, {
566
- error?: number | undefined;
567
- errorMessage?: string | undefined;
568
- }>) | undefined) => Promise<{
569
- confirm: boolean;
570
- }>;
571
- export declare const prompt: (arg?: ({
572
- title: string;
573
- message?: string | undefined;
574
- align?: "left" | "center" | "right" | undefined;
575
- placeholder?: string | undefined;
576
- confirmColor?: string | undefined;
577
- cancelColor?: string | undefined;
578
- okButtonText?: string | undefined;
579
- cancelButtonText?: string | undefined;
580
- success?(data: {
581
- ok: boolean;
582
- inputValue: string;
583
- }): void;
584
- fail?(err: {
585
- error?: number | undefined;
586
- errorMessage?: string | undefined;
587
- }): void;
588
- complete?(arg: {
589
- ok: boolean;
590
- inputValue: string;
591
- } | {
592
- error?: number | undefined;
593
- errorMessage?: string | undefined;
594
- }): void;
595
- } & import("@rsmax/framework-shared").PromisifyArgs<{
596
- ok: boolean;
597
- inputValue: string;
598
- }, {
599
- error?: number | undefined;
600
- errorMessage?: string | undefined;
601
- }>) | undefined) => Promise<{
602
- ok: boolean;
603
- inputValue: string;
604
- }>;
605
- export declare const enableAlertBeforeUnload: (arg?: ({
606
- message?: string | undefined;
607
- success?(data: {
608
- success: boolean;
609
- }): void;
610
- fail?(err: {
611
- error?: number | undefined;
612
- errorMessage?: string | undefined;
613
- } | {
614
- error: 7;
615
- errorMessage: "has not found page when enableAlertBeforeUnload has been invoked";
616
- } | {
617
- error: 8;
618
- errorMessage: "can not invoke enableAlertBeforeUnload at first page";
619
- } | {
620
- error: 9;
621
- errorMessage: "client not support enableAlertBeforeUnload";
622
- }): void;
623
- complete?(arg: {
624
- success: boolean;
625
- } | {
626
- error?: number | undefined;
627
- errorMessage?: string | undefined;
628
- } | {
629
- error: 7;
630
- errorMessage: "has not found page when enableAlertBeforeUnload has been invoked";
631
- } | {
632
- error: 8;
633
- errorMessage: "can not invoke enableAlertBeforeUnload at first page";
634
- } | {
635
- error: 9;
636
- errorMessage: "client not support enableAlertBeforeUnload";
637
- }): void;
638
- } & import("@rsmax/framework-shared").PromisifyArgs<{
639
- success: boolean;
640
- }, {
641
- error?: number | undefined;
642
- errorMessage?: string | undefined;
643
- } | {
644
- error: 7;
645
- errorMessage: "has not found page when enableAlertBeforeUnload has been invoked";
646
- } | {
647
- error: 8;
648
- errorMessage: "can not invoke enableAlertBeforeUnload at first page";
649
- } | {
650
- error: 9;
651
- errorMessage: "client not support enableAlertBeforeUnload";
652
- }>) | undefined) => Promise<{
653
- success: boolean;
654
- }>;
655
- export declare const disableAlertBeforeUnload: (arg?: ({
656
- success?(data: {
657
- success: boolean;
658
- }): void;
659
- fail?(err: {
660
- error?: number | undefined;
661
- errorMessage?: string | undefined;
662
- } | {
663
- error: 7;
664
- errorMessage: "has not found page when disableAlertBeforeUnload has been invoked";
665
- } | {
666
- error: 8;
667
- errorMessage: "can not invoke disableAlertBeforeUnload at first page";
668
- } | {
669
- error: 9;
670
- errorMessage: "client not support disableAlertBeforeUnload";
671
- }): void;
672
- complete?(arg: {
673
- success: boolean;
674
- } | {
675
- error?: number | undefined;
676
- errorMessage?: string | undefined;
677
- } | {
678
- error: 7;
679
- errorMessage: "has not found page when disableAlertBeforeUnload has been invoked";
680
- } | {
681
- error: 8;
682
- errorMessage: "can not invoke disableAlertBeforeUnload at first page";
683
- } | {
684
- error: 9;
685
- errorMessage: "client not support disableAlertBeforeUnload";
686
- }): void;
687
- } & import("@rsmax/framework-shared").PromisifyArgs<{
688
- success: boolean;
689
- }, {
690
- error?: number | undefined;
691
- errorMessage?: string | undefined;
692
- } | {
693
- error: 7;
694
- errorMessage: "has not found page when disableAlertBeforeUnload has been invoked";
695
- } | {
696
- error: 8;
697
- errorMessage: "can not invoke disableAlertBeforeUnload at first page";
698
- } | {
699
- error: 9;
700
- errorMessage: "client not support disableAlertBeforeUnload";
701
- }>) | undefined) => Promise<{
702
- success: boolean;
703
- }>;
704
- export declare const showAppModal: (arg?: any) => Promise<any>;
705
- export declare const startPullDownRefresh: (arg?: ({
706
- success?(data: {
707
- success: true;
708
- }): void;
709
- fail?(err: {
710
- error?: number | undefined;
711
- errorMessage?: string | undefined;
712
- }): void;
713
- complete?(arg: {
714
- success: true;
715
- } | {
716
- error?: number | undefined;
717
- errorMessage?: string | undefined;
718
- }): void;
719
- } & import("@rsmax/framework-shared").PromisifyArgs<{
720
- success: true;
721
- }, {
722
- error?: number | undefined;
723
- errorMessage?: string | undefined;
724
- }>) | undefined) => Promise<{
725
- success: true;
726
- }>;
727
- export declare const stopPullDownRefresh: (arg?: ({
728
- success?(data: {}): void;
729
- fail?(err: {
730
- error?: number | undefined;
731
- errorMessage?: string | undefined;
732
- }): void;
733
- complete?(arg: {
734
- error?: number | undefined;
735
- errorMessage?: string | undefined;
736
- }): void;
737
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
738
- error?: number | undefined;
739
- errorMessage?: string | undefined;
740
- }>) | undefined) => Promise<{}>;
741
- export declare const choosePhoneContact: (arg?: ({
742
- success?(data: {
743
- name: string;
744
- mobile: string;
745
- }): void;
746
- fail?(err: {
747
- error?: number | undefined;
748
- errorMessage?: string | undefined;
749
- }): void;
750
- complete?(arg: {
751
- name: string;
752
- mobile: string;
753
- } | {
754
- error?: number | undefined;
755
- errorMessage?: string | undefined;
756
- }): void;
757
- } & import("@rsmax/framework-shared").PromisifyArgs<{
758
- name: string;
759
- mobile: string;
760
- }, {
761
- error?: number | undefined;
762
- errorMessage?: string | undefined;
763
- }>) | undefined) => Promise<{
764
- name: string;
765
- mobile: string;
766
- }>;
767
- export declare const chooseAlipayContact: (arg?: ({
768
- count?: number | undefined;
769
- success?(data: {
770
- contacts: my.IMyChooseAlipayContactContacts[];
771
- }): void;
772
- fail?(err: {
773
- error?: number | undefined;
774
- errorMessage?: string | undefined;
775
- } | {
776
- error: 10;
777
- errorMessage: "没有权限";
778
- } | {
779
- error: 11;
780
- errorMessage: "用户取消操作(或设备未授权使用通讯录)";
781
- }): void;
782
- complete?(arg: {
783
- contacts: my.IMyChooseAlipayContactContacts[];
784
- } | {
785
- error?: number | undefined;
786
- errorMessage?: string | undefined;
787
- } | {
788
- error: 10;
789
- errorMessage: "没有权限";
790
- } | {
791
- error: 11;
792
- errorMessage: "用户取消操作(或设备未授权使用通讯录)";
793
- }): void;
794
- } & import("@rsmax/framework-shared").PromisifyArgs<{
795
- contacts: my.IMyChooseAlipayContactContacts[];
796
- }, {
797
- error?: number | undefined;
798
- errorMessage?: string | undefined;
799
- } | {
800
- error: 10;
801
- errorMessage: "没有权限";
802
- } | {
803
- error: 11;
804
- errorMessage: "用户取消操作(或设备未授权使用通讯录)";
805
- }>) | undefined) => Promise<{
806
- contacts: my.IMyChooseAlipayContactContacts[];
807
- }>;
808
- export declare const chooseContact: (arg?: ({
809
- chooseType: "single" | "multi";
810
- includeMe?: boolean | undefined;
811
- includeMobileContactMode?: "none" | "known" | "all" | undefined;
812
- multiChooseMax?: number | undefined;
813
- multiChooseMaxTips?: string | undefined;
814
- success?(data: {
815
- contactsDicArray: my.IMyChooseContactContactsDicArray[];
816
- }): void;
817
- fail?(err: {
818
- error?: number | undefined;
819
- errorMessage?: string | undefined;
820
- }): void;
821
- complete?(arg: {
822
- contactsDicArray: my.IMyChooseContactContactsDicArray[];
823
- } | {
824
- error?: number | undefined;
825
- errorMessage?: string | undefined;
826
- }): void;
827
- } & import("@rsmax/framework-shared").PromisifyArgs<{
828
- contactsDicArray: my.IMyChooseContactContactsDicArray[];
829
- }, {
830
- error?: number | undefined;
831
- errorMessage?: string | undefined;
832
- }>) | undefined) => Promise<{
833
- contactsDicArray: my.IMyChooseContactContactsDicArray[];
834
- }>;
835
- export declare const chooseCity: (arg?: ({
836
- showLocatedCity?: boolean | undefined;
837
- showHotCities?: boolean | undefined;
838
- setLocatedCity?: boolean | undefined;
839
- cities?: my.ITypeCityInfo[] | undefined;
840
- hotCities?: my.ITypeCityInfo[] | undefined;
841
- customHistoryCities?: my.ITypeCityInfo[] | undefined;
842
- success?(data: {
843
- city: string;
844
- adCode: string;
845
- longitude?: number | undefined;
846
- latitude?: number | undefined;
847
- }): void;
848
- fail?(err: {
849
- error?: number | undefined;
850
- errorMessage?: string | undefined;
851
- } | {
852
- error: 11;
853
- errorMessage: "用户取消操作";
854
- }): void;
855
- complete?(arg: {
856
- city: string;
857
- adCode: string;
858
- longitude?: number | undefined;
859
- latitude?: number | undefined;
860
- } | {
861
- error?: number | undefined;
862
- errorMessage?: string | undefined;
863
- } | {
864
- error: 11;
865
- errorMessage: "用户取消操作";
866
- }): void;
867
- } & import("@rsmax/framework-shared").PromisifyArgs<{
868
- city: string;
869
- adCode: string;
870
- longitude?: number | undefined;
871
- latitude?: number | undefined;
872
- }, {
873
- error?: number | undefined;
874
- errorMessage?: string | undefined;
875
- } | {
876
- error: 11;
877
- errorMessage: "用户取消操作";
878
- }>) | undefined) => Promise<{
879
- city: string;
880
- adCode: string;
881
- longitude?: number | undefined;
882
- latitude?: number | undefined;
883
- }>;
884
- export declare const chooseDistrict: (arg?: ({
885
- mode: EChooseDistrictMode;
886
- mainTitle?: string | undefined;
887
- mainHeadList?: my.IChooseDistrictMainHeadList[] | undefined;
888
- mainNormalList?: my.IChooseDistrictMainHeadListList[] | undefined;
889
- seniorTitle?: string | undefined;
890
- seniorPageList?: my.IChooseDistrictSeniorPageList[] | undefined;
891
- mainMergeOptions?: my.IChooseDistrictMainMergeOptions | undefined;
892
- src?: string | undefined;
893
- adVersion?: string | undefined;
894
- success?(data: {
895
- name: string;
896
- adCode: string;
897
- ext?: Record<string, string> | undefined;
898
- }): void;
899
- fail?(err: {
900
- error?: number | undefined;
901
- errorMessage?: string | undefined;
902
- }): void;
903
- complete?(arg: {
904
- name: string;
905
- adCode: string;
906
- ext?: Record<string, string> | undefined;
907
- } | {
908
- error?: number | undefined;
909
- errorMessage?: string | undefined;
910
- }): void;
911
- } & import("@rsmax/framework-shared").PromisifyArgs<{
912
- name: string;
913
- adCode: string;
914
- ext?: Record<string, string> | undefined;
915
- }, {
916
- error?: number | undefined;
917
- errorMessage?: string | undefined;
918
- }>) | undefined) => Promise<{
919
- name: string;
920
- adCode: string;
921
- ext?: Record<string, string> | undefined;
922
- }>;
923
- export declare const regionPicker: (arg?: ({
924
- title?: string | undefined;
925
- customItem?: string | undefined;
926
- mergeOptions?: my.IRegionPickerMergeOptions | undefined;
927
- selectedItem?: string[] | undefined;
928
- adVersion?: string | undefined;
929
- success?(data: {
930
- data: string[];
931
- code: string[];
932
- }): void;
933
- fail?(err: {
934
- error?: number | undefined;
935
- errorMessage?: string | undefined;
936
- }): void;
937
- complete?(arg: {
938
- data: string[];
939
- code: string[];
940
- } | {
941
- error?: number | undefined;
942
- errorMessage?: string | undefined;
943
- }): void;
944
- } & import("@rsmax/framework-shared").PromisifyArgs<{
945
- data: string[];
946
- code: string[];
947
- }, {
948
- error?: number | undefined;
949
- errorMessage?: string | undefined;
950
- }>) | undefined) => Promise<{
951
- data: string[];
952
- code: string[];
953
- }>;
954
- export declare const datePicker: (arg?: ({
955
- format?: "yyyy-MM-dd" | "HH:mm" | "yyyy-MM" | "yyyy" | "HH:mm:ss" | "yyyy-MM-dd HH:mm:ss" | "yyyy-MM-dd HH:mm" | undefined;
956
- currentDate?: string | undefined;
957
- startDate?: string | undefined;
958
- endDate?: string | undefined;
959
- success?(data: {
960
- date: string;
961
- }): void;
962
- fail?(err: {
963
- error?: number | undefined;
964
- errorMessage?: string | undefined;
965
- }): void;
966
- complete?(arg: {
967
- date: string;
968
- } | {
969
- error?: number | undefined;
970
- errorMessage?: string | undefined;
971
- }): void;
972
- } & import("@rsmax/framework-shared").PromisifyArgs<{
973
- date: string;
974
- }, {
975
- error?: number | undefined;
976
- errorMessage?: string | undefined;
977
- }>) | undefined) => Promise<{
978
- date: string;
979
- }>;
980
- export declare const createAnimation: (arg?: (my.IMyCreateAnimationParam & import("@rsmax/framework-shared").PromisifyArgs<any, any>) | undefined) => Promise<any>;
981
- export declare const getMapInfo: (arg?: ({
982
- success?(data: {
983
- is3d: boolean;
984
- isSupportAnim: boolean;
985
- sdkName: string;
986
- sdkVersion: string;
987
- isSupportOversea: boolean;
988
- needStyleV7: boolean;
989
- }): void;
990
- fail?(err: {
991
- error?: number | undefined;
992
- errorMessage?: string | undefined;
993
- }): void;
994
- complete?(arg: {
995
- is3d: boolean;
996
- isSupportAnim: boolean;
997
- sdkName: string;
998
- sdkVersion: string;
999
- isSupportOversea: boolean;
1000
- needStyleV7: boolean;
1001
- } | {
1002
- error?: number | undefined;
1003
- errorMessage?: string | undefined;
1004
- }): void;
1005
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1006
- is3d: boolean;
1007
- isSupportAnim: boolean;
1008
- sdkName: string;
1009
- sdkVersion: string;
1010
- isSupportOversea: boolean;
1011
- needStyleV7: boolean;
1012
- }, {
1013
- error?: number | undefined;
1014
- errorMessage?: string | undefined;
1015
- }>) | undefined) => Promise<{
1016
- is3d: boolean;
1017
- isSupportAnim: boolean;
1018
- sdkName: string;
1019
- sdkVersion: string;
1020
- isSupportOversea: boolean;
1021
- needStyleV7: boolean;
1022
- }>;
1023
- export declare const createMapContext: typeof my.createMapContext;
1024
- export declare const calculateRoute: (arg?: ({
1025
- searchType?: "walk" | "bus" | "drive" | "ride" | undefined;
1026
- startLat: number;
1027
- startLng: number;
1028
- endLat: number;
1029
- endLng: number;
1030
- throughPoints?: my.ICalculateRouteThroughPoints[] | undefined;
1031
- mode?: ECalculateRouteMode | undefined;
1032
- city?: string | undefined;
1033
- destinationCity?: string | undefined;
1034
- success?(data: {
1035
- success: boolean;
1036
- distance: number;
1037
- duration: number;
1038
- }): void;
1039
- fail?(err: {
1040
- error?: number | undefined;
1041
- errorMessage?: string | undefined;
1042
- }): void;
1043
- complete?(arg: {
1044
- success: boolean;
1045
- distance: number;
1046
- duration: number;
1047
- } | {
1048
- error?: number | undefined;
1049
- errorMessage?: string | undefined;
1050
- }): void;
1051
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1052
- success: boolean;
1053
- distance: number;
1054
- duration: number;
1055
- }, {
1056
- error?: number | undefined;
1057
- errorMessage?: string | undefined;
1058
- }>) | undefined) => Promise<{
1059
- success: boolean;
1060
- distance: number;
1061
- duration: number;
1062
- }>;
1063
- export declare const hideKeyboard: typeof my.hideKeyboard;
1064
- export declare const getSelectedTextRange: (arg?: any) => Promise<any>;
1065
- export declare const pageScrollTo: (arg?: ({
1066
- scrollTop?: number | undefined;
1067
- selector?: string | undefined;
1068
- duration?: number | undefined;
1069
- offsetTop?: number | undefined;
1070
- success?(data: {}): void;
1071
- fail?(err: {
1072
- error?: number | undefined;
1073
- errorMessage?: string | undefined;
1074
- } | {
1075
- error: 1;
1076
- errorMessage: "need scrollTop or selector";
1077
- }): void;
1078
- complete?(arg: {
1079
- error?: number | undefined;
1080
- errorMessage?: string | undefined;
1081
- } | {
1082
- error: 1;
1083
- errorMessage: "need scrollTop or selector";
1084
- }): void;
1085
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
1086
- error?: number | undefined;
1087
- errorMessage?: string | undefined;
1088
- } | {
1089
- error: 1;
1090
- errorMessage: "need scrollTop or selector";
1091
- }>) | undefined) => Promise<{}>;
1092
- export declare const setPageScrollable: (arg?: any) => Promise<any>;
1093
- export declare const createSelectorQuery: typeof my.createSelectorQuery;
1094
- export declare const createIntersectionObserver: typeof my.createIntersectionObserver;
1095
- export declare const optionsSelect: (arg?: ({
1096
- title?: string | undefined;
1097
- optionsOne: string[];
1098
- optionsTwo?: string[] | undefined;
1099
- selectedOneIndex?: number | undefined;
1100
- selectedTwoIndex?: number | undefined;
1101
- positiveString?: string | undefined;
1102
- negativeString?: string | undefined;
1103
- success?(data: {
1104
- selectedOneIndex: number;
1105
- selectedTwoIndex?: number | undefined;
1106
- selectedOneOption: string;
1107
- selectedTwoOption?: string | undefined;
1108
- }): void;
1109
- fail?(err: {
1110
- error?: number | undefined;
1111
- errorMessage?: string | undefined;
1112
- }): void;
1113
- complete?(arg: {
1114
- selectedOneIndex: number;
1115
- selectedTwoIndex?: number | undefined;
1116
- selectedOneOption: string;
1117
- selectedTwoOption?: string | undefined;
1118
- } | {
1119
- error?: number | undefined;
1120
- errorMessage?: string | undefined;
1121
- }): void;
1122
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1123
- selectedOneIndex: number;
1124
- selectedTwoIndex?: number | undefined;
1125
- selectedOneOption: string;
1126
- selectedTwoOption?: string | undefined;
1127
- }, {
1128
- error?: number | undefined;
1129
- errorMessage?: string | undefined;
1130
- }>) | undefined) => Promise<{
1131
- selectedOneIndex: number;
1132
- selectedTwoIndex?: number | undefined;
1133
- selectedOneOption: string;
1134
- selectedTwoOption?: string | undefined;
1135
- }>;
1136
- export declare const multiLevelSelect: (arg?: ({
1137
- title?: string | undefined;
1138
- result?: my.IBeehiveMultilevelSelectResult[] | undefined;
1139
- list: my.IBeehiveMultilevelSelectList[];
1140
- path?: string | undefined;
1141
- success?(data: {
1142
- success: true;
1143
- result: my.IBeehiveMultilevelSelectResult[];
1144
- }): void;
1145
- fail?(err: {
1146
- error?: number | undefined;
1147
- errorMessage?: string | undefined;
1148
- }): void;
1149
- complete?(arg: {
1150
- success: true;
1151
- result: my.IBeehiveMultilevelSelectResult[];
1152
- } | {
1153
- error?: number | undefined;
1154
- errorMessage?: string | undefined;
1155
- }): void;
1156
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1157
- success: true;
1158
- result: my.IBeehiveMultilevelSelectResult[];
1159
- }, {
1160
- error?: number | undefined;
1161
- errorMessage?: string | undefined;
1162
- }>) | undefined) => Promise<{
1163
- success: true;
1164
- result: my.IBeehiveMultilevelSelectResult[];
1165
- }>;
1166
- export declare const setBackgroundColor: (arg?: ({
1167
- backgroundColor?: string | undefined;
1168
- backgroundColorTop?: string | undefined;
1169
- backgroundColorBottom?: string | undefined;
1170
- success?(data: {
1171
- success: true;
1172
- }): void;
1173
- fail?(err: {
1174
- error?: number | undefined;
1175
- errorMessage?: string | undefined;
1176
- }): void;
1177
- complete?(arg: {
1178
- success: true;
1179
- } | {
1180
- error?: number | undefined;
1181
- errorMessage?: string | undefined;
1182
- }): void;
1183
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1184
- success: true;
1185
- }, {
1186
- error?: number | undefined;
1187
- errorMessage?: string | undefined;
1188
- }>) | undefined) => Promise<{
1189
- success: true;
1190
- }>;
1191
- export declare const setBackgroundTextStyle: (arg?: ({
1192
- textStyle: "dark" | "light";
1193
- success?(data: {
1194
- success: true;
1195
- }): void;
1196
- fail?(err: {
1197
- error?: number | undefined;
1198
- errorMessage?: string | undefined;
1199
- }): void;
1200
- complete?(arg: {
1201
- success: true;
1202
- } | {
1203
- error?: number | undefined;
1204
- errorMessage?: string | undefined;
1205
- }): void;
1206
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1207
- success: true;
1208
- }, {
1209
- error?: number | undefined;
1210
- errorMessage?: string | undefined;
1211
- }>) | undefined) => Promise<{
1212
- success: true;
1213
- }>;
1214
- export declare const setCanPullDown: (arg?: ({
1215
- canPullDown: boolean;
1216
- success?(data: {}): void;
1217
- fail?(err: {
1218
- error?: number | undefined;
1219
- errorMessage?: string | undefined;
1220
- }): void;
1221
- complete?(arg: {
1222
- error?: number | undefined;
1223
- errorMessage?: string | undefined;
1224
- }): void;
1225
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
1226
- error?: number | undefined;
1227
- errorMessage?: string | undefined;
1228
- }>) | undefined) => Promise<{}>;
1229
- export declare const loadFontFace: (arg?: ({
1230
- nativeCanvas?: boolean | undefined;
1231
- family: string;
1232
- source: string;
1233
- desc?: my.IMyLoadFontFaceDesc | undefined;
1234
- global?: boolean | undefined;
1235
- success?(data: {
1236
- status: "loaded";
1237
- }): void;
1238
- fail?(err: {
1239
- error?: number | undefined;
1240
- errorMessage?: string | undefined;
1241
- } | {
1242
- error: 10;
1243
- errorMessage?: string | undefined;
1244
- }): void;
1245
- complete?(arg: {
1246
- status: "loaded";
1247
- } | {
1248
- error?: number | undefined;
1249
- errorMessage?: string | undefined;
1250
- } | {
1251
- error: 10;
1252
- errorMessage?: string | undefined;
1253
- }): void;
1254
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1255
- status: "loaded";
1256
- }, {
1257
- error?: number | undefined;
1258
- errorMessage?: string | undefined;
1259
- } | {
1260
- error: 10;
1261
- errorMessage?: string | undefined;
1262
- }>) | undefined) => Promise<{
1263
- status: "loaded";
1264
- }>;
1265
- export declare const navigateToMiniProgram: (arg?: ({
1266
- appId: string;
1267
- path?: string | undefined;
1268
- query?: my.IMyNavigateToMiniProgramQuery | undefined;
1269
- extraData?: my.IMyNavigateToMiniProgramExtraData | undefined;
1270
- envVersion?: "release" | "develop" | "trial" | undefined;
1271
- success?(data: {}): void;
1272
- fail?(err: {
1273
- error?: number | undefined;
1274
- errorMessage?: string | undefined;
1275
- }): void;
1276
- complete?(arg: {
1277
- error?: number | undefined;
1278
- errorMessage?: string | undefined;
1279
- }): void;
1280
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
1281
- error?: number | undefined;
1282
- errorMessage?: string | undefined;
1283
- }>) | undefined) => Promise<{}>;
1284
- export declare const navigateBackMiniProgram: (arg?: ({
1285
- extraData?: Record<string, unknown> | undefined;
1286
- success?(data: {}): void;
1287
- fail?(err: {
1288
- error?: number | undefined;
1289
- errorMessage?: string | undefined;
1290
- }): void;
1291
- complete?(arg: {
1292
- error?: number | undefined;
1293
- errorMessage?: string | undefined;
1294
- }): void;
1295
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
1296
- error?: number | undefined;
1297
- errorMessage?: string | undefined;
1298
- }>) | undefined) => Promise<{}>;
1299
- export declare const openEmbeddedMiniProgram: (arg?: any) => Promise<any>;
1300
- export declare const openAlipayApp: (arg?: any) => Promise<any>;
1301
- export declare const openURL: (arg?: any) => Promise<any>;
1302
- export declare const restartMiniProgram: (arg?: any) => Promise<any>;
1303
- export declare const exitMiniProgram: (arg?: ({
1304
- success?(data: {}): void;
1305
- fail?(err: {
1306
- error?: number | undefined;
1307
- errorMessage?: string | undefined;
1308
- } | {
1309
- error: 5;
1310
- errorMessage: "exitMiniProgram can only be invoked by user tap gesture";
1311
- }): void;
1312
- complete?(arg: {
1313
- error?: number | undefined;
1314
- errorMessage?: string | undefined;
1315
- } | {
1316
- error: 5;
1317
- errorMessage: "exitMiniProgram can only be invoked by user tap gesture";
1318
- }): void;
1319
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
1320
- error?: number | undefined;
1321
- errorMessage?: string | undefined;
1322
- } | {
1323
- error: 5;
1324
- errorMessage: "exitMiniProgram can only be invoked by user tap gesture";
1325
- }>) | undefined) => Promise<{}>;
1326
- export declare const chooseImage: (arg?: ({
1327
- count?: number | undefined;
1328
- sizeType?: ("original" | "compressed")[] | undefined;
1329
- sourceType?: "camera" | "album" | ("camera" | "album")[] | undefined;
1330
- storeToAlbum?: boolean | undefined;
1331
- success?(data: {
1332
- apFilePaths: string[];
1333
- tempFilePaths: string[];
1334
- tempFiles: my.IMyChooseImageTempFiles;
1335
- }): void;
1336
- fail?(err: {
1337
- error?: number | undefined;
1338
- errorMessage?: string | undefined;
1339
- } | {
1340
- error: 11;
1341
- errorMessage: "用户取消操作";
1342
- } | {
1343
- error: 2001;
1344
- errorMessage: "在申请授权时用户拒绝授权";
1345
- }): void;
1346
- complete?(arg: {
1347
- apFilePaths: string[];
1348
- tempFilePaths: string[];
1349
- tempFiles: my.IMyChooseImageTempFiles;
1350
- } | {
1351
- error?: number | undefined;
1352
- errorMessage?: string | undefined;
1353
- } | {
1354
- error: 11;
1355
- errorMessage: "用户取消操作";
1356
- } | {
1357
- error: 2001;
1358
- errorMessage: "在申请授权时用户拒绝授权";
1359
- }): void;
1360
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1361
- apFilePaths: string[];
1362
- tempFilePaths: string[];
1363
- tempFiles: my.IMyChooseImageTempFiles;
1364
- }, {
1365
- error?: number | undefined;
1366
- errorMessage?: string | undefined;
1367
- } | {
1368
- error: 11;
1369
- errorMessage: "用户取消操作";
1370
- } | {
1371
- error: 2001;
1372
- errorMessage: "在申请授权时用户拒绝授权";
1373
- }>) | undefined) => Promise<{
1374
- apFilePaths: string[];
1375
- tempFilePaths: string[];
1376
- tempFiles: my.IMyChooseImageTempFiles;
1377
- }>;
1378
- export declare const previewImage: (arg?: ({
1379
- enableSavePhoto?: boolean | undefined;
1380
- enableShowPhotoDownload?: boolean | undefined;
1381
- urls: string[];
1382
- current?: number | undefined;
1383
- success?(data: {}): void;
1384
- fail?(err: {
1385
- error?: number | undefined;
1386
- errorMessage?: string | undefined;
1387
- }): void;
1388
- complete?(arg: {
1389
- error?: number | undefined;
1390
- errorMessage?: string | undefined;
1391
- }): void;
1392
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
1393
- error?: number | undefined;
1394
- errorMessage?: string | undefined;
1395
- }>) | undefined) => Promise<{}>;
1396
- export declare const getImageInfo: (arg?: ({
1397
- src: string;
1398
- success?(data: {
1399
- width: number;
1400
- height: number;
1401
- path: string;
1402
- size?: number | undefined;
1403
- type: number;
1404
- orientation: "left" | "right" | "up" | "down" | "up-mirrored" | "down-mirrored" | "left-mirrored" | "right-mirrored";
1405
- }): void;
1406
- fail?(err: {
1407
- error?: number | undefined;
1408
- errorMessage?: string | undefined;
1409
- } | {
1410
- error: 12;
1411
- errorMessage: "路径不能为空";
1412
- } | {
1413
- error: 18;
1414
- errorMessage: "获取图片信息失败";
1415
- } | {
1416
- error: 22;
1417
- errorMessage: "不支持的地址后缀名";
1418
- }): void;
1419
- complete?(arg: {
1420
- width: number;
1421
- height: number;
1422
- path: string;
1423
- size?: number | undefined;
1424
- type: number;
1425
- orientation: "left" | "right" | "up" | "down" | "up-mirrored" | "down-mirrored" | "left-mirrored" | "right-mirrored";
1426
- } | {
1427
- error?: number | undefined;
1428
- errorMessage?: string | undefined;
1429
- } | {
1430
- error: 12;
1431
- errorMessage: "路径不能为空";
1432
- } | {
1433
- error: 18;
1434
- errorMessage: "获取图片信息失败";
1435
- } | {
1436
- error: 22;
1437
- errorMessage: "不支持的地址后缀名";
1438
- }): void;
1439
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1440
- width: number;
1441
- height: number;
1442
- path: string;
1443
- size?: number | undefined;
1444
- type: number;
1445
- orientation: "left" | "right" | "up" | "down" | "up-mirrored" | "down-mirrored" | "left-mirrored" | "right-mirrored";
1446
- }, {
1447
- error?: number | undefined;
1448
- errorMessage?: string | undefined;
1449
- } | {
1450
- error: 12;
1451
- errorMessage: "路径不能为空";
1452
- } | {
1453
- error: 18;
1454
- errorMessage: "获取图片信息失败";
1455
- } | {
1456
- error: 22;
1457
- errorMessage: "不支持的地址后缀名";
1458
- }>) | undefined) => Promise<{
1459
- width: number;
1460
- height: number;
1461
- path: string;
1462
- size?: number | undefined;
1463
- type: number;
1464
- orientation: "left" | "right" | "up" | "down" | "up-mirrored" | "down-mirrored" | "left-mirrored" | "right-mirrored";
1465
- }>;
1466
- export declare const saveImageToPhotosAlbum: (arg?: ({
1467
- filePath: string;
1468
- hideToast?: boolean | undefined;
1469
- success?(data: {
1470
- success: true;
1471
- }): void;
1472
- fail?(err: {
1473
- error?: number | undefined;
1474
- errorMessage?: string | undefined;
1475
- }): void;
1476
- complete?(arg: {
1477
- success: true;
1478
- } | {
1479
- error?: number | undefined;
1480
- errorMessage?: string | undefined;
1481
- }): void;
1482
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1483
- success: true;
1484
- }, {
1485
- error?: number | undefined;
1486
- errorMessage?: string | undefined;
1487
- }>) | undefined) => Promise<{
1488
- success: true;
1489
- }>;
1490
- export declare const compressImage: (arg?: ({
1491
- apFilePaths: string[];
1492
- compressLevel?: ECompressImageCompressLevel | undefined;
1493
- compressedWidth?: number | undefined;
1494
- compressedHeight?: number | undefined;
1495
- maxWidth?: number | undefined;
1496
- maxHeight?: number | undefined;
1497
- success?(data: {
1498
- apFilePaths: string[];
1499
- }): void;
1500
- fail?(err: {
1501
- error?: number | undefined;
1502
- errorMessage?: string | undefined;
1503
- }): void;
1504
- complete?(arg: {
1505
- apFilePaths: string[];
1506
- } | {
1507
- error?: number | undefined;
1508
- errorMessage?: string | undefined;
1509
- }): void;
1510
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1511
- apFilePaths: string[];
1512
- }, {
1513
- error?: number | undefined;
1514
- errorMessage?: string | undefined;
1515
- }>) | undefined) => Promise<{
1516
- apFilePaths: string[];
1517
- }>;
1518
- export declare const generateImageFromCode: (arg?: ({
1519
- code: string;
1520
- format: "QRCODE";
1521
- width: number;
1522
- correctLevel: "L" | "M" | "Q" | "H";
1523
- orientation: "left" | "right" | "up" | "down" | "up-mirrored" | "down-mirrored" | "left-mirrored" | "right-mirrored";
1524
- codeColor: string;
1525
- success?(data: {
1526
- image: string;
1527
- }): void;
1528
- fail?(err: {
1529
- error?: number | undefined;
1530
- errorMessage?: string | undefined;
1531
- }): void;
1532
- complete?(arg: {
1533
- image: string;
1534
- } | {
1535
- error?: number | undefined;
1536
- errorMessage?: string | undefined;
1537
- }): void;
1538
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1539
- image: string;
1540
- }, {
1541
- error?: number | undefined;
1542
- errorMessage?: string | undefined;
1543
- }>) | undefined) => Promise<{
1544
- image: string;
1545
- }>;
1546
- export declare const chooseVideo: (arg?: ({
1547
- sourceType?: "camera" | "album" | ("camera" | "album")[] | undefined;
1548
- compressed?: boolean | undefined;
1549
- maxDuration?: number | undefined;
1550
- camera?: "back" | "front" | ("back" | "front")[] | undefined;
1551
- success?(data: {
1552
- filePath: string;
1553
- duration: number;
1554
- size: number;
1555
- height: number;
1556
- width: number;
1557
- tempFilePath: string;
1558
- }): void;
1559
- fail?(err: {
1560
- error?: number | undefined;
1561
- errorMessage?: string | undefined;
1562
- }): void;
1563
- complete?(arg: {
1564
- filePath: string;
1565
- duration: number;
1566
- size: number;
1567
- height: number;
1568
- width: number;
1569
- tempFilePath: string;
1570
- } | {
1571
- error?: number | undefined;
1572
- errorMessage?: string | undefined;
1573
- }): void;
1574
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1575
- filePath: string;
1576
- duration: number;
1577
- size: number;
1578
- height: number;
1579
- width: number;
1580
- tempFilePath: string;
1581
- }, {
1582
- error?: number | undefined;
1583
- errorMessage?: string | undefined;
1584
- }>) | undefined) => Promise<{
1585
- filePath: string;
1586
- duration: number;
1587
- size: number;
1588
- height: number;
1589
- width: number;
1590
- tempFilePath: string;
1591
- }>;
1592
- export declare const getVideoInfo: typeof my.getVideoInfo;
1593
- export declare const saveVideoToPhotosAlbum: (arg?: ({
1594
- src?: string | undefined;
1595
- filePath?: string | undefined;
1596
- success?(data: {
1597
- success: true;
1598
- }): void;
1599
- fail?(err: {
1600
- error?: number | undefined;
1601
- errorMessage?: string | undefined;
1602
- }): void;
1603
- complete?(arg: {
1604
- success: true;
1605
- } | {
1606
- error?: number | undefined;
1607
- errorMessage?: string | undefined;
1608
- }): void;
1609
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1610
- success: true;
1611
- }, {
1612
- error?: number | undefined;
1613
- errorMessage?: string | undefined;
1614
- }>) | undefined) => Promise<{
1615
- success: true;
1616
- }>;
1617
- export declare const createVideoContext: typeof my.createVideoContext;
1618
- export declare const createInnerAudioContext: typeof my.createInnerAudioContext;
1619
- export declare const onAudioInterruptionBegin: typeof my.onAudioInterruptionBegin;
1620
- export declare const offAudioInterruptionBegin: typeof my.offAudioInterruptionBegin;
1621
- export declare const onAudioInterruptionEnd: typeof my.onAudioInterruptionEnd;
1622
- export declare const offAudioInterruptionEnd: typeof my.offAudioInterruptionEnd;
1623
- export declare const getRecorderManager: typeof my.getRecorderManager;
1624
- export declare const getAvailableAudioSources: (arg?: ({
1625
- success?(data: {
1626
- audioSources: ("auto" | "buildInMic" | "headsetMic" | "mic" | "camcorder")[];
1627
- }): void;
1628
- fail?(err: {
1629
- error?: number | undefined;
1630
- errorMessage?: string | undefined;
1631
- }): void;
1632
- complete?(arg: {
1633
- audioSources: ("auto" | "buildInMic" | "headsetMic" | "mic" | "camcorder")[];
1634
- } | {
1635
- error?: number | undefined;
1636
- errorMessage?: string | undefined;
1637
- }): void;
1638
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1639
- audioSources: ("auto" | "buildInMic" | "headsetMic" | "mic" | "camcorder")[];
1640
- }, {
1641
- error?: number | undefined;
1642
- errorMessage?: string | undefined;
1643
- }>) | undefined) => Promise<{
1644
- audioSources: ("auto" | "buildInMic" | "headsetMic" | "mic" | "camcorder")[];
1645
- }>;
1646
- export declare const createLottieContext: typeof my.createLottieContext;
1647
- export declare const createCameraContext: any;
1648
- export declare const setStorage: (arg?: ({
1649
- data: unknown;
1650
- key: string;
1651
- success?(data: {}): void;
1652
- fail?(err: {
1653
- error?: number | undefined;
1654
- errorMessage?: string | undefined;
1655
- }): void;
1656
- complete?(arg: {
1657
- error?: number | undefined;
1658
- errorMessage?: string | undefined;
1659
- }): void;
1660
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
1661
- error?: number | undefined;
1662
- errorMessage?: string | undefined;
1663
- }>) | undefined) => Promise<{}>;
1664
- export declare const setStorageSync: typeof my.setStorageSync;
1665
- export declare const getStorage: (arg?: ({
1666
- key: string;
1667
- success?(data: {
1668
- data: any;
1669
- }): void;
1670
- fail?(err: {
1671
- error?: number | undefined;
1672
- errorMessage?: string | undefined;
1673
- }): void;
1674
- complete?(arg: {
1675
- data: any;
1676
- } | {
1677
- error?: number | undefined;
1678
- errorMessage?: string | undefined;
1679
- }): void;
1680
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1681
- data: any;
1682
- }, {
1683
- error?: number | undefined;
1684
- errorMessage?: string | undefined;
1685
- }>) | undefined) => Promise<{
1686
- data: any;
1687
- }>;
1688
- export declare const getStorageSync: typeof my.getStorageSync;
1689
- export declare const getStorageInfo: (arg?: ({
1690
- success?(data: {
1691
- keys: string[];
1692
- currentSize: number;
1693
- limitSize: number;
1694
- }): void;
1695
- fail?(err: {
1696
- error?: number | undefined;
1697
- errorMessage?: string | undefined;
1698
- }): void;
1699
- complete?(arg: {
1700
- keys: string[];
1701
- currentSize: number;
1702
- limitSize: number;
1703
- } | {
1704
- error?: number | undefined;
1705
- errorMessage?: string | undefined;
1706
- }): void;
1707
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1708
- keys: string[];
1709
- currentSize: number;
1710
- limitSize: number;
1711
- }, {
1712
- error?: number | undefined;
1713
- errorMessage?: string | undefined;
1714
- }>) | undefined) => Promise<{
1715
- keys: string[];
1716
- currentSize: number;
1717
- limitSize: number;
1718
- }>;
1719
- export declare const getStorageInfoSync: typeof my.getStorageInfoSync;
1720
- export declare const removeStorage: (arg?: ({
1721
- key: string;
1722
- success?(data: {
1723
- success: true;
1724
- }): void;
1725
- fail?(err: {
1726
- error?: number | undefined;
1727
- errorMessage?: string | undefined;
1728
- }): void;
1729
- complete?(arg: {
1730
- success: true;
1731
- } | {
1732
- error?: number | undefined;
1733
- errorMessage?: string | undefined;
1734
- }): void;
1735
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1736
- success: true;
1737
- }, {
1738
- error?: number | undefined;
1739
- errorMessage?: string | undefined;
1740
- }>) | undefined) => Promise<{
1741
- success: true;
1742
- }>;
1743
- export declare const removeStorageSync: typeof my.removeStorageSync;
1744
- export declare const clearStorage: (arg?: ({
1745
- success?(data: {
1746
- success: boolean;
1747
- }): void;
1748
- fail?(err: {
1749
- error?: number | undefined;
1750
- errorMessage?: string | undefined;
1751
- }): void;
1752
- complete?(arg: {
1753
- success: boolean;
1754
- } | {
1755
- error?: number | undefined;
1756
- errorMessage?: string | undefined;
1757
- }): void;
1758
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1759
- success: boolean;
1760
- }, {
1761
- error?: number | undefined;
1762
- errorMessage?: string | undefined;
1763
- }>) | undefined) => Promise<{
1764
- success: boolean;
1765
- }>;
1766
- export declare const clearStorageSync: typeof my.clearStorageSync;
1767
- export declare const getBackgroundFetchData: (arg?: ({
1768
- fetchType: string;
1769
- success?(data: {
1770
- fetchType: string;
1771
- timestamp: number;
1772
- fetchedData: Record<string, unknown>;
1773
- }): void;
1774
- fail?(err: {
1775
- error?: number | undefined;
1776
- errorMessage?: string | undefined;
1777
- }): void;
1778
- complete?(arg: {
1779
- fetchType: string;
1780
- timestamp: number;
1781
- fetchedData: Record<string, unknown>;
1782
- } | {
1783
- error?: number | undefined;
1784
- errorMessage?: string | undefined;
1785
- }): void;
1786
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1787
- fetchType: string;
1788
- timestamp: number;
1789
- fetchedData: Record<string, unknown>;
1790
- }, {
1791
- error?: number | undefined;
1792
- errorMessage?: string | undefined;
1793
- }>) | undefined) => Promise<{
1794
- fetchType: string;
1795
- timestamp: number;
1796
- fetchedData: Record<string, unknown>;
1797
- }>;
1798
- export declare const openDocument: (arg?: ({
1799
- filePath: string;
1800
- fileType?: string | undefined;
1801
- success?(data: {}): void;
1802
- fail?(err: {
1803
- error?: number | undefined;
1804
- errorMessage?: string | undefined;
1805
- }): void;
1806
- complete?(arg: {
1807
- error?: number | undefined;
1808
- errorMessage?: string | undefined;
1809
- }): void;
1810
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
1811
- error?: number | undefined;
1812
- errorMessage?: string | undefined;
1813
- }>) | undefined) => Promise<{}>;
1814
- export declare const saveFileToDisk: (arg?: ({
1815
- apFilePath: string;
1816
- filePath: string;
1817
- toDisk?: boolean | undefined;
1818
- success?(data: {
1819
- success: true;
1820
- }): void;
1821
- fail?(err: {
1822
- error?: number | undefined;
1823
- errorMessage?: string | undefined;
1824
- }): void;
1825
- complete?(arg: {
1826
- success: true;
1827
- } | {
1828
- error?: number | undefined;
1829
- errorMessage?: string | undefined;
1830
- }): void;
1831
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1832
- success: true;
1833
- }, {
1834
- error?: number | undefined;
1835
- errorMessage?: string | undefined;
1836
- }>) | undefined) => Promise<{
1837
- success: true;
1838
- }>;
1839
- export declare const detectFileType: (arg?: ({
1840
- filePath: string;
1841
- success?(data: {
1842
- type: string;
1843
- extension: string;
1844
- }): void;
1845
- fail?(err: {
1846
- error?: number | undefined;
1847
- errorMessage?: string | undefined;
1848
- }): void;
1849
- complete?(arg: {
1850
- type: string;
1851
- extension: string;
1852
- } | {
1853
- error?: number | undefined;
1854
- errorMessage?: string | undefined;
1855
- }): void;
1856
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1857
- type: string;
1858
- extension: string;
1859
- }, {
1860
- error?: number | undefined;
1861
- errorMessage?: string | undefined;
1862
- }>) | undefined) => Promise<{
1863
- type: string;
1864
- extension: string;
1865
- }>;
1866
- export declare const getFileSystemManager: typeof my.getFileSystemManager;
1867
- export declare const chooseFileFromDisk: (arg?: any) => Promise<any>;
1868
- export declare const getLocation: (arg?: ({
1869
- cacheTimeout?: number | undefined;
1870
- type?: EMyGetLocationType | undefined;
1871
- accuracy?: number | undefined;
1872
- bizType?: string | undefined;
1873
- success?(data: {
1874
- longitude: string;
1875
- latitude: string;
1876
- accuracy: string;
1877
- horizontalAccuracy: string;
1878
- country?: string | undefined;
1879
- countryCode?: string | undefined;
1880
- province?: string | undefined;
1881
- provinceAdcode?: string | undefined;
1882
- city?: string | undefined;
1883
- cityAdcode?: string | undefined;
1884
- district?: string | undefined;
1885
- districtAdcode?: string | undefined;
1886
- streetNumber?: my.IMyGetLocationStreetNumber | undefined;
1887
- pois?: my.IMyGetLocationPois[] | undefined;
1888
- }): void;
1889
- fail?(err: {
1890
- error?: number | undefined;
1891
- errorMessage?: string | undefined;
1892
- } | {
1893
- error: 11;
1894
- errorMessage: "请确认定位相关权限已开启";
1895
- } | {
1896
- error: 12;
1897
- errorMessage: "网络异常,请稍后再试";
1898
- } | {
1899
- error: 13;
1900
- errorMessage: "定位失败,请稍后再试";
1901
- } | {
1902
- error: 14;
1903
- errorMessage: "业务定位超时";
1904
- } | {
1905
- error: 18;
1906
- errorMessage: "获取到的基站与 WIFI 为空,请您打开 WIFI 开关,如已打开,建议移动到有 WIFI 的区域在发起定位";
1907
- } | {
1908
- error: 2001;
1909
- errorMessage: "用户拒绝给小程序授权";
1910
- } | {
1911
- error: 2002;
1912
- errorMessage: "保持拒绝后再触发定位";
1913
- } | {
1914
- error: 2003;
1915
- errorMessage: "勾选保持后再点选了拒绝";
1916
- }): void;
1917
- complete?(arg: {
1918
- longitude: string;
1919
- latitude: string;
1920
- accuracy: string;
1921
- horizontalAccuracy: string;
1922
- country?: string | undefined;
1923
- countryCode?: string | undefined;
1924
- province?: string | undefined;
1925
- provinceAdcode?: string | undefined;
1926
- city?: string | undefined;
1927
- cityAdcode?: string | undefined;
1928
- district?: string | undefined;
1929
- districtAdcode?: string | undefined;
1930
- streetNumber?: my.IMyGetLocationStreetNumber | undefined;
1931
- pois?: my.IMyGetLocationPois[] | undefined;
1932
- } | {
1933
- error?: number | undefined;
1934
- errorMessage?: string | undefined;
1935
- } | {
1936
- error: 11;
1937
- errorMessage: "请确认定位相关权限已开启";
1938
- } | {
1939
- error: 12;
1940
- errorMessage: "网络异常,请稍后再试";
1941
- } | {
1942
- error: 13;
1943
- errorMessage: "定位失败,请稍后再试";
1944
- } | {
1945
- error: 14;
1946
- errorMessage: "业务定位超时";
1947
- } | {
1948
- error: 18;
1949
- errorMessage: "获取到的基站与 WIFI 为空,请您打开 WIFI 开关,如已打开,建议移动到有 WIFI 的区域在发起定位";
1950
- } | {
1951
- error: 2001;
1952
- errorMessage: "用户拒绝给小程序授权";
1953
- } | {
1954
- error: 2002;
1955
- errorMessage: "保持拒绝后再触发定位";
1956
- } | {
1957
- error: 2003;
1958
- errorMessage: "勾选保持后再点选了拒绝";
1959
- }): void;
1960
- } & import("@rsmax/framework-shared").PromisifyArgs<{
1961
- longitude: string;
1962
- latitude: string;
1963
- accuracy: string;
1964
- horizontalAccuracy: string;
1965
- country?: string | undefined;
1966
- countryCode?: string | undefined;
1967
- province?: string | undefined;
1968
- provinceAdcode?: string | undefined;
1969
- city?: string | undefined;
1970
- cityAdcode?: string | undefined;
1971
- district?: string | undefined;
1972
- districtAdcode?: string | undefined;
1973
- streetNumber?: my.IMyGetLocationStreetNumber | undefined;
1974
- pois?: my.IMyGetLocationPois[] | undefined;
1975
- }, {
1976
- error?: number | undefined;
1977
- errorMessage?: string | undefined;
1978
- } | {
1979
- error: 11;
1980
- errorMessage: "请确认定位相关权限已开启";
1981
- } | {
1982
- error: 12;
1983
- errorMessage: "网络异常,请稍后再试";
1984
- } | {
1985
- error: 13;
1986
- errorMessage: "定位失败,请稍后再试";
1987
- } | {
1988
- error: 14;
1989
- errorMessage: "业务定位超时";
1990
- } | {
1991
- error: 18;
1992
- errorMessage: "获取到的基站与 WIFI 为空,请您打开 WIFI 开关,如已打开,建议移动到有 WIFI 的区域在发起定位";
1993
- } | {
1994
- error: 2001;
1995
- errorMessage: "用户拒绝给小程序授权";
1996
- } | {
1997
- error: 2002;
1998
- errorMessage: "保持拒绝后再触发定位";
1999
- } | {
2000
- error: 2003;
2001
- errorMessage: "勾选保持后再点选了拒绝";
2002
- }>) | undefined) => Promise<{
2003
- longitude: string;
2004
- latitude: string;
2005
- accuracy: string;
2006
- horizontalAccuracy: string;
2007
- country?: string | undefined;
2008
- countryCode?: string | undefined;
2009
- province?: string | undefined;
2010
- provinceAdcode?: string | undefined;
2011
- city?: string | undefined;
2012
- cityAdcode?: string | undefined;
2013
- district?: string | undefined;
2014
- districtAdcode?: string | undefined;
2015
- streetNumber?: my.IMyGetLocationStreetNumber | undefined;
2016
- pois?: my.IMyGetLocationPois[] | undefined;
2017
- }>;
2018
- export declare const getMainSelectedCity: (arg?: ({
2019
- needFullName?: boolean | undefined;
2020
- success?(data: {
2021
- fullName?: string | undefined;
2022
- enName?: string | undefined;
2023
- enDistrictName?: string | undefined;
2024
- name: string;
2025
- code: string;
2026
- chineseMainLand: boolean;
2027
- isManualSelected: boolean;
2028
- settingTime: number;
2029
- districtName?: string | undefined;
2030
- districtCode?: string | undefined;
2031
- }): void;
2032
- fail?(err: {
2033
- error?: number | undefined;
2034
- errorMessage?: string | undefined;
2035
- }): void;
2036
- complete?(arg: {
2037
- fullName?: string | undefined;
2038
- enName?: string | undefined;
2039
- enDistrictName?: string | undefined;
2040
- name: string;
2041
- code: string;
2042
- chineseMainLand: boolean;
2043
- isManualSelected: boolean;
2044
- settingTime: number;
2045
- districtName?: string | undefined;
2046
- districtCode?: string | undefined;
2047
- } | {
2048
- error?: number | undefined;
2049
- errorMessage?: string | undefined;
2050
- }): void;
2051
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2052
- fullName?: string | undefined;
2053
- enName?: string | undefined;
2054
- enDistrictName?: string | undefined;
2055
- name: string;
2056
- code: string;
2057
- chineseMainLand: boolean;
2058
- isManualSelected: boolean;
2059
- settingTime: number;
2060
- districtName?: string | undefined;
2061
- districtCode?: string | undefined;
2062
- }, {
2063
- error?: number | undefined;
2064
- errorMessage?: string | undefined;
2065
- }>) | undefined) => Promise<{
2066
- fullName?: string | undefined;
2067
- enName?: string | undefined;
2068
- enDistrictName?: string | undefined;
2069
- name: string;
2070
- code: string;
2071
- chineseMainLand: boolean;
2072
- isManualSelected: boolean;
2073
- settingTime: number;
2074
- districtName?: string | undefined;
2075
- districtCode?: string | undefined;
2076
- }>;
2077
- export declare const chooseLocation: (arg?: ({
2078
- title?: string | undefined;
2079
- showTab?: boolean | undefined;
2080
- latitude?: number | undefined;
2081
- longitude?: number | undefined;
2082
- success?(data: {
2083
- name: string;
2084
- address: string;
2085
- longitude: string;
2086
- latitude: string;
2087
- provinceName: string;
2088
- cityName: string;
2089
- }): void;
2090
- fail?(err: {
2091
- error?: number | undefined;
2092
- errorMessage?: string | undefined;
2093
- }): void;
2094
- complete?(arg: {
2095
- name: string;
2096
- address: string;
2097
- longitude: string;
2098
- latitude: string;
2099
- provinceName: string;
2100
- cityName: string;
2101
- } | {
2102
- error?: number | undefined;
2103
- errorMessage?: string | undefined;
2104
- }): void;
2105
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2106
- name: string;
2107
- address: string;
2108
- longitude: string;
2109
- latitude: string;
2110
- provinceName: string;
2111
- cityName: string;
2112
- }, {
2113
- error?: number | undefined;
2114
- errorMessage?: string | undefined;
2115
- }>) | undefined) => Promise<{
2116
- name: string;
2117
- address: string;
2118
- longitude: string;
2119
- latitude: string;
2120
- provinceName: string;
2121
- cityName: string;
2122
- }>;
2123
- export declare const openLocation: (arg?: ({
2124
- longitude: string;
2125
- latitude: string;
2126
- name: string;
2127
- address: string;
2128
- scale?: number | undefined;
2129
- success?(data: {}): void;
2130
- fail?(err: {
2131
- error?: number | undefined;
2132
- errorMessage?: string | undefined;
2133
- }): void;
2134
- complete?(arg: {
2135
- error?: number | undefined;
2136
- errorMessage?: string | undefined;
2137
- }): void;
2138
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
2139
- error?: number | undefined;
2140
- errorMessage?: string | undefined;
2141
- }>) | undefined) => Promise<{}>;
2142
- export declare const request: (arg?: ({
2143
- url: string;
2144
- dataType?: "base64" | "json" | "text" | "arraybuffer" | undefined;
2145
- method?: "GET" | "POST" | "PUT" | "DELETE" | "OPTIONS" | "HEAD" | "TRACE" | "CONNECT" | undefined;
2146
- data?: string | Record<string, string> | ArrayBuffer | undefined;
2147
- headers?: Record<string, string> | undefined;
2148
- header?: Record<string, string> | undefined;
2149
- timeout?: number | undefined;
2150
- referrerStrategy?: string | undefined;
2151
- success?(data: {
2152
- data: string | Record<string, unknown> | ArrayBuffer;
2153
- status: number;
2154
- headers: Record<string, string>;
2155
- statusCode: number;
2156
- header: Record<string, string>;
2157
- }): void;
2158
- fail?(err: {
2159
- error?: number | undefined;
2160
- errorMessage?: string | undefined;
2161
- } | {
2162
- error: 19;
2163
- errorMessage: "http status error";
2164
- } | {
2165
- error: 14;
2166
- errorMessage: "parse arraybuffer data error";
2167
- } | {
2168
- error: 14;
2169
- errorMessage: "JSON parse data error";
2170
- }): void;
2171
- complete?(arg: {
2172
- data: string | Record<string, unknown> | ArrayBuffer;
2173
- status: number;
2174
- headers: Record<string, string>;
2175
- statusCode: number;
2176
- header: Record<string, string>;
2177
- } | {
2178
- error?: number | undefined;
2179
- errorMessage?: string | undefined;
2180
- } | {
2181
- error: 19;
2182
- errorMessage: "http status error";
2183
- } | {
2184
- error: 14;
2185
- errorMessage: "parse arraybuffer data error";
2186
- } | {
2187
- error: 14;
2188
- errorMessage: "JSON parse data error";
2189
- }): void;
2190
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2191
- data: string | Record<string, unknown> | ArrayBuffer;
2192
- status: number;
2193
- headers: Record<string, string>;
2194
- statusCode: number;
2195
- header: Record<string, string>;
2196
- }, {
2197
- error?: number | undefined;
2198
- errorMessage?: string | undefined;
2199
- } | {
2200
- error: 19;
2201
- errorMessage: "http status error";
2202
- } | {
2203
- error: 14;
2204
- errorMessage: "parse arraybuffer data error";
2205
- } | {
2206
- error: 14;
2207
- errorMessage: "JSON parse data error";
2208
- }>) | undefined) => Promise<{
2209
- data: string | Record<string, unknown> | ArrayBuffer;
2210
- status: number;
2211
- headers: Record<string, string>;
2212
- statusCode: number;
2213
- header: Record<string, string>;
2214
- }>;
2215
- export declare const uploadFile: (arg?: ({
2216
- url: string;
2217
- filePath: string;
2218
- name: string;
2219
- fileType: string;
2220
- hideLoading?: boolean | undefined;
2221
- header?: Record<string, unknown> | undefined;
2222
- headers?: Record<string, unknown> | undefined;
2223
- formData?: Record<string, unknown> | undefined;
2224
- fileName?: string | undefined;
2225
- success?(data: {
2226
- data: string;
2227
- statusCode: number;
2228
- header: Record<string, unknown>;
2229
- }): void;
2230
- fail?(err: {
2231
- error?: number | undefined;
2232
- errorMessage?: string | undefined;
2233
- } | {
2234
- error: 11;
2235
- errorMessage?: string | undefined;
2236
- }): void;
2237
- complete?(arg: {
2238
- data: string;
2239
- statusCode: number;
2240
- header: Record<string, unknown>;
2241
- } | {
2242
- error?: number | undefined;
2243
- errorMessage?: string | undefined;
2244
- } | {
2245
- error: 11;
2246
- errorMessage?: string | undefined;
2247
- }): void;
2248
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2249
- data: string;
2250
- statusCode: number;
2251
- header: Record<string, unknown>;
2252
- }, {
2253
- error?: number | undefined;
2254
- errorMessage?: string | undefined;
2255
- } | {
2256
- error: 11;
2257
- errorMessage?: string | undefined;
2258
- }>) | undefined) => Promise<{
2259
- data: string;
2260
- statusCode: number;
2261
- header: Record<string, unknown>;
2262
- }>;
2263
- export declare const downloadFile: (arg?: ({
2264
- url: string;
2265
- header?: Record<string, string> | undefined;
2266
- success?(data: {
2267
- apFilePath: string;
2268
- tempFilePath: string;
2269
- headers: Record<string, string>;
2270
- header: Record<string, string>;
2271
- }): void;
2272
- fail?(err: {
2273
- error?: number | undefined;
2274
- errorMessage?: string | undefined;
2275
- } | {
2276
- error: 12;
2277
- errorMessage: "下载失败";
2278
- } | {
2279
- error: 13;
2280
- errorMessage: "没有权限";
2281
- } | {
2282
- error: 20;
2283
- errorMessage: "请求的 URL 不支持 HTTP";
2284
- }): void;
2285
- complete?(arg: {
2286
- apFilePath: string;
2287
- tempFilePath: string;
2288
- headers: Record<string, string>;
2289
- header: Record<string, string>;
2290
- } | {
2291
- error?: number | undefined;
2292
- errorMessage?: string | undefined;
2293
- } | {
2294
- error: 12;
2295
- errorMessage: "下载失败";
2296
- } | {
2297
- error: 13;
2298
- errorMessage: "没有权限";
2299
- } | {
2300
- error: 20;
2301
- errorMessage: "请求的 URL 不支持 HTTP";
2302
- }): void;
2303
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2304
- apFilePath: string;
2305
- tempFilePath: string;
2306
- headers: Record<string, string>;
2307
- header: Record<string, string>;
2308
- }, {
2309
- error?: number | undefined;
2310
- errorMessage?: string | undefined;
2311
- } | {
2312
- error: 12;
2313
- errorMessage: "下载失败";
2314
- } | {
2315
- error: 13;
2316
- errorMessage: "没有权限";
2317
- } | {
2318
- error: 20;
2319
- errorMessage: "请求的 URL 不支持 HTTP";
2320
- }>) | undefined) => Promise<{
2321
- apFilePath: string;
2322
- tempFilePath: string;
2323
- headers: Record<string, string>;
2324
- header: Record<string, string>;
2325
- }>;
2326
- export declare const connectSocket: (arg?: ({
2327
- multiple?: boolean | undefined;
2328
- url: string;
2329
- data?: Record<string, unknown> | undefined;
2330
- header?: Record<string, string> | undefined;
2331
- protocols?: string[] | undefined;
2332
- } & import("@rsmax/framework-shared").PromisifyArgs<any, any>) | undefined) => Promise<any>;
2333
- export declare const closeSocket: (arg?: ({
2334
- code?: number | undefined;
2335
- reason?: string | undefined;
2336
- success?(data: {
2337
- message: string;
2338
- }): void;
2339
- fail?(err: {
2340
- error?: number | undefined;
2341
- errorMessage?: string | undefined;
2342
- }): void;
2343
- complete?(arg: {
2344
- message: string;
2345
- } | {
2346
- error?: number | undefined;
2347
- errorMessage?: string | undefined;
2348
- }): void;
2349
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2350
- message: string;
2351
- }, {
2352
- error?: number | undefined;
2353
- errorMessage?: string | undefined;
2354
- }>) | undefined) => Promise<{
2355
- message: string;
2356
- }>;
2357
- export declare const sendSocketMessage: (arg?: ({
2358
- data: string;
2359
- isBuffer?: boolean | undefined;
2360
- success?(data: {
2361
- success: boolean;
2362
- }): void;
2363
- fail?(err: {
2364
- error?: number | undefined;
2365
- errorMessage?: string | undefined;
2366
- }): void;
2367
- complete?(arg: {
2368
- success: boolean;
2369
- } | {
2370
- error?: number | undefined;
2371
- errorMessage?: string | undefined;
2372
- }): void;
2373
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2374
- success: boolean;
2375
- }, {
2376
- error?: number | undefined;
2377
- errorMessage?: string | undefined;
2378
- }>) | undefined) => Promise<{
2379
- success: boolean;
2380
- }>;
2381
- export declare const onSocketOpen: typeof my.onSocketOpen;
2382
- export declare const offSocketOpen: typeof my.offSocketOpen;
2383
- export declare const onSocketMessage: typeof my.onSocketMessage;
2384
- export declare const offSocketMessage: typeof my.offSocketMessage;
2385
- export declare const onSocketError: typeof my.onSocketError;
2386
- export declare const offSocketError: typeof my.offSocketError;
2387
- export declare const onSocketClose: typeof my.onSocketClose;
2388
- export declare const offSocketClose: typeof my.offSocketClose;
2389
- export declare const getSystemInfo: (arg?: ({
2390
- includeNotification?: boolean | undefined;
2391
- includeBluetooth?: boolean | undefined;
2392
- success?(data: my.ITypeSystemInfo): void;
2393
- fail?(err: {
2394
- error?: number | undefined;
2395
- errorMessage?: string | undefined;
2396
- }): void;
2397
- complete?(arg: my.ITypeSystemInfo | {
2398
- error?: number | undefined;
2399
- errorMessage?: string | undefined;
2400
- }): void;
2401
- } & import("@rsmax/framework-shared").PromisifyArgs<my.ITypeSystemInfo, {
2402
- error?: number | undefined;
2403
- errorMessage?: string | undefined;
2404
- }>) | undefined) => Promise<my.ITypeSystemInfo>;
2405
- export declare const getSystemInfoSync: typeof my.getSystemInfoSync;
2406
- export declare const getDeviceBaseInfo: any;
2407
- export declare const getSystemSetting: typeof my.getSystemSetting;
2408
- export declare const getWindowInfo: typeof my.getWindowInfo;
2409
- export declare const getAppBaseInfo: typeof my.getAppBaseInfo;
2410
- export declare const getAppAuthorizeSetting: typeof my.getAppAuthorizeSetting;
2411
- export declare const getNetworkType: (arg?: ({
2412
- success?(data: {
2413
- networkAvailable: boolean;
2414
- networkType: "UNKNOWN" | "NOTREACHABLE" | "WIFI" | "3G" | "2G" | "4G" | "WWAN";
2415
- }): void;
2416
- fail?(err: {
2417
- error?: number | undefined;
2418
- errorMessage?: string | undefined;
2419
- }): void;
2420
- complete?(arg: {
2421
- networkAvailable: boolean;
2422
- networkType: "UNKNOWN" | "NOTREACHABLE" | "WIFI" | "3G" | "2G" | "4G" | "WWAN";
2423
- } | {
2424
- error?: number | undefined;
2425
- errorMessage?: string | undefined;
2426
- }): void;
2427
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2428
- networkAvailable: boolean;
2429
- networkType: "UNKNOWN" | "NOTREACHABLE" | "WIFI" | "3G" | "2G" | "4G" | "WWAN";
2430
- }, {
2431
- error?: number | undefined;
2432
- errorMessage?: string | undefined;
2433
- }>) | undefined) => Promise<{
2434
- networkAvailable: boolean;
2435
- networkType: "UNKNOWN" | "NOTREACHABLE" | "WIFI" | "3G" | "2G" | "4G" | "WWAN";
2436
- }>;
2437
- export declare const onNetworkStatusChange: (arg?: (((arg: {
2438
- isConnected: boolean;
2439
- networkType: "UNKNOWN" | "NOTREACHABLE" | "WIFI" | "3G" | "2G" | "4G" | "WWAN";
2440
- }) => void) & import("@rsmax/framework-shared").PromisifyArgs<any, any>) | undefined) => Promise<any>;
2441
- export declare const offNetworkStatusChange: (arg?: (((arg: {
2442
- isConnected: boolean;
2443
- networkType: "UNKNOWN" | "NOTREACHABLE" | "WIFI" | "3G" | "2G" | "4G" | "WWAN";
2444
- }) => void) & import("@rsmax/framework-shared").PromisifyArgs<any, any>) | undefined) => Promise<any>;
2445
- export declare const setVisualEffectOnCapture: (arg?: ({
2446
- visualEffect: "none" | "hidden";
2447
- success?(data: {}): void;
2448
- fail?(err: {
2449
- error?: number | undefined;
2450
- errorMessage?: string | undefined;
2451
- } | {
2452
- error: 2;
2453
- errorMessage: "visualEffect 只能为 hidden 或 none";
2454
- }): void;
2455
- complete?(arg: {
2456
- error?: number | undefined;
2457
- errorMessage?: string | undefined;
2458
- } | {
2459
- error: 2;
2460
- errorMessage: "visualEffect 只能为 hidden 或 none";
2461
- }): void;
2462
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
2463
- error?: number | undefined;
2464
- errorMessage?: string | undefined;
2465
- } | {
2466
- error: 2;
2467
- errorMessage: "visualEffect 只能为 hidden 或 none";
2468
- }>) | undefined) => Promise<{}>;
2469
- export declare const getClipboard: (arg?: ({
2470
- success?(data: {
2471
- text: string;
2472
- }): void;
2473
- fail?(err: {
2474
- error?: number | undefined;
2475
- errorMessage?: string | undefined;
2476
- }): void;
2477
- complete?(arg: {
2478
- text: string;
2479
- } | {
2480
- error?: number | undefined;
2481
- errorMessage?: string | undefined;
2482
- }): void;
2483
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2484
- text: string;
2485
- }, {
2486
- error?: number | undefined;
2487
- errorMessage?: string | undefined;
2488
- }>) | undefined) => Promise<{
2489
- text: string;
2490
- }>;
2491
- export declare const setClipboard: (arg?: ({
2492
- text: string;
2493
- success?(data: {
2494
- success: true;
2495
- }): void;
2496
- fail?(err: {
2497
- error?: number | undefined;
2498
- errorMessage?: string | undefined;
2499
- }): void;
2500
- complete?(arg: {
2501
- success: true;
2502
- } | {
2503
- error?: number | undefined;
2504
- errorMessage?: string | undefined;
2505
- }): void;
2506
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2507
- success: true;
2508
- }, {
2509
- error?: number | undefined;
2510
- errorMessage?: string | undefined;
2511
- }>) | undefined) => Promise<{
2512
- success: true;
2513
- }>;
2514
- export declare const watchShake: (arg?: ({
2515
- monitorAccelerometer?: boolean | undefined;
2516
- monitorCompass?: boolean | undefined;
2517
- monitorGyroscope?: boolean | undefined;
2518
- interval?: number | undefined;
2519
- success?(data: {
2520
- success: boolean;
2521
- }): void;
2522
- fail?(err: {
2523
- error?: number | undefined;
2524
- errorMessage?: string | undefined;
2525
- }): void;
2526
- complete?(arg: {
2527
- success: boolean;
2528
- } | {
2529
- error?: number | undefined;
2530
- errorMessage?: string | undefined;
2531
- }): void;
2532
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2533
- success: boolean;
2534
- }, {
2535
- error?: number | undefined;
2536
- errorMessage?: string | undefined;
2537
- }>) | undefined) => Promise<{
2538
- success: boolean;
2539
- }>;
2540
- export declare const vibrate: (arg?: ({
2541
- success?(data: {
2542
- success: boolean;
2543
- }): void;
2544
- fail?(err: {
2545
- error?: number | undefined;
2546
- errorMessage?: string | undefined;
2547
- }): void;
2548
- complete?(arg: {
2549
- success: boolean;
2550
- } | {
2551
- error?: number | undefined;
2552
- errorMessage?: string | undefined;
2553
- }): void;
2554
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2555
- success: boolean;
2556
- }, {
2557
- error?: number | undefined;
2558
- errorMessage?: string | undefined;
2559
- }>) | undefined) => Promise<{
2560
- success: boolean;
2561
- }>;
2562
- export declare const vibrateLong: (arg?: ({
2563
- success?(data: {
2564
- success: boolean;
2565
- }): void;
2566
- fail?(err: {
2567
- error?: number | undefined;
2568
- errorMessage?: string | undefined;
2569
- }): void;
2570
- complete?(arg: {
2571
- success: boolean;
2572
- } | {
2573
- error?: number | undefined;
2574
- errorMessage?: string | undefined;
2575
- }): void;
2576
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2577
- success: boolean;
2578
- }, {
2579
- error?: number | undefined;
2580
- errorMessage?: string | undefined;
2581
- }>) | undefined) => Promise<{
2582
- success: boolean;
2583
- }>;
2584
- export declare const vibrateShort: (arg?: ({
2585
- success?(data: {
2586
- success: boolean;
2587
- }): void;
2588
- fail?(err: {
2589
- error?: number | undefined;
2590
- errorMessage?: string | undefined;
2591
- }): void;
2592
- complete?(arg: {
2593
- success: boolean;
2594
- } | {
2595
- error?: number | undefined;
2596
- errorMessage?: string | undefined;
2597
- }): void;
2598
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2599
- success: boolean;
2600
- }, {
2601
- error?: number | undefined;
2602
- errorMessage?: string | undefined;
2603
- }>) | undefined) => Promise<{
2604
- success: boolean;
2605
- }>;
2606
- export declare const startAccelerometer: (arg?: ({
2607
- interval?: "game" | "ui" | "normal" | undefined;
2608
- success?(data: {
2609
- success: boolean;
2610
- }): void;
2611
- fail?(err: {
2612
- error?: number | undefined;
2613
- errorMessage?: string | undefined;
2614
- }): void;
2615
- complete?(arg: {
2616
- success: boolean;
2617
- } | {
2618
- error?: number | undefined;
2619
- errorMessage?: string | undefined;
2620
- }): void;
2621
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2622
- success: boolean;
2623
- }, {
2624
- error?: number | undefined;
2625
- errorMessage?: string | undefined;
2626
- }>) | undefined) => Promise<{
2627
- success: boolean;
2628
- }>;
2629
- export declare const stopAccelerometer: (arg?: ({
2630
- success?(data: {
2631
- success: boolean;
2632
- }): void;
2633
- fail?(err: {
2634
- error?: number | undefined;
2635
- errorMessage?: string | undefined;
2636
- }): void;
2637
- complete?(arg: {
2638
- success: boolean;
2639
- } | {
2640
- error?: number | undefined;
2641
- errorMessage?: string | undefined;
2642
- }): void;
2643
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2644
- success: boolean;
2645
- }, {
2646
- error?: number | undefined;
2647
- errorMessage?: string | undefined;
2648
- }>) | undefined) => Promise<{
2649
- success: boolean;
2650
- }>;
2651
- export declare const onAccelerometerChange: typeof my.onAccelerometerChange;
2652
- export declare const offAccelerometerChange: typeof my.offAccelerometerChange;
2653
- export declare const startGyroscope: (arg?: ({
2654
- interval?: "game" | "ui" | "normal" | undefined;
2655
- success?(data: {
2656
- success: boolean;
2657
- }): void;
2658
- fail?(err: {
2659
- error?: number | undefined;
2660
- errorMessage?: string | undefined;
2661
- }): void;
2662
- complete?(arg: {
2663
- success: boolean;
2664
- } | {
2665
- error?: number | undefined;
2666
- errorMessage?: string | undefined;
2667
- }): void;
2668
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2669
- success: boolean;
2670
- }, {
2671
- error?: number | undefined;
2672
- errorMessage?: string | undefined;
2673
- }>) | undefined) => Promise<{
2674
- success: boolean;
2675
- }>;
2676
- export declare const stopGyroscope: (arg?: ({
2677
- success?(data: {
2678
- success: boolean;
2679
- }): void;
2680
- fail?(err: {
2681
- error?: number | undefined;
2682
- errorMessage?: string | undefined;
2683
- }): void;
2684
- complete?(arg: {
2685
- success: boolean;
2686
- } | {
2687
- error?: number | undefined;
2688
- errorMessage?: string | undefined;
2689
- }): void;
2690
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2691
- success: boolean;
2692
- }, {
2693
- error?: number | undefined;
2694
- errorMessage?: string | undefined;
2695
- }>) | undefined) => Promise<{
2696
- success: boolean;
2697
- }>;
2698
- export declare const onGyroscopeChange: typeof my.onGyroscopeChange;
2699
- export declare const offGyroscopeChange: typeof my.offGyroscopeChange;
2700
- export declare const startCompass: (arg?: ({
2701
- interval?: "game" | "ui" | "normal" | undefined;
2702
- success?(data: {
2703
- success: boolean;
2704
- }): void;
2705
- fail?(err: {
2706
- error?: number | undefined;
2707
- errorMessage?: string | undefined;
2708
- }): void;
2709
- complete?(arg: {
2710
- success: boolean;
2711
- } | {
2712
- error?: number | undefined;
2713
- errorMessage?: string | undefined;
2714
- }): void;
2715
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2716
- success: boolean;
2717
- }, {
2718
- error?: number | undefined;
2719
- errorMessage?: string | undefined;
2720
- }>) | undefined) => Promise<{
2721
- success: boolean;
2722
- }>;
2723
- export declare const stopCompass: (arg?: ({
2724
- success?(data: {
2725
- success: boolean;
2726
- }): void;
2727
- fail?(err: {
2728
- error?: number | undefined;
2729
- errorMessage?: string | undefined;
2730
- }): void;
2731
- complete?(arg: {
2732
- success: boolean;
2733
- } | {
2734
- error?: number | undefined;
2735
- errorMessage?: string | undefined;
2736
- }): void;
2737
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2738
- success: boolean;
2739
- }, {
2740
- error?: number | undefined;
2741
- errorMessage?: string | undefined;
2742
- }>) | undefined) => Promise<{
2743
- success: boolean;
2744
- }>;
2745
- export declare const onCompassChange: typeof my.onCompassChange;
2746
- export declare const offCompassChange: typeof my.offCompassChange;
2747
- export declare const startDeviceMotionListening: (arg?: any) => Promise<any>;
2748
- export declare const stopDeviceMotionListening: (arg?: any) => Promise<any>;
2749
- export declare const onDeviceMotionChange: typeof my.onDeviceMotionChange;
2750
- export declare const offDeviceMotionChange: typeof my.offDeviceMotionChange;
2751
- export declare const makePhoneCall: (arg?: ({
2752
- number: string;
2753
- success?(data: {
2754
- success: true;
2755
- }): void;
2756
- fail?(err: {
2757
- error?: number | undefined;
2758
- errorMessage?: string | undefined;
2759
- }): void;
2760
- complete?(arg: {
2761
- success: true;
2762
- } | {
2763
- error?: number | undefined;
2764
- errorMessage?: string | undefined;
2765
- }): void;
2766
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2767
- success: true;
2768
- }, {
2769
- error?: number | undefined;
2770
- errorMessage?: string | undefined;
2771
- }>) | undefined) => Promise<{
2772
- success: true;
2773
- }>;
2774
- export declare const getServerTime: (arg?: ({
2775
- success?(data: {
2776
- time: number;
2777
- }): void;
2778
- fail?(err: {
2779
- error?: number | undefined;
2780
- errorMessage?: string | undefined;
2781
- }): void;
2782
- complete?(arg: {
2783
- time: number;
2784
- } | {
2785
- error?: number | undefined;
2786
- errorMessage?: string | undefined;
2787
- }): void;
2788
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2789
- time: number;
2790
- }, {
2791
- error?: number | undefined;
2792
- errorMessage?: string | undefined;
2793
- }>) | undefined) => Promise<{
2794
- time: number;
2795
- }>;
2796
- export declare const onUserCaptureScreen: typeof my.onUserCaptureScreen;
2797
- export declare const offUserCaptureScreen: typeof my.offUserCaptureScreen;
2798
- export declare const getScreenBrightness: (arg?: ({
2799
- success?(data: {
2800
- success: true;
2801
- brightness: number;
2802
- }): void;
2803
- fail?(err: {
2804
- error?: number | undefined;
2805
- errorMessage?: string | undefined;
2806
- }): void;
2807
- complete?(arg: {
2808
- success: true;
2809
- brightness: number;
2810
- } | {
2811
- error?: number | undefined;
2812
- errorMessage?: string | undefined;
2813
- }): void;
2814
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2815
- success: true;
2816
- brightness: number;
2817
- }, {
2818
- error?: number | undefined;
2819
- errorMessage?: string | undefined;
2820
- }>) | undefined) => Promise<{
2821
- success: true;
2822
- brightness: number;
2823
- }>;
2824
- export declare const setScreenBrightness: (arg?: ({
2825
- brightness: number;
2826
- success?(data: {
2827
- success: boolean;
2828
- }): void;
2829
- fail?(err: {
2830
- error?: number | undefined;
2831
- errorMessage?: string | undefined;
2832
- }): void;
2833
- complete?(arg: {
2834
- success: boolean;
2835
- } | {
2836
- error?: number | undefined;
2837
- errorMessage?: string | undefined;
2838
- }): void;
2839
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2840
- success: boolean;
2841
- }, {
2842
- error?: number | undefined;
2843
- errorMessage?: string | undefined;
2844
- }>) | undefined) => Promise<{
2845
- success: boolean;
2846
- }>;
2847
- export declare const setKeepScreenOn: (arg?: ({
2848
- keepScreenOn?: boolean | undefined;
2849
- success?(data: {
2850
- success: true;
2851
- }): void;
2852
- fail?(err: {
2853
- error?: number | undefined;
2854
- errorMessage?: string | undefined;
2855
- }): void;
2856
- complete?(arg: {
2857
- success: true;
2858
- } | {
2859
- error?: number | undefined;
2860
- errorMessage?: string | undefined;
2861
- }): void;
2862
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2863
- success: true;
2864
- }, {
2865
- error?: number | undefined;
2866
- errorMessage?: string | undefined;
2867
- }>) | undefined) => Promise<{
2868
- success: true;
2869
- }>;
2870
- export declare const getSetting: (arg?: ({
2871
- success?(data: {
2872
- authSetting: my.IGetSettingAuthSetting;
2873
- }): void;
2874
- fail?(err: {
2875
- error?: number | undefined;
2876
- errorMessage?: string | undefined;
2877
- }): void;
2878
- complete?(arg: {
2879
- authSetting: my.IGetSettingAuthSetting;
2880
- } | {
2881
- error?: number | undefined;
2882
- errorMessage?: string | undefined;
2883
- }): void;
2884
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2885
- authSetting: my.IGetSettingAuthSetting;
2886
- }, {
2887
- error?: number | undefined;
2888
- errorMessage?: string | undefined;
2889
- }>) | undefined) => Promise<{
2890
- authSetting: my.IGetSettingAuthSetting;
2891
- }>;
2892
- export declare const openSetting: (arg?: ({
2893
- success?(data: {
2894
- authSetting: my.IOpenSettingAuthSetting;
2895
- }): void;
2896
- fail?(err: {
2897
- error?: number | undefined;
2898
- errorMessage?: string | undefined;
2899
- }): void;
2900
- complete?(arg: {
2901
- authSetting: my.IOpenSettingAuthSetting;
2902
- } | {
2903
- error?: number | undefined;
2904
- errorMessage?: string | undefined;
2905
- }): void;
2906
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2907
- authSetting: my.IOpenSettingAuthSetting;
2908
- }, {
2909
- error?: number | undefined;
2910
- errorMessage?: string | undefined;
2911
- }>) | undefined) => Promise<{
2912
- authSetting: my.IOpenSettingAuthSetting;
2913
- }>;
2914
- export declare const addPhoneContact: (arg?: ({
2915
- lastName?: string | undefined;
2916
- middleName?: string | undefined;
2917
- firstName?: string | undefined;
2918
- nickName?: string | undefined;
2919
- remark?: string | undefined;
2920
- mobilePhoneNumber?: string | undefined;
2921
- workFaxNumber?: string | undefined;
2922
- workPhoneNumber?: string | undefined;
2923
- hostNumber?: string | undefined;
2924
- homeFaxNumber?: string | undefined;
2925
- homePhoneNumber?: string | undefined;
2926
- weChatNumber?: string | undefined;
2927
- alipayAccount?: string | undefined;
2928
- organization?: string | undefined;
2929
- title?: string | undefined;
2930
- email?: string | undefined;
2931
- url?: string | undefined;
2932
- addressCountry?: string | undefined;
2933
- addressState?: string | undefined;
2934
- addressCity?: string | undefined;
2935
- addressStreet?: string | undefined;
2936
- addressPostalCode?: string | undefined;
2937
- workCountry?: string | undefined;
2938
- workState?: string | undefined;
2939
- workCity?: string | undefined;
2940
- workStreet?: string | undefined;
2941
- workPostalCode?: string | undefined;
2942
- homeCountry?: string | undefined;
2943
- homeState?: string | undefined;
2944
- homeCity?: string | undefined;
2945
- homeStreet?: string | undefined;
2946
- homePostalCode?: string | undefined;
2947
- success?(data: {
2948
- success: true;
2949
- }): void;
2950
- fail?(err: {
2951
- error?: number | undefined;
2952
- errorMessage?: string | undefined;
2953
- }): void;
2954
- complete?(arg: {
2955
- success: true;
2956
- } | {
2957
- error?: number | undefined;
2958
- errorMessage?: string | undefined;
2959
- }): void;
2960
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2961
- success: true;
2962
- }, {
2963
- error?: number | undefined;
2964
- errorMessage?: string | undefined;
2965
- }>) | undefined) => Promise<{
2966
- success: true;
2967
- }>;
2968
- export declare const isScreenReaderEnabled: (arg?: ({
2969
- success?(data: {
2970
- screenReaderEnabled: boolean;
2971
- }): void;
2972
- fail?(err: {
2973
- error?: number | undefined;
2974
- errorMessage?: string | undefined;
2975
- }): void;
2976
- complete?(arg: {
2977
- screenReaderEnabled: boolean;
2978
- } | {
2979
- error?: number | undefined;
2980
- errorMessage?: string | undefined;
2981
- }): void;
2982
- } & import("@rsmax/framework-shared").PromisifyArgs<{
2983
- screenReaderEnabled: boolean;
2984
- }, {
2985
- error?: number | undefined;
2986
- errorMessage?: string | undefined;
2987
- }>) | undefined) => Promise<{
2988
- screenReaderEnabled: boolean;
2989
- }>;
2990
- export declare const showAuthGuide: (arg?: ({
2991
- authType: "BLUETOOTH" | "BACKGROUNDER" | "SHORTCUT" | "NOTIFICATION" | "SELFSTARTING" | "STORAGE" | "MICROPHONE" | "ADDRESSBOOK" | "CAMERA" | "PHOTO" | "LBSSERVICE" | "LBS" | "LBSHIGHACCURACY";
2992
- success?(data: {
2993
- shown: boolean;
2994
- }): void;
2995
- fail?(err: {
2996
- error?: number | undefined;
2997
- errorMessage?: string | undefined;
2998
- }): void;
2999
- complete?(arg: {
3000
- shown: boolean;
3001
- } | {
3002
- error?: number | undefined;
3003
- errorMessage?: string | undefined;
3004
- }): void;
3005
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3006
- shown: boolean;
3007
- }, {
3008
- error?: number | undefined;
3009
- errorMessage?: string | undefined;
3010
- }>) | undefined) => Promise<{
3011
- shown: boolean;
3012
- }>;
3013
- export declare const scan: (arg?: ({
3014
- scanType?: ("qrCode" | "barCode" | "dmCode" | "pdf417Code" | "narrowCode" | "hmCode")[] | undefined;
3015
- hideAlbum?: boolean | undefined;
3016
- onlyFromCamera?: boolean | undefined;
3017
- actionType?: "scan" | "route" | "scanAndRoute" | "scanAndRpc" | undefined;
3018
- needPath?: boolean | undefined;
3019
- success?(data: {
3020
- code: string;
3021
- barCode?: string | undefined;
3022
- qrCode?: string | undefined;
3023
- rawData: string;
3024
- imageChannel: string;
3025
- result: string;
3026
- scanType: string;
3027
- }): void;
3028
- fail?(err: {
3029
- error?: number | undefined;
3030
- errorMessage?: string | undefined;
3031
- }): void;
3032
- complete?(arg: {
3033
- code: string;
3034
- barCode?: string | undefined;
3035
- qrCode?: string | undefined;
3036
- rawData: string;
3037
- imageChannel: string;
3038
- result: string;
3039
- scanType: string;
3040
- } | {
3041
- error?: number | undefined;
3042
- errorMessage?: string | undefined;
3043
- }): void;
3044
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3045
- code: string;
3046
- barCode?: string | undefined;
3047
- qrCode?: string | undefined;
3048
- rawData: string;
3049
- imageChannel: string;
3050
- result: string;
3051
- scanType: string;
3052
- }, {
3053
- error?: number | undefined;
3054
- errorMessage?: string | undefined;
3055
- }>) | undefined) => Promise<{
3056
- code: string;
3057
- barCode?: string | undefined;
3058
- qrCode?: string | undefined;
3059
- rawData: string;
3060
- imageChannel: string;
3061
- result: string;
3062
- scanType: string;
3063
- }>;
3064
- export declare const onMemoryWarning: typeof my.onMemoryWarning;
3065
- export declare const offMemoryWarning: typeof my.offMemoryWarning;
3066
- export declare const getBatteryInfo: (arg?: ({
3067
- success?(data: {
3068
- level: number;
3069
- isCharging: boolean;
3070
- }): void;
3071
- fail?(err: {
3072
- error?: number | undefined;
3073
- errorMessage?: string | undefined;
3074
- }): void;
3075
- complete?(arg: {
3076
- level: number;
3077
- isCharging: boolean;
3078
- } | {
3079
- error?: number | undefined;
3080
- errorMessage?: string | undefined;
3081
- }): void;
3082
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3083
- level: number;
3084
- isCharging: boolean;
3085
- }, {
3086
- error?: number | undefined;
3087
- errorMessage?: string | undefined;
3088
- }>) | undefined) => Promise<{
3089
- level: number;
3090
- isCharging: boolean;
3091
- }>;
3092
- export declare const getBatteryInfoSync: typeof my.getBatteryInfoSync;
3093
- export declare const onBLEConnectionStateChanged: typeof my.onBLEConnectionStateChanged;
3094
- export declare const offBLEConnectionStateChanged: typeof my.offBLEConnectionStateChanged;
3095
- export declare const getBLEDeviceServices: (arg?: ({
3096
- deviceId: string;
3097
- success?(data: {
3098
- services: my.IGetBLEDeviceServicesServices[];
3099
- }): void;
3100
- fail?(err: {
3101
- error?: number | undefined;
3102
- errorMessage?: string | undefined;
3103
- }): void;
3104
- complete?(arg: {
3105
- services: my.IGetBLEDeviceServicesServices[];
3106
- } | {
3107
- error?: number | undefined;
3108
- errorMessage?: string | undefined;
3109
- }): void;
3110
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3111
- services: my.IGetBLEDeviceServicesServices[];
3112
- }, {
3113
- error?: number | undefined;
3114
- errorMessage?: string | undefined;
3115
- }>) | undefined) => Promise<{
3116
- services: my.IGetBLEDeviceServicesServices[];
3117
- }>;
3118
- export declare const connectBLEDevice: (arg?: ({
3119
- deviceId: string;
3120
- timeout?: number | undefined;
3121
- success?(data: {
3122
- error: string;
3123
- errorMessage: string;
3124
- }): void;
3125
- fail?(err: {
3126
- error?: number | undefined;
3127
- errorMessage?: string | undefined;
3128
- }): void;
3129
- complete?(arg: {
3130
- error: string;
3131
- errorMessage: string;
3132
- } | {
3133
- error?: number | undefined;
3134
- errorMessage?: string | undefined;
3135
- }): void;
3136
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3137
- error: string;
3138
- errorMessage: string;
3139
- }, {
3140
- error?: number | undefined;
3141
- errorMessage?: string | undefined;
3142
- }>) | undefined) => Promise<{
3143
- error: string;
3144
- errorMessage: string;
3145
- }>;
3146
- export declare const disconnectBLEDevice: (arg?: ({
3147
- deviceId: string;
3148
- success?(data: {
3149
- errorCode: string;
3150
- errorMessage: string;
3151
- }): void;
3152
- fail?(err: {
3153
- error?: number | undefined;
3154
- errorMessage?: string | undefined;
3155
- }): void;
3156
- complete?(arg: {
3157
- errorCode: string;
3158
- errorMessage: string;
3159
- } | {
3160
- error?: number | undefined;
3161
- errorMessage?: string | undefined;
3162
- }): void;
3163
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3164
- errorCode: string;
3165
- errorMessage: string;
3166
- }, {
3167
- error?: number | undefined;
3168
- errorMessage?: string | undefined;
3169
- }>) | undefined) => Promise<{
3170
- errorCode: string;
3171
- errorMessage: string;
3172
- }>;
3173
- export declare const getBLEDeviceCharacteristics: (arg?: ({
3174
- deviceId: string;
3175
- serviceId: string;
3176
- success?(data: {
3177
- characteristics: my.ITypeBLECharacteristic[];
3178
- }): void;
3179
- fail?(err: {
3180
- error?: number | undefined;
3181
- errorMessage?: string | undefined;
3182
- }): void;
3183
- complete?(arg: {
3184
- characteristics: my.ITypeBLECharacteristic[];
3185
- } | {
3186
- error?: number | undefined;
3187
- errorMessage?: string | undefined;
3188
- }): void;
3189
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3190
- characteristics: my.ITypeBLECharacteristic[];
3191
- }, {
3192
- error?: number | undefined;
3193
- errorMessage?: string | undefined;
3194
- }>) | undefined) => Promise<{
3195
- characteristics: my.ITypeBLECharacteristic[];
3196
- }>;
3197
- export declare const setBLEMTU: (arg?: ({
3198
- deviceId: string;
3199
- mtu: number;
3200
- success?(data: {
3201
- success: true;
3202
- mtu: number;
3203
- }): void;
3204
- fail?(err: {
3205
- error?: number | undefined;
3206
- errorMessage?: string | undefined;
3207
- }): void;
3208
- complete?(arg: {
3209
- success: true;
3210
- mtu: number;
3211
- } | {
3212
- error?: number | undefined;
3213
- errorMessage?: string | undefined;
3214
- }): void;
3215
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3216
- success: true;
3217
- mtu: number;
3218
- }, {
3219
- error?: number | undefined;
3220
- errorMessage?: string | undefined;
3221
- }>) | undefined) => Promise<{
3222
- success: true;
3223
- mtu: number;
3224
- }>;
3225
- export declare const getBLEMTU: (arg?: ({
3226
- deviceId: string;
3227
- success?(data: {
3228
- mtu: number;
3229
- }): void;
3230
- fail?(err: {
3231
- error?: number | undefined;
3232
- errorMessage?: string | undefined;
3233
- }): void;
3234
- complete?(arg: {
3235
- mtu: number;
3236
- } | {
3237
- error?: number | undefined;
3238
- errorMessage?: string | undefined;
3239
- }): void;
3240
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3241
- mtu: number;
3242
- }, {
3243
- error?: number | undefined;
3244
- errorMessage?: string | undefined;
3245
- }>) | undefined) => Promise<{
3246
- mtu: number;
3247
- }>;
3248
- export declare const notifyBLECharacteristicValueChange: (arg?: ({
3249
- deviceId: string;
3250
- serviceId: string;
3251
- characteristicId: string;
3252
- descriptorId?: string | undefined;
3253
- state?: boolean | undefined;
3254
- success?(data: {}): void;
3255
- fail?(err: {
3256
- error?: number | undefined;
3257
- errorMessage?: string | undefined;
3258
- }): void;
3259
- complete?(arg: {
3260
- error?: number | undefined;
3261
- errorMessage?: string | undefined;
3262
- }): void;
3263
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
3264
- error?: number | undefined;
3265
- errorMessage?: string | undefined;
3266
- }>) | undefined) => Promise<{}>;
3267
- export declare const onBLECharacteristicValueChange: typeof my.onBLECharacteristicValueChange;
3268
- export declare const offBLECharacteristicValueChange: typeof my.offBLECharacteristicValueChange;
3269
- export declare const writeBLECharacteristicValue: (arg?: ({
3270
- deviceId: string;
3271
- serviceId: string;
3272
- characteristicId: string;
3273
- value: string;
3274
- success?(data: {
3275
- errorCode: string;
3276
- errorMessage: string;
3277
- }): void;
3278
- fail?(err: {
3279
- error?: number | undefined;
3280
- errorMessage?: string | undefined;
3281
- }): void;
3282
- complete?(arg: {
3283
- errorCode: string;
3284
- errorMessage: string;
3285
- } | {
3286
- error?: number | undefined;
3287
- errorMessage?: string | undefined;
3288
- }): void;
3289
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3290
- errorCode: string;
3291
- errorMessage: string;
3292
- }, {
3293
- error?: number | undefined;
3294
- errorMessage?: string | undefined;
3295
- }>) | undefined) => Promise<{
3296
- errorCode: string;
3297
- errorMessage: string;
3298
- }>;
3299
- export declare const readBLECharacteristicValue: (arg?: ({
3300
- deviceId: string;
3301
- serviceId: string;
3302
- characteristicId: string;
3303
- success?(data: {
3304
- characteristic: my.ITypeBLECharacteristic;
3305
- }): void;
3306
- fail?(err: {
3307
- error?: number | undefined;
3308
- errorMessage?: string | undefined;
3309
- }): void;
3310
- complete?(arg: {
3311
- characteristic: my.ITypeBLECharacteristic;
3312
- } | {
3313
- error?: number | undefined;
3314
- errorMessage?: string | undefined;
3315
- }): void;
3316
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3317
- characteristic: my.ITypeBLECharacteristic;
3318
- }, {
3319
- error?: number | undefined;
3320
- errorMessage?: string | undefined;
3321
- }>) | undefined) => Promise<{
3322
- characteristic: my.ITypeBLECharacteristic;
3323
- }>;
3324
- export declare const getBLEDeviceRSSI: (arg?: ({
3325
- deviceId: string;
3326
- success?(data: {
3327
- RSSI: number;
3328
- }): void;
3329
- fail?(err: {
3330
- error?: number | undefined;
3331
- errorMessage?: string | undefined;
3332
- }): void;
3333
- complete?(arg: {
3334
- RSSI: number;
3335
- } | {
3336
- error?: number | undefined;
3337
- errorMessage?: string | undefined;
3338
- }): void;
3339
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3340
- RSSI: number;
3341
- }, {
3342
- error?: number | undefined;
3343
- errorMessage?: string | undefined;
3344
- }>) | undefined) => Promise<{
3345
- RSSI: number;
3346
- }>;
3347
- export declare const getBLEDeviceStatus: (arg?: ({
3348
- sysAlert?: boolean | undefined;
3349
- success?(data: {
3350
- authStatus: EGetBLEDeviceStatusAuthStatus;
3351
- powerStatus: EGetBLEDeviceStatusPowerStatus;
3352
- }): void;
3353
- fail?(err: {
3354
- error?: number | undefined;
3355
- errorMessage?: string | undefined;
3356
- }): void;
3357
- complete?(arg: {
3358
- authStatus: EGetBLEDeviceStatusAuthStatus;
3359
- powerStatus: EGetBLEDeviceStatusPowerStatus;
3360
- } | {
3361
- error?: number | undefined;
3362
- errorMessage?: string | undefined;
3363
- }): void;
3364
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3365
- authStatus: EGetBLEDeviceStatusAuthStatus;
3366
- powerStatus: EGetBLEDeviceStatusPowerStatus;
3367
- }, {
3368
- error?: number | undefined;
3369
- errorMessage?: string | undefined;
3370
- }>) | undefined) => Promise<{
3371
- authStatus: EGetBLEDeviceStatusAuthStatus;
3372
- powerStatus: EGetBLEDeviceStatusPowerStatus;
3373
- }>;
3374
- export declare const openBluetoothAdapter: (arg?: ({
3375
- autoClose?: boolean | undefined;
3376
- success?(data: {
3377
- isSupportBLE: boolean;
3378
- }): void;
3379
- fail?(err: {
3380
- error?: number | undefined;
3381
- errorMessage?: string | undefined;
3382
- }): void;
3383
- complete?(arg: {
3384
- isSupportBLE: boolean;
3385
- } | {
3386
- error?: number | undefined;
3387
- errorMessage?: string | undefined;
3388
- }): void;
3389
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3390
- isSupportBLE: boolean;
3391
- }, {
3392
- error?: number | undefined;
3393
- errorMessage?: string | undefined;
3394
- }>) | undefined) => Promise<{
3395
- isSupportBLE: boolean;
3396
- }>;
3397
- export declare const closeBluetoothAdapter: (arg?: ({
3398
- success?(data: {}): void;
3399
- fail?(err: {
3400
- error?: number | undefined;
3401
- errorMessage?: string | undefined;
3402
- }): void;
3403
- complete?(arg: {
3404
- error?: number | undefined;
3405
- errorMessage?: string | undefined;
3406
- }): void;
3407
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
3408
- error?: number | undefined;
3409
- errorMessage?: string | undefined;
3410
- }>) | undefined) => Promise<{}>;
3411
- export declare const getBluetoothAdapterState: (arg?: ({
3412
- success?(data: {
3413
- discovering: boolean;
3414
- available: boolean;
3415
- }): void;
3416
- fail?(err: {
3417
- error?: number | undefined;
3418
- errorMessage?: string | undefined;
3419
- }): void;
3420
- complete?(arg: {
3421
- discovering: boolean;
3422
- available: boolean;
3423
- } | {
3424
- error?: number | undefined;
3425
- errorMessage?: string | undefined;
3426
- }): void;
3427
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3428
- discovering: boolean;
3429
- available: boolean;
3430
- }, {
3431
- error?: number | undefined;
3432
- errorMessage?: string | undefined;
3433
- }>) | undefined) => Promise<{
3434
- discovering: boolean;
3435
- available: boolean;
3436
- }>;
3437
- export declare const onBluetoothAdapterStateChange: typeof my.onBluetoothAdapterStateChange;
3438
- export declare const offBluetoothAdapterStateChange: typeof my.offBluetoothAdapterStateChange;
3439
- export declare const onBluetoothDeviceFound: typeof my.onBluetoothDeviceFound;
3440
- export declare const offBluetoothDeviceFound: typeof my.offBluetoothDeviceFound;
3441
- export declare const startBluetoothDevicesDiscovery: (arg?: ({
3442
- includeClassic?: boolean | undefined;
3443
- deviceIds?: string[] | undefined;
3444
- deviceNames?: string[] | undefined;
3445
- allowDuplicatesKey?: boolean | undefined;
3446
- interval?: number | undefined;
3447
- services: string[];
3448
- success?(data: {}): void;
3449
- fail?(err: {
3450
- error?: number | undefined;
3451
- errorMessage?: string | undefined;
3452
- }): void;
3453
- complete?(arg: {
3454
- error?: number | undefined;
3455
- errorMessage?: string | undefined;
3456
- }): void;
3457
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
3458
- error?: number | undefined;
3459
- errorMessage?: string | undefined;
3460
- }>) | undefined) => Promise<{}>;
3461
- export declare const stopBluetoothDevicesDiscovery: (arg?: ({
3462
- success?(data: {
3463
- success: boolean;
3464
- }): void;
3465
- fail?(err: {
3466
- error?: number | undefined;
3467
- errorMessage?: string | undefined;
3468
- }): void;
3469
- complete?(arg: {
3470
- success: boolean;
3471
- } | {
3472
- error?: number | undefined;
3473
- errorMessage?: string | undefined;
3474
- }): void;
3475
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3476
- success: boolean;
3477
- }, {
3478
- error?: number | undefined;
3479
- errorMessage?: string | undefined;
3480
- }>) | undefined) => Promise<{
3481
- success: boolean;
3482
- }>;
3483
- export declare const getBluetoothDevices: (arg?: ({
3484
- success?(data: {
3485
- devices: my.ITypeBluetoothDevice[];
3486
- }): void;
3487
- fail?(err: {
3488
- error?: number | undefined;
3489
- errorMessage?: string | undefined;
3490
- }): void;
3491
- complete?(arg: {
3492
- devices: my.ITypeBluetoothDevice[];
3493
- } | {
3494
- error?: number | undefined;
3495
- errorMessage?: string | undefined;
3496
- }): void;
3497
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3498
- devices: my.ITypeBluetoothDevice[];
3499
- }, {
3500
- error?: number | undefined;
3501
- errorMessage?: string | undefined;
3502
- }>) | undefined) => Promise<{
3503
- devices: my.ITypeBluetoothDevice[];
3504
- }>;
3505
- export declare const getConnectedBluetoothDevices: (arg?: ({
3506
- success?(data: {
3507
- devices: my.ITypeBluetoothDevice[];
3508
- }): void;
3509
- fail?(err: {
3510
- error?: number | undefined;
3511
- errorMessage?: string | undefined;
3512
- }): void;
3513
- complete?(arg: {
3514
- devices: my.ITypeBluetoothDevice[];
3515
- } | {
3516
- error?: number | undefined;
3517
- errorMessage?: string | undefined;
3518
- }): void;
3519
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3520
- devices: my.ITypeBluetoothDevice[];
3521
- }, {
3522
- error?: number | undefined;
3523
- errorMessage?: string | undefined;
3524
- }>) | undefined) => Promise<{
3525
- devices: my.ITypeBluetoothDevice[];
3526
- }>;
3527
- export declare const makeBluetoothPair: (arg?: ({
3528
- deviceId: string;
3529
- pin: string;
3530
- timeout?: number | undefined;
3531
- success?(data: {
3532
- success: true;
3533
- }): void;
3534
- fail?(err: {
3535
- error?: number | undefined;
3536
- errorMessage?: string | undefined;
3537
- }): void;
3538
- complete?(arg: {
3539
- success: true;
3540
- } | {
3541
- error?: number | undefined;
3542
- errorMessage?: string | undefined;
3543
- }): void;
3544
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3545
- success: true;
3546
- }, {
3547
- error?: number | undefined;
3548
- errorMessage?: string | undefined;
3549
- }>) | undefined) => Promise<{
3550
- success: true;
3551
- }>;
3552
- export declare const getBluetoothPairs: (arg?: ({
3553
- success?(data: {
3554
- devices: my.ITypeBluetoothDevice[];
3555
- }): void;
3556
- fail?(err: {
3557
- error?: number | undefined;
3558
- errorMessage?: string | undefined;
3559
- }): void;
3560
- complete?(arg: {
3561
- devices: my.ITypeBluetoothDevice[];
3562
- } | {
3563
- error?: number | undefined;
3564
- errorMessage?: string | undefined;
3565
- }): void;
3566
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3567
- devices: my.ITypeBluetoothDevice[];
3568
- }, {
3569
- error?: number | undefined;
3570
- errorMessage?: string | undefined;
3571
- }>) | undefined) => Promise<{
3572
- devices: my.ITypeBluetoothDevice[];
3573
- }>;
3574
- export declare const cancelBluetoothPair: (arg?: ({
3575
- deviceId: string;
3576
- success?(data: {}): void;
3577
- fail?(err: {
3578
- error?: number | undefined;
3579
- errorMessage?: string | undefined;
3580
- }): void;
3581
- complete?(arg: {
3582
- error?: number | undefined;
3583
- errorMessage?: string | undefined;
3584
- }): void;
3585
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
3586
- error?: number | undefined;
3587
- errorMessage?: string | undefined;
3588
- }>) | undefined) => Promise<{}>;
3589
- export declare const getBeacons: (arg?: ({
3590
- success?(data: {
3591
- beacons: my.IGetBeaconsBeacons[];
3592
- errCode: string;
3593
- errorMsg: string;
3594
- }): void;
3595
- fail?(err: {
3596
- error?: number | undefined;
3597
- errorMessage?: string | undefined;
3598
- }): void;
3599
- complete?(arg: {
3600
- beacons: my.IGetBeaconsBeacons[];
3601
- errCode: string;
3602
- errorMsg: string;
3603
- } | {
3604
- error?: number | undefined;
3605
- errorMessage?: string | undefined;
3606
- }): void;
3607
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3608
- beacons: my.IGetBeaconsBeacons[];
3609
- errCode: string;
3610
- errorMsg: string;
3611
- }, {
3612
- error?: number | undefined;
3613
- errorMessage?: string | undefined;
3614
- }>) | undefined) => Promise<{
3615
- beacons: my.IGetBeaconsBeacons[];
3616
- errCode: string;
3617
- errorMsg: string;
3618
- }>;
3619
- export declare const startBeaconDiscovery: (arg?: ({
3620
- uuids: string[];
3621
- success?(data: {}): void;
3622
- fail?(err: {
3623
- error?: number | undefined;
3624
- errorMessage?: string | undefined;
3625
- }): void;
3626
- complete?(arg: {
3627
- error?: number | undefined;
3628
- errorMessage?: string | undefined;
3629
- }): void;
3630
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
3631
- error?: number | undefined;
3632
- errorMessage?: string | undefined;
3633
- }>) | undefined) => Promise<{}>;
3634
- export declare const stopBeaconDiscovery: (arg?: ({
3635
- success?(data: {}): void;
3636
- fail?(err: {
3637
- error?: number | undefined;
3638
- errorMessage?: string | undefined;
3639
- }): void;
3640
- complete?(arg: {
3641
- error?: number | undefined;
3642
- errorMessage?: string | undefined;
3643
- }): void;
3644
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
3645
- error?: number | undefined;
3646
- errorMessage?: string | undefined;
3647
- }>) | undefined) => Promise<{}>;
3648
- export declare const onBeaconUpdate: typeof my.onBeaconUpdate;
3649
- export declare const offBeaconUpdate: typeof my.offBeaconUpdate;
3650
- export declare const onBeaconServiceChange: typeof my.onBeaconServiceChange;
3651
- export declare const offBeaconServiceChange: typeof my.offBeaconServiceChange;
3652
- export declare const startWifi: (arg?: ({
3653
- success?(data: {
3654
- success: true;
3655
- }): void;
3656
- fail?(err: {
3657
- error?: number | undefined;
3658
- errorMessage?: string | undefined;
3659
- }): void;
3660
- complete?(arg: {
3661
- success: true;
3662
- } | {
3663
- error?: number | undefined;
3664
- errorMessage?: string | undefined;
3665
- }): void;
3666
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3667
- success: true;
3668
- }, {
3669
- error?: number | undefined;
3670
- errorMessage?: string | undefined;
3671
- }>) | undefined) => Promise<{
3672
- success: true;
3673
- }>;
3674
- export declare const stopWifi: (arg?: ({
3675
- success?(data: {
3676
- success: true;
3677
- }): void;
3678
- fail?(err: {
3679
- error?: number | undefined;
3680
- errorMessage?: string | undefined;
3681
- }): void;
3682
- complete?(arg: {
3683
- success: true;
3684
- } | {
3685
- error?: number | undefined;
3686
- errorMessage?: string | undefined;
3687
- }): void;
3688
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3689
- success: true;
3690
- }, {
3691
- error?: number | undefined;
3692
- errorMessage?: string | undefined;
3693
- }>) | undefined) => Promise<{
3694
- success: true;
3695
- }>;
3696
- export declare const connectWifi: (arg?: ({
3697
- SSID?: string | undefined;
3698
- BSSID?: string | undefined;
3699
- maunal?: boolean | undefined;
3700
- isWEP?: boolean | undefined;
3701
- password?: string | undefined;
3702
- success?(data: {
3703
- success: true;
3704
- error: string;
3705
- errorMessage: string;
3706
- }): void;
3707
- fail?(err: {
3708
- error?: number | undefined;
3709
- errorMessage?: string | undefined;
3710
- }): void;
3711
- complete?(arg: {
3712
- success: true;
3713
- error: string;
3714
- errorMessage: string;
3715
- } | {
3716
- error?: number | undefined;
3717
- errorMessage?: string | undefined;
3718
- }): void;
3719
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3720
- success: true;
3721
- error: string;
3722
- errorMessage: string;
3723
- }, {
3724
- error?: number | undefined;
3725
- errorMessage?: string | undefined;
3726
- }>) | undefined) => Promise<{
3727
- success: true;
3728
- error: string;
3729
- errorMessage: string;
3730
- }>;
3731
- export declare const getWifiList: (arg?: ({
3732
- success?(data: {
3733
- success: boolean;
3734
- }): void;
3735
- fail?(err: {
3736
- error?: number | undefined;
3737
- errorMessage?: string | undefined;
3738
- }): void;
3739
- complete?(arg: {
3740
- success: boolean;
3741
- } | {
3742
- error?: number | undefined;
3743
- errorMessage?: string | undefined;
3744
- }): void;
3745
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3746
- success: boolean;
3747
- }, {
3748
- error?: number | undefined;
3749
- errorMessage?: string | undefined;
3750
- }>) | undefined) => Promise<{
3751
- success: boolean;
3752
- }>;
3753
- export declare const onWifiConnected: typeof my.onWifiConnected;
3754
- export declare const offWifiConnected: typeof my.offWifiConnected;
3755
- export declare const onGetWifiList: typeof my.onGetWifiList;
3756
- export declare const offGetWifiList: typeof my.offGetWifiList;
3757
- export declare const getConnectedWifi: (arg?: ({
3758
- success?(data: {
3759
- success: true;
3760
- wifi: my.IGetConnectedWifiWifi;
3761
- }): void;
3762
- fail?(err: {
3763
- error?: number | undefined;
3764
- errorMessage?: string | undefined;
3765
- }): void;
3766
- complete?(arg: {
3767
- success: true;
3768
- wifi: my.IGetConnectedWifiWifi;
3769
- } | {
3770
- error?: number | undefined;
3771
- errorMessage?: string | undefined;
3772
- }): void;
3773
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3774
- success: true;
3775
- wifi: my.IGetConnectedWifiWifi;
3776
- }, {
3777
- error?: number | undefined;
3778
- errorMessage?: string | undefined;
3779
- }>) | undefined) => Promise<{
3780
- success: true;
3781
- wifi: my.IGetConnectedWifiWifi;
3782
- }>;
3783
- export declare const sendSms: (arg?: any) => Promise<any>;
3784
- export declare const createWorker: typeof my.createWorker;
3785
- export declare const rsa: (arg?: ({
3786
- action: "encrypt" | "decrypt";
3787
- text: string;
3788
- key: string;
3789
- success?(data: {
3790
- text: string;
3791
- }): void;
3792
- fail?(err: {
3793
- error?: number | undefined;
3794
- errorMessage?: string | undefined;
3795
- }): void;
3796
- complete?(arg: {
3797
- text: string;
3798
- } | {
3799
- error?: number | undefined;
3800
- errorMessage?: string | undefined;
3801
- }): void;
3802
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3803
- text: string;
3804
- }, {
3805
- error?: number | undefined;
3806
- errorMessage?: string | undefined;
3807
- }>) | undefined) => Promise<{
3808
- text: string;
3809
- }>;
3810
- export declare const showSharePanel: typeof my.showSharePanel;
3811
- export declare const hideShareMenu: (arg?: ({
3812
- success?(data: {}): void;
3813
- fail?(err: {
3814
- error?: number | undefined;
3815
- errorMessage?: string | undefined;
3816
- }): void;
3817
- complete?(arg: {
3818
- error?: number | undefined;
3819
- errorMessage?: string | undefined;
3820
- }): void;
3821
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
3822
- error?: number | undefined;
3823
- errorMessage?: string | undefined;
3824
- }>) | undefined) => Promise<{}>;
3825
- export declare const showShareMenu: (arg?: ({
3826
- success?(data: {
3827
- error?: number | undefined;
3828
- success?: boolean | undefined;
3829
- errorMessage?: string | undefined;
3830
- }): void;
3831
- fail?(err: {
3832
- error?: number | undefined;
3833
- errorMessage?: string | undefined;
3834
- }): void;
3835
- complete?(arg: {
3836
- error?: number | undefined;
3837
- success?: boolean | undefined;
3838
- errorMessage?: string | undefined;
3839
- } | {
3840
- error?: number | undefined;
3841
- errorMessage?: string | undefined;
3842
- }): void;
3843
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3844
- error?: number | undefined;
3845
- success?: boolean | undefined;
3846
- errorMessage?: string | undefined;
3847
- }, {
3848
- error?: number | undefined;
3849
- errorMessage?: string | undefined;
3850
- }>) | undefined) => Promise<{
3851
- error?: number | undefined;
3852
- success?: boolean | undefined;
3853
- errorMessage?: string | undefined;
3854
- }>;
3855
- export declare const isCollected: (arg?: any) => Promise<any>;
3856
- export declare const hideAddToDesktopMenu: (arg?: ({
3857
- success?(data: {}): void;
3858
- fail?(err: {
3859
- error?: number | undefined;
3860
- errorMessage?: string | undefined;
3861
- }): void;
3862
- complete?(arg: {
3863
- error?: number | undefined;
3864
- errorMessage?: string | undefined;
3865
- }): void;
3866
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
3867
- error?: number | undefined;
3868
- errorMessage?: string | undefined;
3869
- }>) | undefined) => Promise<{}>;
3870
- export declare const hideAllAddToDesktopMenu: (arg?: ({
3871
- success?(data: {}): void;
3872
- fail?(err: {
3873
- error?: number | undefined;
3874
- errorMessage?: string | undefined;
3875
- }): void;
3876
- complete?(arg: {
3877
- error?: number | undefined;
3878
- errorMessage?: string | undefined;
3879
- }): void;
3880
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
3881
- error?: number | undefined;
3882
- errorMessage?: string | undefined;
3883
- }>) | undefined) => Promise<{}>;
3884
- export declare const getUpdateManager: typeof my.getUpdateManager;
3885
- export declare const createWebViewContext: typeof my.createWebViewContext;
3886
- export declare const updateAlipayClient: (arg?: ({
3887
- success?(data: {
3888
- success: true;
3889
- }): void;
3890
- fail?(err: {
3891
- error?: number | undefined;
3892
- errorMessage?: string | undefined;
3893
- }): void;
3894
- complete?(arg: {
3895
- success: true;
3896
- } | {
3897
- error?: number | undefined;
3898
- errorMessage?: string | undefined;
3899
- }): void;
3900
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3901
- success: true;
3902
- }, {
3903
- error?: number | undefined;
3904
- errorMessage?: string | undefined;
3905
- }>) | undefined) => Promise<{
3906
- success: true;
3907
- }>;
3908
- export declare const requirePrivacyAuthorize: (arg?: any) => Promise<any>;
3909
- export declare const openPrivacyContract: (arg?: any) => Promise<any>;
3910
- export declare const onNeedPrivacyAuthorization: any;
3911
- export declare const getPrivacySetting: (arg?: any) => Promise<any>;
3912
- export declare const createRewardedAd: (arg?: (string & import("@rsmax/framework-shared").PromisifyArgs<any, any>) | undefined) => Promise<any>;
3913
- export declare const createInterstitialAd: (arg?: any) => Promise<any>;
3914
- /**
3915
- * 开放能力 API
3916
- */
3917
- export declare const tradePay: (arg?: ({
3918
- tradeNO?: string | undefined;
3919
- orderStr?: string | undefined;
3920
- success?(data: {
3921
- resultCode: string;
3922
- }): void;
3923
- fail?(err: {
3924
- error?: number | undefined;
3925
- errorMessage?: string | undefined;
3926
- }): void;
3927
- complete?(arg: {
3928
- resultCode: string;
3929
- } | {
3930
- error?: number | undefined;
3931
- errorMessage?: string | undefined;
3932
- }): void;
3933
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3934
- resultCode: string;
3935
- }, {
3936
- error?: number | undefined;
3937
- errorMessage?: string | undefined;
3938
- }>) | undefined) => Promise<{
3939
- resultCode: string;
3940
- }>;
3941
- export declare const getAuthCode: (arg?: ({
3942
- scopes?: string | string[] | undefined;
3943
- success?(data: {
3944
- authCode: string;
3945
- authErrorScopes: my.IMyApGetAuthCodeAuthErrorScopes;
3946
- authSuccessScopes: ("auth_base" | "auth_user" | "auth_zhima" | "order_service" | "trip_ticket" | "ride_hailing" | "charging_pile" | "ptjob_order_sync" | "indr_order_sync" | "car_rental_auth" | "hospital_order" | "consumer_finance")[];
3947
- }): void;
3948
- fail?(err: {
3949
- error?: number | undefined;
3950
- errorMessage?: string | undefined;
3951
- }): void;
3952
- complete?(arg: {
3953
- authCode: string;
3954
- authErrorScopes: my.IMyApGetAuthCodeAuthErrorScopes;
3955
- authSuccessScopes: ("auth_base" | "auth_user" | "auth_zhima" | "order_service" | "trip_ticket" | "ride_hailing" | "charging_pile" | "ptjob_order_sync" | "indr_order_sync" | "car_rental_auth" | "hospital_order" | "consumer_finance")[];
3956
- } | {
3957
- error?: number | undefined;
3958
- errorMessage?: string | undefined;
3959
- }): void;
3960
- } & import("@rsmax/framework-shared").PromisifyArgs<{
3961
- authCode: string;
3962
- authErrorScopes: my.IMyApGetAuthCodeAuthErrorScopes;
3963
- authSuccessScopes: ("auth_base" | "auth_user" | "auth_zhima" | "order_service" | "trip_ticket" | "ride_hailing" | "charging_pile" | "ptjob_order_sync" | "indr_order_sync" | "car_rental_auth" | "hospital_order" | "consumer_finance")[];
3964
- }, {
3965
- error?: number | undefined;
3966
- errorMessage?: string | undefined;
3967
- }>) | undefined) => Promise<{
3968
- authCode: string;
3969
- authErrorScopes: my.IMyApGetAuthCodeAuthErrorScopes;
3970
- authSuccessScopes: ("auth_base" | "auth_user" | "auth_zhima" | "order_service" | "trip_ticket" | "ride_hailing" | "charging_pile" | "ptjob_order_sync" | "indr_order_sync" | "car_rental_auth" | "hospital_order" | "consumer_finance")[];
3971
- }>;
3972
- export declare const getOpenUserInfo: (arg?: ({
3973
- protocols?: my.IMyGetOpenUserInfoProtocols | undefined;
3974
- success?(data: {
3975
- response: string;
3976
- avatar: string;
3977
- code: string;
3978
- nickName: string;
3979
- msg: string;
3980
- subMsg: string;
3981
- subCode: string;
3982
- }): void;
3983
- fail?(err: {
3984
- error?: number | undefined;
3985
- errorMessage?: string | undefined;
3986
- }): void;
3987
- complete?(arg: {
3988
- response: string;
3989
- avatar: string;
3990
- code: string;
3991
- nickName: string;
3992
- msg: string;
3993
- subMsg: string;
3994
- subCode: string;
3995
- } | {
3996
- error?: number | undefined;
3997
- errorMessage?: string | undefined;
3998
- }): void;
3999
- } & import("@rsmax/framework-shared").PromisifyArgs<{
4000
- response: string;
4001
- avatar: string;
4002
- code: string;
4003
- nickName: string;
4004
- msg: string;
4005
- subMsg: string;
4006
- subCode: string;
4007
- }, {
4008
- error?: number | undefined;
4009
- errorMessage?: string | undefined;
4010
- }>) | undefined) => Promise<{
4011
- response: string;
4012
- avatar: string;
4013
- code: string;
4014
- nickName: string;
4015
- msg: string;
4016
- subMsg: string;
4017
- subCode: string;
4018
- }>;
4019
- export declare const getAddress: (arg?: ({
4020
- success?(data: {
4021
- resultStatus: "6001";
4022
- result: "";
4023
- } | {
4024
- resultStatus: "9000";
4025
- result: my.IMyApGetAddressResult;
4026
- }): void;
4027
- fail?(err: {
4028
- error?: number | undefined;
4029
- errorMessage?: string | undefined;
4030
- } | {
4031
- error: 4;
4032
- errorMessage: "无权调用该接口";
4033
- }): void;
4034
- complete?(arg: {
4035
- resultStatus: "6001";
4036
- result: "";
4037
- } | {
4038
- resultStatus: "9000";
4039
- result: my.IMyApGetAddressResult;
4040
- } | {
4041
- error?: number | undefined;
4042
- errorMessage?: string | undefined;
4043
- } | {
4044
- error: 4;
4045
- errorMessage: "无权调用该接口";
4046
- }): void;
4047
- } & import("@rsmax/framework-shared").PromisifyArgs<{
4048
- resultStatus: "6001";
4049
- result: "";
4050
- } | {
4051
- resultStatus: "9000";
4052
- result: my.IMyApGetAddressResult;
4053
- }, {
4054
- error?: number | undefined;
4055
- errorMessage?: string | undefined;
4056
- } | {
4057
- error: 4;
4058
- errorMessage: "无权调用该接口";
4059
- }>) | undefined) => Promise<{
4060
- resultStatus: "6001";
4061
- result: "";
4062
- } | {
4063
- resultStatus: "9000";
4064
- result: my.IMyApGetAddressResult;
4065
- }>;
4066
- export declare const getPhoneNumber: (arg?: ({
4067
- protocols?: my.IMyGetPhoneNumberProtocols | undefined;
4068
- success?(data: {
4069
- response: string;
4070
- }): void;
4071
- fail?(err: {
4072
- error?: number | undefined;
4073
- errorMessage?: string | undefined;
4074
- }): void;
4075
- complete?(arg: {
4076
- response: string;
4077
- } | {
4078
- error?: number | undefined;
4079
- errorMessage?: string | undefined;
4080
- }): void;
4081
- } & import("@rsmax/framework-shared").PromisifyArgs<{
4082
- response: string;
4083
- }, {
4084
- error?: number | undefined;
4085
- errorMessage?: string | undefined;
4086
- }>) | undefined) => Promise<{
4087
- response: string;
4088
- }>;
4089
- export declare const paySignCenter: (arg?: ({
4090
- signStr: string;
4091
- success?(data: {
4092
- result: string;
4093
- resultStatus: string;
4094
- }): void;
4095
- fail?(err: {
4096
- error?: number | undefined;
4097
- errorMessage?: string | undefined;
4098
- }): void;
4099
- complete?(arg: {
4100
- result: string;
4101
- resultStatus: string;
4102
- } | {
4103
- error?: number | undefined;
4104
- errorMessage?: string | undefined;
4105
- }): void;
4106
- } & import("@rsmax/framework-shared").PromisifyArgs<{
4107
- result: string;
4108
- resultStatus: string;
4109
- }, {
4110
- error?: number | undefined;
4111
- errorMessage?: string | undefined;
4112
- }>) | undefined) => Promise<{
4113
- result: string;
4114
- resultStatus: string;
4115
- }>;
4116
- export declare const openCardList: (arg?: any) => Promise<any>;
4117
- export declare const openCardDetail: (arg?: any) => Promise<any>;
4118
- export declare const openMerchantCardList: (arg?: any) => Promise<any>;
4119
- export declare const openMerchantCard: (arg?: any) => Promise<any>;
4120
- export declare const requestSubscribeMessage: (arg?: ({
4121
- appId?: string | undefined;
4122
- aboveContent?: boolean | undefined;
4123
- entityIds: string[];
4124
- thirdTypeAppId?: string | undefined;
4125
- sceneCode?: string | undefined;
4126
- relatedOwnerId?: string | undefined;
4127
- extInfo?: my.IMyRequestSubscribeMessageExtInfo | undefined;
4128
- success?(data: {
4129
- [entityId: string]: unknown;
4130
- behavior: "" | "subscribe" | "cancel";
4131
- show: boolean;
4132
- keep: boolean;
4133
- refuse: boolean;
4134
- errorCode?: number | undefined;
4135
- errorMessage?: string | undefined;
4136
- result?: my.IMyRequestSubscribeMessageResult | undefined;
4137
- }): void;
4138
- fail?(err: {
4139
- error?: number | undefined;
4140
- errorMessage?: string | undefined;
4141
- }): void;
4142
- complete?(arg: {
4143
- [entityId: string]: unknown;
4144
- behavior: "" | "subscribe" | "cancel";
4145
- show: boolean;
4146
- keep: boolean;
4147
- refuse: boolean;
4148
- errorCode?: number | undefined;
4149
- errorMessage?: string | undefined;
4150
- result?: my.IMyRequestSubscribeMessageResult | undefined;
4151
- } | {
4152
- error?: number | undefined;
4153
- errorMessage?: string | undefined;
4154
- }): void;
4155
- } & import("@rsmax/framework-shared").PromisifyArgs<{
4156
- [entityId: string]: unknown;
4157
- behavior: "" | "subscribe" | "cancel";
4158
- show: boolean;
4159
- keep: boolean;
4160
- refuse: boolean;
4161
- errorCode?: number | undefined;
4162
- errorMessage?: string | undefined;
4163
- result?: my.IMyRequestSubscribeMessageResult | undefined;
4164
- }, {
4165
- error?: number | undefined;
4166
- errorMessage?: string | undefined;
4167
- }>) | undefined) => Promise<{
4168
- [entityId: string]: unknown;
4169
- behavior: "" | "subscribe" | "cancel";
4170
- show: boolean;
4171
- keep: boolean;
4172
- refuse: boolean;
4173
- errorCode?: number | undefined;
4174
- errorMessage?: string | undefined;
4175
- result?: my.IMyRequestSubscribeMessageResult | undefined;
4176
- }>;
4177
- export declare const unsubscribeMessage: (arg?: ({
4178
- entityIds: string[];
4179
- success?(data: {
4180
- success?: boolean | undefined;
4181
- error?: number | undefined;
4182
- errorMessage?: string | undefined;
4183
- }): void;
4184
- fail?(err: {
4185
- error?: number | undefined;
4186
- errorMessage?: string | undefined;
4187
- }): void;
4188
- complete?(arg: {
4189
- success?: boolean | undefined;
4190
- error?: number | undefined;
4191
- errorMessage?: string | undefined;
4192
- } | {
4193
- error?: number | undefined;
4194
- errorMessage?: string | undefined;
4195
- }): void;
4196
- } & import("@rsmax/framework-shared").PromisifyArgs<{
4197
- success?: boolean | undefined;
4198
- error?: number | undefined;
4199
- errorMessage?: string | undefined;
4200
- }, {
4201
- error?: number | undefined;
4202
- errorMessage?: string | undefined;
4203
- }>) | undefined) => Promise<{
4204
- success?: boolean | undefined;
4205
- error?: number | undefined;
4206
- errorMessage?: string | undefined;
4207
- }>;
4208
- export declare const getExtConfigSync: typeof my.getExtConfigSync;
4209
- export declare const getExtConfig: (arg?: ({
4210
- success?(data: {
4211
- data: Record<string, unknown>;
4212
- extConfig?: Record<string, unknown> | undefined;
4213
- }): void;
4214
- fail?(err: {
4215
- error?: number | undefined;
4216
- errorMessage?: string | undefined;
4217
- }): void;
4218
- complete?(arg: {
4219
- data: Record<string, unknown>;
4220
- extConfig?: Record<string, unknown> | undefined;
4221
- } | {
4222
- error?: number | undefined;
4223
- errorMessage?: string | undefined;
4224
- }): void;
4225
- } & import("@rsmax/framework-shared").PromisifyArgs<{
4226
- data: Record<string, unknown>;
4227
- extConfig?: Record<string, unknown> | undefined;
4228
- }, {
4229
- error?: number | undefined;
4230
- errorMessage?: string | undefined;
4231
- }>) | undefined) => Promise<{
4232
- data: Record<string, unknown>;
4233
- extConfig?: Record<string, unknown> | undefined;
4234
- }>;
4235
- export declare const openVoucherList: (arg?: ({
4236
- success?(data: {}): void;
4237
- fail?(err: {
4238
- error?: number | undefined;
4239
- errorMessage?: string | undefined;
4240
- }): void;
4241
- complete?(arg: {
4242
- error?: number | undefined;
4243
- errorMessage?: string | undefined;
4244
- }): void;
4245
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
4246
- error?: number | undefined;
4247
- errorMessage?: string | undefined;
4248
- }>) | undefined) => Promise<{}>;
4249
- export declare const openMerchantVoucherList: (arg?: ({
4250
- partnerId: string;
4251
- success?(data: {}): void;
4252
- fail?(err: {
4253
- error?: number | undefined;
4254
- errorMessage?: string | undefined;
4255
- }): void;
4256
- complete?(arg: {
4257
- error?: number | undefined;
4258
- errorMessage?: string | undefined;
4259
- }): void;
4260
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
4261
- error?: number | undefined;
4262
- errorMessage?: string | undefined;
4263
- }>) | undefined) => Promise<{}>;
4264
- export declare const openVoucherDetail: (arg?: ({
4265
- partnerId: string;
4266
- serialNumber: string;
4267
- success?(data: {}): void;
4268
- fail?(err: {
4269
- error?: number | undefined;
4270
- errorMessage?: string | undefined;
4271
- }): void;
4272
- complete?(arg: {
4273
- error?: number | undefined;
4274
- errorMessage?: string | undefined;
4275
- }): void;
4276
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
4277
- error?: number | undefined;
4278
- errorMessage?: string | undefined;
4279
- }>) | undefined) => Promise<{}>;
4280
- export declare const openKBVoucherDetail: (arg?: ({
4281
- partnerId: string;
4282
- serialNumber: string;
4283
- success?(data: {}): void;
4284
- fail?(err: {
4285
- error?: number | undefined;
4286
- errorMessage?: string | undefined;
4287
- }): void;
4288
- complete?(arg: {
4289
- error?: number | undefined;
4290
- errorMessage?: string | undefined;
4291
- }): void;
4292
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
4293
- error?: number | undefined;
4294
- errorMessage?: string | undefined;
4295
- }>) | undefined) => Promise<{}>;
4296
- export declare const openTicketList: (arg?: ({
4297
- success?(data: {}): void;
4298
- fail?(err: {
4299
- error?: number | undefined;
4300
- errorMessage?: string | undefined;
4301
- }): void;
4302
- complete?(arg: {
4303
- error?: number | undefined;
4304
- errorMessage?: string | undefined;
4305
- }): void;
4306
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
4307
- error?: number | undefined;
4308
- errorMessage?: string | undefined;
4309
- }>) | undefined) => Promise<{}>;
4310
- export declare const openMerchantTicketList: (arg?: ({
4311
- partnerId: string;
4312
- success?(data: {}): void;
4313
- fail?(err: {
4314
- error?: number | undefined;
4315
- errorMessage?: string | undefined;
4316
- }): void;
4317
- complete?(arg: {
4318
- error?: number | undefined;
4319
- errorMessage?: string | undefined;
4320
- }): void;
4321
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
4322
- error?: number | undefined;
4323
- errorMessage?: string | undefined;
4324
- }>) | undefined) => Promise<{}>;
4325
- export declare const openTicketDetail: (arg?: ({
4326
- partnerId: string;
4327
- serialNumber: string;
4328
- success?(data: {}): void;
4329
- fail?(err: {
4330
- error?: number | undefined;
4331
- errorMessage?: string | undefined;
4332
- }): void;
4333
- complete?(arg: {
4334
- error?: number | undefined;
4335
- errorMessage?: string | undefined;
4336
- }): void;
4337
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
4338
- error?: number | undefined;
4339
- errorMessage?: string | undefined;
4340
- }>) | undefined) => Promise<{}>;
4341
- export declare const checkBeforeAddOrder: (arg?: ({
4342
- outItemList?: my.IMyCheckBeforeAddOrderOutItemList[] | undefined;
4343
- success?(data: {
4344
- requireOrder: number;
4345
- sourceId: string;
4346
- sceneId: string;
4347
- }): void;
4348
- fail?(err: {
4349
- error?: number | undefined;
4350
- errorMessage?: string | undefined;
4351
- } | {
4352
- error: 11;
4353
- errorMessage: "服务异常请重试";
4354
- }): void;
4355
- complete?(arg: {
4356
- requireOrder: number;
4357
- sourceId: string;
4358
- sceneId: string;
4359
- } | {
4360
- error?: number | undefined;
4361
- errorMessage?: string | undefined;
4362
- } | {
4363
- error: 11;
4364
- errorMessage: "服务异常请重试";
4365
- }): void;
4366
- } & import("@rsmax/framework-shared").PromisifyArgs<{
4367
- requireOrder: number;
4368
- sourceId: string;
4369
- sceneId: string;
4370
- }, {
4371
- error?: number | undefined;
4372
- errorMessage?: string | undefined;
4373
- } | {
4374
- error: 11;
4375
- errorMessage: "服务异常请重试";
4376
- }>) | undefined) => Promise<{
4377
- requireOrder: number;
4378
- sourceId: string;
4379
- sceneId: string;
4380
- }>;
4381
- export declare const prepareUseCertificate: (arg?: ({
4382
- certificateId: string;
4383
- success?(data: {}): void;
4384
- fail?(err: {
4385
- error?: number | undefined;
4386
- errorMessage?: string | undefined;
4387
- }): void;
4388
- complete?(arg: {
4389
- error?: number | undefined;
4390
- errorMessage?: string | undefined;
4391
- }): void;
4392
- } & import("@rsmax/framework-shared").PromisifyArgs<{}, {
4393
- error?: number | undefined;
4394
- errorMessage?: string | undefined;
4395
- }>) | undefined) => Promise<{}>;