Table of Contents

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

eventType NavigationLifecycleEventType

The lifecycle event type.

target object

The target object on which the lifecycle is being executed.

handling NavigationLifecycleHandling

A value indicating whether the event has been handled by the target.

data object

Additional information.

Properties

Data

Gets the additional information if any.

public object? Data { get; }

Property Value

object

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

NavigationLifecycleEventType

Handling

Gets a value indicating whether the event has been handled by the target.

public NavigationLifecycleHandling Handling { get; }

Property Value

NavigationLifecycleHandling

Target

Gets the target of the lifecycle event.

public object Target { get; }

Property Value

object

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.