AI2 Component
(Version nb184)
|
Public Member Functions | |
PermissionException (String permissionNeeded) | |
String | getPermissionNeeded () |
String | getMessage () |
PermissionException is thrown when App Inventor needs a certain permission granted by the user but does not have that permissions according to the Android permissions API.
This exception will only be thrown on SDK 23 (Android 6.0 Marshmallow) or higher.
Definition at line 16 of file PermissionException.java.
com.google.appinventor.components.runtime.errors.PermissionException.PermissionException | ( | String | permissionNeeded | ) |
Construct a new PermissionException to report that the given permission is needed.
permissionNeeded | The permission needed at the point the exception is thrown. |
Definition at line 24 of file PermissionException.java.
String com.google.appinventor.components.runtime.errors.PermissionException.getMessage | ( | ) |
Definition at line 37 of file PermissionException.java.
String com.google.appinventor.components.runtime.errors.PermissionException.getPermissionNeeded | ( | ) |
Get the name of the needed permission.
Definition at line 32 of file PermissionException.java.