execute

abstract suspend fun execute(commandTypeId: String, timeout: Duration, args: Bundle = Bundle.EMPTY): Result<Bundle>

Execute a custom command. Please ever call this function directly only if you have implemented the custom command in the target Nav App yourself.

Return

Result returned by the responsible IpcCommandExecutor in the Nav App process

Parameters

commandTypeId

same ID as the IpcCommandExecutor created for this command has

timeout

time after which CommandTimeoutException will be returned in Result.failure

args

arguments passed to the IpcCommandExecutor created for this command