feat(diagnostics): add getBluetoothAuthorizationStatuses function (#4442)

This commit is contained in:
infacto 2022-12-31 08:59:22 +01:00 committed by GitHub
parent b283dc2e76
commit ff78ca7fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -696,6 +696,17 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
getBluetoothAuthorizationStatus(): Promise<any> { getBluetoothAuthorizationStatus(): Promise<any> {
return; return;
} }
/**
* Returns the individual authorization status for each Bluetooth run-time permission on Android 12+ / API 31+
* On Android 11 / API 30 and below, all will be returned as GRANTED if the manifest has BLUETOOTH since they are implicitly granted at build-time.
*
* @returns {Promise<any>}
*/
@Cordova({ platforms: ['Android'] })
getBluetoothAuthorizationStatuses(): Promise<any> {
return;
}
/** /**
* Checks if the application is authorized to use external storage. * Checks if the application is authorized to use external storage.