Helper to ask camera permission.
Definition at line 28 of file PermissionHelper.java.
◆ hasPermission()
static boolean com.introlab.rtabmap.PermissionHelper.hasPermission |
( |
Activity |
activity, |
|
|
String |
permission |
|
) |
| |
|
inlinestatic |
◆ launchPermissionSettings()
static void com.introlab.rtabmap.PermissionHelper.launchPermissionSettings |
( |
Activity |
activity | ) |
|
|
inlinestatic |
◆ requestPermission()
static void com.introlab.rtabmap.PermissionHelper.requestPermission |
( |
Activity |
activity, |
|
|
String |
permission |
|
) |
| |
|
inlinestatic |
Check to see we have the necessary permissions for this app, and ask for them if we don't.
Definition at line 43 of file PermissionHelper.java.
◆ shouldShowRequestPermissionRationale()
static boolean com.introlab.rtabmap.PermissionHelper.shouldShowRequestPermissionRationale |
( |
Activity |
activity, |
|
|
String |
permission |
|
) |
| |
|
inlinestatic |
Check to see if we need to show the rationale for this permission.
Definition at line 68 of file PermissionHelper.java.
◆ ACCESS_FINE_LOCATION_CODE
final int com.introlab.rtabmap.PermissionHelper.ACCESS_FINE_LOCATION_CODE = 5 |
|
static |
◆ ACCESS_NETWORK_STATE_CODE
final int com.introlab.rtabmap.PermissionHelper.ACCESS_NETWORK_STATE_CODE = 4 |
|
static |
◆ ACCESS_WIFI_STATE_CODE
final int com.introlab.rtabmap.PermissionHelper.ACCESS_WIFI_STATE_CODE = 6 |
|
static |
◆ CAMERA_CODE
final int com.introlab.rtabmap.PermissionHelper.CAMERA_CODE = 0 |
|
static |
◆ INTERNET_CODE
final int com.introlab.rtabmap.PermissionHelper.INTERNET_CODE = 3 |
|
static |
◆ READ_EXTERNAL_STORAGE_CODE
final int com.introlab.rtabmap.PermissionHelper.READ_EXTERNAL_STORAGE_CODE = 1 |
|
static |
◆ WRITE_EXTERNAL_STORAGE_CODE
final int com.introlab.rtabmap.PermissionHelper.WRITE_EXTERNAL_STORAGE_CODE = 2 |
|
static |
The documentation for this class was generated from the following file: