ActivityKt

Added in 1.0.0

public final class ActivityKt


Summary

Public methods

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

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

Public methods

findNavController

public static final @NonNull NavController 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