public interface IntentCompletion

Receives the outcome of an invocation started through Intents.dispatchInvocation.

Ports implement this to hand the result back to the platform. The framework guarantees exactly one call: a handler that finishes after the deadline has already been reported as a failure and its late result is dropped, because the platform side of this boundary crashes if it is answered twice.

Methods

public abstract void onIntentResult(IntentResult result)Called once, with the result of the invocation.

Method details

onIntentResult

public abstract void onIntentResult(IntentResult result)
Called once, with the result of the invocation.

Parameters

result IntentResult
the outcome, never null