| java.lang.Object | |
| ↳ | com.urbanairship.permission.SinglePermissionDelegate |
Permission delegate that handles sa single Android permission.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
SinglePermissionDelegate(String permission)
Default constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
checkPermissionStatus(Context context, Consumer<PermissionStatus> callback)
Checks the current status of the permission.
| ||||||||||
| void |
requestPermission(Context context, Consumer<PermissionRequestResult> callback)
Called when the delegate should request permissions.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.permission.PermissionDelegate
| |||||||||||
Default constructor.
| permission | The name of the Android permission. |
|---|
Checks the current status of the permission.
| context | The application context. |
|---|---|
| callback | The callback. |
PermissionStatus.
Called when the delegate should request permissions.
| context | The application context. |
|---|---|
| callback | The callback. |