zmp-sdk 2.38.2 → 2.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { StreamType as StreamType$1, MediaConstraints as MediaConstraints$1, PhotoConstraint as PhotoConstraint$1, PhotoFrame as PhotoFrame$1, MediaDevice as MediaDevice$1, CameraEvents as CameraEvents$1 } from '@mp-types';
2
+
1
3
  /**
2
4
  * Minimal `EventEmitter` interface that is molded against the Node.js
3
5
  * `EventEmitter` interface.
@@ -197,7 +199,8 @@ declare enum ShareSheetType {
197
199
  oa = 5,
198
200
  zmp = 20,
199
201
  multi_image = 21,
200
- zmp_deep_link = 4
202
+ zmp_deep_link = 4,
203
+ text = 22
201
204
  }
202
205
  declare enum OrientationType {
203
206
  auto = 1,
@@ -1256,6 +1259,11 @@ type GetLocationReturns = {
1256
1259
  provider?: string;
1257
1260
  token?: string;
1258
1261
  };
1262
+ type CameraParams = {
1263
+ mediaConstraints?: MediaConstraints;
1264
+ canvasElement?: HTMLCanvasElement;
1265
+ videoElement: HTMLVideoElement;
1266
+ };
1259
1267
  interface SystemInfo {
1260
1268
  /** Mini app version */
1261
1269
  version: string;
@@ -1432,6 +1440,59 @@ type GetSettingReturn = {
1432
1440
  authSetting: AuthenResponse;
1433
1441
  };
1434
1442
 
1443
+ declare enum CameraEvents {
1444
+ OnFrameCallback = "h5.event.camera.frame",
1445
+ OnStartCallback = "h5.event.camera.start",
1446
+ OnStopCallback = "h5.event.camera.stop"
1447
+ }
1448
+ declare enum FacingMode {
1449
+ FRONT = "user",
1450
+ BACK = "environment"
1451
+ }
1452
+ declare enum PhotoFormat {
1453
+ WEBP = "image/webp",
1454
+ PNG = "image/png",
1455
+ JPEG = "image/jpeg"
1456
+ }
1457
+ declare enum PhotoQuality {
1458
+ HIGH = "high",
1459
+ NORMAL = "normal",
1460
+ LOW = "low"
1461
+ }
1462
+ declare enum StreamType {
1463
+ VIDEO = "video",
1464
+ AUDIO = "audio"
1465
+ }
1466
+ type PhotoFrame = {
1467
+ data: string;
1468
+ width: number;
1469
+ height: number;
1470
+ };
1471
+ type MediaDevice = {
1472
+ kind: string;
1473
+ label: string;
1474
+ deviceId: string;
1475
+ };
1476
+ type MediaConstraints = {
1477
+ width?: number;
1478
+ height?: number;
1479
+ facingMode?: FacingMode;
1480
+ deviceId?: string;
1481
+ audio?: boolean;
1482
+ video?: boolean;
1483
+ mirrored?: boolean;
1484
+ };
1485
+ type PhotoConstraint = {
1486
+ width?: number;
1487
+ height?: number;
1488
+ format?: PhotoFormat;
1489
+ quality?: PhotoQuality;
1490
+ mirrored?: boolean;
1491
+ useVideoSourceSize?: boolean;
1492
+ minScreenshotWidth?: number;
1493
+ minScreenshotHeight?: number;
1494
+ };
1495
+
1435
1496
  declare function login(args?: AsyncCallback<string>): Promise<string>;
1436
1497
 
1437
1498
  declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
