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