public interface SecondaryDisplayDevice extends Device
The secondary display device object is obtained from the POSTerminal
, its' as follows:
SecondaryDisplayDevice secondaryDisplayDevice = (SecondaryDisplayDevice) POSTerminal.getInstance().getDevice("cloudpos.device.secondarydisplay");Among them, the "cloudpos.device.secondarydisplay" string is to identify the secondary display device, defined by the specific implementation.
Uses the secondary display device object to control the operation of the secondary display device.
An app can request permission to access the device, as shown below:
<uses-permission android:name="android.permission.CLOUDPOS_CUSTOMER_DISPLAY"/>
Device
Modifier and Type | Method and Description |
---|---|
void |
beep()
Let the secondary display beep.
|
void |
display(Bitmap bitmap)
Set the background image of the secondary display.
|
void |
display(Bitmap bitmap,
int offsetX,
int offsetY)
Set the background image of the secondary display.
|
void |
open(int logicalID)
Opens the control of the secondary display.
|
void |
resetDisplay()
Reset the default display of the secondary display.
|
void |
setBackgroundColor(int color)
Set the background color of the secondary display.
|
cancelRequest, close, getFailCount, getUsageCount, open
void open(int logicalID) throws DeviceException
logicalID
- The logical ID of the secondary display.DeviceException
- for the standard reasons that are documented in
DeviceException
.void setBackgroundColor(int color) throws DeviceException
color
- DeviceException
- for the standard reasons that are documented in
DeviceException
.void display(Bitmap bitmap, int offsetX, int offsetY) throws DeviceException
bitmap
- offsetX
- offsetY
- DeviceException
- for the standard reasons that are documented in
DeviceException
.void display(Bitmap bitmap) throws DeviceException
bitmap
- DeviceException
- for the standard reasons that are documented in
DeviceException
.void beep() throws DeviceException
DeviceException
- for the standard reasons that are documented in
DeviceException
.void resetDisplay() throws DeviceException
DeviceException
- for the standard reasons that are documented in
DeviceException
.