Use an instance of this class to determine what features are supported on a given platform

Constructors

  • Parameters

    • params: {
          breakageFormCategorySelect: "default" | "material-web-dialog";
          breakageScreen: ScreenKind;
          includeToggleOnBreakageForm: boolean;
          initialScreen: ScreenKind;
          opener: "menu" | "dashboard";
          randomisedCategories: boolean;
          spinnerFollowingProtectionsToggle: boolean;
          supportsHover: boolean;
          supportsInvalidCertsImplicitly: boolean;
          supportsMaliciousSiteWarning: boolean;
      }
      • breakageFormCategorySelect: "default" | "material-web-dialog"
      • breakageScreen: ScreenKind
      • includeToggleOnBreakageForm: boolean
      • initialScreen: ScreenKind
      • opener: "menu" | "dashboard"
      • randomisedCategories: boolean
      • spinnerFollowingProtectionsToggle: boolean
      • supportsHover: boolean
      • supportsInvalidCertsImplicitly: boolean
      • supportsMaliciousSiteWarning: boolean

    Returns PlatformFeatures

Properties

breakageFormCategorySelect: "default" | "material-web-dialog"

Whether we should use the material web dialog for the breakage form

breakageScreen: ScreenKind
includeToggleOnBreakageForm: boolean

Should the toggle functionality be included on the breakage form?

initialScreen: ScreenKind

Does the current platform support hover interactions?

opener: "menu" | "dashboard"

Does the current platform support hover interactions?

randomisedCategories: boolean

Whether or to randomize the categories in the breakage form

spinnerFollowingProtectionsToggle: boolean

Should the toggle convert to a spinner when toggled

supportsHover: boolean

Does the current platform support hover interactions?

supportsInvalidCertsImplicitly: boolean

Does the current platform support hover interactions?

supportsMaliciousSiteWarning: boolean

Does the current platform support phishing and malware warnings?