Package com.tick42.glue.desktop.intents

# Interface Intents

    public interface Intents

Intents API. Allows registration, finding and raising Intents.

Since:
  1.4.1

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `<T,​ R> CompletionStage<IntentListenerRegistration>` | `addIntentListener​(IntentListenerRequest<T> request, IntentContextHandler<T,​R> handler)` |
  `default CompletionStage<IntentListenerRegistration>` | `addIntentListener​(String intent, IntentContextHandler<Map<String,​Object>,​Map<String,​Object>> handler)` |
  `CompletionStage<Map<String,​? extends Intent>>` | `all()` |
  `default CompletionStage<IntentResult<Void>>` | `raise​(IntentRequest request)` |
  `<T> CompletionStage<IntentResult<T>>` | `raise​(IntentRequest request, ReifiedType<T> returnType)` |
  `default CompletionStage<IntentResult<Void>>` | `raise​(String intent)` |

- ## Method Details

  - ### all

    CompletionStage<Map<String,​? extends Intent>> all()

  - ### addIntentListener

    <T,​ R> CompletionStage<IntentListenerRegistration> addIntentListener​(IntentListenerRequest<T> request, IntentContextHandler<T,​R> handler)

  - ### addIntentListener

    default CompletionStage<IntentListenerRegistration> addIntentListener​(String intent, IntentContextHandler<Map<String,​Object>,​Map<String,​Object>> handler)

  - ### raise

    <T> CompletionStage<IntentResult<T>> raise​(IntentRequest request, ReifiedType<T> returnType)

  - ### raise

    default CompletionStage<IntentResult<Void>> raise​(String intent)

  - ### raise

    default CompletionStage<IntentResult<Void>> raise​(IntentRequest request)