Interface IActivationForViewFetcher
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
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.
- Extension Methods
Methods
GetActivationForView(IActivatableView)
Gets a Observable which will activate the View. This is called after the GetAffinityForView method.
Parameters
view
IActivatableView The view to get the activation observable for.
Returns
- IObservable<bool>
A Observable which will returns if Activation was successful.
GetAffinityForView(Type)
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.
Parameters
view
TypeThe type for the View.
Returns
- int
The affinity value which is equal to 0 or above.