Interface IInteractionContext<TInput, TOutput>
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Contains contextual information for an interaction.
public interface IInteractionContext<out TInput, in TOutput>
Type Parameters
TInput
The type of the interaction's input.
TOutput
The type of the interaction's output.
- Extension Methods
Remarks
Instances of this class are passed into interaction handlers. The Input property exposes the input to the interaction, whilst the SetOutput(TOutput) method allows a handler to provide the output.
Properties
Input
Gets the input for the interaction.
TInput Input { get; }
Property Value
- TInput
IsHandled
Gets a value indicating whether the interaction is handled. That is, whether the output has been set.
bool IsHandled { get; }
Property Value
Methods
SetOutput(TOutput)
Sets the output for the interaction.
void SetOutput(TOutput output)
Parameters
output
TOutputThe output.