public class CacheAreaDefinition
extends java.lang.Object
implements android.os.Parcelable
pixelRatio must be ≥ 0 and should typically be 1.0 or 2.0.
if includeIdeographs is false, offline region will not include CJK glyphs
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
Constructor and Description |
---|
CacheAreaDefinition(android.os.Parcel parcel)
Constructor to create an CacheAreaDefinition from a Parcel.
|
CacheAreaDefinition(java.lang.String styleURL,
LatLngBoundsZoom[] boundsZoomList,
float pixelRatio)
Constructor to create an CacheAreaDefinition from parameters.
|
CacheAreaDefinition(java.lang.String styleURL,
LatLngBoundsZoom[] boundsZoomList,
float pixelRatio,
boolean includeIdeographs)
Constructor to create an CacheAreaDefinition from parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
getIncludeIdeographs() |
float |
getPixelRatio() |
java.lang.String |
getStyleURL() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public CacheAreaDefinition(java.lang.String styleURL, LatLngBoundsZoom[] boundsZoomList, float pixelRatio)
styleURL
- the styleboundsZoomList
- the boundsZoomListpixelRatio
- pixel ratio of the devicepublic CacheAreaDefinition(java.lang.String styleURL, LatLngBoundsZoom[] boundsZoomList, float pixelRatio, boolean includeIdeographs)
styleURL
- the styleboundsZoomList
- the boundsZoomListpixelRatio
- pixel ratio of the deviceincludeIdeographs
- include glyphs for CJK languagespublic CacheAreaDefinition(android.os.Parcel parcel)
parcel
- the parcel to create the CacheAreaDefinition frompublic java.lang.String getStyleURL()
public float getPixelRatio()
public boolean getIncludeIdeographs()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
© 2015–2019 Mapbox. All rights reserved.