mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-21 09:16:26 +08:00
feat(device-accounts): add "getPermissionsByType" function (#3048)
This commit is contained in:
parent
312c126cc8
commit
dfb0aa3d5d
@ -37,7 +37,7 @@ export interface AndroidAccount {
|
|||||||
pluginName: 'DeviceAccounts',
|
pluginName: 'DeviceAccounts',
|
||||||
plugin: 'cordova-device-accounts-v2',
|
plugin: 'cordova-device-accounts-v2',
|
||||||
pluginRef: 'DeviceAccounts',
|
pluginRef: 'DeviceAccounts',
|
||||||
repo: 'https://github.com/xUnholy/cordova-device-accounts',
|
repo: 'https://github.com/xUnholy/cordova-device-accounts-v2',
|
||||||
platforms: ['Android']
|
platforms: ['Android']
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@ -87,4 +87,14 @@ export class DeviceAccounts extends IonicNativePlugin {
|
|||||||
getPermissions(): Promise<string> {
|
getPermissions(): Promise<string> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get permissions for access to email registered on Android device 8.0+ for requested type
|
||||||
|
* @param {string} type
|
||||||
|
* @returns {Promise<string>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getPermissionsByType(type: string): Promise<string> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user