Reference:Android.content.IContentProvider
From Triled Wiki
android.content
public interface android.content.IContentProvider
| android.content.IContentProvider | IInterface |
The ipc interface to talk to a content provider.
[edit] Summary
[edit] Constants
| Value | ||||
|---|---|---|---|---|
| int | BULK_INSERT_TRANSACTION | 13 | 0x0000000d | |
| int | DELETE_TRANSACTION | 4 | 0x00000004 | |
| int | GET_SYNC_ADAPTER_TRANSACTION | 11 | 0x0000000b | |
| int | GET_TEMPORARY_INSTANCE_TRANSACTION | 8 | 0x00000008 | |
| int | GET_TYPE_TRANSACTION | 2 | 0x00000002 | |
| int | INSERT_TRANSACTION | 3 | 0x00000003 | |
| int | IS_SYNCABLE_TRANSACTION | 5 | 0x00000005 | |
| int | MERGE_TRANSACTION | 9 | 0x00000009 | |
| int | ON_SYNC_CANCELLED_TRANSACTION | 12 | 0x0000000c | |
| int | OPEN_FILE_TRANSACTION | 14 | 0x0000000e | |
| int | QUERY_TRANSACTION | 1 | 0x00000001 | |
| int | SYNC_ENDING_TRANSACTION | 7 | 0x00000007 | |
| int | SYNC_STARTING_TRANSACTION | 6 | 0x00000006 | |
| int | UPDATE_TRANSACTION | 10 | 0x0000000a | |
| String | descriptor | "android.content.IContentProvider" | ||
[edit] Public Methods
| int | bulkInsert (Uri url, ContentValues[ ] initialValues) | ||||
| IBulkCursor | bulkQuery (Uri url, String[ ] projection, String selection, String[ ] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) | ||||
| int | delete (Uri url, String selection, String[ ] selectionArgs) | ||||
| ISyncAdapter | getSyncAdapter () | ||||
| IContentProvider | getTemporaryInstance () | ||||
| String | getType (Uri url) | ||||
| Uri | insert (Uri url, ContentValues initialValues) | ||||
| boolean | isSyncable () | ||||
| MergeResult | merge (IContentProvider diffs, boolean readOnly) | ||||
| void | onSyncCancelled () | ||||
| void | onSyncStart (ITransport tp, String account) | ||||
| void | onSyncStop (boolean success) | ||||
| ParcelFileDescriptor | openFile (Uri url, String mode) | ||||
| Cursor | query (Uri url, String[ ] projection, String selection, String[ ] selectionArgs, String sortOrder) | ||||
| int | update (Uri url, ContentValues values, String selection, String[ ] selectionArgs) |
[edit] Methods inherited from interface android.os.IInterface
[edit] Details
[edit] Constants
[edit] public static final int BULK_INSERT_TRANSACTION
Constant Value: 13 (0x0000000d)
[edit] public static final int DELETE_TRANSACTION
Constant Value: 4 (0x00000004)
[edit] public static final int GET_SYNC_ADAPTER_TRANSACTION
Constant Value: 11 (0x0000000b)
[edit] public static final int GET_TEMPORARY_INSTANCE_TRANSACTION
Constant Value: 8 (0x00000008)
[edit] public static final int GET_TYPE_TRANSACTION
Constant Value: 2 (0x00000002)
[edit] public static final int INSERT_TRANSACTION
Constant Value: 3 (0x00000003)
[edit] public static final int IS_SYNCABLE_TRANSACTION
Constant Value: 5 (0x00000005)
[edit] public static final int MERGE_TRANSACTION
Constant Value: 9 (0x00000009)
[edit] public static final int ON_SYNC_CANCELLED_TRANSACTION
Constant Value: 12 (0x0000000c)
[edit] public static final int OPEN_FILE_TRANSACTION
Constant Value: 14 (0x0000000e)
[edit] public static final int QUERY_TRANSACTION
Constant Value: 1 (0x00000001)
[edit] public static final int SYNC_ENDING_TRANSACTION
Constant Value: 7 (0x00000007)
[edit] public static final int SYNC_STARTING_TRANSACTION
Constant Value: 6 (0x00000006)
[edit] public static final int UPDATE_TRANSACTION
Constant Value: 10 (0x0000000a)
[edit] public static final String descriptor
Constant Value: "android.content.IContentProvider"
[edit] Public Methods
[edit] public int bulkInsert(Uri url, ContentValues[ ] initialValues)
Throws
| DeadObjectException |
|---|
[edit] public IBulkCursor bulkQuery(Uri url, String[ ] projection, String selection, String[ ] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window)
Throws
| DeadObjectException |
|---|
[edit] public int delete(Uri url, String selection, String[ ] selectionArgs)
Throws
| DeadObjectException |
|---|
[edit] public ISyncAdapter getSyncAdapter()
Throws
| DeadObjectException |
|---|
[edit] public IContentProvider getTemporaryInstance()
Throws
| DeadObjectException |
|---|
[edit] public String getType(Uri url)
Throws
| DeadObjectException |
|---|
[edit] public Uri insert(Uri url, ContentValues initialValues)
Throws
| DeadObjectException |
|---|
[edit] public boolean isSyncable()
Throws
| DeadObjectException |
|---|
[edit] public MergeResult merge(IContentProvider diffs, boolean readOnly)
Throws
| DeadObjectException |
|---|
[edit] public void onSyncCancelled()
Throws
| DeadObjectException |
|---|
[edit] public void onSyncStart(ITransport tp, String account)
Throws
| DeadObjectException |
|---|
[edit] public void onSyncStop(boolean success)
Throws
| DeadObjectException |
|---|
[edit] public ParcelFileDescriptor openFile(Uri url, String mode)
Throws
| DeadObjectException | |
|---|---|
| FileNotFoundException |
[edit] public Cursor query(Uri url, String[ ] projection, String selection, String[ ] selectionArgs, String sortOrder)
Throws
| DeadObjectException |
|---|
[edit] public int update(Uri url, ContentValues values, String selection, String[ ] selectionArgs)
Throws
| DeadObjectException |
|---|
[edit] References
- Original documentation page for Android SDK build m5-rc15e - 14 apr 2008 17:27
