public interface IEmployeeService extends IInterface
Intent serviceIntent = new Intent(EmployeeIntent.ACTION_EMPLOYEE_SERVICE_V3);
serviceIntent.putExtra(Intents.EXTRA_ACCOUNT, CloverAccount.getAccount(context));
serviceIntent.putExtra(Intents.EXTRA_VERSION, 1);
context.bindService(serviceIntent);
For more information about bound services, refer to
the Android documentation:
Bound Services
.
com.clover.sdk.v3.employee.EmployeeConnector
class, which handles binding and
asynchronous invocation of service methods.CloverAccount
,
com.clover.sdk.v3.employee.EmployeeIntent
,
com.clover.sdk.v3.employee.EmployeeConnector
,
Lockscreen
Modifier and Type | Interface and Description |
---|---|
static class |
IEmployeeService.Default
Default implementation for IEmployeeService.
|
static class |
IEmployeeService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(IEmployeeListener listener,
ResultStatus resultStatus)
Register a listener to be called when the active employee changes, which
coincides with the lockscreen being shown or dismissed.
|
Employee |
createEmployee(Employee employee,
ResultStatus resultStatus)
Create a new employee.
|
void |
deleteEmployee(String id,
ResultStatus resultStatus)
Delete an existing employee.
|
Employee |
getActiveEmployee(ResultStatus resultStatus)
Return the employee currently logged in to this device.
|
Employee |
getEmployee(String id,
ResultStatus resultStatus)
Return the employee for the particular UUID.
|
List<Employee> |
getEmployees(ResultStatus resultStatus)
Return a list of all employees.
|
void |
login(ResultStatus resultStatus)
Deprecated.
Please use
Lockscreen#unlock() , Lockscreen#unlock(String) ,
or Lockscreen#unlockDefault() . |
void |
logout(ResultStatus resultStatus)
Deprecated.
Please use
Lockscreen#lock() . |
void |
removeListener(IEmployeeListener listener,
ResultStatus resultStatus)
Unregister a previously registered employee changed listener.
|
Employee |
setEmployeePin(String id,
String pin,
ResultStatus resultStatus)
Deprecated.
Use
updateEmployee(Employee, ResultStatus) instead. |
Employee |
updateEmployee(Employee employee,
ResultStatus resultStatus)
Update an existing employee.
|
asBinder
Employee getActiveEmployee(ResultStatus resultStatus) throws RemoteException
RemoteException
Employee getEmployee(String id, ResultStatus resultStatus) throws RemoteException
RemoteException
List<Employee> getEmployees(ResultStatus resultStatus) throws RemoteException
RemoteException
Employee createEmployee(Employee employee, ResultStatus resultStatus) throws RemoteException
RemoteException
Employee updateEmployee(Employee employee, ResultStatus resultStatus) throws RemoteException
RemoteException
Employee setEmployeePin(String id, String pin, ResultStatus resultStatus) throws RemoteException
updateEmployee(Employee, ResultStatus)
instead.RemoteException
void deleteEmployee(String id, ResultStatus resultStatus) throws RemoteException
RemoteException
void logout(ResultStatus resultStatus) throws RemoteException
Lockscreen#lock()
.RemoteException
void login(ResultStatus resultStatus) throws RemoteException
Lockscreen#unlock()
, Lockscreen#unlock(String)
,
or Lockscreen#unlockDefault()
.RemoteException
void addListener(IEmployeeListener listener, ResultStatus resultStatus) throws RemoteException
RemoteException
void removeListener(IEmployeeListener listener, ResultStatus resultStatus) throws RemoteException
RemoteException