public class LocationComponentActivationOptions
extends java.lang.Object
LocationComponent
to eventually
show the device location on the map.Modifier and Type | Class and Description |
---|---|
static class |
LocationComponentActivationOptions.Builder
Builder class for constructing a new instance of
LocationComponentActivationOptions . |
Modifier and Type | Method and Description |
---|---|
static LocationComponentActivationOptions.Builder |
builder(android.content.Context context,
Style fullyLoadedMapStyle)
Convenience method to retrieve a
LocationComponentActivationOptions object which is ready to build with |
android.content.Context |
context()
The application's current context
|
LocationComponentOptions |
locationComponentOptions()
A built
LocationComponentOptions object, which holds the various LocationComponent styling options |
LocationEngine |
locationEngine()
The
LocationEngine which the LocationComponent should use |
LocationEngineRequest |
locationEngineRequest()
The location request which the
LocationComponent should use |
Style |
style()
The proxy object for current map style.
|
int |
styleRes()
The LocationComponent style resource (e.g.
|
boolean |
useDefaultLocationEngine()
True if you want to initialize and use the built-in location engine or false if there should be no
location engine initialized
|
public static LocationComponentActivationOptions.Builder builder(android.content.Context context, Style fullyLoadedMapStyle)
LocationComponentActivationOptions
object which is ready to build withpublic android.content.Context context()
public Style style()
Style
public LocationEngine locationEngine()
LocationEngine
which the LocationComponent
should usepublic LocationEngineRequest locationEngineRequest()
LocationComponent
should usepublic LocationComponentOptions locationComponentOptions()
LocationComponentOptions
object, which holds the various LocationComponent
styling optionspublic int styleRes()
public boolean useDefaultLocationEngine()
© 2015–2019 Mapbox. All rights reserved.