-
- All Implemented Interfaces:
-
java.lang.Runnable
public class MapSnapshot implements Runnable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceMapSnapshot.MapSnapshotablepublic enumMapSnapshot.Status
-
Field Summary
Fields Modifier and Type Field Description public final static intINCLUDE_FLAG_UPTODATEpublic final static intINCLUDE_FLAG_EXPIREDpublic final static intINCLUDE_FLAG_SCALEDpublic final static intINCLUDE_FLAG_NOTFOUNDpublic final static intINCLUDE_FLAGS_ALL
-
Constructor Summary
Constructors Constructor Description MapSnapshot(MapSnapshot.MapSnapshotable pMapSnapshotable, int pIncludeFlags, MapView pMapView)MapSnapshot(MapSnapshot.MapSnapshotable pMapSnapshotable, int pIncludeFlags, MapTileProviderBase pTileProvider, List<Overlay> pOverlays, Projection pProjection)
-
Method Summary
Modifier and Type Method Description static booleanisUIThread()To be used in View-related Overlay's draw methods.Not only are we not able to include View's in the snapshots,but drawing those View's can make the app crash. voidrun()MapSnapshot.StatusgetStatus()BitmapgetBitmap()booleansave(File pFile)voidonDetach()voidrefreshASAP()-
-
Constructor Detail
-
MapSnapshot
MapSnapshot(MapSnapshot.MapSnapshotable pMapSnapshotable, int pIncludeFlags, MapView pMapView)
-
MapSnapshot
MapSnapshot(MapSnapshot.MapSnapshotable pMapSnapshotable, int pIncludeFlags, MapTileProviderBase pTileProvider, List<Overlay> pOverlays, Projection pProjection)
-
-
Method Detail
-
isUIThread
static boolean isUIThread()
To be used in View-related Overlay's draw methods.Not only are we not able to include View's in the snapshots,but drawing those View's can make the app crash.A solution is to catch an Exception when drawing,and to be lenient when we're not on the UI thread
-
run
void run()
-
getStatus
MapSnapshot.Status getStatus()
-
onDetach
void onDetach()
-
refreshASAP
void refreshASAP()
-
-
-
-