EmployeeConnector

public class EmployeeConnector extends ServiceConnector<S>

A class that encapsulates interaction with com.clover.sdk.v3.employees.IEmployeeService. This class automatically binds and provides both synchronous and asynchronous service method invocation.

Clients of this class may optionally call connect to force pre-binding to the underlying service, and must call disconnect when finished interacting with the underlying service.

For all service methods, this class provides both synchronous and asynchronous call options. The synchronous methods must not be called on the UI thread.

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard
public class EmployeeCallback<T> implements ServiceConnector.Callback<T>
An implementation of the com.clover.sdk.v1.ServiceConnector.Callback interface for receiving asynchronous results from com.clover.sdk.v3.employees.EmployeeConnector methods that provides default method implementations.
Link copied to clipboard
A listener that is invoked when the active employee changes.

Functions

Link copied to clipboard
Not available to non-Clover apps.
Link copied to clipboard
Register a listener to be called when the active employee changes, which coincides with the lockscreen being shown or dismissed.
Link copied to clipboard
public boolean connect()
Link copied to clipboard
Link copied to clipboard
public void deleteEmployee(String employeeId)
public void deleteEmployee(String employeeId, EmployeeConnector.EmployeeCallback<Void> callback)
Link copied to clipboard
public void deleteEmployeeCard(EmployeeCard employeeCard)
Not available to non-Clover apps.
Link copied to clipboard
public void deleteFingerprintId(String employeeId)
Not available to non-Clover apps.
Link copied to clipboard
public void disconnect()
Link copied to clipboard
Link copied to clipboard
Not available to non-Clover apps.
Link copied to clipboard
public Employee getEmployeeForCard(String cardNumber)
Not available to non-Clover apps.
Link copied to clipboard
public String getEmployeeId(int fingerprintId)
Not available to non-Clover apps.
Link copied to clipboard
Link copied to clipboard
Not available to non-Clover apps.
Link copied to clipboard
public int getFingerprintId(String employeeId)
Not available to non-Clover apps.
Link copied to clipboard
public synchronized S getService()
Returns the order service interface
Link copied to clipboard
public synchronized boolean isConnected()
Returns whether we are connected to the order service
Link copied to clipboard
public boolean isInstalled()
Link copied to clipboard
public void login()
Link copied to clipboard
public void logout()
Link copied to clipboard
public void onBindingDied(ComponentName name)
Link copied to clipboard
public void onNullBinding(ComponentName name)
Link copied to clipboard
public abstract void onServiceConnected(ComponentName p, IBinder p1)

public final void onServiceConnected(ComponentName componentName, IBinder iBinder)
Part of the ServiceConnection interface.
Link copied to clipboard
public abstract void onServiceDisconnected(ComponentName p)

public final void onServiceDisconnected(ComponentName componentName)
Part of the ServiceConnection interface.
Link copied to clipboard
Unregister a previously registered employee changed listener.
Link copied to clipboard
Link copied to clipboard
public void setFingerprintId(String employeeId, String fingerprintId)
Not available to non-Clover apps.
Link copied to clipboard