2018-09-18 01:07:12 +00:00
|
|
|
//
|
|
|
|
// InAppBrowserOptions.swift
|
|
|
|
// flutter_inappbrowser
|
|
|
|
//
|
|
|
|
// Created by Lorenzo on 17/09/18.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
@objcMembers
|
2018-09-26 00:56:56 +00:00
|
|
|
public class InAppBrowserOptions: Options {
|
2018-09-20 00:48:24 +00:00
|
|
|
|
2018-09-23 23:53:22 +00:00
|
|
|
var useShouldOverrideUrlLoading = false
|
2018-10-13 19:12:32 +00:00
|
|
|
var useOnLoadResource = false
|
2018-10-15 23:27:58 +00:00
|
|
|
var openWithSystemBrowser = false;
|
2018-09-18 01:07:12 +00:00
|
|
|
var clearCache = false
|
2018-09-20 00:48:24 +00:00
|
|
|
var userAgent = ""
|
2018-09-23 23:53:22 +00:00
|
|
|
var javaScriptEnabled = true
|
|
|
|
var javaScriptCanOpenWindowsAutomatically = false
|
2018-09-18 01:07:12 +00:00
|
|
|
var hidden = false
|
|
|
|
var toolbarTop = true
|
2018-09-21 01:41:04 +00:00
|
|
|
var toolbarTopBackgroundColor = ""
|
2018-09-23 23:53:22 +00:00
|
|
|
var hideUrlBar = false
|
|
|
|
var mediaPlaybackRequiresUserGesture = true
|
2018-10-15 23:27:58 +00:00
|
|
|
var isLocalFile = false
|
2018-09-23 23:53:22 +00:00
|
|
|
|
|
|
|
var disallowOverScroll = false
|
2018-09-18 01:07:12 +00:00
|
|
|
var toolbarBottom = true
|
2018-09-21 01:41:04 +00:00
|
|
|
var toolbarBottomBackgroundColor = ""
|
2018-09-18 01:07:12 +00:00
|
|
|
var toolbarBottomTranslucent = true
|
2018-09-23 23:53:22 +00:00
|
|
|
var closeButtonCaption = ""
|
|
|
|
var closeButtonColor = ""
|
2018-09-18 01:07:12 +00:00
|
|
|
var presentationStyle = 0 //fullscreen
|
|
|
|
var transitionStyle = 0 //crossDissolve
|
2018-09-19 02:10:00 +00:00
|
|
|
var enableViewportScale = false
|
2018-10-12 01:46:33 +00:00
|
|
|
//var keyboardDisplayRequiresUserAction = true
|
2018-09-19 02:10:00 +00:00
|
|
|
var suppressesIncrementalRendering = false
|
|
|
|
var allowsAirPlayForMediaPlayback = true
|
|
|
|
var allowsBackForwardNavigationGestures = true
|
|
|
|
var allowsLinkPreview = true
|
|
|
|
var ignoresViewportScaleLimits = false
|
|
|
|
var allowsInlineMediaPlayback = false
|
|
|
|
var allowsPictureInPictureMediaPlayback = true
|
2018-09-23 23:53:22 +00:00
|
|
|
var spinner = true
|
2018-09-18 01:07:12 +00:00
|
|
|
|
2018-09-20 00:48:24 +00:00
|
|
|
override init(){
|
|
|
|
super.init()
|
|
|
|
}
|
|
|
|
|
2018-09-18 01:07:12 +00:00
|
|
|
}
|
|
|
|
|