Jeff Gaston | 79285e9 | 2019-02-13 15:26:16 -0500 | [diff] [blame] | 1 | // Signature format: 3.0 |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame^] | 2 | package androidx.contentpager.content { |
| 3 | |
| 4 | public class ContentPager { |
| 5 | ctor public ContentPager(android.content.ContentResolver!, androidx.contentpager.content.ContentPager.QueryRunner!); |
| 6 | ctor public ContentPager(android.content.ContentResolver, androidx.contentpager.content.ContentPager.QueryRunner, int); |
| 7 | method public static android.os.Bundle createArgs(int, int); |
| 8 | method @MainThread public androidx.contentpager.content.Query query(@RequiresPermission.Read android.net.Uri, String![]?, android.os.Bundle, android.os.CancellationSignal?, androidx.contentpager.content.ContentPager.ContentCallback); |
| 9 | method @MainThread public void reset(); |
| 10 | field public static final int CURSOR_DISPOSITION_COPIED = 1; // 0x1 |
| 11 | field public static final int CURSOR_DISPOSITION_PAGED = 2; // 0x2 |
| 12 | field public static final int CURSOR_DISPOSITION_REPAGED = 3; // 0x3 |
| 13 | field public static final int CURSOR_DISPOSITION_WRAPPED = 4; // 0x4 |
| 14 | field public static final String EXTRA_HONORED_ARGS = "android.content.extra.HONORED_ARGS"; |
| 15 | field public static final String EXTRA_REQUESTED_LIMIT = "android-support:extra-ignored-limit"; |
| 16 | field public static final String EXTRA_SUGGESTED_LIMIT = "android-support:extra-suggested-limit"; |
| 17 | field public static final String EXTRA_TOTAL_COUNT = "android.content.extra.TOTAL_COUNT"; |
| 18 | field public static final String QUERY_ARG_LIMIT = "android:query-arg-limit"; |
| 19 | field public static final String QUERY_ARG_OFFSET = "android:query-arg-offset"; |
| 20 | } |
| 21 | |
| 22 | public static interface ContentPager.ContentCallback { |
| 23 | method @MainThread public void onCursorReady(androidx.contentpager.content.Query, android.database.Cursor?); |
| 24 | } |
| 25 | |
| 26 | @IntDef({androidx.contentpager.content.ContentPager.CURSOR_DISPOSITION_COPIED, androidx.contentpager.content.ContentPager.CURSOR_DISPOSITION_PAGED, androidx.contentpager.content.ContentPager.CURSOR_DISPOSITION_REPAGED, androidx.contentpager.content.ContentPager.CURSOR_DISPOSITION_WRAPPED}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface ContentPager.CursorDisposition { |
| 27 | } |
| 28 | |
| 29 | public static interface ContentPager.QueryRunner { |
| 30 | method public void cancel(androidx.contentpager.content.Query); |
| 31 | method public boolean isRunning(androidx.contentpager.content.Query); |
| 32 | method public void query(androidx.contentpager.content.Query, androidx.contentpager.content.ContentPager.QueryRunner.Callback); |
| 33 | } |
| 34 | |
| 35 | public static interface ContentPager.QueryRunner.Callback { |
| 36 | method public void onQueryFinished(androidx.contentpager.content.Query, android.database.Cursor?); |
| 37 | method public android.database.Cursor? runQueryInBackground(androidx.contentpager.content.Query); |
| 38 | } |
| 39 | |
| 40 | public final class LoaderQueryRunner implements androidx.contentpager.content.ContentPager.QueryRunner { |
| 41 | ctor public LoaderQueryRunner(android.content.Context, android.app.LoaderManager); |
| 42 | method public void cancel(androidx.contentpager.content.Query); |
| 43 | method public boolean isRunning(androidx.contentpager.content.Query); |
| 44 | method public void query(androidx.contentpager.content.Query, androidx.contentpager.content.ContentPager.QueryRunner.Callback); |
| 45 | } |
| 46 | |
| 47 | public final class Query { |
| 48 | method public int getId(); |
| 49 | method public int getLimit(); |
| 50 | method public int getOffset(); |
| 51 | method public android.net.Uri getUri(); |
| 52 | } |
| 53 | |
| 54 | } |
| 55 | |