Package com.clover.sdk.util
Enum Platform2.Feature
- java.lang.Object
-
- java.lang.Enum<Platform2.Feature>
-
- com.clover.sdk.util.Platform2.Feature
-
- All Implemented Interfaces:
Serializable
,Comparable<Platform2.Feature>
- Enclosing class:
- Platform2
public static enum Platform2.Feature extends Enum<Platform2.Feature>
List of features that may be present on Clover devices. The return value forisSupported(Context)
is undefined on non-Clover Android devices.- See Also:
Platform2.isClover()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOMER_FACING_EXTERNAL_DISPLAY
Device supports non-touch customer facing external display.CUSTOMER_MODE
Device supports theCustomerMode
class for checking, enabling and disabling customer mode.CUSTOMER_ROTATION
Device supports merchant to customer rotation with landscape->portrait configuration change.DEFAULT_EMPLOYEE
Device supports login by a "default employee" without a PIN.ETHERNET
Device has an ethernet port or has an officially supported ethernet port attachment.MERCHANT_ONLY
Form factor of this device is such that customers should not interact with it directly for any reason.MOBILE_DATA
Device includes cellular mobile data hardware.SECURE_PAYMENTS
If this feature is true then this device can be used to take card present payments, if it is false then this device has no ability to take card present payments.SECURE_TOUCH
Device has a secure touch screen(eg: flex, mini) or a secure keypad(eg: pinetree)USB_DEVICE_PORTS
Device has physical USB device ports that allow accessories to be attached.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
isSupported(Context context)
static Platform2.Feature
valueOf(String name)
Returns the enum constant of this type with the specified name.static Platform2.Feature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECURE_PAYMENTS
public static final Platform2.Feature SECURE_PAYMENTS
If this feature is true then this device can be used to take card present payments, if it is false then this device has no ability to take card present payments.
-
CUSTOMER_MODE
public static final Platform2.Feature CUSTOMER_MODE
Device supports theCustomerMode
class for checking, enabling and disabling customer mode.
-
MOBILE_DATA
public static final Platform2.Feature MOBILE_DATA
Device includes cellular mobile data hardware. The device may or may not currently have SIM card, be in airplane mode, or have signal/connectivity.
-
DEFAULT_EMPLOYEE
public static final Platform2.Feature DEFAULT_EMPLOYEE
Device supports login by a "default employee" without a PIN. The feature may or may not actually be enabled, seeMerchantProperties
to check.
-
ETHERNET
public static final Platform2.Feature ETHERNET
Device has an ethernet port or has an officially supported ethernet port attachment. It may or may not be currently enabled, attached or connected.
-
SECURE_TOUCH
public static final Platform2.Feature SECURE_TOUCH
Device has a secure touch screen(eg: flex, mini) or a secure keypad(eg: pinetree)
-
CUSTOMER_FACING_EXTERNAL_DISPLAY
public static final Platform2.Feature CUSTOMER_FACING_EXTERNAL_DISPLAY
Device supports non-touch customer facing external display. It may or may not be currently connected. Dual touchscreen devices such as Clover Station Duo do not have this feature. UseDisplayManager
to detect dual touch screen devices.
-
CUSTOMER_ROTATION
public static final Platform2.Feature CUSTOMER_ROTATION
Device supports merchant to customer rotation with landscape->portrait configuration change.
-
USB_DEVICE_PORTS
public static final Platform2.Feature USB_DEVICE_PORTS
Device has physical USB device ports that allow accessories to be attached.
-
MERCHANT_ONLY
public static final Platform2.Feature MERCHANT_ONLY
Form factor of this device is such that customers should not interact with it directly for any reason. Customers should not be prompted to tip, present payment card, etc.
-
-
Method Detail
-
values
public static Platform2.Feature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Platform2.Feature c : Platform2.Feature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Platform2.Feature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isSupported
protected abstract boolean isSupported(Context context)
-
-