Class ActivationForViewFetcher
- Namespace
- ReactiveUI.Winforms
- Assembly
- ReactiveUI.Winforms.dll
ActivationForViewFetcher is how ReactiveUI determine when a View is activated or deactivated. This is usually only used when porting ReactiveUI to a new UI framework.
public class ActivationForViewFetcher : IActivationForViewFetcher, IEnableLogger
- Inheritance
-
ActivationForViewFetcher
- Implements
- Extension Methods
Constructors
ActivationForViewFetcher()
public ActivationForViewFetcher()
Methods
GetActivationForView(IActivatableView)
Gets a Observable which will activate the View. This is called after the GetAffinityForView method.
public IObservable<bool> GetActivationForView(IActivatableView view)
Parameters
view
IActivatableViewThe 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.
public int GetAffinityForView(Type view)
Parameters
view
TypeThe type for the View.
Returns
- int
The affinity value which is equal to 0 or above.