hylid-bridge 4.0.24-alpha.3 → 4.0.26-alpha.1

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.
Files changed (89) hide show
  1. package/README.md +5 -5
  2. package/lib/bridges.d.ts +41 -57
  3. package/lib/bridges.js +23 -32
  4. package/lib/clients/mp/alipay/index.d.ts +242 -4
  5. package/lib/clients/mp/alipay/index.js +92 -4
  6. package/lib/clients/mp/alipayhk/index.d.ts +235 -2
  7. package/lib/clients/mp/alipayhk/index.js +90 -3
  8. package/lib/clients/mp/chope/index.d.ts +235 -2
  9. package/lib/clients/mp/chope/index.js +90 -3
  10. package/lib/clients/mp/dana/index.d.ts +235 -2
  11. package/lib/clients/mp/dana/index.js +90 -3
  12. package/lib/clients/mp/demo/index.d.ts +266 -8
  13. package/lib/clients/mp/demo/index.js +114 -3
  14. package/lib/clients/mp/gcash/index.d.ts +235 -2
  15. package/lib/clients/mp/gcash/index.js +90 -3
  16. package/lib/clients/mp/tmn/index.d.ts +235 -2
  17. package/lib/clients/mp/tmn/index.js +90 -3
  18. package/lib/clients/mp/tngd/index.d.ts +235 -2
  19. package/lib/clients/mp/tngd/index.js +90 -3
  20. package/lib/clients/mp/wechat/index.d.ts +0 -1
  21. package/lib/clients/mp_web/alipay/index.d.ts +244 -4
  22. package/lib/clients/mp_web/alipay/index.js +94 -4
  23. package/lib/clients/mp_web/alipayhk/index.d.ts +315 -16
  24. package/lib/clients/mp_web/alipayhk/index.js +105 -8
  25. package/lib/clients/mp_web/chope/index.d.ts +235 -2
  26. package/lib/clients/mp_web/chope/index.js +89 -2
  27. package/lib/clients/mp_web/dana/index.d.ts +314 -16
  28. package/lib/clients/mp_web/dana/index.js +104 -8
  29. package/lib/clients/mp_web/demo/index.d.ts +265 -8
  30. package/lib/clients/mp_web/demo/index.js +112 -2
  31. package/lib/clients/mp_web/gcash/index.d.ts +314 -16
  32. package/lib/clients/mp_web/gcash/index.js +104 -8
  33. package/lib/clients/mp_web/mpay/index.d.ts +315 -24
  34. package/lib/clients/mp_web/mpay/index.js +106 -12
  35. package/lib/clients/mp_web/tmn/index.d.ts +314 -16
  36. package/lib/clients/mp_web/tmn/index.js +104 -8
  37. package/lib/clients/mp_web/tngd/index.d.ts +314 -16
  38. package/lib/clients/mp_web/tngd/index.js +104 -8
  39. package/lib/clients/mp_web/toss/index.d.ts +322 -16
  40. package/lib/clients/mp_web/toss/index.js +106 -8
  41. package/lib/clients/web/alipay/index.d.ts +231 -115
  42. package/lib/clients/web/alipay/index.js +115 -74
  43. package/lib/clients/web/demo/index.d.ts +181 -60
  44. package/lib/clients/web/demo/index.js +106 -48
  45. package/lib/clients/web/h5/index.d.ts +22 -14
  46. package/lib/clients/web/h5/index.js +10 -8
  47. package/lib/clients/web/tngdh5ng/index.d.ts +29 -21
  48. package/lib/clients/web/tngdh5ng/index.js +26 -18
  49. package/lib/clients/web/worldfirst/index.d.ts +7 -0
  50. package/lib/clients/web/worldfirst/index.js +7 -0
  51. package/lib/clients/web/worldfirst/wfOpenDocument.d.ts +20 -0
  52. package/lib/clients/web/worldfirst/wfOpenDocument.js +8 -0
  53. package/lib/common/apis/custom/mp_web/mpay/getAppToken.d.ts +1 -6
  54. package/lib/common/apis/generated/mp/getAppToken.d.ts +2 -14
  55. package/lib/common/apis/generated/mp_web/getAppToken.d.ts +2 -14
  56. package/lib/common/apis/generated/web/getAppToken.d.ts +2 -14
  57. package/lib/dsl.d.ts +12 -11
  58. package/lib/dsl.js +2 -2
  59. package/lib/umd/index.js +1 -1
  60. package/lib/umd/mp_web_alipay.js +1 -1
  61. package/lib/umd/mp_web_alipayhk.js +1 -1
  62. package/lib/umd/mp_web_chope.js +1 -1
  63. package/lib/umd/mp_web_dana.js +1 -1
  64. package/lib/umd/mp_web_demo.js +1 -1
  65. package/lib/umd/mp_web_gcash.js +1 -1
  66. package/lib/umd/mp_web_mpay.js +1 -1
  67. package/lib/umd/mp_web_tmn.js +1 -1
  68. package/lib/umd/mp_web_tngd.js +1 -1
  69. package/lib/umd/mp_web_toss.js +1 -1
  70. package/lib/umd/web_alipay.js +1 -1
  71. package/lib/umd/web_demo.js +1 -1
  72. package/lib/umd/web_h5.js +1 -1
  73. package/lib/umd/web_tngdh5ng.js +1 -1
  74. package/lib/umd/web_worldfirst.js +1 -0
  75. package/lib/whichCanIUse/compatibilities.json +125123 -1659
  76. package/lib/whichCanIUse/index.d.ts +6 -21
  77. package/lib/whichCanIUse/index.js +43 -65
  78. package/package.json +9 -9
  79. package/lib/clients/web/alipay/getClientInfo.d.ts +0 -2
  80. package/lib/clients/web/alipay/getClientInfo.js +0 -3
  81. package/lib/clients/web/alipayhk/getClientInfo.d.ts +0 -2
  82. package/lib/clients/web/alipayhk/getClientInfo.js +0 -3
  83. package/lib/clients/web/alipayhk/index.d.ts +0 -24
  84. package/lib/clients/web/alipayhk/index.js +0 -9
  85. package/lib/common/apis/generated/web/getClientInfo.d.ts +0 -33
  86. package/lib/common/apis/generated/web/getClientInfo.js +0 -8
  87. package/lib/umd/web_alipayhk.js +0 -1
  88. /package/lib/clients/web/{alipayhk → demo}/getAppToken.d.ts +0 -0
  89. /package/lib/clients/web/{alipayhk → demo}/getAppToken.js +0 -0
@@ -122,25 +122,48 @@ import { canIUse } from '../../../common/apis/generated/mp/canIUse';
122
122
  import { showSharePanel, showSharePanelAsync } from '../../../common/apis/generated/mp/showSharePanel';
