toggle menu
MapLibre Native Android
11.7.1
androidJvm
switch theme
search in API
MapLibre Native Android
/
org.maplibre.android.location.permissions
/
PermissionsManager
Permissions
Manager
open
class
PermissionsManager
Helps request permissions at runtime.
Members
Constructors
Permissions
Manager
Link copied to clipboard
constructor
(
listener
:
PermissionsListener
)
Properties
listener
Link copied to clipboard
open
var
listener
:
PermissionsListener
Functions
are
Location
Permissions
Granted
Link copied to clipboard
open
fun
areLocationPermissionsGranted
(
context
:
Context
)
:
Boolean
are
Runtime
Permissions
Required
Link copied to clipboard
open
fun
areRuntimePermissionsRequired
(
)
:
Boolean
is
Background
Location
Permission
Granted
Link copied to clipboard
open
fun
isBackgroundLocationPermissionGranted
(
context
:
Context
)
:
Boolean
on
Request
Permissions
Result
Link copied to clipboard
open
fun
onRequestPermissionsResult
(
requestCode
:
Int
,
permissions
:
Array
<
String
>
,
grantResults
:
Array
<
Int
>
)
You should call this method from your activity onRequestPermissionsResult.
request
Location
Permissions
Link copied to clipboard
open
fun
requestLocationPermissions
(
activity
:
Activity
)