43 lines
1.1 KiB
Swift
43 lines
1.1 KiB
Swift
|
//
|
||
|
// InAppBrowserOptions.swift
|
||
|
// flutter_inappbrowser
|
||
|
//
|
||
|
// Created by Lorenzo on 17/09/18.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
@objcMembers
|
||
|
public class InAppBrowserOptions: NSObject {
|
||
|
var closeButtonCaption = ""
|
||
|
var closeButtonColor = ""
|
||
|
var clearCache = false
|
||
|
var clearSessionCache = false
|
||
|
var spinner = true
|
||
|
var enableViewportScale = false
|
||
|
var mediaPlaybackRequiresUserAction = false
|
||
|
var allowInlineMediaPlayback = false
|
||
|
var keyboardDisplayRequiresUserAction = true
|
||
|
var suppressesIncrementalRendering = false
|
||
|
var hidden = false
|
||
|
var disallowOverScroll = false
|
||
|
var toolbarTop = true
|
||
|
var toolbarTopColor = ""
|
||
|
var toolbarTopTranslucent = true
|
||
|
var toolbarBottom = true
|
||
|
var toolbarBottomColor = ""
|
||
|
var toolbarBottomTranslucent = true
|
||
|
var hideUrlBar = false
|
||
|
var presentationStyle = 0 //fullscreen
|
||
|
var transitionStyle = 0 //crossDissolve
|
||
|
|
||
|
public func parse(options: [String: Any]) {
|
||
|
for (key, value) in options {
|
||
|
if self.value(forKey: key) != nil {
|
||
|
self.setValue(value, forKey: key)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|