@@ -1779,6 +1840,35 @@ declare const unfollowOAArgs: ZodOptional<ZodObject<{
1779
1840
  declare function unfollowOA(args: AsyncVoidCallback & TypeOf<(typeof unfollowOAArgs)[0]>): Promise<void>;
1780
1841
 
1781
1842
  declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1843
+ type: ZodEnum<["text"]>;
1844
+ data: ZodObject<{
1845
+ text: ZodString;
1846
+ desc: ZodOptional<ZodString>;
1847
+ autoParseLink: ZodOptional<ZodDefault<ZodBoolean>>;
1848
+ }, "strip", ZodTypeAny, {
1849
+ desc?: string | undefined;
1850
+ autoParseLink?: boolean | undefined;
1851
+ text: string;
1852
+ }, {
1853
+ desc?: string | undefined;
1854
+ autoParseLink?: boolean | undefined;
1855
+ text: string;
1856
+ }>;
1857
+ }, "strip", ZodTypeAny, {
1858
+ type: "text";
1859
+ data: {
1860
+ desc?: string | undefined;
1861
+ autoParseLink?: boolean | undefined;
1862
+ text: string;
1863
+ };
1864
+ }, {
1865
+ type: "text";
1866
+ data: {
1867
+ desc?: string | undefined;
1868
+ autoParseLink?: boolean | undefined;
1869
+ text: string;
1870
+ };
1871
+ }>, ZodObject<{
1782
1872
  type: ZodEnum<["image"]>;
1783
1873
  data: ZodObject<{
1784
1874
  imageUrl: ZodString;
@@ -1853,30 +1943,30 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1853
1943
  width: ZodOptional<ZodNumber>;
1854
1944
  height: ZodOptional<ZodNumber>;
1855
1945
  }, "strip", ZodTypeAny, {
1856
- imageUrl?: string | undefined;
1857
- width?: number | undefined;
1858
1946
  height?: number | undefined;
1947
+ width?: number | undefined;
1948
+ imageUrl?: string | undefined;
1859
1949
  gifUrl: string;
1860
1950
  }, {
1861
- imageUrl?: string | undefined;
1862
- width?: number | undefined;
1863
1951
  height?: number | undefined;
1952
+ width?: number | undefined;
1953
+ imageUrl?: string | undefined;
1864
1954
  gifUrl: string;
1865
1955
  }>;
1866
1956
  }, "strip", ZodTypeAny, {
1867
1957
  type: "gif";
1868
1958
  data: {
1869
- imageUrl?: string | undefined;
1870
- width?: number | undefined;
1871
1959
  height?: number | undefined;
1960
+ width?: number | undefined;
1961
+ imageUrl?: string | undefined;
1872
1962
  gifUrl: string;
1873
1963
  };
1874
1964
  }, {
1875
1965
  type: "gif";
1876
1966
  data: {
1877
- imageUrl?: string | undefined;
1878
- width?: number | undefined;
1879
1967
  height?: number | undefined;
1968
+ width?: number | undefined;
1969
+ imageUrl?: string | undefined;
1880
1970
  gifUrl: string;
1881
1971
  };
1882
1972
  }>, ZodObject<{
@@ -1887,29 +1977,29 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1887
1977
  width: ZodOptional<ZodNumber>;
1888
1978
  height: ZodOptional<ZodNumber>;
1889
1979
  }, "strip", ZodTypeAny, {
1890
- width?: number | undefined;
1891
1980
  height?: number | undefined;
1981
+ width?: number | undefined;
1892
1982
  videoThumb: string;
1893
1983
  videoUrl: string;
1894
1984
  }, {
1895
- width?: number | undefined;
1896
1985
  height?: number | undefined;
1986
+ width?: number | undefined;
1897
1987
  videoThumb: string;
1898
1988
  videoUrl: string;
1899
1989
  }>;
