iosWebViewFix/ios/Classes/InAppWebViewOptions.swift

60 lines
1.7 KiB
Swift
Raw Normal View History

2018-10-21 22:41:39 +00:00
//
// InAppWebViewOptions.swift
2019-11-29 15:59:18 +00:00
// flutter_inappwebview
2018-10-21 22:41:39 +00:00
//
// Created by Lorenzo on 21/10/18.
//
import Foundation
import WebKit
2018-10-21 22:41:39 +00:00
@objcMembers
public class InAppWebViewOptions: Options {
var useShouldOverrideUrlLoading = false
var useOnLoadResource = false
var useOnDownloadStart = false
2018-10-21 22:41:39 +00:00
var clearCache = false
var userAgent = ""
2019-11-07 23:32:29 +00:00
var applicationNameForUserAgent = ""
2018-10-21 22:41:39 +00:00
var javaScriptEnabled = true
var debuggingEnabled = true
2018-10-21 22:41:39 +00:00
var javaScriptCanOpenWindowsAutomatically = false
var mediaPlaybackRequiresUserGesture = true
var verticalScrollBarEnabled = true
var horizontalScrollBarEnabled = true
var resourceCustomSchemes: [String] = []
var contentBlockers: [[String: [String : Any]]] = []
2019-11-07 23:32:29 +00:00
var minimumFontSize = 0
var useShouldInterceptAjaxRequest = false
var useShouldInterceptFetchRequest = false
2019-11-07 23:32:29 +00:00
var incognito = false
var cacheEnabled = true
var transparentBackground = false
var disableVerticalScroll = false
var disableHorizontalScroll = false
2018-10-21 22:41:39 +00:00
var disallowOverScroll = false
var enableViewportScale = false
var suppressesIncrementalRendering = false
var allowsAirPlayForMediaPlayback = true
var allowsBackForwardNavigationGestures = true
var allowsLinkPreview = true
var ignoresViewportScaleLimits = false
var allowsInlineMediaPlayback = false
var allowsPictureInPictureMediaPlayback = true
var isFraudulentWebsiteWarningEnabled = true;
var selectionGranularity = 0;
2019-11-07 23:32:29 +00:00
var dataDetectorTypes: [String] = ["NONE"] // WKDataDetectorTypeNone
var preferredContentMode = 0
var sharedCookiesEnabled = false
var automaticallyAdjustsScrollIndicatorInsets = false
2018-10-21 22:41:39 +00:00
override init(){
super.init()
}
}