public final class ImageDisplay extends ServiceConnector implements IImageDisplay
ServiceConnector.InternalServiceConnectionACTION_BIND_V2, SERVICES_PACKAGE| Modifier and Type | Method and Description |
|---|---|
ImageDisplayResult |
clear()
Clear the screen by using a white image.
|
ImageDisplayResult |
closeSession()
Close image display session.
|
static ImageDisplay |
getInstance(android.content.Context context) |
protected java.lang.String |
getServiceName()
Must be overrided to provide service class name used for binding.
|
protected void |
onServiceReady(android.os.IBinder service)
Internal callback when service is connected.
|
protected void |
onServiceUnbinded()
Internal callback when service is disconnected.
|
ImageDisplayResult |
openSession()
Open image display session.
|
ImageDisplayResult |
postImage(android.graphics.Bitmap image)
Send the bitmap to the customer screen.
|
connect, connectSync, disconnect, ensureServiceIsReady, getBindIntent, getContext, isConnectedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, disconnect, isConnectedpublic static ImageDisplay getInstance(android.content.Context context)
protected java.lang.String getServiceName()
ServiceConnectorgetServiceName in class ServiceConnectorprotected void onServiceReady(android.os.IBinder service)
ServiceConnectoronServiceReady in class ServiceConnectorprotected void onServiceUnbinded()
ServiceConnectoronServiceUnbinded in class ServiceConnectorpublic ImageDisplayResult openSession() throws IngenicoException
openSession in interface IImageDisplayIngenicoException - when session opening failspublic ImageDisplayResult closeSession() throws IngenicoException
closeSession in interface IImageDisplayIngenicoException - when the session closing failspublic ImageDisplayResult clear() throws IngenicoException
clear in interface IImageDisplayIngenicoException - when clearing the screen failspublic ImageDisplayResult postImage(android.graphics.Bitmap image) throws IngenicoException
postImage in interface IImageDisplayimage - bitmap object to sendIngenicoException - when the image display fails