The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

IActivationForViewFetcher Interface

Summary

Implement this interface to override how ReactiveUI determines when a View is activated or deactivated. This is usually only used when porting ReactiveUI to a new UI framework.
graph BT Type["IActivationForViewFetcher"] class Type type-node Implementing0["ActivationForViewFetcher"]-.->Type click Implementing0 "/api/ReactiveUI.Maui/ActivationForViewFetcher" Implementing1["ActivationForViewFetcher"]-.->Type click Implementing1 "/api/ReactiveUI/ActivationForViewFetcher" Implementing2["ActivationForViewFetcher"]-.->Type click Implementing2 "/api/ReactiveUI.WinUI/ActivationForViewFetcher" Implementing3["ActivationForViewFetcher"]-.->Type click Implementing3 "/api/ReactiveUI.XamForms/ActivationForViewFetcher" Implementing4["ActivationForViewFetcher"]-.->Type click Implementing4 "/api/ReactiveUI.Uno/ActivationForViewFetcher" Implementing5["CanActivateViewFetcher"]-.->Type click Implementing5 "/api/ReactiveUI/CanActivateViewFetcher" Implementing6["ActivationForViewFetcher"]-.->Type click Implementing6 "/api/ReactiveUI.Winforms/ActivationForViewFetcher"

Syntax

public interface IActivationForViewFetcher

Methods

Name Value Summary
GetActivationForView(IActivatableView) IObservable<bool>
Gets a Observable which will activate the View. This is called after the GetAffinityForView method.
GetAffinityForView(Type) int
Determines the priority that the Activation View Fetcher will be able to process the view type. 0 means it cannot activate the View, value larger than 0 indicates it can activate the View. The class derived off IActivationForViewFetcher which returns the highest affinity value will be used to activate the View.

Extension Methods

Name Value Summary
BindCommand<IActivationForViewFetcher, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<IActivationForViewFetcher, TControl>>, Expression<Func<TViewModel, TParam?>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<IActivationForViewFetcher, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<IActivationForViewFetcher, TControl>>, IObservable<TParam?>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<IActivationForViewFetcher, TViewModel, TProp, TControl>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<IActivationForViewFetcher, TControl>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindValidation<IActivationForViewFetcher, TViewModel, TViewModelProperty, TViewProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, Expression<Func<IActivationForViewFetcher, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the specified ViewModel property validation to the View property.
BindValidation<IActivationForViewFetcher, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<IActivationForViewFetcher, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<IActivationForViewFetcher, TViewModel, TViewProperty>(TViewModel?, Expression<Func<IActivationForViewFetcher, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the overall validation of a ViewModel to a specified View property.
BindValidation<IActivationForViewFetcher, TViewModel, TViewProperty>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, Expression<Func<IActivationForViewFetcher, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds a ValidationHelper from a ViewModel to a specified View property.
BindValidation<IActivationForViewFetcher, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<IActivationForViewFetcher, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<IActivationForViewFetcher, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<IActivationForViewFetcher, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T4>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T5>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T6>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T7>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T8>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T9>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T10>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T11>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T12>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, T12?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T4>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T5>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T6>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T7>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T8>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T9>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T10>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T11>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T4>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T5>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T6>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T7>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T8>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T9>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T10>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T4>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T5>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T6>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T7>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T8>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T9>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T4>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T5>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T6>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T7>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T8>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3, T4, T5, T6, T7>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T4>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T5>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T6>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T7>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3, T4, T5, T6>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T4>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T5>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T6>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3, T4, T5>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T4>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T5>?>>, Func<T1?, T2?, T3?, T4?, T5?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3, T4>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T4>?>>, Func<T1?, T2?, T3?, T4?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2, T3>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T3>?>>, Func<T1?, T2?, T3?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet, T1, T2>(Expression<Func<IActivationForViewFetcher, IObservable<T1>?>>, Expression<Func<IActivationForViewFetcher, IObservable<T2>?>>, Func<T1?, T2?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IActivationForViewFetcher, TRet>(Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>, Expression<Func<IActivationForViewFetcher, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
With<IActivationForViewFetcher, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.