public class VehicleModelImporter extends MapItemImporter
_context, _group, _mapView, _prefs, FROM_MISSIONPACKAGE, FROM_STATESAVER, NOTIFICATION_ID
crcBlacklist, supportedMimeTypes
contentType
Constructor and Description |
---|
VehicleModelImporter(MapView mapView,
MapGroup vehicleGroup) |
Modifier and Type | Method and Description |
---|---|
static VehicleModelInfo |
findModel(java.lang.String name)
Find the model for an overhead marker (legacy)
|
protected int |
getNotificationIcon(MapItem item)
Get an to represent this importer's notification
Note: Due to a limitation with the Android notification API,
this method MUST return an ATAK core icon resource ID
|
protected CommsMapComponent.ImportResult |
importMapItem(MapItem existing,
CotEvent cot,
android.os.Bundle extras)
Import a map item via CoT event
Sub-class implementation is responsible for the following:
- Create the new map item (if it doesn't exist)
- Update item metadata based on event content
- Add the item to a map group (if not already added)
|
addToGroup, addToGroup, dispatchItemImported, findItem, findItem, importData, isLocalImport, isStateSaverImport, persist, postNotification
getSupportedCotTypes, importNonCotData, isPrefixOnly, setPrefixOnly
crcDetails, getSupportedMIMETypes, importData, importData, importData, parseColor, parseDouble, parseInt
deleteData, getContentType, importUriAsStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteData, getContentType
protected CommsMapComponent.ImportResult importMapItem(MapItem existing, CotEvent cot, android.os.Bundle extras)
MapItemImporter
importMapItem
in class MapItemImporter
existing
- Existing map item (null if new)cot
- CoT eventextras
- Import extrasCommsMapComponent.ImportResult.SUCCESS
if handled successfully
CommsMapComponent.ImportResult.FAILURE
if handled but failed
CommsMapComponent.ImportResult.IGNORE
if not handled or N/A
CommsMapComponent.ImportResult.DEFERRED
if we should try again laterprotected int getNotificationIcon(MapItem item)
MapItemImporter
getNotificationIcon
in class MapItemImporter
item
- Map item (not null)public static VehicleModelInfo findModel(java.lang.String name)
name
- Vehicle name