public class VgMyRemoteMapManagerImpl extends java.lang.Object implements VgMyRemoteMapManager
VgMyRemoteMapManager.VgMyRemoteMapManagerCallback, VgMyRemoteMapManager.VgMyRemoteMapManagerConfig
Modifier and Type | Field and Description |
---|---|
static int |
DOWNLOAD_LIST_REQUEST |
static int |
DOWNLOAD_MAP_REQUEST |
static int |
REQUEST_CODE_OFFSET |
static int |
UNZIP_MAP_REQUEST |
Constructor and Description |
---|
VgMyRemoteMapManagerImpl(Activity pActivity,
VgIApplication pVgApplication,
VgMyRemoteMapManager.VgMyRemoteMapManagerConfig pConfig,
java.lang.String pLocalMapsDirectory,
java.lang.String pLocalTemporaryDirectory) |
Modifier and Type | Method and Description |
---|---|
boolean |
downloadMap(long pMadID)
start downloading a remote map.
|
java.lang.String |
getLocalConfigPathForMap(long pMapID) |
java.lang.String |
getLocalDirectoryPathForMap(long pMapID) |
boolean |
list()
Starts a list request
|
void |
onActivityResult(int requestCode,
int resultCode,
Intent data) |
void |
release()
This method should be called when the activity dies to notify that we
should release/unregister all VisioDevKit objects, and null out as much
references on other objects as possible.
|
boolean |
removeLocalMap(long pMapID)
Remove a specific local map from storage
|
boolean |
removeLocalMaps()
Remove all download local maps from storage
|
public static final int REQUEST_CODE_OFFSET
public static final int DOWNLOAD_MAP_REQUEST
public static final int DOWNLOAD_LIST_REQUEST
public static final int UNZIP_MAP_REQUEST
public VgMyRemoteMapManagerImpl(Activity pActivity, VgIApplication pVgApplication, VgMyRemoteMapManager.VgMyRemoteMapManagerConfig pConfig, java.lang.String pLocalMapsDirectory, java.lang.String pLocalTemporaryDirectory)
public void onActivityResult(int requestCode, int resultCode, Intent data)
public boolean list()
VgMyRemoteMapManager
list
in interface VgMyRemoteMapManager
public boolean downloadMap(long pMadID)
VgMyRemoteMapManager
downloadMap
in interface VgMyRemoteMapManager
public java.lang.String getLocalDirectoryPathForMap(long pMapID)
public java.lang.String getLocalConfigPathForMap(long pMapID)
getLocalConfigPathForMap
in interface VgMyRemoteMapManager
pMapID
- map id of the relevant map.public boolean removeLocalMap(long pMapID)
VgMyRemoteMapManager
removeLocalMap
in interface VgMyRemoteMapManager
pMapID
- The id of the map to removepublic boolean removeLocalMaps()
VgMyRemoteMapManager
removeLocalMaps
in interface VgMyRemoteMapManager
public void release()
release
in interface VgMyRemoteMapManager