@Deprecated
public class MyLocationViewSettings
extends java.lang.Object
Constructor and Description |
---|
MyLocationViewSettings(MyLocationView myLocationView,
Projection projection,
FocalPointChangeListener focalPointChangedListener)
Deprecated.
Creates an instance of MyLocationViewSettings
|
Modifier and Type | Method and Description |
---|---|
int |
getAccuracyAlpha()
Deprecated.
Get the alpha value of the accuracy circle of MyLocationView
|
float |
getAccuracyThreshold()
Deprecated.
Returns current accuracy threshold value (in meters).
|
int |
getAccuracyTintColor()
Deprecated.
Get the accuracy tint color of MyLocationView.
|
android.graphics.drawable.Drawable |
getBackgroundDrawable()
Deprecated.
Get the background drawable of MyLocationView.
|
int[] |
getBackgroundOffset()
Deprecated.
Get the background offset.
|
int |
getBackgroundTintColor()
Deprecated.
Get the background tint color.
|
android.graphics.drawable.Drawable |
getForegroundBearingDrawable()
Deprecated.
Get the foreground drawable when bearing is enabled.
|
android.graphics.drawable.Drawable |
getForegroundDrawable()
Deprecated.
Get the foreground drawable when bearing is disabled.
|
int |
getForegroundTintColor()
Deprecated.
Get the foreground tint color.
|
int[] |
getPadding()
Deprecated.
Get the MyLocationView padding.
|
void |
initialise(MapboxMapOptions options)
Deprecated.
Initialise this with MapboxMapOptions.
|
boolean |
isEnabled()
Deprecated.
Returns if the MyLocationView is enabled
|
void |
onRestoreInstanceState(android.os.Bundle savedInstanceState)
Deprecated.
|
void |
onSaveInstanceState(android.os.Bundle outState)
Deprecated.
|
void |
setAccuracyAlpha(int accuracyAlpha)
Deprecated.
Set the alpha value of the accuracy circle of MyLocationView
|
void |
setAccuracyThreshold(float accuracyThreshold)
Deprecated.
Set accuracy circle threshold.
|
void |
setAccuracyTintColor(int accuracyTintColor)
Deprecated.
Set the accuracy tint color of MyLocationView.
|
void |
setBackgroundDrawable(android.graphics.drawable.Drawable backgroundDrawable,
int[] padding)
Deprecated.
Set the background drawable of MyLocationView
|
void |
setBackgroundTintColor(int backgroundTintColor)
Deprecated.
Set the background tint color.
|
void |
setEnabled(boolean enabled)
Deprecated.
Set the enabled state of MyLocationView
|
void |
setForegroundDrawable(android.graphics.drawable.Drawable foregroundDrawable,
android.graphics.drawable.Drawable foregroundBearingDrawable)
Deprecated.
Set the foreground drawable of the MyLocationView
|
void |
setForegroundTintColor(int foregroundTintColor)
Deprecated.
Set the foreground tint color.
|
void |
setPadding(int left,
int top,
int right,
int bottom)
Deprecated.
Set the MyLocationView padding.
|
void |
setTilt(double tilt)
Deprecated.
|
public MyLocationViewSettings(MyLocationView myLocationView, Projection projection, FocalPointChangeListener focalPointChangedListener)
myLocationView
- the MyLocationView to apply the settings toprojection
- the MapView projectionfocalPointChangedListener
- the interface to be invoked when focal points changesMyLocationView
public void initialise(@NonNull MapboxMapOptions options)
options
- the options to initialise this class frompublic void onSaveInstanceState(android.os.Bundle outState)
public void onRestoreInstanceState(@NonNull android.os.Bundle savedInstanceState)
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true shows the MyLocationView on the mappublic void setForegroundDrawable(android.graphics.drawable.Drawable foregroundDrawable, android.graphics.drawable.Drawable foregroundBearingDrawable)
The foreground drawable is the image visible on screen
It's linked with the foreground tint colorforegroundDrawable
- the drawable to show as foreground without bearingforegroundBearingDrawable
- the drawable to show as foreground when bearing is enabledpublic android.graphics.drawable.Drawable getForegroundDrawable()
public android.graphics.drawable.Drawable getForegroundBearingDrawable()
public void setForegroundTintColor(int foregroundTintColor)
The color will tint both the foreground and the bearing foreground drawable.
foregroundTintColor
- the color to tint the foreground drawable or -1 (undefined color) to remove the
existing foreground tint colorpublic int getForegroundTintColor()
public void setBackgroundDrawable(android.graphics.drawable.Drawable backgroundDrawable, int[] padding)
Padding can be added to provide an offset to the background
It's linked with the background tint colorbackgroundDrawable
- the drawable to show as backgroundpadding
- the padding added to the backgroundpublic android.graphics.drawable.Drawable getBackgroundDrawable()
public void setBackgroundTintColor(int backgroundTintColor)
backgroundTintColor
- the color to tint the background drawable or -1 (undefined color) to remove the
existing background tint colorpublic int getBackgroundTintColor()
public int[] getBackgroundOffset()
public void setPadding(int left, int top, int right, int bottom)
left
- the padding left of MyLocationViewtop
- the padding top of MyLocationViewright
- the padding right of MyLocationViewbottom
- the padding bottom of MyLocaionViewpublic int[] getPadding()
public int getAccuracyAlpha()
public void setAccuracyAlpha(int accuracyAlpha)
accuracyAlpha
- the alpha value to setpublic int getAccuracyTintColor()
public void setAccuracyTintColor(int accuracyTintColor)
accuracyTintColor
- the accuracy tint colorpublic float getAccuracyThreshold()
public void setAccuracyThreshold(float accuracyThreshold)
accuracyThreshold
- Value of accuracy (in meters), below which circle won't be displayedpublic void setTilt(double tilt)