Skip to content

Commit

Permalink
Add API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Nov 26, 2024
1 parent a98f261 commit 9816065
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ open class NavigatorHost : NavHostFragment() {
activity.delegate.unregisterNavigatorHost(this)
}

/**
* Returns whether the navigation host is ready for navigation. It is not
* ready for navigation if the view is not attached or the start destination
* has not been created yet.
*/
fun isReady(): Boolean {
return isAdded && !isDetached && childFragmentManager.primaryNavigationFragment != null
}
Expand Down

0 comments on commit 9816065

Please sign in to comment.