NavigationEventCallback



Call for handling NavigationEventDispatcher callbacks.

This class maintains its own isEnabled state and will only receive callbacks when enabled.

Summary

Public constructors

NavigationEventCallback(
    isEnabled: Boolean,
    priority: NavigationEventPriority
)
Cmn

Public functions

open Unit

Callback for handling the NavigationEventDispatcher.dispatchOnCancelled callback.

Cmn
open Unit

Callback for handling the NavigationEventDispatcher.dispatchOnCompleted callback.

Cmn
open Unit

Callback for handling the NavigationEventDispatcher.dispatchOnProgressed callback.

Cmn
open Unit

Callback for handling the NavigationEventDispatcher.dispatchOnStarted callback.

Cmn
Unit

Cleans up all tracked AutoCloseable resources associated with this NavigationEventCallback.

Cmn

Public properties

Boolean
Cmn
Boolean

Whether this callback should consume the callback from the NavigationEventDispatcher or allow it to continue.

Cmn
NavigationEventPriority

The priority of this callback.

Cmn

Public constructors

NavigationEventCallback(
    isEnabled: Boolean,
    priority: NavigationEventPriority = NavigationEventPriority.Default
)
Parameters
isEnabled: Boolean

The default enabled state for this callback.

priority: NavigationEventPriority = NavigationEventPriority.Default

The priority this callback should be registered with.

Public functions

onEventCancelled

open fun onEventCancelled(): Unit

Callback for handling the NavigationEventDispatcher.dispatchOnCancelled callback.

onEventCompleted

open fun onEventCompleted(): Unit

Callback for handling the NavigationEventDispatcher.dispatchOnCompleted callback.

onEventProgressed

open fun onEventProgressed(event: NavigationEvent): Unit

Callback for handling the NavigationEventDispatcher.dispatchOnProgressed callback.

onEventStarted

open fun onEventStarted(event: NavigationEvent): Unit

Callback for handling the NavigationEventDispatcher.dispatchOnStarted callback.

remove

fun remove(): Unit

Cleans up all tracked AutoCloseable resources associated with this NavigationEventCallback.

This method calls AutoCloseable.close on each tracked resource, ensuring that no lingering event registrations or resources remain active.

Public properties

isEnabled

var isEnabledBoolean

isPassThrough

var isPassThroughBoolean

Whether this callback should consume the callback from the NavigationEventDispatcher or allow it to continue.

priority

val priorityNavigationEventPriority

The priority of this callback.