public class PermissionsSettings extends Object
Added in daily build 2016.2828.
Constructor and Description |
---|
PermissionsSettings()
Creates an object for storing Permissions settings.
|
PermissionsSettings(LinkedHashSet<String> permissions)
Creates an object for storing Permissions settings.
|
PermissionsSettings(LinkedHashSet<String> permissions,
int listener) |
PermissionsSettings(LinkedHashSet<String> permissions,
int listener,
PermissionUrgency urgency) |
PermissionsSettings(String permission)
Creates an object for storing Permissions settings.
|
PermissionsSettings(String[] permissions)
Creates an object for storing Permissions settings.
|
PermissionsSettings(String[] permissions,
int listener) |
PermissionsSettings(String[] permissions,
int listener,
PermissionUrgency urgency) |
PermissionsSettings(String permission,
int listener) |
PermissionsSettings(String permission,
int listener,
PermissionUrgency urgency) |
Modifier and Type | Method and Description |
---|---|
static PermissionsSettings |
from(HashMap<String,Object> collection)
Extracts the PermissionsSettings from a Corona Hashtable.
|
int |
getListener() |
LinkedHashSet<String> |
getPermissions()
Gets a collection of permissions that will be requested.
|
String |
getRationaleDescription() |
String |
getRationaleTitle() |
String |
getSettingsRedirectDescription() |
String |
getSettingsRedirectTitle() |
static HashMap<Integer,PermissionsSettings> |
getSettingsToBeServiced() |
PermissionUrgency |
getUrgency() |
void |
markAsServiced()
Puts this PermissionsSettings object in the "serviced" state.
|
boolean |
needsService()
Returns whether this PermissionsSettings object needs service.
|
void |
resetServiceStatus()
Puts this PermissionsSettings object in the "needs service" state.
|
void |
setListener(int listenerRegistryId) |
void |
setPermissions(LinkedHashSet<String> newPermissions)
Sets the collection of permissions to be requested.
|
void |
setRationaleDescription(String rationaleDescription) |
void |
setRationaleTitle(String rationaleTitle) |
void |
setSettingsRedirectDescription(String settingsRedirectDescription) |
void |
setSettingsRedirectTitle(String settingsRedirectTitle) |
void |
setUrgency(PermissionUrgency urgency) |
public PermissionsSettings()
public PermissionsSettings(String permission)
permission
- The permission we wish to request.public PermissionsSettings(String permission, int listener)
public PermissionsSettings(String permission, int listener, PermissionUrgency urgency)
public PermissionsSettings(String[] permissions)
permissions
- An array of permissions we wish to request.public PermissionsSettings(String[] permissions, int listener)
public PermissionsSettings(String[] permissions, int listener, PermissionUrgency urgency)
public PermissionsSettings(LinkedHashSet<String> permissions)
permissions
- A LinkedHashSet
of permissions we wish to request.public PermissionsSettings(LinkedHashSet<String> permissions, int listener)
public PermissionsSettings(LinkedHashSet<String> permissions, int listener, PermissionUrgency urgency)
public LinkedHashSet<String> getPermissions()
public void setPermissions(LinkedHashSet<String> newPermissions)
newPermissions
- The new permissions we want this PermissionsSettings object to hold.public int getListener()
public void setListener(int listenerRegistryId)
public PermissionUrgency getUrgency()
public void setUrgency(PermissionUrgency urgency)
public String getRationaleTitle()
public void setRationaleTitle(String rationaleTitle)
public String getRationaleDescription()
public void setRationaleDescription(String rationaleDescription)
public String getSettingsRedirectTitle()
public void setSettingsRedirectTitle(String settingsRedirectTitle)
public String getSettingsRedirectDescription()
public void setSettingsRedirectDescription(String settingsRedirectDescription)
public boolean needsService()
public void markAsServiced()
public void resetServiceStatus()
public static HashMap<Integer,PermissionsSettings> getSettingsToBeServiced()
public static PermissionsSettings from(HashMap<String,Object> collection)
collection
- The HashMap
to extract PermissionsSettings from.