mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
Merge branch 'master' of github.com:driftyco/ionic-native
This commit is contained in:
commit
7bcf1bfc74
@ -17,6 +17,15 @@ import { Cordova, Plugin } from './plugin';
|
|||||||
* (info) => console.log('Sim info: ', info),
|
* (info) => console.log('Sim info: ', info),
|
||||||
* (err) => console.log('Unable to get sim info: ', err)
|
* (err) => console.log('Unable to get sim info: ', err)
|
||||||
* );
|
* );
|
||||||
|
*
|
||||||
|
* Sim.hasReadPermission().then(
|
||||||
|
* (info) => console.log('Has permission: ', info)
|
||||||
|
* );
|
||||||
|
*
|
||||||
|
* Sim.requestReadPermission().then(
|
||||||
|
* () => console.log('Permission granted'),
|
||||||
|
* () => console.log('Permission denied')
|
||||||
|
* );
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
@ -34,4 +43,19 @@ export class Sim {
|
|||||||
@Cordova()
|
@Cordova()
|
||||||
static getSimInfo(): Promise<any> { return; }
|
static getSimInfo(): Promise<any> { return; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check permission
|
||||||
|
* Android only
|
||||||
|
* @returns {Promise<any>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
static hasReadPermission(): Promise<any> { return; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request permission
|
||||||
|
* Android only
|
||||||
|
* @returns {Promise<any>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
static requestReadPermission(): Promise<any> { return; }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user