1 | /**
|
2 | * @name Sim
|
3 | * @description
|
4 | * Gets info from the Sim card like the carrier name, mcc, mnc and country code and other system dependent info.
|
5 | *
|
6 | * Requires Cordova plugin: `cordova-plugin-sim`. For more info, please see the [Cordova Sim docs](https://github.com/pbakondy/cordova-plugin-sim).
|
7 | *
|
8 | * @usage
|
9 | * ```typescript
|
10 | * import { Sim } from 'ionic-native';
|
11 | *
|
12 | *
|
13 | * Sim.getSimInfo().then(
|
14 | * (info) => console.log('Sim info: ', info),
|
15 | * (err) => console.log('Unable to get sim info: ', err)
|
16 | * );
|
17 | *
|
18 | * Sim.hasReadPermission().then(
|
19 | * (info) => console.log('Has permission: ', info)
|
20 | * );
|
21 | *
|
22 | * Sim.requestReadPermission().then(
|
23 | * () => console.log('Permission granted'),
|
24 | * () => console.log('Permission denied')
|
25 | * );
|
26 | * ```
|
27 | */
|
28 | export declare class Sim {
|
29 | /**
|
30 | * Returns info from the SIM card.
|
31 | * @returns {Promise<any>}
|
32 | */
|
33 | static getSimInfo(): Promise<any>;
|
34 | /**
|
35 | * Check permission
|
36 | * @returns {Promise<any>}
|
37 | */
|
38 | static hasReadPermission(): Promise<any>;
|
39 | /**
|
40 | * Request permission
|
41 | * @returns {Promise<any>}
|
42 | */
|
43 | static requestReadPermission(): Promise<any>;
|
44 | }
|