Static Public Member Functions | Static Public Attributes | List of all members
com.introlab.rtabmap.PermissionHelper Class Reference

Static Public Member Functions

static boolean hasPermission (Activity activity, String permission)
 
static void launchPermissionSettings (Activity activity)
 
static void requestPermission (Activity activity, String permission)
 
static boolean shouldShowRequestPermissionRationale (Activity activity, String permission)
 

Static Public Attributes

static final int ACCESS_FINE_LOCATION_CODE = 5
 
static final int ACCESS_NETWORK_STATE_CODE = 4
 
static final int ACCESS_WIFI_STATE_CODE = 6
 
static final int CAMERA_CODE = 0
 
static final int INTERNET_CODE = 3
 
static final int READ_EXTERNAL_STORAGE_CODE = 1
 
static final int WRITE_EXTERNAL_STORAGE_CODE = 2
 

Detailed Description

Helper to ask camera permission.

Definition at line 28 of file PermissionHelper.java.

Member Function Documentation

static boolean com.introlab.rtabmap.PermissionHelper.hasPermission ( Activity  activity,
String  permission 
)
inlinestatic

Check to see we have the necessary permissions for this app.

Definition at line 38 of file PermissionHelper.java.

static void com.introlab.rtabmap.PermissionHelper.launchPermissionSettings ( Activity  activity)
inlinestatic

Launch Application Setting to grant permission.

Definition at line 73 of file PermissionHelper.java.

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.

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.

Member Data Documentation

final int com.introlab.rtabmap.PermissionHelper.ACCESS_FINE_LOCATION_CODE = 5
static

Definition at line 34 of file PermissionHelper.java.

final int com.introlab.rtabmap.PermissionHelper.ACCESS_NETWORK_STATE_CODE = 4
static

Definition at line 33 of file PermissionHelper.java.

final int com.introlab.rtabmap.PermissionHelper.ACCESS_WIFI_STATE_CODE = 6
static

Definition at line 35 of file PermissionHelper.java.

final int com.introlab.rtabmap.PermissionHelper.CAMERA_CODE = 0
static

Definition at line 29 of file PermissionHelper.java.

final int com.introlab.rtabmap.PermissionHelper.INTERNET_CODE = 3
static

Definition at line 32 of file PermissionHelper.java.

final int com.introlab.rtabmap.PermissionHelper.READ_EXTERNAL_STORAGE_CODE = 1
static

Definition at line 30 of file PermissionHelper.java.

final int com.introlab.rtabmap.PermissionHelper.WRITE_EXTERNAL_STORAGE_CODE = 2
static

Definition at line 31 of file PermissionHelper.java.


The documentation for this class was generated from the following file:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:37:08