diff --git a/source b/source index 2c5ffa547d9..e10d4afbbb2 100644 --- a/source +++ b/source @@ -99975,51 +99975,6 @@ const p2 = navigation.navigate(url2).finished; -
-

To promote an upcoming API method tracker to ongoing given a Navigation - navigation and a string-or-null destinationKey:

- -
    -
  1. Assert: navigation's ongoing API method tracker is - null.

  2. - -
  3. -

    If destinationKey is not null, then:

    - -
      -
    1. Assert: navigation's upcoming non-traverse API method - tracker is null.

    2. - -
    3. -

      If navigation's upcoming traverse API method - trackers[destinationKey] exists, then:

      - -
        -
      1. Set navigation's ongoing API method tracker to - navigation's upcoming traverse API method - trackers[destinationKey].

      2. - -
      3. Remove navigation's upcoming - traverse API method trackers[destinationKey].

      4. -
      -
    4. -
    -
  4. - -
  5. -

    Otherwise:

    - -
      -
    1. Set navigation's ongoing API method tracker to - navigation's upcoming non-traverse API method tracker.

    2. - -
    3. Set navigation's upcoming non-traverse API method tracker to - null.

    4. -
    -
  6. -
-
-

To clean up a navigation API method tracker apiMethodTracker:

@@ -101431,8 +101386,43 @@ interface NavigationDestination {
  • Assert: destinationKey is not the empty string.

  • -
  • Promote an upcoming API method tracker to ongoing given - navigation and destinationKey.

  • +
  • Let upcomingMethodTracker be navigation's upcoming + non-traverse API method tracker.

  • + +
  • Set navigation's upcoming non-traverse API method tracker to + null.

  • + +
  • Assert: navigation's ongoing API method tracker is + null.

  • + +
  • +

    Promote an upcoming API method tracker to ongoing:

    +
      +
    1. +

      If destinationKey is not null, then:

      + +
        +
      1. +

        If navigation's upcoming traverse API method + trackers[destinationKey] exists, + then:

        + +
          +
        1. Set navigation's ongoing API method tracker to + navigation's upcoming traverse API method + trackers[destinationKey].

        2. + +
        3. Remove navigation's upcoming + traverse API method trackers[destinationKey].

        4. +
        +
      2. +
      +
    2. + +
    3. Otherwise, set navigation's ongoing API method tracker to + upcomingMethodTracker.

    4. +
    +
  • Let apiMethodTracker be navigation's ongoing API method tracker.