# Interface IntentCompletion

public interface IntentCompletion

Receives the outcome of an invocation started through `Intents.dispatchInvocation(String, Map, IntentSource, boolean, IntentCompletion)`.

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.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onIntentResult(IntentResult result)`
  Called once, with the result of the invocation.

- ## Method Details

  - ### onIntentResult

    void onIntentResult(IntentResult result)

    Called once, with the result of the invocation.

    ###### Parameters

    - `result`: the outcome, never null