public interface

PermissionDelegate

com.urbanairship.permission.PermissionDelegate
Known Indirect Subclasses

Class Overview

Permission delegate to extend what permissions the Airship SDK can collect.

Summary

Public Methods
abstract void checkPermissionStatus(Context context, Consumer<PermissionStatus> callback)
Checks the current status of the permission.
abstract void requestPermission(Context context, Consumer<PermissionRequestResult> callback)
Called when the delegate should request permissions.

Public Methods

public abstract void checkPermissionStatus (Context context, Consumer<PermissionStatus> callback)

Checks the current status of the permission.

Parameters
context The application context.
callback The callback.
Returns

public abstract void requestPermission (Context context, Consumer<PermissionRequestResult> callback)

Called when the delegate should request permissions.

Parameters
context The application context.
callback The callback.