:question: *Question: [Navigation Compose]*: How c...
# compose
t
Question: [Navigation Compose]: How can i get number of items in the backstack using
NavHostController
?
navController.backQueue.size
??
i
That is purposefully not public API
It sounds like a case of https://xyproblem.info/
What are you trying to do that led you to that question?
1
t
Okay 😄 I’ll come back with the problem
but
backQueue
is public 🤔
i
It is exposed only as part of the
navigation-testing
library in
TestNavHostController
t
but, then why am not getting any warnings when I try to access in application module? 🤔
a
consider it the androidx version of `@RequiresOptIn annotation class InternalNavigationApi`; it can change without warning in any update of the library and is not intended to be used outside of the library group
🆗 1