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

◆ hasPermission()

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.

◆ launchPermissionSettings()

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

Launch Application Setting to grant permission.

Definition at line 73 of file PermissionHelper.java.

◆ 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.

Member Data Documentation

◆ ACCESS_FINE_LOCATION_CODE

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

Definition at line 34 of file PermissionHelper.java.

◆ ACCESS_NETWORK_STATE_CODE

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

Definition at line 33 of file PermissionHelper.java.

◆ ACCESS_WIFI_STATE_CODE

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

Definition at line 35 of file PermissionHelper.java.

◆ CAMERA_CODE

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

Definition at line 29 of file PermissionHelper.java.

◆ INTERNET_CODE

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

Definition at line 32 of file PermissionHelper.java.

◆ READ_EXTERNAL_STORAGE_CODE

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

Definition at line 30 of file PermissionHelper.java.

◆ WRITE_EXTERNAL_STORAGE_CODE

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 Thu Jul 25 2024 02:50:26