popCountToScreen method

int popCountToScreen(
  1. AFScreenID screen
)

Returns the number of pops to get to the specified screen in the root, or -1 if that screen isn't in the route.

Implementation

int popCountToScreen(AFScreenID screen) {
  return screenHierarchy.popCountToScreen(screen);
}