public final class PrinterContract extends Object
The printers contract is composed of two tables and one view. The Devices
table
lists all known printer devices. The Categories
table maps a printer device
to a printing category, either receipt or order.
Conceptually, the
PrinterContract.Devices
class represents the printers that are configured
on any device belong to the merchant. The
PrinterContract.Categories
class maps a printer
device to a printer category, and represents the printer devices that are configured
on this device.
The
PrinterContract.DeviceCategories
class is a join of the
PrinterContract.Devices
and
PrinterContract.Categories
class where the category is not null. In other words,
PrinterContract.DeviceCategories
is the configured devices and their category.
Modifier and Type | Class and Description |
---|---|
static class |
PrinterContract.Categories |
static interface |
PrinterContract.CategoriesColumns |
static class |
PrinterContract.DeviceCategories |
static interface |
PrinterContract.DeviceCategoriesColumns |
static class |
PrinterContract.Devices |
static interface |
PrinterContract.DevicesColumns |
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORITY |
static Uri |
AUTHORITY_URI |
static String |
PARAM_ACCOUNT_NAME |
static String |
PARAM_ACCOUNT_TYPE |
static String |
PARAM_SYNC |
Constructor and Description |
---|
PrinterContract() |
public static final String PARAM_ACCOUNT_NAME
public static final String PARAM_ACCOUNT_TYPE
public static final String PARAM_SYNC
public static final String AUTHORITY
public static final Uri AUTHORITY_URI
public static boolean isSync(Uri uri)