public class PermissionsViewModel extends ViewModel
Constructor and Description |
---|
PermissionsViewModel() |
Modifier and Type | Method and Description |
---|---|
LiveData<Set<String>> |
getPermissions() |
void |
grantPermission(String permission)
Grant permissions to the user with this method
|
void |
revokePermission(String permission)
Revoke currently granted permissions with this method
|
public LiveData<Set<String>> getPermissions()
public void grantPermission(String permission)
permission
- , a string of permissions grantedpublic void revokePermission(String permission)
permission,
- a string of permissions to be revoked.