ObserveNewClientsUseCase

Observes new Clients for all the users that are logged in on device returns NewClientResult which may be: NewClientResult.InCurrentAccount if new Clients appears for the user that is currently used. NewClientResult.InOtherAccount if new Clients appears for the user that is logged in on device, but not currently used. NewClientResult.Empty if there are no new Clients for any of the logged-in Users. NewClientResult.Error in case of error, in most cases it means that the user for which new Client appeared is no longer logged it on the device.

Note: If there are new Clients for more than one logged-in User, CurrentUser has higher priority and will be returned first.

Inheritors

Functions

Link copied to clipboard
abstract suspend operator fun invoke(): <Error class: unknown class><NewClientResult>