IOSInAppWebViewOptions constructor

IOSInAppWebViewOptions({
  1. bool disallowOverScroll = false,
  2. bool enableViewportScale = false,
  3. bool suppressesIncrementalRendering = false,
  4. bool allowsAirPlayForMediaPlayback = true,
  5. bool allowsBackForwardNavigationGestures = true,
  6. bool allowsLinkPreview = true,
  7. bool ignoresViewportScaleLimits = false,
  8. bool allowsInlineMediaPlayback = false,
  9. bool allowsPictureInPictureMediaPlayback = true,
  10. bool isFraudulentWebsiteWarningEnabled = true,
  11. IOSWKSelectionGranularity selectionGranularity = IOSWKSelectionGranularity.DYNAMIC,
  12. List<IOSWKDataDetectorTypes> dataDetectorTypes = const [IOSWKDataDetectorTypes.NONE],
  13. bool sharedCookiesEnabled = false,
  14. bool automaticallyAdjustsScrollIndicatorInsets = false,
  15. bool accessibilityIgnoresInvertColors = false,
  16. IOSUIScrollViewDecelerationRate decelerationRate = IOSUIScrollViewDecelerationRate.NORMAL,
  17. bool alwaysBounceVertical = false,
  18. bool alwaysBounceHorizontal = false,
  19. bool scrollsToTop = true,
  20. bool isPagingEnabled = false,
  21. double maximumZoomScale = 1.0,
  22. double minimumZoomScale = 1.0,
  23. IOSUIScrollViewContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior = IOSUIScrollViewContentInsetAdjustmentBehavior.NEVER,
  24. bool isDirectionalLockEnabled = false,
  25. String? mediaType,
  26. double pageZoom = 1.0,
  27. bool limitsNavigationsToAppBoundDomains = false,
  28. bool useOnNavigationResponse = false,
  29. bool applePayAPIEnabled = false,
  30. Uri? allowingReadAccessTo,
  31. bool disableLongPressContextMenuOnLinks = false,
  32. bool disableInputAccessoryView = false,
})

Implementation

IOSInAppWebViewOptions({
  this.disallowOverScroll = false,
  this.enableViewportScale = false,
  this.suppressesIncrementalRendering = false,
  this.allowsAirPlayForMediaPlayback = true,
  this.allowsBackForwardNavigationGestures = true,
  this.allowsLinkPreview = true,
  this.ignoresViewportScaleLimits = false,
  this.allowsInlineMediaPlayback = false,
  this.allowsPictureInPictureMediaPlayback = true,
  this.isFraudulentWebsiteWarningEnabled = true,
  this.selectionGranularity = IOSWKSelectionGranularity.DYNAMIC,
  this.dataDetectorTypes = const [IOSWKDataDetectorTypes.NONE],
  this.sharedCookiesEnabled = false,
  this.automaticallyAdjustsScrollIndicatorInsets = false,
  this.accessibilityIgnoresInvertColors = false,
  this.decelerationRate = IOSUIScrollViewDecelerationRate.NORMAL,
  this.alwaysBounceVertical = false,
  this.alwaysBounceHorizontal = false,
  this.scrollsToTop = true,
  this.isPagingEnabled = false,
  this.maximumZoomScale = 1.0,
  this.minimumZoomScale = 1.0,
  this.contentInsetAdjustmentBehavior =
      IOSUIScrollViewContentInsetAdjustmentBehavior.NEVER,
  this.isDirectionalLockEnabled = false,
  this.mediaType,
  this.pageZoom = 1.0,
  this.limitsNavigationsToAppBoundDomains = false,
  this.useOnNavigationResponse = false,
  this.applePayAPIEnabled = false,
  this.allowingReadAccessTo,
  this.disableLongPressContextMenuOnLinks = false,
  this.disableInputAccessoryView = false,
}) {
  assert(
    allowingReadAccessTo == null || allowingReadAccessTo!.isScheme("file"),
  );
}