Class ShadowWebSettings

    • Constructor Detail

      • ShadowWebSettings

        public ShadowWebSettings()
    • Method Detail

      • getDefaultUserAgent

        @Implementation(minSdk=18)
        protected static String getDefaultUserAgent​(Context context)
        Returns the default User-Agent used by a WebView. An instance of WebView could use a different User-Agent if a call is made to WebSettings.setUserAgentString(String).
        Parameters:
        context - a Context object used to access application assets
      • setDefaultUserAgent

        public static void setDefaultUserAgent​(String defaultUserAgent)
        Sets the default user agent for the WebView. The value set here is returned from getDefaultUserAgent(Context).
      • reset

        @Resetter
        public static void reset()