-
public interface IRequestPermissionServiceA service for requesting permission from the user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceIRequestPermissionService.PermissionCallback
-
Method Summary
Modifier and Type Method Description abstract UnitregisterAsCallback(String permissionType, IRequestPermissionService.PermissionCallback callback)Register a new permission type and the receiver of the callback once the user has made a decision. abstract UnitstartPrompt(Boolean fallbackCondition, String permissionRequestType, String androidPermissionString, Class<?> callbackClass)Prompt the user for the permission being requested. -
-
Method Detail
-
registerAsCallback
abstract Unit registerAsCallback(String permissionType, IRequestPermissionService.PermissionCallback callback)
Register a new permission type and the receiver of the callback once the user has made a decision.
- Parameters:
permissionType- The type of permission that will be requested.callback- The PermissionCallback that will be called when the user has granted/denied permission for that permission.
-
startPrompt
abstract Unit startPrompt(Boolean fallbackCondition, String permissionRequestType, String androidPermissionString, Class<?> callbackClass)
Prompt the user for the permission being requested.
- Parameters:
fallbackCondition- Whether the user should be directed to app settings in the event permission cannot be granted/denied inline.permissionRequestType- The type of permission to request.androidPermissionString- The Android permission string being requested.callbackClass- The name of the class that will receive the callback.
-
-
-
-