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()
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 cb)
URIContentProvider
addContent
in interface URIContentProvider
requestTool
- 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()