public final class OrderContract extends Object
IOrderServiceV3_1
.
The content provider for orders may be used directly by apps wishing to
use a Cursor
to navigate a large orders
database. Specifically using the contract allows an app to discover all
the recent orders (via query). Read
Content provider basics
for an overview of how to interact with a content provider. In this case
only methods which read data such as
ContentResolver.query(Uri, String[], Bundle, CancellationSignal)
will work. Methods which write data will be rejected.
Using this contract requires the client app have
Permission.ORDERS_R
permission.
To mutate orders use through the wrapper class
OrderConnector
.
The orders provider which fulfills this contract supplies only recent
orders (see OrderContract.OrderSummary
). Older orders can be fetched via
the OrderConnector.Modifier and Type | Class and Description |
---|---|
static class |
OrderContract.OrderSummary
Provides order summaries for up to 100 days of recent orders.
|
static interface |
OrderContract.OrderSummaryColumns
The values in these columns correspond to the data found in an
Order . |
static class |
OrderContract.Summaries
Deprecated.
OrderContract.OrderSummary replaces this. This contract is much slower and contains only
data that the user of the device has actually interacted with in the last 7 days. |
static interface |
OrderContract.SummaryColumns |
Modifier and Type | Field and Description |
---|---|
static String |
ACCOUNT_NAME_PARAM |
static String |
ACCOUNT_TYPE_PARAM |
static String |
ACTION_UPDATE_STATUS |
static String |
AUTH_TOKEN_PARAM |
static String |
AUTHORITY
The authority for the orders provider
|
static Uri |
AUTHORITY_URI
A content:// style uri to the authority for the contacts provider
|
Constructor and Description |
---|
OrderContract() |
public static final String AUTHORITY
public static final Uri AUTHORITY_URI
public static final String ACTION_UPDATE_STATUS
public static final String AUTH_TOKEN_PARAM
public static final String ACCOUNT_NAME_PARAM
public static final String ACCOUNT_TYPE_PARAM