Skip to content

Commit

Permalink
feat(diagnostics): add getBluetoothAuthorizationStatuses function (#4442
Browse files Browse the repository at this point in the history
)
  • Loading branch information
infacto committed Dec 31, 2022
1 parent b283dc2 commit ff78ca7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/@awesome-cordova-plugins/plugins/diagnostic/index.ts
Expand Up @@ -696,6 +696,17 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
getBluetoothAuthorizationStatus(): Promise<any> {
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.
Expand Down

0 comments on commit ff78ca7

Please sign in to comment.