|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectandroid.content.ContentProvider
mobi.voiceassistant.base.content.PatternUriProvider
public abstract class PatternUriProvider
Extend this class to rewrite pattern content uris in runtime. May be useful to separate test and debug servers or servers for different languages. For example content://com.example/entity -> http://example.com/api
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.content.ContentProvider |
|---|
ContentProvider.PipeDataWriter<T> |
| Field Summary |
|---|
| Fields inherited from interface android.content.ComponentCallbacks2 |
|---|
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN |
| Constructor Summary | |
|---|---|
PatternUriProvider()
|
|
| Method Summary | |
|---|---|
int |
delete(Uri uri,
String selection,
String[] selectionArgs)
Not supported. |
String |
getType(Uri uri)
Always returns AgentContract.Content.URI_TYPE |
abstract Uri |
getUri(Uri contentUri)
Override this method to rewrite uri |
Uri |
insert(Uri uri,
ContentValues values)
Not supported. |
boolean |
onCreate()
Always returns true |
Cursor |
query(Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder)
|
int |
update(Uri uri,
ContentValues values,
String selection,
String[] selectionArgs)
Not supported. |
| Methods inherited from class android.content.ContentProvider |
|---|
applyBatch, attachInfo, bulkInsert, call, dump, getContext, getPathPermissions, getReadPermission, getStreamTypes, getWritePermission, isTemporary, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openFile, openFileHelper, openPipeHelper, openTypedAssetFile, query, setPathPermissions, setReadPermission, setWritePermission, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatternUriProvider()
| Method Detail |
|---|
public abstract Uri getUri(Uri contentUri)
contentUri - Uri from uri attribute of pattern element.
public boolean onCreate()
true
onCreate in class ContentProvidertrue
public Cursor query(Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder)
query in class ContentProviderpublic final String getType(Uri uri)
AgentContract.Content.URI_TYPE
getType in class ContentProvideruri - Uri from uri attribute of pattern element.
AgentContract.Content.URI_TYPE
public final Uri insert(Uri uri,
ContentValues values)
UnsupportedOperationException.
insert in class ContentProviderUnsupportedOperationException
public final int delete(Uri uri,
String selection,
String[] selectionArgs)
UnsupportedOperationException.
delete in class ContentProviderUnsupportedOperationException
public final int update(Uri uri,
ContentValues values,
String selection,
String[] selectionArgs)
UnsupportedOperationException.
update in class ContentProviderUnsupportedOperationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||