public class LassoContentProvider extends android.content.BroadcastReceiver implements URIContentProvider
android.content.BroadcastReceiver.PendingResult
URIContentProvider.Callback
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CALLBACK_ACTION |
Constructor and Description |
---|
LassoContentProvider(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
boolean |
addContent(java.lang.String requestTool,
android.os.Bundle extras,
URIContentProvider.Callback callback)
Request to add content from one tool to another
|
void |
dispose() |
android.graphics.drawable.Drawable |
getIcon()
Get an icon that represents this tool
|
java.lang.String |
getName()
Get the tool name to be displayed to the user
|
boolean |
isSupported(java.lang.String requestTool)
Check if this content type can be added to the requested tool
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String CALLBACK_ACTION
public LassoContentProvider(MapView mapView)
public void dispose()
public java.lang.String getName()
URIContentProvider
getName
in interface URIContentProvider
public android.graphics.drawable.Drawable getIcon()
URIContentProvider
getIcon
in interface URIContentProvider
public boolean isSupported(java.lang.String requestTool)
URIContentProvider
isSupported
in interface URIContentProvider
public boolean addContent(java.lang.String requestTool, android.os.Bundle extras, URIContentProvider.Callback callback)
URIContentProvider
addContent
in interface URIContentProvider
requestTool
- Name of the tool requesting the contentextras
- Extra data specific to the request toolcallback
- Callback to fire if/when content is ready to be added
or has already been addedpublic void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver