Class NavigationLifecycleEventArgs
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Navigation.dll
Event arguments for Nalu navigation lifecycle events.
public class NavigationLifecycleEventArgs : EventArgs
- Inheritance
-
NavigationLifecycleEventArgs
- Inherited Members
Constructors
NavigationLifecycleEventArgs(NavigationLifecycleEventType, object, NavigationLifecycleHandling, object?)
Initializes a new instance of the NavigationLifecycleEventArgs class.
public NavigationLifecycleEventArgs(NavigationLifecycleEventType eventType, object target, NavigationLifecycleHandling handling = NavigationLifecycleHandling.Handled, object? data = null)
Parameters
eventTypeNavigationLifecycleEventTypeThe lifecycle event type.
targetobjectThe target object on which the lifecycle is being executed.
handlingNavigationLifecycleHandlingA value indicating whether the event has been handled by the target.
dataobjectAdditional information.
Properties
Data
Gets the additional information if any.
public object? Data { get; }
Property Value
Remarks
Contains null when the event type is NavigationRequested or NavigationCompleted or NavigationFailed. In all other cases, it contains the intent applied (if any).
EventType
Gets the type of lifecycle event.
public NavigationLifecycleEventType EventType { get; }
Property Value
Handling
Gets a value indicating whether the event has been handled by the target.
public NavigationLifecycleHandling Handling { get; }
Property Value
Target
Gets the target of the lifecycle event.
public object Target { get; }
Property Value
Remarks
Contains an instance of NavigationLifecycleInfo when the event type is NavigationRequested or NavigationCompleted or NavigationFailed. In all other cases, it contains the instance of the Page's BindingContext on which the event is applied.