Class WebViewInfo

  • All Implemented Interfaces:

    
    public final class WebViewInfo
    
                        
    • Constructor Detail

    • Method Detail

      • getPackageInfo

         final PackageInfo getPackageInfo()

        The system WebView's package info (corresponds to Chrome or Android System WebView).

      • getMajorVersion

         final Integer getMajorVersion()

        The system WebView's major version (corresponds to Chrome or Android System WebView). Returns null if the major version cannot be determined.

      • getDefaultUserAgent

         final String getDefaultUserAgent()

        The default User-Agent provided by the system WebView before a call is made to WebView.settings.setUserAgentString(String).

      • getWebViewType

         final WebViewInfo.WebViewType getWebViewType()

        The system WebView's origin type. Different OS versions have the WebView component backed by either Google Chrome or the Android System WebView component. These are updatable through the Play Store.

      • getPlayStoreWebViewAppUri

         final Uri getPlayStoreWebViewAppUri()

        The Play Store app Uri for the system WebView type. This is useful to point users to the Play Store if their WebView version is outdated.