123
123
  declare const _default: {
124
124
  addPhoneContact: (args: Partial<AddPhoneContactArgs>) => void;
125
+ addPhoneContactAsync: (args?: Partial<AddPhoneContactArgs> | undefined) => Promise<{
126
+ success: true;
127
+ }>;
125
128
  alert: (args?: AlertArgs | undefined) => void;
129
+ alertAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
126
130
  chooseImage: (args: ChooseImageArgs) => void;
131
+ chooseImageAsync: (args?: ChooseImageArgs | undefined) => Promise<{
132
+ apFilePaths: string[];
133
+ }>;
127
134
  choosePhoneContact: (args: ChoosePhoneContactArgs) => void;
135
+ choosePhoneContactAsync: (args?: ChoosePhoneContactArgs | undefined) => Promise<ChoosePhoneContactCallbackValue>;
128
136
  clearStorage: (args?: AsyncCallback<any> | undefined) => void;
137
+ clearStorageAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
129
138
  clearStorageSync: () => void;
130
139
  closeBluetoothAdapter: (args?: AsyncCallback<any> | undefined) => void;
140
+ closeBluetoothAdapterAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
131
141
  closeSocket: (args?: AsyncCallback<any> | undefined) => void;
142
+ closeSocketAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
132
143
  confirm: (args: ConfirmArgs) => void;
144
+ confirmAsync: (args?: ConfirmArgs | undefined) => Promise<ConfirmCallbackValue>;
133
145
  connectBLEDevice: (args: {
134
146
  deviceId: string;
135
147
  } & AsyncCallback<any>) => void;
148
+ connectBLEDeviceAsync: (args?: ({
149
+ deviceId: string;
150
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
136
151
  connectSocket: (args?: ConnectSocketArgs | undefined) => void;
152
+ connectSocketAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
137
153
  createAnimation: (args?: CreateAnimationArgs | undefined) => Animation;
138
154
  createWebViewContext: (id: string) => WebViewContext;
139
155
  datePicker: (args?: DatePickerArgs | undefined) => void;
156
+ datePickerAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
140
157
  disconnectBLEDevice: (args: {
141
158
  deviceId: string;
142
159
  } & AsyncCallback<any>) => void;
160
+ disconnectBLEDeviceAsync: (args?: ({
161
+ deviceId: string;
162
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
143
163
  downloadFile: (args: DownloadFileArgs) => void;
164
+ downloadFileAsync: (args?: DownloadFileArgs | undefined) => Promise<{
165
+ apFilePath: string;
166
+ }>;
144
167
  getAppIdSync: () => {
145
168
  appId: string;
146
169
  };
@@ -148,10 +171,15 @@ declare const _default: {
148
171
  scopes: string | string[];
149
172
  appId?: string | undefined;
150
173
  } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
174
+ getAuthCodeAsync: (args?: ({
175
+ scopes: string | string[];
176
+ appId?: string | undefined;
177
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) | undefined) => Promise<GetAuthCodeCallbackValue>;
151
178
  getBatteryInfo: (args?: AsyncCallback<{
152
179
  level: number;
153
180
  isCharging: boolean;
154
181
  }> | undefined) => void;
182
+ getBatteryInfoAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
155
183
  getBLEDeviceCharacteristics: (args: {
156
184
  deviceId: string;
157
185
  serviceId: string;
@@ -168,6 +196,34 @@ declare const _default: {
168
196
  };
169
197
  }[];
170
198
  }>) => void;
199
+ getBLEDeviceCharacteristicsAsync: (args?: ({
200
+ deviceId: string;
201
+ serviceId: string;
202
+ } & AsyncCallback<{
203
+ characteristic: {
204
+ characteristicId: string;
205
+ serviceId: string;
206
+ value: string;
207
+ properties: {
208
+ read: boolean;
209
+ write: boolean;
210
+ notify: boolean;
211
+ indicate: boolean;
212
+ };
213
+ }[];
214
+ }>) | undefined) => Promise<{
215
+ characteristic: {
216
+ characteristicId: string;
217
+ serviceId: string;
218
+ value: string;
219
+ properties: {
220
+ read: boolean;
221
+ write: boolean;
222
+ notify: boolean;
223
+ indicate: boolean;
224
+ };
225
+ }[];
226
+ }>;
171
227
  getBLEDeviceServices: (args: {
172
228
  deviceId: string;
173
229
  } & AsyncCallback<{
@@ -176,35 +232,102 @@ declare const _default: {
176
232
  serviceId: string;
177
233
  }[];
178
234
  }>) => void;
235
+ getBLEDeviceServicesAsync: (args?: ({
236
+ deviceId: string;
237
+ } & AsyncCallback<{
238
+ services: {
239
+ isPrimary: boolean;
240
+ serviceId: string;
241
+ }[];
242
+ }>) | undefined) => Promise<{
243
+ services: {
244
+ isPrimary: boolean;
245
+ serviceId: string;
246
+ }[];
247
+ }>;
179
248
  getBluetoothAdapterState: (args: AsyncCallback<{
180
249
  discovering: boolean;
181
250
  available: boolean;
182
251
  }>) => void;
252
+ getBluetoothAdapterStateAsync: (args?: AsyncCallback<{
253
+ discovering: boolean;
254
+ available: boolean;
255
+ }> | undefined) => Promise<{
256
+ discovering: boolean;
257
+ available: boolean;
258
+ }>;
183
259
  getBluetoothDevices: (args: AsyncCallback<{
184
260
  devices: BluetoothDevices[];
185
261
  }>) => void;
262
+ getBluetoothDevicesAsync: (args?: AsyncCallback<{
263
+ devices: BluetoothDevices[];
264
+ }> | undefined) => Promise<{
265
+ devices: BluetoothDevices[];
266
+ }>;
186
267
  getClipboard: (args: GetClipboardArgs) => void;
268
+ getClipboardAsync: (args?: GetClipboardArgs | undefined) => Promise<{
269
+ text: string;
270
+ }>;
187
271
  getConnectedBluetoothDevices: (args: {
188
272
  deviceId: string;
189
273
  } & AsyncCallback<any>) => void;
274
+ getConnectedBluetoothDevicesAsync: (args?: ({
275
+ deviceId: string;
276
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
190
277
  getFileInfo: (args: GetFileArgs) => void;
278
+ getFileInfoAsync: (args?: GetFileArgs | undefined) => Promise<{
279
+ size: number;
280
+ digest: string;
281
+ }>;
191
282
  getImageInfo: (args: GetImageInfo) => void;
283
+ getImageInfoAsync: (args?: GetImageInfo | undefined) => Promise<GetImageInfoCallbackValue>;
192
284
  getLocation: (args: {
193
285
  bizType?: string | undefined;
194
286
  requestType?: number | undefined;
195
287
  timeout?: number | undefined;
196
288
  horizontalAccuracy?: number | undefined;
197
289
  } & GetLocationArgs) => void;
290
+ getLocationAsync: (args?: ({
291
+ bizType?: string | undefined;
292
+ requestType?: number | undefined;
293
+ timeout?: number | undefined;
294
+ horizontalAccuracy?: number | undefined;
295
+ } & GetLocationArgs) | undefined) => Promise<GetLocationCallbackValue>;
198
296
  getNetworkType: (args: GetNetworkTypeArgs) => void;
297
+ getNetworkTypeAsync: (args?: GetNetworkTypeArgs | undefined) => Promise<GetNetworkTypeCallbackValue>;
199
298
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
299
+ getOpenUserInfoAsync: (args?: GetOpenUserInfoArgs | undefined) => Promise<{
300
+ response: string;
301
+ }>;
200
302
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
303
+ getSavedFileInfoAsync: (args?: GetSavedFileInfo | undefined) => Promise<{
304
+ size: number;
305
+ createTime: number;
306
+ }>;
201
307
  getSavedFileList: (args: GetSavedFileListArgs) => void;
308
+ getSavedFileListAsync: (args?: GetSavedFileListArgs | undefined) => Promise<{
309
+ fileList: {
310
+ size: number;
311
+ createTime: number;
312
+ apFilePath: string;
313
+ }[];
314
+ }>;
202
315
  getScreenBrightness: (args: AsyncCallback<{
203
316
  brightness: number;
204
317
  }>) => void;
318
+ getScreenBrightnessAsync: (args?: AsyncCallback<{
319
+ brightness: number;
320
+ }> | undefined) => Promise<{
321
+ brightness: number;
322
+ }>;
205
323
  getServerTime: (args: AsyncCallback<{
206
324
  time: number;
207
325
  }>) => void;
326
+ getServerTimeAsync: (args?: AsyncCallback<{
327
+ time: number;
328
+ }> | undefined) => Promise<{
329
+ time: number;
330
+ }>;
208
331
  getSetting: (args?: AsyncCallback<{
209
332
  authSetting: {
210
333
  camera: boolean;
@@ -214,29 +337,50 @@ declare const _default: {
214
337
  phoneNumber: boolean;
215
338
  };
216
339
  }> | undefined) => void;
340
+ getSettingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
217
341
  getSiteInfo: (args: AsyncCallback<GetSiteInfoCallbackValue>) => void;
342
+ getSiteInfoAsync: (args?: AsyncCallback<GetSiteInfoCallbackValue> | undefined) => Promise<GetSiteInfoCallbackValue>;
218
343
  getStorage: (args: GetStorage) => void;
344
+ getStorageAsync: (args?: GetStorage | undefined) => Promise<{
345
+ data: any;
346
+ }>;
219
347
  getStorageSync: (args: {
220
348
  key: string;
221
349
  }) => {
222
350
  data: any;
223
351
  };
224
352
  getSystemInfo: (args: GetSystemInfoArgs) => void;
353
+ getSystemInfoAsync: (args?: GetSystemInfoArgs | undefined) => Promise<GetSystemInfoCallbackValue>;
225
354
  getSystemInfoSync: () => GetSystemInfoCallbackValue;
226
355
  hideBackHome: () => void;
356
+ hideBackHomeAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
227
357
  hideKeyboard: () => void;
358
+ hideKeyboardAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
228
359
  hideLoading: (args?: HideLoadingArgs | undefined) => void;
360
+ hideLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
229
361
  hideNavigationBarLoading: () => void;
362
+ hideNavigationBarLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
230
363
  hideTabBar: (args: HideTabBarArgs) => void;
364
+ hideTabBarAsync: (args?: HideTabBarArgs | undefined) => Promise<undefined>;
231
365
  hideToast: (args?: AsyncCallback<any> | undefined) => void;
366
+ hideToastAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
232
367
  makePhoneCall: (args: {
233
368
  number: string;
234
369
  }) => void;
370
+ makePhoneCallAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
235
371
  multiLevelSelect: (args: MultiLevelSelectArgs) => void;
372
+ multiLevelSelectAsync: (args?: MultiLevelSelectArgs | undefined) => Promise<{
373
+ success: boolean;
374
+ result: any[];
375
+ }>;
236
376
  navigateBack: (args: NavigateBackArgs) => void;
377
+ navigateBackAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
237
378
  navigateBackMiniProgram: (args: NavigateBackMiniProgramArgs) => void;
379
+ navigateBackMiniProgramAsync: (args?: NavigateBackMiniProgramArgs | undefined) => Promise<undefined>;
238
380
  navigateTo: (args: NavigateToArgs) => void;
381
+ navigateToAsync: (args?: NavigateToArgs | undefined) => Promise<undefined>;
239
382
  navigateToMiniProgram: (args: NavigateToMiniProgramArgs) => void;
383
+ navigateToMiniProgramAsync: (args?: NavigateToMiniProgramArgs | undefined) => Promise<undefined>;
240
384
  notifyBLECharacteristicValueChange: (args: {
241
385
  deviceId: string;
242
386
  serviceId: string;
@@ -244,6 +388,13 @@ declare const _default: {
244
388
  descriptorId?: string | undefined;
245
389
  state?: boolean | undefined;
246
390
  } & AsyncCallback<any>) => void;
391
+ notifyBLECharacteristicValueChangeAsync: (args?: ({
392
+ deviceId: string;
393
+ serviceId: string;
394
+ characteristicId: string;
395
+ descriptorId?: string | undefined;
396
+ state?: boolean | undefined;
397
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
247
398
  offAccelerometerChange: (args?: ((arg: any) => void) | undefined) => void;
248
399
  offBLECharacteristicValueChange: (args?: ((arg: any) => void) | undefined) => void;
249
400
  offBLEConnectionStateChanged: (args?: ((arg: any) => void) | undefined) => void;
@@ -293,10 +444,15 @@ declare const _default: {
293
444
  onSocketOpen: (args: (arg: any) => void) => void;
294
445
  onUserCaptureScreen: (args: () => void) => void;
295
446
  openBluetoothAdapter: (args: AsyncCallback<any>) => void;
447
+ openBluetoothAdapterAsync: (args?: AsyncCallback<any> | undefined) => Promise<any>;
296
448
  openDocument: (args: {
297
449
  filePath: string;
298
450
  fileType: string;
299
451
  } & AsyncCallback<any>) => void;
452
+ openDocumentAsync: (args?: ({
453
+ filePath: string;
454
+ fileType: string;
455
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
300
456
  openSetting: (args?: AsyncCallback<{
301
457
  authSetting: {
302
458
  camera: any;
@@ -306,14 +462,29 @@ declare const _default: {
306
462
  phoneNumber: any;
307
463
  };
308
464
  }> | undefined) => void;
465
+ openSettingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
309
466
  pageScrollTo: (args: PageScrollToArgs) => void;
467
+ pageScrollToAsync: (args?: PageScrollToArgs | undefined) => Promise<undefined>;
310
468
  previewImage: (args: PreviewImageArgs) => void;
469
+ previewImageAsync: (args?: PreviewImageArgs | undefined) => Promise<undefined>;
311
470
  prompt: (args: PromptArgs) => void;
471
+ promptAsync: (args?: PromptArgs | undefined) => Promise<PromptCallbackValue>;
312
472
  readBLECharacteristicValue: (args: ReadBLECharacteristicValueArgs) => void;
473
+ readBLECharacteristicValueAsync: (args?: ReadBLECharacteristicValueArgs | undefined) => Promise<{
474
+ characteristic: {
475
+ characteristicId: string;
476
+ serviceId: string;
477
+ value: string;
478
+ };
479
+ }>;
313
480
  redirectTo: (args: RedirectToArgs) => void;
481
+ redirectToAsync: (args?: RedirectToArgs | undefined) => Promise<undefined>;
314
482
  reLaunch: (args: ReLaunchArgs) => void;
483
+ reLaunchAsync: (args?: ReLaunchArgs | undefined) => Promise<undefined>;
315
484
  removeSavedFile: (args: RemoveSavedFileArgs) => void;
485
+ removeSavedFileAsync: (args?: RemoveSavedFileArgs | undefined) => Promise<void>;
316
486
  removeStorage: (args: RemoveStorageArgs) => void;
487
+ removeStorageAsync: (args?: RemoveStorageArgs | undefined) => Promise<undefined>;
317
488
  removeStorageSync: (args: {
318
489
  key: string;
319
490
  }) => void;
@@ -331,49 +502,111 @@ declare const _default: {
331
502
  status: number;
332
503
  headers: any;
333
504
  }>) => void;
505
+ requestAsync: (args?: ({
506
+ url: string;
507
+ headers?: {
508
+ [key: string]: string;
509
+ } | undefined;
510
+ method?: "GET" | "POST" | undefined;
511
+ data?: any;
512
+ timeout?: number | undefined;
513
+ dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
514
+ } & import("@hylid/types").AsyncCallback<{
515
+ data: any;
516
+ status: number;
517
+ headers: any;
518
+ }>) | undefined) => Promise<{
519
+ data: any;
520
+ status: number;
521
+ headers: any;
522
+ }>;
334
523
  saveFile: (args: SaveFileArgs) => void;
524
+ saveFileAsync: (args?: SaveFileArgs | undefined) => Promise<{
525
+ apFilePath: string;
526
+ }>;
335
527
  saveImage: (args: SaveImageArgs) => void;
528
+ saveImageAsync: (args?: SaveImageArgs | undefined) => Promise<undefined>;
336
529
  scan: (args: ScanArgs) => void;
530
+ scanAsync: (args?: ScanArgs | undefined) => Promise<ScanCallbackValue>;
337
531
  sendSocketMessage: (args?: SendSocketMessageArgs | undefined) => void;
532
+ sendSocketMessageAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
338
533
  setBackgroundColor: (args: SetBackgroundColorArgs) => void;
534
+ setBackgroundColorAsync: (args?: SetBackgroundColorArgs | undefined) => Promise<undefined>;
339
535
  setCanPullDown: (args: {
340
536
  canPullDown: boolean;
341
537
  } & import("@hylid/types").AsyncCallback<void>) => void;
538
+ setCanPullDownAsync: (args?: ({
539
+ canPullDown: boolean;
540
+ } & import("@hylid/types").AsyncCallback<void>) | undefined) => Promise<void>;
342
541
  setClipboard: (args: SetClipboardArgs) => void;
542
+ setClipboardAsync: (args?: SetClipboardArgs | undefined) => Promise<undefined>;
343
543
  setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
544
+ setKeepScreenOnAsync: (args?: SetKeepScreenOnArgs | undefined) => Promise<undefined>;
344
545
  setNavigationBar: (args: SetNavigationBarArgs) => void;
546
+ setNavigationBarAsync: (args?: SetNavigationBarArgs | undefined) => Promise<undefined>;
345
547
  setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
548
+ setScreenBrightnessAsync: (args?: SetScreenBrightnessArgs | undefined) => Promise<undefined>;
346
549
  setStorage: (args: SetStorage) => void;
550
+ setStorageAsync: (args?: SetStorage | undefined) => Promise<undefined>;
347
551
  setStorageSync: (args: {
348
552
  key: string;
349
553
  data: any;
350
554
  }) => void;
351
555
  setTabBarStyle: (args: SetTabBarStyleArgs) => void;
556
+ setTabBarStyleAsync: (args?: SetTabBarStyleArgs | undefined) => Promise<any>;
352
557
  showActionSheet: (args: ShowActionSheetArgs) => void;
558
+ showActionSheetAsync: (args?: ShowActionSheetArgs | undefined) => Promise<any>;
353
559
  showAuthGuide: (args: import("@hylid/types").AsyncCallback<{
354
560
  shown: boolean;
355
561
  }> & {
356
562
  authType: string;
357
563
  bizType?: string | undefined;
358
564
  }) => void;
565
+ showAuthGuideAsync: (args?: (import("@hylid/types").AsyncCallback<{
566
+ shown: boolean;
567
+ }> & {
568
+ authType: string;
569
+ bizType?: string | undefined;
570
+ }) | undefined) => Promise<{
571
+ shown: boolean;
572
+ }>;
359
573
  showLoading: (args?: ShowLoadingArgs | undefined) => void;
574
+ showLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
360
575
  showNavigationBarLoading: () => void;
576
+ showNavigationBarLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
361
577
  showToast: (args?: ShowToastArgs | undefined) => void;
578
+ showToastAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
362
579
  signContract: (args: SignContractArgs) => void;
580
+ signContractAsync: (args?: SignContractArgs | undefined) => Promise<{
581
+ authState: string;
582
+ authCode: string;
583
+ }>;
363
584
  startBluetoothDevicesDiscovery: (args?: StartBluetoothDevicesDiscoveryArgs | undefined) => void;
585
+ startBluetoothDevicesDiscoveryAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
364
586
  startPullDownRefresh: (args?: AsyncCallback<any> | undefined) => void;
587
+ startPullDownRefreshAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
365
588
  stopBluetoothDevicesDiscovery: (args?: AsyncCallback<any> | undefined) => void;
589
+ stopBluetoothDevicesDiscoveryAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
366
590
  stopPullDownRefresh: (args?: AsyncCallback<any> | undefined) => void;
591
+ stopPullDownRefreshAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
367
592
  switchTab: (args: SwitchTabArgs) => void;
593
+ switchTabAsync: (args?: SwitchTabArgs | undefined) => Promise<undefined>;
368
594
  tradePay: (args: TradePayArgs) => void;
595
+ tradePayAsync: (args?: TradePayArgs | undefined) => Promise<{
596
+ resultCode: string;
597
+ }>;
369
598
  uploadFile: (args: UploadFileArgs) => void;
599
+ uploadFileAsync: (args?: UploadFileArgs | undefined) => Promise<UploadFileCallbackValue>;
370
600
  vibrate: (args: AsyncCallback<void>) => void;
601
+ vibrateAsync: (args?: AsyncCallback<void> | undefined) => Promise<void>;
371
602
  watchShake: (args?: AsyncCallback<any> | undefined) => void;
603
+ watchShakeAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
372
604
  writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
605
+ writeBLECharacteristicValueAsync: (args?: WriteBLECharacteristicValueArgs | undefined) => Promise<any>;
373
606
  createSelectorQuery: () => SelectorQuery;
374
607
  canIUse: (args: string) => boolean;
375
608
  showSharePanel: (args?: any) => void;
609
+ showSharePanelAsync: (args?: any) => Promise<unknown>;
376
610
  };
377
611
  export default _default;
378
- export { addPhoneContact, alert, chooseImage, choosePhoneContact, clearStorage, clearStorageSync, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, createAnimation, createWebViewContext, datePicker, disconnectBLEDevice, downloadFile, getAppIdSync, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getOpenUserInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getStorageSync, getSystemInfo, getSystemInfoSync, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, pageScrollTo, previewImage, prompt, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, removeStorageSync, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, setStorageSync, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, tradePay, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, createSelectorQuery, canIUse, showSharePanel, };
379
- export { addPhoneContactAsync, alertAsync, chooseImageAsync, choosePhoneContactAsync, clearStorageAsync, closeBluetoothAdapterAsync, closeSocketAsync, confirmAsync, connectBLEDeviceAsync, connectSocketAsync, datePickerAsync, disconnectBLEDeviceAsync, downloadFileAsync, getAuthCodeAsync, getBatteryInfoAsync, getBLEDeviceCharacteristicsAsync, getBLEDeviceServicesAsync, getBluetoothAdapterStateAsync, getBluetoothDevicesAsync, getClipboardAsync, getConnectedBluetoothDevicesAsync, getFileInfoAsync, getImageInfoAsync, getLocationAsync, getNetworkTypeAsync, getOpenUserInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSiteInfoAsync, getStorageAsync, getSystemInfoAsync, hideBackHomeAsync, hideKeyboardAsync, hideLoadingAsync, hideNavigationBarLoadingAsync, hideTabBarAsync, hideToastAsync, makePhoneCallAsync, multiLevelSelectAsync, navigateBackAsync, navigateBackMiniProgramAsync, navigateToAsync, navigateToMiniProgramAsync, notifyBLECharacteristicValueChangeAsync, openBluetoothAdapterAsync, openDocumentAsync, openSettingAsync, pageScrollToAsync, previewImageAsync, promptAsync, readBLECharacteristicValueAsync, redirectToAsync, reLaunchAsync, removeSavedFileAsync, removeStorageAsync, requestAsync, saveFileAsync, saveImageAsync, scanAsync, sendSocketMessageAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, setTabBarStyleAsync, showActionSheetAsync, showAuthGuideAsync, showLoadingAsync, showNavigationBarLoadingAsync, showToastAsync, signContractAsync, startBluetoothDevicesDiscoveryAsync, startPullDownRefreshAsync, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefreshAsync, switchTabAsync, tradePayAsync, uploadFileAsync, vibrateAsync, watchShakeAsync, writeBLECharacteristicValueAsync, showSharePanelAsync, };
612
+ export { addPhoneContact, addPhoneContactAsync, alert, alertAsync, chooseImage, chooseImageAsync, choosePhoneContact, choosePhoneContactAsync, clearStorage, clearStorageAsync, clearStorageSync, closeBluetoothAdapter, closeBluetoothAdapterAsync, closeSocket, closeSocketAsync, confirm, confirmAsync, connectBLEDevice, connectBLEDeviceAsync, connectSocket, connectSocketAsync, createAnimation, createWebViewContext, datePicker, datePickerAsync, disconnectBLEDevice, disconnectBLEDeviceAsync, downloadFile, downloadFileAsync, getAppIdSync, getAuthCode, getAuthCodeAsync, getBatteryInfo, getBatteryInfoAsync, getBLEDeviceCharacteristics, getBLEDeviceCharacteristicsAsync, getBLEDeviceServices, getBLEDeviceServicesAsync, getBluetoothAdapterState, getBluetoothAdapterStateAsync, getBluetoothDevices, getBluetoothDevicesAsync, getClipboard, getClipboardAsync, getConnectedBluetoothDevices, getConnectedBluetoothDevicesAsync, getFileInfo, getFileInfoAsync, getImageInfo, getImageInfoAsync, getLocation, getLocationAsync, getNetworkType, getNetworkTypeAsync, getOpenUserInfo, getOpenUserInfoAsync, getSavedFileInfo, getSavedFileInfoAsync, getSavedFileList, getSavedFileListAsync, getScreenBrightness, getScreenBrightnessAsync, getServerTime, getServerTimeAsync, getSetting, getSettingAsync, getSiteInfo, getSiteInfoAsync, getStorage, getStorageAsync, getStorageSync, getSystemInfo, getSystemInfoAsync, getSystemInfoSync, hideBackHome, hideBackHomeAsync, hideKeyboard, hideKeyboardAsync, hideLoading, hideLoadingAsync, hideNavigationBarLoading, hideNavigationBarLoadingAsync, hideTabBar, hideTabBarAsync, hideToast, hideToastAsync, makePhoneCall, makePhoneCallAsync, multiLevelSelect, multiLevelSelectAsync, navigateBack, navigateBackAsync, navigateBackMiniProgram, navigateBackMiniProgramAsync, navigateTo, navigateToAsync, navigateToMiniProgram, navigateToMiniProgramAsync, notifyBLECharacteristicValueChange, notifyBLECharacteristicValueChangeAsync, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openBluetoothAdapterAsync, openDocument, openDocumentAsync, openSetting, openSettingAsync, pageScrollTo, pageScrollToAsync, previewImage, previewImageAsync, prompt, promptAsync, readBLECharacteristicValue, readBLECharacteristicValueAsync, redirectTo, redirectToAsync, reLaunch, reLaunchAsync, removeSavedFile, removeSavedFileAsync, removeStorage, removeStorageAsync, removeStorageSync, request, requestAsync, saveFile, saveFileAsync, saveImage, saveImageAsync, scan, scanAsync, sendSocketMessage, sendSocketMessageAsync, setBackgroundColor, setBackgroundColorAsync, setCanPullDown, setCanPullDownAsync, setClipboard, setClipboardAsync, setKeepScreenOn, setKeepScreenOnAsync, setNavigationBar, setNavigationBarAsync, setScreenBrightness, setScreenBrightnessAsync, setStorage, setStorageAsync, setStorageSync, setTabBarStyle, setTabBarStyleAsync, showActionSheet, showActionSheetAsync, showAuthGuide, showAuthGuideAsync, showLoading, showLoadingAsync, showNavigationBarLoading, showNavigationBarLoadingAsync, showToast, showToastAsync, signContract, signContractAsync, startBluetoothDevicesDiscovery, startBluetoothDevicesDiscoveryAsync, startPullDownRefresh, startPullDownRefreshAsync, stopBluetoothDevicesDiscovery, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefresh, stopPullDownRefreshAsync, switchTab, switchTabAsync, tradePay, tradePayAsync, uploadFile, uploadFileAsync, vibrate, vibrateAsync, watchShake, watchShakeAsync, writeBLECharacteristicValue, writeBLECharacteristicValueAsync, createSelectorQuery, canIUse, showSharePanel, showSharePanelAsync, };
@@ -123,58 +123,105 @@ import { canIUse } from '../../../common/apis/generated/mp/canIUse';
123
123
  import { showSharePanel, showSharePanelAsync } from '../../../common/apis/generated/mp/showSharePanel';
124
124
  export default {
125
125
  addPhoneContact: addPhoneContact,
126
+ addPhoneContactAsync: addPhoneContactAsync,
126
127
  alert: alert,
128
+ alertAsync: alertAsync,
127
129
  chooseImage: chooseImage,
130
+ chooseImageAsync: chooseImageAsync,
128
131
  choosePhoneContact: choosePhoneContact,
132
+ choosePhoneContactAsync: choosePhoneContactAsync,
129
133
  clearStorage: clearStorage,
134
+ clearStorageAsync: clearStorageAsync,
130
135
  clearStorageSync: clearStorageSync,
131
136
  closeBluetoothAdapter: closeBluetoothAdapter,
137
+ closeBluetoothAdapterAsync: closeBluetoothAdapterAsync,
132
138
  closeSocket: closeSocket,
139
+ closeSocketAsync: closeSocketAsync,
133
140
  confirm: confirm,
141
+ confirmAsync: confirmAsync,
134
142
  connectBLEDevice: connectBLEDevice,
143
+ connectBLEDeviceAsync: connectBLEDeviceAsync,
135
144
  connectSocket: connectSocket,
145
+ connectSocketAsync: connectSocketAsync,
136
146
  createAnimation: createAnimation,
137
147
  createWebViewContext: createWebViewContext,
138
148
  datePicker: datePicker,
149
+ datePickerAsync: datePickerAsync,
139
150
  disconnectBLEDevice: disconnectBLEDevice,
151
+ disconnectBLEDeviceAsync: disconnectBLEDeviceAsync,
140
152
  downloadFile: downloadFile,
153
+ downloadFileAsync: downloadFileAsync,
141
154
  getAppIdSync: getAppIdSync,
142
155
  getAuthCode: getAuthCode,
156
+ getAuthCodeAsync: getAuthCodeAsync,
143
157
  getBatteryInfo: getBatteryInfo,
158
+ getBatteryInfoAsync: getBatteryInfoAsync,
144
159
  getBLEDeviceCharacteristics: getBLEDeviceCharacteristics,
160
+ getBLEDeviceCharacteristicsAsync: getBLEDeviceCharacteristicsAsync,
145
161
  getBLEDeviceServices: getBLEDeviceServices,
162
+ getBLEDeviceServicesAsync: getBLEDeviceServicesAsync,
146
163
  getBluetoothAdapterState: getBluetoothAdapterState,
164
+ getBluetoothAdapterStateAsync: getBluetoothAdapterStateAsync,
147
165
  getBluetoothDevices: getBluetoothDevices,
166
+ getBluetoothDevicesAsync: getBluetoothDevicesAsync,
148
167
  getClipboard: getClipboard,
168
+ getClipboardAsync: getClipboardAsync,
149
169
  getConnectedBluetoothDevices: getConnectedBluetoothDevices,
170
+ getConnectedBluetoothDevicesAsync: getConnectedBluetoothDevicesAsync,
150
171
  getFileInfo: getFileInfo,
172
+ getFileInfoAsync: getFileInfoAsync,
151
173
  getImageInfo: getImageInfo,
174
+ getImageInfoAsync: getImageInfoAsync,
152
175
  getLocation: getLocation,
176
+ getLocationAsync: getLocationAsync,
153
177
  getNetworkType: getNetworkType,
178
+ getNetworkTypeAsync: getNetworkTypeAsync,
154
179
  getOpenUserInfo: getOpenUserInfo,
180
+ getOpenUserInfoAsync: getOpenUserInfoAsync,
155
181
  getSavedFileInfo: getSavedFileInfo,
182
+ getSavedFileInfoAsync: getSavedFileInfoAsync,
156
183
  getSavedFileList: getSavedFileList,
184
+ getSavedFileListAsync: getSavedFileListAsync,
157
185
  getScreenBrightness: getScreenBrightness,
186
+ getScreenBrightnessAsync: getScreenBrightnessAsync,
158
187
  getServerTime: getServerTime,
188
+ getServerTimeAsync: getServerTimeAsync,
159
189
  getSetting: getSetting,
190
+ getSettingAsync: getSettingAsync,
160
191
  getSiteInfo: getSiteInfo,
192
+ getSiteInfoAsync: getSiteInfoAsync,
161
193
  getStorage: getStorage,
194
+ getStorageAsync: getStorageAsync,
162
195
  getStorageSync: getStorageSync,
163
196
  getSystemInfo: getSystemInfo,
197
+ getSystemInfoAsync: getSystemInfoAsync,
164
198
  getSystemInfoSync: getSystemInfoSync,
165
199
  hideBackHome: hideBackHome,
200
+ hideBackHomeAsync: hideBackHomeAsync,
166
201
  hideKeyboard: hideKeyboard,
202
+ hideKeyboardAsync: hideKeyboardAsync,
167
203
  hideLoading: hideLoading,
204
+ hideLoadingAsync: hideLoadingAsync,
168
205
  hideNavigationBarLoading: hideNavigationBarLoading,
206
+ hideNavigationBarLoadingAsync: hideNavigationBarLoadingAsync,
169
207
  hideTabBar: hideTabBar,
208
+ hideTabBarAsync: hideTabBarAsync,
170
209
  hideToast: hideToast,
210
+ hideToastAsync: hideToastAsync,
171
211
  makePhoneCall: makePhoneCall,
212
+ makePhoneCallAsync: makePhoneCallAsync,
172
213
  multiLevelSelect: multiLevelSelect,
214
+ multiLevelSelectAsync: multiLevelSelectAsync,
173
215
  navigateBack: navigateBack,
216
+ navigateBackAsync: navigateBackAsync,
174
217
  navigateBackMiniProgram: navigateBackMiniProgram,
218
+ navigateBackMiniProgramAsync: navigateBackMiniProgramAsync,
175
219
  navigateTo: navigateTo,
220
+ navigateToAsync: navigateToAsync,
176
221
  navigateToMiniProgram: navigateToMiniProgram,
222
+ navigateToMiniProgramAsync: navigateToMiniProgramAsync,
177
223
  notifyBLECharacteristicValueChange: notifyBLECharacteristicValueChange,
224
+ notifyBLECharacteristicValueChangeAsync: notifyBLECharacteristicValueChangeAsync,
178
225
  offAccelerometerChange: offAccelerometerChange,
179
226
  offBLECharacteristicValueChange: offBLECharacteristicValueChange,
180
227
  offBLEConnectionStateChanged: offBLEConnectionStateChanged,
@@ -200,50 +247,90 @@ export default {
200
247
  onSocketOpen: onSocketOpen,
201
248
  onUserCaptureScreen: onUserCaptureScreen,
202
249
  openBluetoothAdapter: openBluetoothAdapter,
250
+ openBluetoothAdapterAsync: openBluetoothAdapterAsync,
203
251
  openDocument: openDocument,
252
+ openDocumentAsync: openDocumentAsync,
204
253
  openSetting: openSetting,
254
+ openSettingAsync: openSettingAsync,
205
255
  pageScrollTo: pageScrollTo,
256
+ pageScrollToAsync: pageScrollToAsync,
206
257
  previewImage: previewImage,
258
+ previewImageAsync: previewImageAsync,
207
259
  prompt: prompt,
260
+ promptAsync: promptAsync,
208
261
  readBLECharacteristicValue: readBLECharacteristicValue,
262
+ readBLECharacteristicValueAsync: readBLECharacteristicValueAsync,
209
263
  redirectTo: redirectTo,
264
+ redirectToAsync: redirectToAsync,
210
265
  reLaunch: reLaunch,
266
+ reLaunchAsync: reLaunchAsync,
211
267
  removeSavedFile: removeSavedFile,
268
+ removeSavedFileAsync: removeSavedFileAsync,
212
269
  removeStorage: removeStorage,
270
+ removeStorageAsync: removeStorageAsync,
213
271
  removeStorageSync: removeStorageSync,
214
272
  request: request,
273
+ requestAsync: requestAsync,
215
274
  saveFile: saveFile,
275
+ saveFileAsync: saveFileAsync,
216
276
  saveImage: saveImage,
277
+ saveImageAsync: saveImageAsync,
217
278
  scan: scan,
279
+ scanAsync: scanAsync,
218
280
  sendSocketMessage: sendSocketMessage,
281
+ sendSocketMessageAsync: sendSocketMessageAsync,
219
282
  setBackgroundColor: setBackgroundColor,
283
+ setBackgroundColorAsync: setBackgroundColorAsync,
220
284
  setCanPullDown: setCanPullDown,
285
+ setCanPullDownAsync: setCanPullDownAsync,
221
286
  setClipboard: setClipboard,
287
+ setClipboardAsync: setClipboardAsync,
222
288
  setKeepScreenOn: setKeepScreenOn,
289
+ setKeepScreenOnAsync: setKeepScreenOnAsync,
223
290
  setNavigationBar: setNavigationBar,
291
+ setNavigationBarAsync: setNavigationBarAsync,
224
292
  setScreenBrightness: setScreenBrightness,
293
+ setScreenBrightnessAsync: setScreenBrightnessAsync,
225
294
  setStorage: setStorage,
295
+ setStorageAsync: setStorageAsync,
226
296
  setStorageSync: setStorageSync,
227
297
  setTabBarStyle: setTabBarStyle,
298
+ setTabBarStyleAsync: setTabBarStyleAsync,
228
299
  showActionSheet: showActionSheet,
300
+ showActionSheetAsync: showActionSheetAsync,
229
301
  showAuthGuide: showAuthGuide,
302
+ showAuthGuideAsync: showAuthGuideAsync,
230
303
  showLoading: showLoading,
304
+ showLoadingAsync: showLoadingAsync,
231
305
  showNavigationBarLoading: showNavigationBarLoading,
306
+ showNavigationBarLoadingAsync: showNavigationBarLoadingAsync,
232
307
  showToast: showToast,
308
+ showToastAsync: showToastAsync,
233
309
  signContract: signContract,
310
+ signContractAsync: signContractAsync,
234
311
  startBluetoothDevicesDiscovery: startBluetoothDevicesDiscovery,
312
+ startBluetoothDevicesDiscoveryAsync: startBluetoothDevicesDiscoveryAsync,
235
313
  startPullDownRefresh: startPullDownRefresh,
314
+ startPullDownRefreshAsync: startPullDownRefreshAsync,
236
315
  stopBluetoothDevicesDiscovery: stopBluetoothDevicesDiscovery,
316
+ stopBluetoothDevicesDiscoveryAsync: stopBluetoothDevicesDiscoveryAsync,
237
317
  stopPullDownRefresh: stopPullDownRefresh,
318
+ stopPullDownRefreshAsync: stopPullDownRefreshAsync,
238
319
  switchTab: switchTab,
320
+ switchTabAsync: switchTabAsync,
239
321
  tradePay: tradePay,
322
+ tradePayAsync: tradePayAsync,
240
323
  uploadFile: uploadFile,
324
+ uploadFileAsync: uploadFileAsync,
241
325
  vibrate: vibrate,
326
+ vibrateAsync: vibrateAsync,
242
327
  watchShake: watchShake,
328
+ watchShakeAsync: watchShakeAsync,
243
329
  writeBLECharacteristicValue: writeBLECharacteristicValue,
330
+ writeBLECharacteristicValueAsync: writeBLECharacteristicValueAsync,
244
331
  createSelectorQuery: createSelectorQuery,
245
332
  canIUse: canIUse,
246
- showSharePanel: showSharePanel
333
+ showSharePanel: showSharePanel,
334
+ showSharePanelAsync: showSharePanelAsync
247
335
  };
248
- export { addPhoneContact, alert, chooseImage, choosePhoneContact, clearStorage, clearStorageSync, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, createAnimation, createWebViewContext, datePicker, disconnectBLEDevice, downloadFile, getAppIdSync, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getOpenUserInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getStorageSync, getSystemInfo, getSystemInfoSync, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, pageScrollTo, previewImage, prompt, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, removeStorageSync, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, setStorageSync, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, tradePay, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, createSelectorQuery, canIUse, showSharePanel };
249
- export { addPhoneContactAsync, alertAsync, chooseImageAsync, choosePhoneContactAsync, clearStorageAsync, closeBluetoothAdapterAsync, closeSocketAsync, confirmAsync, connectBLEDeviceAsync, connectSocketAsync, datePickerAsync, disconnectBLEDeviceAsync, downloadFileAsync, getAuthCodeAsync, getBatteryInfoAsync, getBLEDeviceCharacteristicsAsync, getBLEDeviceServicesAsync, getBluetoothAdapterStateAsync, getBluetoothDevicesAsync, getClipboardAsync, getConnectedBluetoothDevicesAsync, getFileInfoAsync, getImageInfoAsync, getLocationAsync, getNetworkTypeAsync, getOpenUserInfoAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSiteInfoAsync, getStorageAsync, getSystemInfoAsync, hideBackHomeAsync, hideKeyboardAsync, hideLoadingAsync, hideNavigationBarLoadingAsync, hideTabBarAsync, hideToastAsync, makePhoneCallAsync, multiLevelSelectAsync, navigateBackAsync, navigateBackMiniProgramAsync, navigateToAsync, navigateToMiniProgramAsync, notifyBLECharacteristicValueChangeAsync, openBluetoothAdapterAsync, openDocumentAsync, openSettingAsync, pageScrollToAsync, previewImageAsync, promptAsync, readBLECharacteristicValueAsync, redirectToAsync, reLaunchAsync, removeSavedFileAsync, removeStorageAsync, requestAsync, saveFileAsync, saveImageAsync, scanAsync, sendSocketMessageAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, setTabBarStyleAsync, showActionSheetAsync, showAuthGuideAsync, showLoadingAsync, showNavigationBarLoadingAsync, showToastAsync, signContractAsync, startBluetoothDevicesDiscoveryAsync, startPullDownRefreshAsync, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefreshAsync, switchTabAsync, tradePayAsync, uploadFileAsync, vibrateAsync, watchShakeAsync, writeBLECharacteristicValueAsync, showSharePanelAsync };
336
+ export { addPhoneContact, addPhoneContactAsync, alert, alertAsync, chooseImage, chooseImageAsync, choosePhoneContact, choosePhoneContactAsync, clearStorage, clearStorageAsync, clearStorageSync, closeBluetoothAdapter, closeBluetoothAdapterAsync, closeSocket, closeSocketAsync, confirm, confirmAsync, connectBLEDevice, connectBLEDeviceAsync, connectSocket, connectSocketAsync, createAnimation, createWebViewContext, datePicker, datePickerAsync, disconnectBLEDevice, disconnectBLEDeviceAsync, downloadFile, downloadFileAsync, getAppIdSync, getAuthCode, getAuthCodeAsync, getBatteryInfo, getBatteryInfoAsync, getBLEDeviceCharacteristics, getBLEDeviceCharacteristicsAsync, getBLEDeviceServices, getBLEDeviceServicesAsync, getBluetoothAdapterState, getBluetoothAdapterStateAsync, getBluetoothDevices, getBluetoothDevicesAsync, getClipboard, getClipboardAsync, getConnectedBluetoothDevices, getConnectedBluetoothDevicesAsync, getFileInfo, getFileInfoAsync, getImageInfo, getImageInfoAsync, getLocation, getLocationAsync, getNetworkType, getNetworkTypeAsync, getOpenUserInfo, getOpenUserInfoAsync, getSavedFileInfo, getSavedFileInfoAsync, getSavedFileList, getSavedFileListAsync, getScreenBrightness, getScreenBrightnessAsync, getServerTime, getServerTimeAsync, getSetting, getSettingAsync, getSiteInfo, getSiteInfoAsync, getStorage, getStorageAsync, getStorageSync, getSystemInfo, getSystemInfoAsync, getSystemInfoSync, hideBackHome, hideBackHomeAsync, hideKeyboard, hideKeyboardAsync, hideLoading, hideLoadingAsync, hideNavigationBarLoading, hideNavigationBarLoadingAsync, hideTabBar, hideTabBarAsync, hideToast, hideToastAsync, makePhoneCall, makePhoneCallAsync, multiLevelSelect, multiLevelSelectAsync, navigateBack, navigateBackAsync, navigateBackMiniProgram, navigateBackMiniProgramAsync, navigateTo, navigateToAsync, navigateToMiniProgram, navigateToMiniProgramAsync, notifyBLECharacteristicValueChange, notifyBLECharacteristicValueChangeAsync, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openBluetoothAdapterAsync, openDocument, openDocumentAsync, openSetting, openSettingAsync, pageScrollTo, pageScrollToAsync, previewImage, previewImageAsync, prompt, promptAsync, readBLECharacteristicValue, readBLECharacteristicValueAsync, redirectTo, redirectToAsync, reLaunch, reLaunchAsync, removeSavedFile, removeSavedFileAsync, removeStorage, removeStorageAsync, removeStorageSync, request, requestAsync, saveFile, saveFileAsync, saveImage, saveImageAsync, scan, scanAsync, sendSocketMessage, sendSocketMessageAsync, setBackgroundColor, setBackgroundColorAsync, setCanPullDown, setCanPullDownAsync, setClipboard, setClipboardAsync, setKeepScreenOn, setKeepScreenOnAsync, setNavigationBar, setNavigationBarAsync, setScreenBrightness, setScreenBrightnessAsync, setStorage, setStorageAsync, setStorageSync, setTabBarStyle, setTabBarStyleAsync, showActionSheet, showActionSheetAsync, showAuthGuide, showAuthGuideAsync, showLoading, showLoadingAsync, showNavigationBarLoading, showNavigationBarLoadingAsync, showToast, showToastAsync, signContract, signContractAsync, startBluetoothDevicesDiscovery, startBluetoothDevicesDiscoveryAsync, startPullDownRefresh, startPullDownRefreshAsync, stopBluetoothDevicesDiscovery, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefresh, stopPullDownRefreshAsync, switchTab, switchTabAsync, tradePay, tradePayAsync, uploadFile, uploadFileAsync, vibrate, vibrateAsync, watchShake, watchShakeAsync, writeBLECharacteristicValue, writeBLECharacteristicValueAsync, createSelectorQuery, canIUse, showSharePanel, showSharePanelAsync };
@@ -4,4 +4,3 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export { showToast };
7
- export {};