public class LocationComponentActivationOptions extends 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(Context context,
Style fullyLoadedMapStyle)
Convenience method to retrieve a
LocationComponentActivationOptions object which is ready to build with |
Context |
context()
The application's current context
|
LocationComponentOptions |
locationComponentOptions()
A built
LocationComponentOptions object, which holds the various LocationComponent styling options |
com.mapbox.android.core.location.LocationEngine |
locationEngine()
The
LocationEngine which the LocationComponent should use |
com.mapbox.android.core.location.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
|
@NonNull public static LocationComponentActivationOptions.Builder builder(@NonNull Context context, @NonNull Style fullyLoadedMapStyle)
LocationComponentActivationOptions
object which is ready to build with@NonNull public Context context()
@NonNull public Style style()
Style
@Nullable public com.mapbox.android.core.location.LocationEngine locationEngine()
LocationEngine
which the LocationComponent
should use@Nullable public com.mapbox.android.core.location.LocationEngineRequest locationEngineRequest()
LocationComponent
should use@Nullable public LocationComponentOptions locationComponentOptions()
LocationComponentOptions
object, which holds the various LocationComponent
styling optionspublic int styleRes()
public boolean useDefaultLocationEngine()
© 2015–2019 Mapbox. All rights reserved.