public static class Permissions.Options
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Options() |
| Modifier and Type | Method and Description |
|---|---|
Permissions.Options |
sendDontAskAgainToSettings(boolean send)
In the case the user has previously set some permissions not to ask again, if this flag
is true the user will be prompted to go to settings and provide the permissions otherwise
the method
PermissionHandler.onDenied(Context, ArrayList) will be invoked
directly. |
Permissions.Options |
setCreateNewTask(boolean createNewTask)
Sets the "Create new Task" flag in Intent, for when we're
calling this library from within a Service or other
non-activity context.
|
Permissions.Options |
setRationaleDialogTitle(java.lang.String rationaleDialogTitle)
Sets the title text for permission rationale dialog.
|
Permissions.Options |
setSettingsDialogMessage(java.lang.String settingsDialogMessage)
Sets the message of the dialog which asks user to go to settings, in the case when
permission(s) have been set not to ask again.
|
Permissions.Options |
setSettingsDialogTitle(java.lang.String settingsDialogTitle)
Sets the title text of the dialog which asks user to go to settings, in the case when
permission(s) have been set not to ask again.
|
Permissions.Options |
setSettingsText(java.lang.String settingsText)
Sets the button text for "settings" while asking user to go to settings.
|
public Permissions.Options setSettingsText(java.lang.String settingsText)
settingsText - The text for "settings".public Permissions.Options setCreateNewTask(boolean createNewTask)
createNewTask - true if we need the Intent.FLAG_ACTIVITY_NEW_TASKpublic Permissions.Options setRationaleDialogTitle(java.lang.String rationaleDialogTitle)
rationaleDialogTitle - the title text.public Permissions.Options setSettingsDialogTitle(java.lang.String settingsDialogTitle)
settingsDialogTitle - the title text.public Permissions.Options setSettingsDialogMessage(java.lang.String settingsDialogMessage)
settingsDialogMessage - the dialog message.public Permissions.Options sendDontAskAgainToSettings(boolean send)
PermissionHandler.onDenied(Context, ArrayList) will be invoked
directly. The default state is true.send - whether to ask user to go to settings or not.