Package com.clover.sdk.v3.merchant
Class MerchantDevicesV2Contract
- java.lang.Object
-
- com.clover.sdk.v3.merchant.MerchantDevicesV2Contract
-
public final class MerchantDevicesV2Contract extends Object
Devices associated with this merchant. This class is the contract between an app and the merchant devices content provider. Use it by querying the content provider with aContentResolver
supplying the URIMerchantDevicesV2Contract.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 theMerchantDevicesV2Connector.getDevice()
.- See Also:
MerchantDevicesV2Connector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MerchantDevicesV2Contract.Device
static interface
MerchantDevicesV2Contract.DeviceColumns
-
Field Summary
Fields Modifier and Type Field 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 fromMETHOD_GET_SERIAL
, a String, the serial of this device.
-
Constructor Summary
Constructors Constructor Description MerchantDevicesV2Contract()
-
-
-
Field Detail
-
AUTHORITY
public static final String AUTHORITY
- See Also:
- Constant Field Values
-
AUTHORITY_URI
public static final Uri AUTHORITY_URI
-
METHOD_GET_SERIAL
public static final String METHOD_GET_SERIAL
Get the serial of this device. Avoid having developers deal with SDK restrictions aroundBuild.SERIAL
andBuild.getSerial()
.
-
RESULT_GET_SERIAL
public static final String RESULT_GET_SERIAL
Extra present in the response bundle fromMETHOD_GET_SERIAL
, a String, the serial of this device.- See Also:
METHOD_GET_SERIAL
, Constant Field Values
-
-