Class ActivationForViewFetcher
- Namespace
- ReactiveUI.Maui
- Assembly
- ReactiveUI.Maui.dll
This class is the default implementation that determines when views are Activated and Deactivated.
- Inheritance
-
Activation
For View Fetcher
- Implements
- Extension Methods
Constructors
ActivationForViewFetcher()
Methods
GetActivationForView(IActivatableView)
Gets a Observable which will activate the View. This is called after the GetAffinityForView method.
[RequiresDynamicCode("GetActivationForView uses methods that require dynamic code generation")]
[RequiresUnreferencedCode("GetActivationForView uses methods that may require unreferenced code")]
public IObservable<bool> GetActivationForView(IActivatableView view)
Parameters
viewIActivatableView 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
viewTypeThe type for the View.
Returns
- int
The affinity value which is equal to 0 or above.