1 | /**
|
2 | * @name WebIntent
|
3 | * @description
|
4 | * @usage
|
5 | * For usage information please refer to the plugin's Github repo.
|
6 | *
|
7 | * ```typescript
|
8 | * import {WebIntent} from 'ionic-native';
|
9 | *
|
10 | * WebIntent.startActivity(options).then(onSuccess, onError);
|
11 | *
|
12 | * ```
|
13 | */
|
14 | export declare class WebIntent {
|
15 | static ACTION_VIEW: any;
|
16 | static EXTRA_TEXT: any;
|
17 | /**
|
18 | * @param options {Object} { action: any, url: string, type?: string }
|
19 | * @returns {Promise<any>}
|
20 | */
|
21 | static startActivity(options: {
|
22 | action: any;
|
23 | url: string;
|
24 | type?: string;
|
25 | }): Promise<any>;
|
26 | /**
|
27 | * @param extra {any}
|
28 | * @returns {Promise<any>}
|
29 | */
|
30 | static hasExtra(extra: any): Promise<any>;
|
31 | /**
|
32 | * @param extra {any}
|
33 | * @returns {Promise<any>}
|
34 | */
|
35 | static getExtra(extra: any): Promise<any>;
|
36 | /**
|
37 | * @returns {Promise<any>}
|
38 | */
|
39 | static getUri(): Promise<string>;
|
40 | /**
|
41 | * @returns {Promise<string>}
|
42 | */
|
43 | static onNewIntent(): Promise<string>;
|
44 | /**
|
45 | * @param options {Object} { action: string, extras?: { option: boolean } }
|
46 | * @returns {Promise<any>}
|
47 | */
|
48 | static sendBroadcast(options: {
|
49 | action: string;
|
50 | extras?: {
|
51 | option: boolean;
|
52 | };
|
53 | }): Promise<any>;
|
54 | }
|