public final class MerchantDevicesV2Contract extends Object
ContentResolver
supplying the URI MerchantDevicesV2Contract.Device.CONTENT_URI
.
Cursor c = getContentResolver().query(MerchantDevicesV2Contract.Device.CONTENT_URI, null, null, null, null);
The contract provider backing this contract is read-only; you may only query it and
attempting to mutate the data therein via insert, update, or delete will result in a
permission exception.
Most clients will be interested in obtaining information about the current device. For this
see the MerchantDevicesV2Connector.getDevice()
.MerchantDevicesV2Connector
Modifier and Type | Class and Description |
---|---|
static class |
MerchantDevicesV2Contract.Device |
static interface |
MerchantDevicesV2Contract.DeviceColumns |
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORITY |
static Uri |
AUTHORITY_URI |
static String |
METHOD_GET_SERIAL
Get the serial of this device.
|
static String |
RESULT_GET_SERIAL
Extra present in the response bundle from
METHOD_GET_SERIAL , a String, the serial
of this device. |
Constructor and Description |
---|
MerchantDevicesV2Contract() |
public static final String AUTHORITY
public static final Uri AUTHORITY_URI
public static final String METHOD_GET_SERIAL
Build.SERIAL
and Build.getSerial()
.public static final String RESULT_GET_SERIAL
METHOD_GET_SERIAL
, a String, the serial
of this device.METHOD_GET_SERIAL
,
Constant Field Values