Skip to content

Commit ff78ca7

Browse files
authored
feat(diagnostics): add getBluetoothAuthorizationStatuses function (#4442)
1 parent b283dc2 commit ff78ca7

File tree

1 file changed

+11
-0
lines changed
  • src/@awesome-cordova-plugins/plugins/diagnostic

1 file changed

+11
-0
lines changed

src/@awesome-cordova-plugins/plugins/diagnostic/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,17 @@ export class Diagnostic extends AwesomeCordovaNativePlugin {
696696
getBluetoothAuthorizationStatus(): Promise<any> {
697697
return;
698698
}
699+
700+
/**
701+
* Returns the individual authorization status for each Bluetooth run-time permission on Android 12+ / API 31+
702+
* 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.
703+
*
704+
* @returns {Promise<any>}
705+
*/
706+
@Cordova({ platforms: ['Android'] })
707+
getBluetoothAuthorizationStatuses(): Promise<any> {
708+
return;
709+
}
699710

700711
/**
701712
* Checks if the application is authorized to use external storage.

0 commit comments

Comments
 (0)