1900
1990
  }, "strip", ZodTypeAny, {
1901
1991
  type: "video";
1902
1992
  data: {
1903
- width?: number | undefined;
1904
1993
  height?: number | undefined;
1994
+ width?: number | undefined;
1905
1995
  videoThumb: string;
1906
1996
  videoUrl: string;
1907
1997
  };
1908
1998
  }, {
1909
1999
  type: "video";
1910
2000
  data: {
1911
- width?: number | undefined;
1912
2001
  height?: number | undefined;
2002
+ width?: number | undefined;
1913
2003
  videoThumb: string;
1914
2004
  videoUrl: string;
1915
2005
  };
@@ -2488,6 +2578,144 @@ declare function getUserID(args?: AsyncCallback<string>): Promise<string>;
2488
2578
 
2489
2579
  declare function getIDToken(args?: AsyncCallback<string>): Promise<string>;
2490
2580
 
2581
+ interface ZMACamera {
2582
+ start: () => Promise<unknown>;
2583
+ stop: () => void;
2584
+ pause: (type: StreamType$1) => Promise<void>;
2585
+ resume: (type: StreamType$1) => Promise<void>;
2586
+ isUsing: () => boolean;
2587
+ updateMediaConstraints: (mediaConstraints: MediaConstraints$1) => Promise<void>;
2588
+ takePhoto: (cameraFrameProps?: PhotoConstraint$1) => PhotoFrame$1 | null;
2589
+ flip: () => Promise<void>;
2590
+ setMirror: (mirrored: boolean) => void;
2591
+ getCameraList: () => MediaDevice$1[];
2592
+ getSelectedDeviceId: () => string;
2593
+ setDeviceId: (deviceId: string) => Promise<void>;
2594
+ on: (event: CameraEvents$1, callback: (data: any) => void) => void;
2595
+ off: (event: CameraEvents$1) => void;
2596
+ }
2597
+
2598
+ declare class ZMACameraImp implements ZMACamera {
2599
+ private readonly _videoElement;
2600
+ private _facingMode;
2601
+ private _mirror;
2602
+ private _cameraList;
2603
+ private _stream;
2604
+ private _mediaConstraints;
2605
+ private _selectedDeviceId;
2606
+ private _canvasElement;
2607
+ private _ctx;
2608
+ private _hasUserMedia;
2609
+ private _userRequestFrameCallback;
2610
+ private _videoEnabled;
2611
+ private _audioEnabled;
2612
+ constructor(videoElement: HTMLVideoElement, mediaConstraints?: MediaConstraints$1 | null);
2613
+ on(event: CameraEvents$1, callback: (data: any) => void): void;
2614
+ off(event: CameraEvents$1): void;
2615
+ private getQualityNumber;
2616
+ private tick;
2617
+ private getFacingMode;
2618
+ getCameraList(): MediaDevice$1[];
2619
+ private getCameraCount;
2620
+ getSelectedDeviceId(): string;
2621
+ setDeviceId(deviceId: string): Promise<void>;
2622
+ private getVideoInputs;
2623
+ updateMediaConstraints(mediaConstraints: MediaConstraints$1): Promise<void>;
2624
+ private getCurrentMediaConstraints;
2625
+ private selectCamera;
2626
+ flip(): Promise<void>;
2627
+ start(): Promise<unknown>;
2628
+ private info;
2629
+ private stream;
2630
+ private handleUserMedia;
2631
+ private updateTrackEnable;
2632
+ private static stopMediaStream;
2633
+ pause(type: StreamType$1): Promise<void>;
2634
+ resume(type: StreamType$1): Promise<void>;
2635
+ isUsing(): boolean;
2636
+ stop(): void;
2637
+ private _stop;
2638
+ private setFacingMode;
2639
+ setMirror(mirrored: boolean): void;
2640
+ takePhoto(cameraFrameProps?: PhotoConstraint$1): PhotoFrame$1 | null;
2641
+ private haveVideoStream;
2642
+ private getCanvas;
2643
+ private drawFrame;
2644
+ }
2645
+
2646
+ declare const cameraArgs: ZodOptional<ZodObject<{
2647
+ videoElement: ZodEffects<ZodObject<{
2648
+ play: ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>;
2649
+ pause: ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>;
2650
+ }, "strip", ZodTypeAny, {
2651
+ pause: (...args: unknown[]) => unknown;
2652
+ play: (...args: unknown[]) => unknown;
2653
+ }, {
2654
+ pause: (...args: unknown[]) => unknown;
2655
+ play: (...args: unknown[]) => unknown;
2656
+ }>, {
2657
+ pause: (...args: unknown[]) => unknown;
2658
+ play: (...args: unknown[]) => unknown;
2659
+ }, {
2660
+ pause: (...args: unknown[]) => unknown;
2661
+ play: (...args: unknown[]) => unknown;
2662
+ }>;
2663
+ mediaConstraints: ZodOptional<ZodNullable<ZodObject<{
2664
+ width: ZodOptional<ZodNumber>;
2665
+ height: ZodOptional<ZodNumber>;
2666
+ facingMode: ZodOptional<ZodString>;
2667
+ audio: ZodOptional<ZodBoolean>;
2668
+ video: ZodOptional<ZodBoolean>;
2669
+ deviceId: ZodOptional<ZodString>;
2670
+ mirrored: ZodOptional<ZodBoolean>;
2671
+ }, "strip", ZodTypeAny, {
2672
+ audio?: boolean | undefined;
2673
+ video?: boolean | undefined;
2674
+ height?: number | undefined;
2675
+ width?: number | undefined;
2676
+ facingMode?: string | undefined;
2677
+ deviceId?: string | undefined;
2678
+ mirrored?: boolean | undefined;
2679
+ }, {
2680
+ audio?: boolean | undefined;
2681
+ video?: boolean | undefined;
2682
+ height?: number | undefined;
2683
+ width?: number | undefined;
2684
+ facingMode?: string | undefined;
2685
+ deviceId?: string | undefined;
2686
+ mirrored?: boolean | undefined;
2687
+ }>>>;
2688
+ }, "strip", ZodTypeAny, {
2689
+ mediaConstraints?: {
2690
+ audio?: boolean | undefined;
2691
+ video?: boolean | undefined;
2692
+ height?: number | undefined;
2693
+ width?: number | undefined;
2694
+ facingMode?: string | undefined;
2695
+ deviceId?: string | undefined;
2696
+ mirrored?: boolean | undefined;
2697
+ } | null | undefined;
2698
+ videoElement: {
2699
+ pause: (...args: unknown[]) => unknown;
2700
+ play: (...args: unknown[]) => unknown;
2701
+ };
2702
+ }, {
2703
+ mediaConstraints?: {
2704
+ audio?: boolean | undefined;
2705
+ video?: boolean | undefined;
2706
+ height?: number | undefined;
2707
+ width?: number | undefined;
2708
+ facingMode?: string | undefined;
2709
+ deviceId?: string | undefined;
2710
+ mirrored?: boolean | undefined;
2711
+ } | null | undefined;
2712
+ videoElement: {
2713
+ pause: (...args: unknown[]) => unknown;
2714
+ play: (...args: unknown[]) => unknown;
2715
+ };
2716
+ }>>[];
2717
+ declare function createCameraContext(args: CameraParams & TypeOf<(typeof cameraArgs)[0]>): ZMACamera;
2718
+
2491
2719
  declare function setupAd(args?: AsyncCallback): Promise<void>;
2492
2720
 
2493
2721
  declare const loadAdArgs: ZodObject<{
@@ -2553,9 +2781,37 @@ declare const showOAWidgetArgs: ZodObject<{
2553
2781
  }>[];
2554
2782
  declare function showOAWidget(args: AsyncVoidCallback & TypeOf<(typeof showOAWidgetArgs)[0]>): Promise<void>;
2555
2783
 
2784
+ declare const showFunctionButtonWidgetArgs: ZodObject<{
2785
+ id: ZodString;
2786
+ type: ZodString;
2787
+ text: ZodString;
2788
+ color: ZodOptional<ZodString>;
2789
+ disabled: ZodOptional<ZodBoolean>;
2790
+ onDataReceived: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
2791
+ onError: ZodOptional<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>>;
2792
+ }, "strip", ZodTypeAny, {
2793
+ color?: string | undefined;
2794
+ disabled?: boolean | undefined;
2795
+ onDataReceived?: ((...args: unknown[]) => unknown) | undefined;
2796
+ onError?: ((...args: unknown[]) => unknown) | undefined;
2797
+ type: string;
2798
+ text: string;
2799
+ id: string;
2800
+ }, {
2801
+ color?: string | undefined;
2802
+ disabled?: boolean | undefined;
2803
+ onDataReceived?: ((...args: unknown[]) => unknown) | undefined;
2804
+ onError?: ((...args: unknown[]) => unknown) | undefined;
2805
+ type: string;
2806
+ text: string;
2807
+ id: string;
2808
+ }>[];
2809
+ declare function showFunctionButtonWidget(args: AsyncVoidCallback & TypeOf<(typeof showFunctionButtonWidgetArgs)[0]>): Promise<void>;
2810
+
2556
2811
  declare const otherApis: {
2557
2812
  Events: typeof Events;
2558
2813
  EventName: typeof Events;
2814
+ CameraEvents: typeof CameraEvents;
2559
2815
  login: typeof login;
2560
2816
  getAccessToken: typeof getAccessToken;
2561
2817
  getVersion: typeof getVersion;
@@ -2640,11 +2896,18 @@ declare const otherApis: {
2640
2896
  checkZaloCameraPermission: typeof checkZaloCameraPermission;
2641
2897
  getUserID: typeof getUserID;
2642
2898
  getIDToken: typeof getIDToken;
2899
+ createCameraContext: typeof createCameraContext;
2643
2900
  setupAd: typeof setupAd;
2644
2901
  loadAd: typeof loadAd;
2645
2902
  displayAd: typeof displayAd;
2646
2903
  refreshAd: typeof refreshAd;
2647
2904
  showOAWidget: typeof showOAWidget;
2905
+ showFunctionButtonWidget: typeof showFunctionButtonWidget;
2906
+ FacingMode: typeof FacingMode;
2907
+ PhotoFormat: typeof PhotoFormat;
2908
+ PhotoQuality: typeof PhotoQuality;
2909
+ StreamType: typeof StreamType;
2910
+ ZMACameraImp: typeof ZMACameraImp;
2648
2911
  };
2649
2912
  declare const payment: {
2650
2913
  createOrder: typeof createOrder;
@@ -2653,4 +2916,4 @@ declare const payment: {
2653
2916
  selectPaymentMethod: typeof selectPaymentMethod;
2654
2917
  };
2655
2918
 
2656
- export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, AuthenScopeType, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, SystemInfo, TextAlignType, VibrateType, addRating, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, loadAd, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
2919
+ export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, AuthenScopeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TextAlignType, VibrateType, ZMACamera, ZMACameraImp, addRating, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, loadAd, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };