public abstract class GalleryContentProvider extends java.lang.Object implements URIContentProvider
URIContentProvider.Callback| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TOOL |
| Constructor and Description |
|---|
GalleryContentProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addContent(java.lang.String requestTool,
android.os.Bundle extras,
URIContentProvider.Callback cb)
Request to add content from one tool to another
|
android.graphics.drawable.Drawable |
getIcon()
Get an icon that represents this tool
|
abstract java.util.List<GalleryItem> |
getItems()
Get all applicable gallery items
|
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
|
public static final java.lang.String TOOL
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 cb)
URIContentProvideraddContent in interface URIContentProviderrequestTool - Name of the tool requesting the contentextras - Extra data specific to the request toolcb - Callback to fire if/when content is ready to be added
or has already been addedpublic abstract java.util.List<GalleryItem> getItems()