NavigationEventTransitionState.InProgress


public final class NavigationEventTransitionState.InProgress extends NavigationEventTransitionState


Represents the state where a navigation gesture is actively in progress.

This state is entered when a gesture begins (e.g., onBackStarted) and is updated with new events (e.g., onBackProgressed) until the gesture is either completed or cancelled, at which point the state returns to Idle.

Summary

Public constructors

InProgress(@NonNull NavigationEvent latestEvent, int direction)

Public methods

boolean
equals(Object other)
final int

The direction of the transition, either TRANSITIONING_FORWARD or TRANSITIONING_BACK.

final @NonNull NavigationEvent

The most recent NavigationEvent in the gesture sequence, containing details like touch position and progress (from 0.0 to 1.0).

int
@NonNull String

Public constructors

InProgress

Added in 1.0.0-alpha09
public InProgress(@NonNull NavigationEvent latestEvent, int direction)
Parameters
@NonNull NavigationEvent latestEvent

The most recent NavigationEvent in the gesture sequence, containing details like touch position and progress (from 0.0 to 1.0).

int direction

The direction of the transition, either TRANSITIONING_FORWARD or TRANSITIONING_BACK.

Public methods

equals

public boolean equals(Object other)

getDirection

Added in 1.0.0-alpha09
public final int getDirection()

The direction of the transition, either TRANSITIONING_FORWARD or TRANSITIONING_BACK.

getLatestEvent

Added in 1.0.0-alpha09
public final @NonNull NavigationEvent getLatestEvent()

The most recent NavigationEvent in the gesture sequence, containing details like touch position and progress (from 0.0 to 1.0).

hashCode

public int hashCode()

toString

public @NonNull String toString()