isRecordReachable
open override fun isRecordReachable(key: String, depth: Int, includeSaved: Boolean): Boolean(source)
Whether a record with the given key is reachable within the back stack or saved state. Reachable means that it is either currently in the visible back stack or if we popped depth
times, it would be found.
Parameters
key
The record's key to look for.
depth
How many records to consider popping from the top of the stack before considering the key unreachable. A depth of zero means only check the current visible stack. A depth of 1 means check the current visible stack plus one record popped off the top, and so on.
includeSaved
Whether to also check if the record is contained by any saved back stack state. See saveState.