Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(diagnostics): add getBluetoothAuthorizationStatuses function #4442

Merged
merged 1 commit into from
Dec 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/@awesome-cordova-plugins/plugins/diagnostic/index.ts
Original file line number Diff line number Diff line change
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