IpcCommandExecutor
An executor for 1 specific IpcCommandExecutor.commandTypeId.
Its implementations must be put into the app Koin dependencies graph and bound to IpcCommandExecutor, for example:
factory {
MyCustomCommand()
} bind IpcCommandExecutor::classContent copied to clipboard
Please note: this class must be thread-safe, because its instances will be touched from unpredictable number of background threads.
Types
Link copied to clipboard
class ExecutionException(val errorCode: String, message: String, cause: Throwable? = null, val extras: Bundle? = Bundle()) : Exception
Properties
Functions
Link copied to clipboard
Function that must execute a command of the commandTypeId. Should return ExecutionException if the command cannot be executed for some reason.