EmployeeConnector
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
public void EmployeeConnector(Context context, Account account, ServiceConnector.OnServiceConnectedListener client)
Types
Link copied to clipboard
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
public void addEmployeeCard(EmployeeCard employeeCard, EmployeeConnector.EmployeeCallback<EmployeeCard> callback)
Not available to non-Clover apps.
Link copied to clipboard
public void addOnActiveEmployeeChangedListener(EmployeeConnector.OnActiveEmployeeChangedListener listener)
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 void createEmployee(Employee employee, EmployeeConnector.EmployeeCallback<Employee> callback)
Invokes createEmployee.
Link copied to clipboard
Invokes deleteEmployee.
Link copied to clipboard
public void deleteEmployeeCard(EmployeeCard employeeCard, EmployeeConnector.EmployeeCallback<Void> callback)
Not available to non-Clover apps.
Link copied to clipboard
Not available to non-Clover apps.
Link copied to clipboard
Link copied to clipboard
Invokes getActiveEmployee.
Invokes getEmployee.
Link copied to clipboard
public void getEmployeeCards(String employeeId, EmployeeConnector.EmployeeCallback<List<EmployeeCard>> callback)
Not available to non-Clover apps.
Link copied to clipboard
public void getEmployeeForCard(String cardNumber, EmployeeConnector.EmployeeCallback<Employee> callback)
Not available to non-Clover apps.
Link copied to clipboard
Not available to non-Clover apps.
Link copied to clipboard
Invokes getEmployees.
Link copied to clipboard
Not available to non-Clover apps.
Link copied to clipboard
Not available to non-Clover apps.
Link copied to clipboard
Returns the order service interface
Link copied to clipboard
Returns whether we are connected to the order service
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Part of the ServiceConnection interface.
Link copied to clipboard
Part of the ServiceConnection interface.
Link copied to clipboard
public void removeOnActiveEmployeeChangedListener(EmployeeConnector.OnActiveEmployeeChangedListener listener)
Unregister a previously registered employee changed listener.
Link copied to clipboard
public void
Invokes setEmployeePin.
Link copied to clipboard
Not available to non-Clover apps.
Link copied to clipboard
public void updateEmployee(Employee employee, EmployeeConnector.EmployeeCallback<Employee> callback)
Invokes updateEmployee.