com.mobiledgex.matchingengine.util.RequestPermissions Class Reference

Public Member Functions

List< String > getNeededPermissions (AppCompatActivity activity)
 
void requestMultiplePermissions (AppCompatActivity activity)
 
void onRequestPermissionsResult (AppCompatActivity activity, int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
 

Static Public Attributes

static final int REQUEST_MULTIPLE_PERMISSION = 1001
 
static final String[] permissions
 
static boolean permissionsDeniedShown = false
 

Detailed Description

Android UI Permissions helper. Activity contexts are needed.

Member Function Documentation

◆ onRequestPermissionsResult()

void com.mobiledgex.matchingengine.util.RequestPermissions.onRequestPermissionsResult ( AppCompatActivity  activity,
int  requestCode,
@NonNull String[]  permissions,
@NonNull int[]  grantResults 
)

Keeps asking for permissions until granted or user checks box to not asked again.

Parameters
activity(AppCompatActivity)
requestCode(int)
permissions(String[])
grantResults(int[])

Member Data Documentation

◆ permissions

final String [] com.mobiledgex.matchingengine.util.RequestPermissions.permissions
static
Initial value:
= new String[] {
Manifest.permission.ACCESS_FINE_LOCATION,
Manifest.permission.ACCESS_COARSE_LOCATION,
Manifest.permission.READ_PHONE_STATE,
}