MAKE_HTTPS property

ContentBlockerActionType MAKE_HTTPS
final

Changes a URL from http to https. URLs with a specified (nondefault) port and links using other protocols are unaffected.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS

Implementation

static final MAKE_HTTPS =
    ContentBlockerActionType._internalMultiPlatform('make-https', () {
  switch (defaultTargetPlatform) {
    case TargetPlatform.android:
      return 'make-https';
    case TargetPlatform.iOS:
      return 'make-https';
    case TargetPlatform.macOS:
      return 'make-https';
    default:
      break;
  }
  return null;
});