Object WebViewVersionCompatibility.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean isOutdated(Context context, Integer requiredVersion) Determines whether the WebView component version installed on the device is less than the requiredVersion.
      final Boolean displayUpdateDialogIfOutdated(Activity activity, Integer requiredVersion) Display an alert dialog if the WebView component version installed on the device is less than the requiredVersion.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isOutdated

         final Boolean isOutdated(Context context, Integer requiredVersion)

        Determines whether the WebView component version installed on the device is less than the requiredVersion.

        Returns:

        True if the WebView is outdated, otherwise false.

      • displayUpdateDialogIfOutdated

         final Boolean displayUpdateDialogIfOutdated(Activity activity, Integer requiredVersion)

        Display an alert dialog if the WebView component version installed on the device is less than the requiredVersion. The user can tap "Update" to update the corresponding "Google Chrome" or "Android System WebView" app in the Play Store.

        Returns:

        True if the WebView is outdated and the dialog is displayed, otherwise false.