ActivityKt

public final class ActivityKt


Summary

Public methods

static final @NonNull NavController
ActivityKt.findNavController(
    @NonNull Activity receiver,
    @IdRes int viewId
)

Find a NavController given the id of a View and its containing Activity.

Public methods

ActivityKt.findNavController

@NonNull
public static final NavController ActivityKt.findNavController(
    @NonNull Activity receiver,
    @IdRes int viewId
)

Find a NavController given the id of a View and its containing Activity.

Calling this on a View that is not a NavHost or within a NavHost will result in an IllegalStateException