public class ContentProviderController<T extends android.content.ContentProvider>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ContentProviderController<T> |
create()
Create and register
ContentProvider using ProviderInfo found from manifest. |
ContentProviderController<T> |
create(android.content.pm.ProviderInfo providerInfo)
Create and register
ContentProvider using the given ProviderInfo . |
ContentProviderController<T> |
create(java.lang.String authority)
Create and register
ContentProvider using ProviderInfo found from manifest. |
T |
get() |
static <T extends android.content.ContentProvider> |
of(T contentProvider) |
ContentProviderController<T> |
shutdown() |
public static <T extends android.content.ContentProvider> ContentProviderController<T> of(T contentProvider)
public ContentProviderController<T> create()
Create and register ContentProvider
using ProviderInfo
found from manifest.
public ContentProviderController<T> create(java.lang.String authority)
Create and register ContentProvider
using ProviderInfo
found from manifest.
authority
- the authority to useContentProviderController
public ContentProviderController<T> create(android.content.pm.ProviderInfo providerInfo)
Create and register ContentProvider
using the given ProviderInfo
.
providerInfo
- the ProviderInfo
to useContentProviderController
public T get()
public ContentProviderController<T> shutdown()