ActivityKt

public final class ActivityKt


Summary

Public methods

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

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

Public methods

ActivityKt.findNavController

public static final @NonNull NavController ActivityKt.findNavController(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