Interface BrowserStateChange.Visitor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • visitTabOpened

         abstract T visitTabOpened(BrowserStateChangeTabOpened tabOpened)

        A tab this call's execution opened that remains open at its end — the creation delta of the tabs inventory, not an event log.

        Carries only the tab_id; the tab's title and url live on its tabs entry, which must include the same tab_id. A tab opened during a failed call gets no deferred tab_opened; it simply appears in the next result's tabs inventory.

      • visitDownloadCompleted

         abstract T visitDownloadCompleted(BrowserStateChangeDownloadCompleted downloadCompleted)

        A file download that finished during this call, reported with the same download_id as its download_started — or without a prior download_started, when the download finished during the call that started it (at most one state change per download_id per result).

      • unknown

         T unknown(JsonValue json)

        Maps an unknown variant of BrowserStateChange to a value of type T.

        An instance of BrowserStateChange can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.