webtonative 1.0.77 → 1.0.78-beta.2
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/ATTConsent/index.d.ts +16 -0
- package/ATTConsent/index.js +53 -1
- package/ATTConsent/types.d.ts +14 -0
- package/ATTConsent/types.js +2 -0
- package/AdMob/index.d.ts +30 -0
- package/AdMob/index.js +101 -1
- package/AdMob/types.d.ts +24 -0
- package/AdMob/types.js +3 -0
- package/AppReview/index.d.ts +6 -0
- package/AppReview/index.js +21 -1
- package/AppReview/types.d.ts +7 -0
- package/AppReview/types.js +3 -0
- package/AppsFlyer/index.d.ts +14 -0
- package/AppsFlyer/index.js +42 -4
- package/AppsFlyer/types.d.ts +9 -0
- package/AppsFlyer/types.js +2 -0
- package/BackgroundLocation/index.d.ts +11 -0
- package/BackgroundLocation/index.js +64 -4
- package/BackgroundLocation/types.d.ts +31 -0
- package/BackgroundLocation/types.js +2 -0
- package/Beacon/index.d.ts +6 -0
- package/Beacon/index.js +29 -1
- package/Beacon/types.d.ts +18 -0
- package/Beacon/types.js +2 -0
- package/Biometric/index.d.ts +26 -0
- package/Biometric/index.js +124 -1
- package/Biometric/types.d.ts +23 -0
- package/Biometric/types.js +2 -0
- package/Bluetooth/index.d.ts +16 -0
- package/Bluetooth/index.js +66 -1
- package/Bluetooth/types.d.ts +33 -0
- package/Bluetooth/types.js +2 -0
- package/BottomNavigation/index.d.ts +10 -0
- package/BottomNavigation/index.js +40 -4
- package/BottomNavigation/types.d.ts +8 -0
- package/BottomNavigation/types.js +2 -0
- package/Clipboard/index.d.ts +11 -0
- package/Clipboard/index.js +44 -4
- package/Clipboard/types.d.ts +19 -0
- package/Clipboard/types.js +3 -0
- package/Facebook/events.d.ts +12 -0
- package/Facebook/events.js +43 -4
- package/Facebook/index.d.ts +2 -0
- package/Facebook/index.js +28 -1
- package/Facebook/types.d.ts +21 -0
- package/Facebook/types.js +2 -0
- package/Firebase/Analytics/index.d.ts +31 -0
- package/Firebase/Analytics/index.js +109 -4
- package/Firebase/Messaging/index.d.ts +16 -0
- package/Firebase/Messaging/index.js +63 -4
- package/Firebase/index.d.ts +3 -0
- package/Firebase/index.js +30 -1
- package/Firebase/types.d.ts +57 -0
- package/Firebase/types.js +3 -0
- package/FirebaseAnalytics/index.d.ts +2 -0
- package/FirebaseAnalytics/index.js +28 -1
- package/Haptics/index.d.ts +6 -0
- package/Haptics/index.js +20 -1
- package/Haptics/types.d.ts +7 -0
- package/Haptics/types.js +2 -0
- package/InAppPurchase/index.d.ts +22 -0
- package/InAppPurchase/index.js +80 -1
- package/InAppPurchase/types.d.ts +33 -0
- package/InAppPurchase/types.js +2 -0
- package/InAppUpdate/index.d.ts +11 -0
- package/InAppUpdate/index.js +38 -1
- package/InAppUpdate/types.d.ts +14 -0
- package/InAppUpdate/types.js +2 -0
- package/MediaPlayer/index.d.ts +16 -0
- package/MediaPlayer/index.js +55 -7
- package/MediaPlayer/types.d.ts +13 -0
- package/MediaPlayer/types.js +2 -0
- package/NativeContacts/index.d.ts +11 -0
- package/NativeContacts/index.js +50 -6
- package/NativeContacts/types.d.ts +13 -0
- package/NativeContacts/types.js +2 -0
- package/NativeDatastore/index.d.ts +7 -0
- package/NativeDatastore/index.js +134 -1
- package/NativeDatastore/type.d.ts +23 -0
- package/NativeDatastore/type.js +2 -0
- package/Notification/index.d.ts +8 -0
- package/Notification/index.js +39 -1
- package/Notification/types.d.ts +13 -0
- package/Notification/types.js +2 -0
- package/OneSignal/index.d.ts +17 -0
- package/OneSignal/index.js +264 -1
- package/OneSignal/types.d.ts +40 -0
- package/OneSignal/types.js +3 -0
- package/OrufyConnect/index.d.ts +22 -0
- package/OrufyConnect/index.js +199 -0
- package/Printing/index.d.ts +6 -0
- package/Printing/index.js +19 -1
- package/Printing/types.d.ts +8 -0
- package/Printing/types.js +2 -0
- package/README.md +31 -2
- package/RevenueCat/index.d.ts +7 -0
- package/RevenueCat/index.js +136 -0
- package/Screen/index.d.ts +8 -0
- package/Screen/index.js +34 -4
- package/Screen/types.d.ts +5 -0
- package/Screen/types.js +3 -0
- package/Siri/index.d.ts +6 -0
- package/Siri/index.js +25 -1
- package/Siri/types.d.ts +13 -0
- package/Siri/types.js +2 -0
- package/SocialLogin/apple/index.d.ts +11 -0
- package/SocialLogin/apple/index.js +31 -0
- package/SocialLogin/facebook/index.d.ts +21 -0
- package/SocialLogin/facebook/index.js +60 -0
- package/SocialLogin/google/index.d.ts +21 -0
- package/SocialLogin/google/index.js +60 -0
- package/SocialLogin/index.d.ts +16 -0
- package/SocialLogin/index.js +22 -1
- package/SocialLogin/types.d.ts +38 -0
- package/SocialLogin/types.js +2 -0
- package/Stripe/index.d.ts +2 -0
- package/Stripe/index.js +48 -1
- package/Stripe/types.d.ts +31 -0
- package/Stripe/types.js +2 -0
- package/VoiceSearch/index.d.ts +12 -0
- package/VoiceSearch/index.js +33 -1
- package/VoiceSearch/types.d.ts +9 -0
- package/VoiceSearch/types.js +2 -0
- package/barcode/barcode-scan.d.ts +15 -0
- package/barcode/barcode-scan.js +39 -1
- package/barcode/barcode-types.d.ts +17 -0
- package/barcode/barcode-types.js +2 -0
- package/barcode/formats.d.ts +17 -0
- package/barcode/formats.js +22 -1
- package/barcode/index.d.ts +4 -0
- package/barcode/index.js +12 -1
- package/barcode/types.d.ts +16 -0
- package/barcode/types.js +21 -1
- package/index.d.ts +155 -0
- package/index.js +540 -2
- package/package.json +158 -3
- package/types/index.d.ts +49 -0
- package/types/index.js +3 -0
- package/utills.d.ts +11 -0
- package/utills.js +110 -1
- package/webtonative.min.js +1 -1
- package/SocialLogin/apple.js +0 -1
- package/SocialLogin/facebook.js +0 -9
- package/SocialLogin/google.js +0 -9
package/VoiceSearch/index.js
CHANGED
|
@@ -1 +1,33 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var _this = this;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var utills_1 = require("../utills");
|
|
5
|
+
var voiceSearchCb = null;
|
|
6
|
+
/**
|
|
7
|
+
* This function opens native voice search
|
|
8
|
+
* @param options Configuration options for voice search
|
|
9
|
+
* @example wtn.openVoiceSearch({
|
|
10
|
+
* onVoiceSearch:(value)=>{
|
|
11
|
+
* console.log(value);
|
|
12
|
+
* }
|
|
13
|
+
* });
|
|
14
|
+
*/
|
|
15
|
+
var openVoiceSearch = function (options) {
|
|
16
|
+
if (options === void 0) { options = {}; }
|
|
17
|
+
var onVoiceSearch = options.onVoiceSearch;
|
|
18
|
+
(0, utills_1.registerCb)(function (response) {
|
|
19
|
+
var _a = response, type = _a.type, results = _a.results;
|
|
20
|
+
if (type === "VOICE_SEARCH_RESULT") {
|
|
21
|
+
voiceSearchCb && voiceSearchCb(results);
|
|
22
|
+
voiceSearchCb = null;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
if (utills_1.isNativeApp) {
|
|
26
|
+
utills_1.webToNative.openVoiceSearch();
|
|
27
|
+
}
|
|
28
|
+
if (typeof onVoiceSearch === "function") {
|
|
29
|
+
voiceSearchCb = onVoiceSearch;
|
|
30
|
+
}
|
|
31
|
+
return _this;
|
|
32
|
+
};
|
|
33
|
+
exports.default = openVoiceSearch;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseResponse } from "../types";
|
|
2
|
+
export interface VoiceSearchResponse extends BaseResponse {
|
|
3
|
+
type: "VOICE_SEARCH_RESULT";
|
|
4
|
+
results: string;
|
|
5
|
+
}
|
|
6
|
+
export type VoiceSearchCallback = (results: string) => void;
|
|
7
|
+
export interface VoiceSearchOptions {
|
|
8
|
+
onVoiceSearch?: VoiceSearchCallback;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface BarcodeScanOptions {
|
|
2
|
+
onBarcodeSearch?: (value: string) => void;
|
|
3
|
+
format?: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* This function opens native barcode scanner from Android/Ios app.
|
|
7
|
+
* @param {object} options
|
|
8
|
+
* @example wtn.onScanner({
|
|
9
|
+
* onBarcodeSearch:(value)=>{
|
|
10
|
+
* console.log(value);
|
|
11
|
+
* }
|
|
12
|
+
* });
|
|
13
|
+
*/
|
|
14
|
+
declare const BarcodeScan: (options: BarcodeScanOptions) => void;
|
|
15
|
+
export default BarcodeScan;
|
package/barcode/barcode-scan.js
CHANGED
|
@@ -1 +1,39 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var utills_1 = require("../utills");
|
|
7
|
+
var formats_1 = __importDefault(require("./formats"));
|
|
8
|
+
/**
|
|
9
|
+
* This function opens native barcode scanner from Android/Ios app.
|
|
10
|
+
* @param {object} options
|
|
11
|
+
* @example wtn.onScanner({
|
|
12
|
+
* onBarcodeSearch:(value)=>{
|
|
13
|
+
* console.log(value);
|
|
14
|
+
* }
|
|
15
|
+
* });
|
|
16
|
+
*/
|
|
17
|
+
var BarcodeScan = function (options) {
|
|
18
|
+
if (["ANDROID_APP", "IOS_APP"].includes(utills_1.platform)) {
|
|
19
|
+
var onBarcodeSearch_1 = options.onBarcodeSearch, format = options.format;
|
|
20
|
+
(0, utills_1.registerCb)(function (response) {
|
|
21
|
+
var type = response.type, value = response.value;
|
|
22
|
+
if (type === "BARCODE_SCAN") {
|
|
23
|
+
onBarcodeSearch_1 && onBarcodeSearch_1(value);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
if (utills_1.platform === "ANDROID_APP" && utills_1.webToNative.startScanner) {
|
|
27
|
+
utills_1.webToNative.startScanner(JSON.stringify({
|
|
28
|
+
formats: format ? [format] : [],
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
if (utills_1.platform === "IOS_APP" && utills_1.webToNativeIos) {
|
|
32
|
+
utills_1.webToNativeIos.postMessage({
|
|
33
|
+
action: "barcodeScan",
|
|
34
|
+
barcodeFormat: format ? String(format) : String(formats_1.default.ALL_FORMATS),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.default = BarcodeScan;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseResponse } from "../types";
|
|
2
|
+
export interface BarcodeScanResponse extends BaseResponse {
|
|
3
|
+
type: "BARCODE_SCAN";
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export type BarcodeScanCallback = (value: string) => void;
|
|
7
|
+
export interface BarcodeScanOptions {
|
|
8
|
+
onBarcodeSearch?: BarcodeScanCallback;
|
|
9
|
+
format?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface BarcodeScanAndroidParams {
|
|
12
|
+
formats: number[];
|
|
13
|
+
}
|
|
14
|
+
export interface BarcodeScanIosMessage {
|
|
15
|
+
action: string;
|
|
16
|
+
barcodeFormat: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum BarcodeFormat {
|
|
2
|
+
ALL_FORMATS = 0,
|
|
3
|
+
CODE_128 = 1,
|
|
4
|
+
CODE_39 = 2,
|
|
5
|
+
CODE_93 = 4,
|
|
6
|
+
CODABAR = 8,
|
|
7
|
+
DATA_MATRIX = 16,
|
|
8
|
+
EAN_13 = 32,
|
|
9
|
+
EAN_8 = 64,
|
|
10
|
+
ITF = 128,
|
|
11
|
+
QR_CODE = 256,
|
|
12
|
+
UPC_A = 512,
|
|
13
|
+
UPC_E = 1024,
|
|
14
|
+
PDF417 = 2048,
|
|
15
|
+
AZTEC = 4096
|
|
16
|
+
}
|
|
17
|
+
export default BarcodeFormat;
|
package/barcode/formats.js
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BarcodeFormat = void 0;
|
|
4
|
+
// Barcode formats
|
|
5
|
+
var BarcodeFormat;
|
|
6
|
+
(function (BarcodeFormat) {
|
|
7
|
+
BarcodeFormat[BarcodeFormat["ALL_FORMATS"] = 0] = "ALL_FORMATS";
|
|
8
|
+
BarcodeFormat[BarcodeFormat["CODE_128"] = 1] = "CODE_128";
|
|
9
|
+
BarcodeFormat[BarcodeFormat["CODE_39"] = 2] = "CODE_39";
|
|
10
|
+
BarcodeFormat[BarcodeFormat["CODE_93"] = 4] = "CODE_93";
|
|
11
|
+
BarcodeFormat[BarcodeFormat["CODABAR"] = 8] = "CODABAR";
|
|
12
|
+
BarcodeFormat[BarcodeFormat["DATA_MATRIX"] = 16] = "DATA_MATRIX";
|
|
13
|
+
BarcodeFormat[BarcodeFormat["EAN_13"] = 32] = "EAN_13";
|
|
14
|
+
BarcodeFormat[BarcodeFormat["EAN_8"] = 64] = "EAN_8";
|
|
15
|
+
BarcodeFormat[BarcodeFormat["ITF"] = 128] = "ITF";
|
|
16
|
+
BarcodeFormat[BarcodeFormat["QR_CODE"] = 256] = "QR_CODE";
|
|
17
|
+
BarcodeFormat[BarcodeFormat["UPC_A"] = 512] = "UPC_A";
|
|
18
|
+
BarcodeFormat[BarcodeFormat["UPC_E"] = 1024] = "UPC_E";
|
|
19
|
+
BarcodeFormat[BarcodeFormat["PDF417"] = 2048] = "PDF417";
|
|
20
|
+
BarcodeFormat[BarcodeFormat["AZTEC"] = 4096] = "AZTEC";
|
|
21
|
+
})(BarcodeFormat = exports.BarcodeFormat || (exports.BarcodeFormat = {}));
|
|
22
|
+
exports.default = BarcodeFormat;
|
package/barcode/index.js
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BarcodeScan = exports.Types = exports.Format = void 0;
|
|
7
|
+
var formats_1 = __importDefault(require("./formats"));
|
|
8
|
+
exports.Format = formats_1.default;
|
|
9
|
+
var types_1 = __importDefault(require("./types"));
|
|
10
|
+
exports.Types = types_1.default;
|
|
11
|
+
var barcode_scan_1 = __importDefault(require("./barcode-scan"));
|
|
12
|
+
exports.BarcodeScan = barcode_scan_1.default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum BarcodeType {
|
|
2
|
+
QR_CODE = "QR_CODE",
|
|
3
|
+
DATA_MATRIX = "DATA_MATRIX",
|
|
4
|
+
UPC_E = "UPC_E",
|
|
5
|
+
UPC_A = "UPC_A",
|
|
6
|
+
EAN_8 = "EAN_8",
|
|
7
|
+
EAN_13 = "EAN_13",
|
|
8
|
+
CODE_128 = "CODE_128",
|
|
9
|
+
CODE_39 = "CODE_39",
|
|
10
|
+
CODE_93 = "CODE_93",
|
|
11
|
+
CODABAR = "CODABAR",
|
|
12
|
+
ITF = "ITF",
|
|
13
|
+
AZTEC = "AZTEC",
|
|
14
|
+
PDF_417 = "PDF_417"
|
|
15
|
+
}
|
|
16
|
+
export default BarcodeType;
|
package/barcode/types.js
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BarcodeType = void 0;
|
|
4
|
+
// Barcode types
|
|
5
|
+
var BarcodeType;
|
|
6
|
+
(function (BarcodeType) {
|
|
7
|
+
BarcodeType["QR_CODE"] = "QR_CODE";
|
|
8
|
+
BarcodeType["DATA_MATRIX"] = "DATA_MATRIX";
|
|
9
|
+
BarcodeType["UPC_E"] = "UPC_E";
|
|
10
|
+
BarcodeType["UPC_A"] = "UPC_A";
|
|
11
|
+
BarcodeType["EAN_8"] = "EAN_8";
|
|
12
|
+
BarcodeType["EAN_13"] = "EAN_13";
|
|
13
|
+
BarcodeType["CODE_128"] = "CODE_128";
|
|
14
|
+
BarcodeType["CODE_39"] = "CODE_39";
|
|
15
|
+
BarcodeType["CODE_93"] = "CODE_93";
|
|
16
|
+
BarcodeType["CODABAR"] = "CODABAR";
|
|
17
|
+
BarcodeType["ITF"] = "ITF";
|
|
18
|
+
BarcodeType["AZTEC"] = "AZTEC";
|
|
19
|
+
BarcodeType["PDF_417"] = "PDF_417";
|
|
20
|
+
})(BarcodeType = exports.BarcodeType || (exports.BarcodeType = {}));
|
|
21
|
+
exports.default = BarcodeType;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repository for webtonative javascript sdk. Build your android/ios app from https://webtonative.com.
|
|
3
|
+
* This is in beta phase.
|
|
4
|
+
* @example npm install webtonative
|
|
5
|
+
* import webtonative from "webtonative";
|
|
6
|
+
* const wtn = webtonative();
|
|
7
|
+
*/
|
|
8
|
+
import { isNativeApp, platform } from "./utills";
|
|
9
|
+
import { StatusBarOptions, DownloadBlobFileOptions, CustomFileDownloadOptions, BaseResponse } from "./types";
|
|
10
|
+
export declare const isAndroidApp: boolean;
|
|
11
|
+
export declare const isIosApp: boolean;
|
|
12
|
+
export declare const isAndroidORIosApp: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* This function hides splash screen
|
|
15
|
+
* @example wtn.hideSplashScreen()
|
|
16
|
+
*/
|
|
17
|
+
export declare const hideSplashScreen: () => void;
|
|
18
|
+
export declare const statusBar: (options: StatusBarOptions) => void;
|
|
19
|
+
export declare const downloadFile: (downloadUrl: string) => void;
|
|
20
|
+
export declare const downloadBlobFile: ({ fileName, downloadUrl }: DownloadBlobFileOptions) => void;
|
|
21
|
+
export declare const customFileDownload: ({ downloadUrl, fileName, isBlob, mimeType, cookies, userAgent, openFileAfterDownload, }: CustomFileDownloadOptions) => void;
|
|
22
|
+
export declare const deviceInfo: () => Promise<any>;
|
|
23
|
+
export declare const showInAppReview: () => void;
|
|
24
|
+
interface GPSEnabledOptions {
|
|
25
|
+
callback?: (response: BaseResponse) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const isDeviceGPSEnabled: (options?: GPSEnabledOptions) => void;
|
|
28
|
+
interface ShareLinkOptions {
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const shareLink: ({ url }: ShareLinkOptions) => void;
|
|
32
|
+
export declare const openUrlInBrowser: (url?: string) => void;
|
|
33
|
+
export declare const enablePullToRefresh: (status: boolean) => void;
|
|
34
|
+
export declare const clearAppCache: (reload: boolean) => void;
|
|
35
|
+
export declare const shareFile: (fileUrl?: string | null, fileExtension?: string | null, text?: string | null) => void;
|
|
36
|
+
export declare const closeApp: () => void;
|
|
37
|
+
interface DateTimePickerOptions {
|
|
38
|
+
callback?: (response: BaseResponse) => void;
|
|
39
|
+
showDate?: boolean;
|
|
40
|
+
showTime?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare const showDateTimePicker: (options: DateTimePickerOptions) => void;
|
|
43
|
+
interface PrintFunctionOptions {
|
|
44
|
+
type?: string;
|
|
45
|
+
url?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const printFunction: (options: PrintFunctionOptions) => void;
|
|
48
|
+
interface NFCSupportedOptions {
|
|
49
|
+
callback?: (response: BaseResponse) => void;
|
|
50
|
+
}
|
|
51
|
+
export declare const nfcSupported: (options: NFCSupportedOptions) => void;
|
|
52
|
+
interface LoadOfferCardOptions {
|
|
53
|
+
data?: any;
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}
|
|
56
|
+
export declare const loadOfferCard: (options: LoadOfferCardOptions) => void;
|
|
57
|
+
interface AddToSiriOptions {
|
|
58
|
+
data?: any;
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
}
|
|
61
|
+
export declare const addToSiri: (options: AddToSiriOptions) => void;
|
|
62
|
+
export declare const appFirstLoad: () => Promise<any>;
|
|
63
|
+
export declare const forceUpdateCookies: () => void;
|
|
64
|
+
interface OpenAppSettingForPermissionOptions {
|
|
65
|
+
callback?: (response: BaseResponse) => void;
|
|
66
|
+
values?: any;
|
|
67
|
+
}
|
|
68
|
+
export declare const openAppSettingForPermission: (options: OpenAppSettingForPermissionOptions) => void;
|
|
69
|
+
interface ShowPermissionOptions {
|
|
70
|
+
callback?: (response: BaseResponse) => void;
|
|
71
|
+
permission?: string;
|
|
72
|
+
openAppSetting?: boolean;
|
|
73
|
+
alertDialogStyle?: any;
|
|
74
|
+
}
|
|
75
|
+
export declare const showPermission: (options: ShowPermissionOptions) => void;
|
|
76
|
+
interface UpdateAppIconOptions {
|
|
77
|
+
active?: boolean;
|
|
78
|
+
iconName?: string | null;
|
|
79
|
+
}
|
|
80
|
+
export declare const updateAppIcon: (options: UpdateAppIconOptions) => void;
|
|
81
|
+
interface DisableScreenshotOptions {
|
|
82
|
+
ssKey?: boolean;
|
|
83
|
+
}
|
|
84
|
+
export declare const disableScreenshot: (options: DisableScreenshotOptions) => void;
|
|
85
|
+
interface CustomBackHandlingOptions {
|
|
86
|
+
enable?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export declare const customBackHandling: (options: CustomBackHandlingOptions) => void;
|
|
89
|
+
interface GetSafeAreaOptions {
|
|
90
|
+
callback?: (response: BaseResponse) => void;
|
|
91
|
+
}
|
|
92
|
+
export declare const getSafeArea: (options: GetSafeAreaOptions) => void;
|
|
93
|
+
interface GetAddOnStatusOptions {
|
|
94
|
+
callback?: (response: BaseResponse) => void;
|
|
95
|
+
addOnName?: string;
|
|
96
|
+
}
|
|
97
|
+
export declare const getAddOnStatus: (options: GetAddOnStatusOptions) => void;
|
|
98
|
+
interface CheckPermissionOptions {
|
|
99
|
+
callback?: (response: BaseResponse) => void;
|
|
100
|
+
permissionName?: string[];
|
|
101
|
+
}
|
|
102
|
+
export declare const checkPermission: (options: CheckPermissionOptions) => void;
|
|
103
|
+
interface SetOrientationOptions {
|
|
104
|
+
orientation?: string;
|
|
105
|
+
forceOrientation?: boolean;
|
|
106
|
+
}
|
|
107
|
+
export declare const setOrientation: (options: SetOrientationOptions) => void;
|
|
108
|
+
interface NativeComponentsOptions {
|
|
109
|
+
components?: string[];
|
|
110
|
+
}
|
|
111
|
+
export declare const hideNativeComponents: (options?: NativeComponentsOptions) => void;
|
|
112
|
+
export declare const showNativeComponents: (options?: NativeComponentsOptions) => void;
|
|
113
|
+
interface RegisterNotificationOptions {
|
|
114
|
+
callback?: (response: BaseResponse) => void;
|
|
115
|
+
}
|
|
116
|
+
export declare const registerNotification: (options?: RegisterNotificationOptions) => void;
|
|
117
|
+
export { platform, isNativeApp };
|
|
118
|
+
declare const _default: {
|
|
119
|
+
isAndroidApp: boolean;
|
|
120
|
+
isIosApp: boolean;
|
|
121
|
+
hideSplashScreen: () => void;
|
|
122
|
+
statusBar: (options: StatusBarOptions) => void;
|
|
123
|
+
deviceInfo: () => Promise<any>;
|
|
124
|
+
showInAppReview: () => void;
|
|
125
|
+
shareLink: ({ url }: ShareLinkOptions) => void;
|
|
126
|
+
platform: import("./types").Platform;
|
|
127
|
+
isNativeApp: boolean;
|
|
128
|
+
isDeviceGPSEnabled: (options?: GPSEnabledOptions) => void;
|
|
129
|
+
openUrlInBrowser: (url?: string) => void;
|
|
130
|
+
enablePullToRefresh: (status: boolean) => void;
|
|
131
|
+
shareFile: (fileUrl?: string, fileExtension?: string, text?: string) => void;
|
|
132
|
+
clearAppCache: (reload: boolean) => void;
|
|
133
|
+
closeApp: () => void;
|
|
134
|
+
showDateTimePicker: (options: DateTimePickerOptions) => void;
|
|
135
|
+
downloadBlobFile: ({ fileName, downloadUrl }: DownloadBlobFileOptions) => void;
|
|
136
|
+
customFileDownload: ({ downloadUrl, fileName, isBlob, mimeType, cookies, userAgent, openFileAfterDownload, }: CustomFileDownloadOptions) => void;
|
|
137
|
+
printFunction: (options: PrintFunctionOptions) => void;
|
|
138
|
+
loadOfferCard: (options: LoadOfferCardOptions) => void;
|
|
139
|
+
appFirstLoad: () => Promise<any>;
|
|
140
|
+
addToSiri: (options: AddToSiriOptions) => void;
|
|
141
|
+
showPermission: (options: ShowPermissionOptions) => void;
|
|
142
|
+
forceUpdateCookies: () => void;
|
|
143
|
+
updateAppIcon: (options: UpdateAppIconOptions) => void;
|
|
144
|
+
disableScreenshot: (options: DisableScreenshotOptions) => void;
|
|
145
|
+
getSafeArea: (options: GetSafeAreaOptions) => void;
|
|
146
|
+
getAddOnStatus: (options: GetAddOnStatusOptions) => void;
|
|
147
|
+
setOrientation: (options: SetOrientationOptions) => void;
|
|
148
|
+
checkPermission: (options: CheckPermissionOptions) => void;
|
|
149
|
+
openAppSettingForPermission: (options: OpenAppSettingForPermissionOptions) => void;
|
|
150
|
+
customBackHandling: (options: CustomBackHandlingOptions) => void;
|
|
151
|
+
hideNativeComponents: (options?: NativeComponentsOptions) => void;
|
|
152
|
+
showNativeComponents: (options?: NativeComponentsOptions) => void;
|
|
153
|
+
registerNotification: (options?: RegisterNotificationOptions) => void;
|
|
154
|
+
};
|
|
155
|
+
export default _default;
|