Merge branch 'master' of github.com:driftyco/ionic-native

This commit is contained in:
Ibby 2016-12-27 07:17:01 -05:00
commit 7bcf1bfc74

View File

@ -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; }
} }