public final class Buzzer extends ServiceConnector implements IBuzzer
ServiceConnector.InternalServiceConnectionACTION_BIND_V2, SERVICES_PACKAGE| Modifier and Type | Method and Description | 
|---|---|
void | 
beep(BuzzerInputData inputData)
Perform a beep. 
 | 
static IBuzzer | 
getInstance(android.content.Context context)
Return a global instance of Buzzer, which is the default implementation of
  
IBuzzer, and instantiate it if needed. | 
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. 
 | 
connect, connectSync, disconnect, ensureServiceIsReady, getBindIntent, getContext, isConnectedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, disconnect, isConnectedpublic static IBuzzer getInstance(android.content.Context context)
IBuzzer, and instantiate it if needed.
 
 Be aware that only one instance will be created for the whole application, so the associated
 context should not be a component which could be destroyed at some point, ie. an Activity.
 Passing the Application to this method is preferred over other context types.
context - A valid context to initialize the instance.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 void beep(BuzzerInputData inputData) throws IngenicoException
beep in interface IBuzzerinputData - buzzer parametersIngenicoException - when the perform a beep fails