get Permission Status
Returns the current authorization state of the specified permission without presenting a system prompt.
Use this to decide whether to call requestPermission, to gate a feature, or to route the user to settings when access was previously denied. The check reflects the live OS state, so re-query it on each launch / screen appearance rather than caching across sessions (see the "Allow Once" note on requestPermission). This function suspends until the permission status can be determined.
Return
The current PermissionStatus (e.g. GRANTED, DENIED, NOT_DETERMINED).
Parameters
The com.advantahealth.api.permissions.model.Permission to check.
Throws
if an error occurs while checking the permission status.
Returns the current authorization state of the specified permission without presenting a system prompt.
Use this to decide whether to call requestPermission, to gate a feature, or to route the user to settings when access was previously denied. The check reflects the live OS state, so re-query it on each launch / screen appearance rather than caching across sessions (see the "Allow Once" note on requestPermission). This function suspends until the permission status can be determined.
Return
The current PermissionStatus (e.g. GRANTED, DENIED, NOT_DETERMINED).
Parameters
The com.advantahealth.api.permissions.model.Permission to check.
Throws
if an error occurs while checking the permission status.
Returns the current authorization state of the specified permission without presenting a system prompt.
Use this to decide whether to call requestPermission, to gate a feature, or to route the user to settings when access was previously denied. The check reflects the live OS state, so re-query it on each launch / screen appearance rather than caching across sessions (see the "Allow Once" note on requestPermission). This function suspends until the permission status can be determined.
Return
The current PermissionStatus (e.g. GRANTED, DENIED, NOT_DETERMINED).
Parameters
The com.advantahealth.api.permissions.model.Permission to check.
Throws
if an error occurs while checking the permission status.