public class LassoContentProvider extends android.content.BroadcastReceiver implements URIContentProvider
android.content.BroadcastReceiver.PendingResultURIContentProvider.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, setResultExtraspublic static final java.lang.String CALLBACK_ACTION
public LassoContentProvider(MapView mapView)
public void dispose()
public java.lang.String getName()
URIContentProvidergetName in interface URIContentProviderpublic android.graphics.drawable.Drawable getIcon()
URIContentProvidergetIcon in interface URIContentProviderpublic boolean isSupported(java.lang.String requestTool)
URIContentProviderisSupported in interface URIContentProviderpublic boolean addContent(java.lang.String requestTool,
android.os.Bundle extras,
URIContentProvider.Callback callback)
URIContentProvideraddContent in interface URIContentProviderrequestTool - 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