Consistent colon spacing
This commit is contained in:
parent
3b999a310e
commit
7077320f95
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class FindInteractionSettings : ISettings<FindInteractionController> {
|
||||
public class FindInteractionSettings: ISettings<FindInteractionController> {
|
||||
|
||||
override init(){
|
||||
super.init()
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class HeadlessWebViewChannelDelegate : ChannelDelegate {
|
||||
public class HeadlessWebViewChannelDelegate: ChannelDelegate {
|
||||
private weak var headlessWebView: HeadlessInAppWebView?
|
||||
|
||||
public init(headlessWebView: HeadlessInAppWebView, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class InAppBrowserChannelDelegate : ChannelDelegate {
|
||||
public class InAppBrowserChannelDelegate: ChannelDelegate {
|
||||
public override init(channel: FlutterMethodChannel) {
|
||||
super.init(channel: channel)
|
||||
}
|
||||
|
|
|
@ -10,8 +10,8 @@ import Foundation
|
|||
import WebKit
|
||||
|
||||
@available(iOS 11.0, *)
|
||||
public class CustomSchemeHandler : NSObject, WKURLSchemeHandler {
|
||||
var schemeHandlers: [Int:WKURLSchemeTask] = [:]
|
||||
public class CustomSchemeHandler: NSObject, WKURLSchemeHandler {
|
||||
var schemeHandlers: [Int: WKURLSchemeTask] = [:]
|
||||
|
||||
public func webView(_ webView: WKWebView, start urlSchemeTask: WKURLSchemeTask) {
|
||||
schemeHandlers[urlSchemeTask.hash] = urlSchemeTask
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class WebMessageChannel : FlutterMethodCallDelegate {
|
||||
public class WebMessageChannel: FlutterMethodCallDelegate {
|
||||
static var METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_inappwebview_web_message_channel_"
|
||||
var id: String
|
||||
var plugin: SwiftFlutterPlugin?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class WebMessageChannelChannelDelegate : ChannelDelegate {
|
||||
public class WebMessageChannelChannelDelegate: ChannelDelegate {
|
||||
private weak var webMessageChannel: WebMessageChannel?
|
||||
|
||||
public init(webMessageChannel: WebMessageChannel, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import WebKit
|
||||
|
||||
public class WebMessageListener : FlutterMethodCallDelegate {
|
||||
public class WebMessageListener: FlutterMethodCallDelegate {
|
||||
static var METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_inappwebview_web_message_listener_"
|
||||
var id: String
|
||||
var jsObjectName: String
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class WebMessageListenerChannelDelegate : ChannelDelegate {
|
||||
public class WebMessageListenerChannelDelegate: ChannelDelegate {
|
||||
private weak var webMessageListener: WebMessageListener?
|
||||
|
||||
public init(webMessageListener: WebMessageListener, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import WebKit
|
||||
|
||||
public class WebViewChannelDelegate : ChannelDelegate {
|
||||
public class WebViewChannelDelegate: ChannelDelegate {
|
||||
private weak var webView: InAppWebView?
|
||||
|
||||
public init(webView: InAppWebView, channel: FlutterMethodChannel) {
|
||||
|
@ -743,7 +743,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onExitFullscreen", arguments: arguments)
|
||||
}
|
||||
|
||||
public class JsAlertCallback : BaseCallbackResult<JsAlertResponse> {
|
||||
public class JsAlertCallback: BaseCallbackResult<JsAlertResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -769,7 +769,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onJsAlert", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class JsConfirmCallback : BaseCallbackResult<JsConfirmResponse> {
|
||||
public class JsConfirmCallback: BaseCallbackResult<JsConfirmResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -795,7 +795,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onJsConfirm", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class JsPromptCallback : BaseCallbackResult<JsPromptResponse> {
|
||||
public class JsPromptCallback: BaseCallbackResult<JsPromptResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -822,7 +822,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onJsPrompt", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class CreateWindowCallback : BaseCallbackResult<Bool> {
|
||||
public class CreateWindowCallback: BaseCallbackResult<Bool> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -866,7 +866,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onTitleChanged", arguments: arguments)
|
||||
}
|
||||
|
||||
public class PermissionRequestCallback : BaseCallbackResult<PermissionResponse> {
|
||||
public class PermissionRequestCallback: BaseCallbackResult<PermissionResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -887,7 +887,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onPermissionRequest", arguments: request.toMap(), callback: callback)
|
||||
}
|
||||
|
||||
public class ShouldOverrideUrlLoadingCallback : BaseCallbackResult<WKNavigationActionPolicy> {
|
||||
public class ShouldOverrideUrlLoadingCallback: BaseCallbackResult<WKNavigationActionPolicy> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -945,7 +945,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onReceivedHttpError", arguments: arguments)
|
||||
}
|
||||
|
||||
public class ReceivedHttpAuthRequestCallback : BaseCallbackResult<HttpAuthResponse> {
|
||||
public class ReceivedHttpAuthRequestCallback: BaseCallbackResult<HttpAuthResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -977,7 +977,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
public class ReceivedServerTrustAuthRequestCallback : BaseCallbackResult<ServerTrustAuthResponse> {
|
||||
public class ReceivedServerTrustAuthRequestCallback: BaseCallbackResult<ServerTrustAuthResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1009,7 +1009,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
public class ReceivedClientCertRequestCallback : BaseCallbackResult<ClientCertResponse> {
|
||||
public class ReceivedClientCertRequestCallback: BaseCallbackResult<ClientCertResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1056,7 +1056,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onPageCommitVisible", arguments: arguments)
|
||||
}
|
||||
|
||||
public class LoadResourceWithCustomSchemeCallback : BaseCallbackResult<CustomSchemeResponse> {
|
||||
public class LoadResourceWithCustomSchemeCallback: BaseCallbackResult<CustomSchemeResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1074,7 +1074,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onLoadResourceWithCustomScheme", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class CallJsHandlerCallback : BaseCallbackResult<Any> {
|
||||
public class CallJsHandlerCallback: BaseCallbackResult<Any> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1095,7 +1095,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onCallJsHandler", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class NavigationResponseCallback : BaseCallbackResult<WKNavigationResponsePolicy> {
|
||||
public class NavigationResponseCallback: BaseCallbackResult<WKNavigationResponsePolicy> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1119,7 +1119,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onNavigationResponse", arguments: navigationResponse.toMap(), callback: callback)
|
||||
}
|
||||
|
||||
public class ShouldAllowDeprecatedTLSCallback : BaseCallbackResult<Bool> {
|
||||
public class ShouldAllowDeprecatedTLSCallback: BaseCallbackResult<Bool> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1182,7 +1182,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onMicrophoneCaptureStateChanged", arguments: arguments)
|
||||
}
|
||||
|
||||
public class PrintRequestCallback : BaseCallbackResult<Bool> {
|
||||
public class PrintRequestCallback: BaseCallbackResult<Bool> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class CustomUIPrintPageRenderer : UIPrintPageRenderer {
|
||||
public class CustomUIPrintPageRenderer: UIPrintPageRenderer {
|
||||
private var _numberOfPages: Int?
|
||||
private var forceRenderingQuality: Int?
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class PrintAttributes : NSObject {
|
||||
public class PrintAttributes: NSObject {
|
||||
var orientation: UIPrintInfo.Orientation?
|
||||
var duplex: UIPrintInfo.Duplex?
|
||||
var outputType: UIPrintInfo.OutputType?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class PrintJobChannelDelegate : ChannelDelegate {
|
||||
public class PrintJobChannelDelegate: ChannelDelegate {
|
||||
private weak var printJobController: PrintJobController?
|
||||
|
||||
public init(printJobController: PrintJobController, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -15,7 +15,7 @@ public enum PrintJobState: Int {
|
|||
case canceled = 7
|
||||
}
|
||||
|
||||
public class PrintJobController : NSObject, Disposable, UIPrintInteractionControllerDelegate {
|
||||
public class PrintJobController: NSObject, Disposable, UIPrintInteractionControllerDelegate {
|
||||
static let METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_inappwebview_printjobcontroller_"
|
||||
var id: String
|
||||
var plugin: SwiftFlutterPlugin?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class PrintJobInfo : NSObject {
|
||||
public class PrintJobInfo: NSObject {
|
||||
var state: PrintJobState
|
||||
var attributes: PrintAttributes
|
||||
var creationTime: Int64
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class PullToRefreshChannelDelegate : ChannelDelegate {
|
||||
public class PullToRefreshChannelDelegate: ChannelDelegate {
|
||||
private weak var pullToRefreshControl: PullToRefreshControl?
|
||||
|
||||
public init(pullToRefreshControl: PullToRefreshControl, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class PullToRefreshSettings : ISettings<PullToRefreshControl> {
|
||||
public class PullToRefreshSettings: ISettings<PullToRefreshControl> {
|
||||
|
||||
var enabled = true
|
||||
var color: String?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
class CustomUIActivity : UIActivity {
|
||||
class CustomUIActivity: UIActivity {
|
||||
var plugin: SwiftFlutterPlugin
|
||||
var viewId: String
|
||||
var id: Int64
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class SafariViewControllerChannelDelegate : ChannelDelegate {
|
||||
public class SafariViewControllerChannelDelegate: ChannelDelegate {
|
||||
private weak var safariViewController: SafariViewController?
|
||||
|
||||
public init(safariViewController: SafariViewController, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class BaseCallbackResult<T> : CallbackResult<T> {
|
||||
public class BaseCallbackResult<T>: CallbackResult<T> {
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class CallbackResult<T> : MethodChannelResult {
|
||||
public class CallbackResult<T>: MethodChannelResult {
|
||||
public var notImplemented: () -> Void = {}
|
||||
public var success: (Any?) -> Void = {_ in }
|
||||
public var error: (String, String?, Any?) -> Void = {_,_,_ in }
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class ChannelDelegate : FlutterMethodCallDelegate, Disposable {
|
||||
public class ChannelDelegate: FlutterMethodCallDelegate, Disposable {
|
||||
var channel: FlutterMethodChannel?
|
||||
|
||||
public init(channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class ClientCertResponse : NSObject {
|
||||
public class ClientCertResponse: NSObject {
|
||||
var certificatePath: String
|
||||
var certificatePassword: String?
|
||||
var keyStoreType: String?
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import WebKit
|
||||
|
||||
public class CreateWindowAction : NSObject {
|
||||
public class CreateWindowAction: NSObject {
|
||||
var navigationAction: WKNavigationAction
|
||||
var windowId: Int64
|
||||
var windowFeatures: WKWindowFeatures
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class CustomSchemeResponse : NSObject {
|
||||
public class CustomSchemeResponse: NSObject {
|
||||
var data: Data
|
||||
var contentType: String
|
||||
var contentEncoding: String
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class HttpAuthResponse : NSObject {
|
||||
public class HttpAuthResponse: NSObject {
|
||||
var username: String
|
||||
var password: String
|
||||
var permanentPersistence: Bool
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class PermissionResponse : NSObject {
|
||||
public class PermissionResponse: NSObject {
|
||||
var resources: [Any]
|
||||
var action: Int?
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import WebKit
|
||||
|
||||
public class PluginScript : UserScript {
|
||||
public class PluginScript: UserScript {
|
||||
var requiredInAllContentWorlds = false
|
||||
var messageHandlerNames: [String] = []
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class ServerTrustAuthResponse : NSObject {
|
||||
public class ServerTrustAuthResponse: NSObject {
|
||||
var action: Int?
|
||||
|
||||
public init(action: Int? = nil) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class Size2D : NSObject {
|
||||
public class Size2D: NSObject {
|
||||
var width: Double
|
||||
var height: Double
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import WebKit
|
||||
|
||||
public class UserScript : WKUserScript {
|
||||
public class UserScript: WKUserScript {
|
||||
var groupName: String?
|
||||
|
||||
private var contentWorldWrapper: Any?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class WebMessage : NSObject, Disposable {
|
||||
public class WebMessage: NSObject, Disposable {
|
||||
var data: Any?
|
||||
var type: WebMessageType
|
||||
var ports: [WebMessagePort]?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class WebMessagePort : NSObject {
|
||||
public class WebMessagePort: NSObject {
|
||||
var name: String
|
||||
var index: Int64
|
||||
var webMessageChannelId: String
|
||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
|||
import AuthenticationServices
|
||||
import SafariServices
|
||||
|
||||
public class WebAuthenticationSession : NSObject, ASWebAuthenticationPresentationContextProviding, Disposable {
|
||||
public class WebAuthenticationSession: NSObject, ASWebAuthenticationPresentationContextProviding, Disposable {
|
||||
static let METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_webauthenticationsession_"
|
||||
var id: String
|
||||
var plugin: SwiftFlutterPlugin?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class WebAuthenticationSessionChannelDelegate : ChannelDelegate {
|
||||
public class WebAuthenticationSessionChannelDelegate: ChannelDelegate {
|
||||
private weak var webAuthenticationSession: WebAuthenticationSession?
|
||||
|
||||
public init(webAuthenticationSession: WebAuthenticationSession, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class FindInteractionChannelDelegate : ChannelDelegate {
|
||||
public class FindInteractionChannelDelegate: ChannelDelegate {
|
||||
private weak var findInteractionController: FindInteractionController?
|
||||
|
||||
public init(findInteractionController: FindInteractionController, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class FindInteractionController : NSObject, Disposable {
|
||||
public class FindInteractionController: NSObject, Disposable {
|
||||
|
||||
static var METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_inappwebview_find_interaction_";
|
||||
var plugin: InAppWebViewFlutterPlugin?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class FindInteractionSettings : ISettings<FindInteractionController> {
|
||||
public class FindInteractionSettings: ISettings<FindInteractionController> {
|
||||
|
||||
override init(){
|
||||
super.init()
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class HeadlessInAppWebView : Disposable {
|
||||
public class HeadlessInAppWebView: Disposable {
|
||||
static let METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_headless_inappwebview_"
|
||||
var id: String
|
||||
var channelDelegate: HeadlessWebViewChannelDelegate?
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class HeadlessWebViewChannelDelegate : ChannelDelegate {
|
||||
public class HeadlessWebViewChannelDelegate: ChannelDelegate {
|
||||
private weak var headlessWebView: HeadlessInAppWebView?
|
||||
|
||||
public init(headlessWebView: HeadlessInAppWebView, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class InAppBrowserChannelDelegate : ChannelDelegate {
|
||||
public class InAppBrowserChannelDelegate: ChannelDelegate {
|
||||
public override init(channel: FlutterMethodChannel) {
|
||||
super.init(channel: channel)
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ struct ToolbarIdentifiers {
|
|||
static let menuButton = NSToolbarItem.Identifier(rawValue: "MenuButton")
|
||||
}
|
||||
|
||||
public class InAppBrowserWindow : NSWindow, NSWindowDelegate, NSToolbarDelegate, NSSearchFieldDelegate {
|
||||
public class InAppBrowserWindow: NSWindow, NSWindowDelegate, NSToolbarDelegate, NSSearchFieldDelegate {
|
||||
var searchItem: NSToolbarItem?
|
||||
var backItem: NSToolbarItem?
|
||||
var forwardItem: NSToolbarItem?
|
||||
|
|
|
@ -10,8 +10,8 @@ import Foundation
|
|||
import WebKit
|
||||
|
||||
@available(macOS 10.13, *)
|
||||
public class CustomSchemeHandler : NSObject, WKURLSchemeHandler {
|
||||
var schemeHandlers: [Int:WKURLSchemeTask] = [:]
|
||||
public class CustomSchemeHandler: NSObject, WKURLSchemeHandler {
|
||||
var schemeHandlers: [Int: WKURLSchemeTask] = [:]
|
||||
|
||||
public func webView(_ webView: WKWebView, start urlSchemeTask: WKURLSchemeTask) {
|
||||
schemeHandlers[urlSchemeTask.hash] = urlSchemeTask
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class WebMessageChannel : FlutterMethodCallDelegate {
|
||||
public class WebMessageChannel: FlutterMethodCallDelegate {
|
||||
static var METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_inappwebview_web_message_channel_"
|
||||
var id: String
|
||||
var plugin: InAppWebViewFlutterPlugin?
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class WebMessageChannelChannelDelegate : ChannelDelegate {
|
||||
public class WebMessageChannelChannelDelegate: ChannelDelegate {
|
||||
private weak var webMessageChannel: WebMessageChannel?
|
||||
|
||||
public init(webMessageChannel: WebMessageChannel, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
|||
import WebKit
|
||||
import FlutterMacOS
|
||||
|
||||
public class WebMessageListener : FlutterMethodCallDelegate {
|
||||
public class WebMessageListener: FlutterMethodCallDelegate {
|
||||
static var METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_inappwebview_web_message_listener_"
|
||||
var id: String
|
||||
var jsObjectName: String
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class WebMessageListenerChannelDelegate : ChannelDelegate {
|
||||
public class WebMessageListenerChannelDelegate: ChannelDelegate {
|
||||
private weak var webMessageListener: WebMessageListener?
|
||||
|
||||
public init(webMessageListener: WebMessageListener, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
|||
import WebKit
|
||||
import FlutterMacOS
|
||||
|
||||
public class WebViewChannelDelegate : ChannelDelegate {
|
||||
public class WebViewChannelDelegate: ChannelDelegate {
|
||||
private weak var webView: InAppWebView?
|
||||
|
||||
public init(webView: InAppWebView, channel: FlutterMethodChannel) {
|
||||
|
@ -718,7 +718,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onExitFullscreen", arguments: arguments)
|
||||
}
|
||||
|
||||
public class JsAlertCallback : BaseCallbackResult<JsAlertResponse> {
|
||||
public class JsAlertCallback: BaseCallbackResult<JsAlertResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -740,7 +740,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onJsAlert", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class JsConfirmCallback : BaseCallbackResult<JsConfirmResponse> {
|
||||
public class JsConfirmCallback: BaseCallbackResult<JsConfirmResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -762,7 +762,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onJsConfirm", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class JsPromptCallback : BaseCallbackResult<JsPromptResponse> {
|
||||
public class JsPromptCallback: BaseCallbackResult<JsPromptResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -785,7 +785,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onJsPrompt", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class CreateWindowCallback : BaseCallbackResult<Bool> {
|
||||
public class CreateWindowCallback: BaseCallbackResult<Bool> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -829,7 +829,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onTitleChanged", arguments: arguments)
|
||||
}
|
||||
|
||||
public class PermissionRequestCallback : BaseCallbackResult<PermissionResponse> {
|
||||
public class PermissionRequestCallback: BaseCallbackResult<PermissionResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -850,7 +850,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onPermissionRequest", arguments: request.toMap(), callback: callback)
|
||||
}
|
||||
|
||||
public class ShouldOverrideUrlLoadingCallback : BaseCallbackResult<WKNavigationActionPolicy> {
|
||||
public class ShouldOverrideUrlLoadingCallback: BaseCallbackResult<WKNavigationActionPolicy> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -908,7 +908,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onReceivedHttpError", arguments: arguments)
|
||||
}
|
||||
|
||||
public class ReceivedHttpAuthRequestCallback : BaseCallbackResult<HttpAuthResponse> {
|
||||
public class ReceivedHttpAuthRequestCallback: BaseCallbackResult<HttpAuthResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -940,7 +940,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
public class ReceivedServerTrustAuthRequestCallback : BaseCallbackResult<ServerTrustAuthResponse> {
|
||||
public class ReceivedServerTrustAuthRequestCallback: BaseCallbackResult<ServerTrustAuthResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -972,7 +972,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
public class ReceivedClientCertRequestCallback : BaseCallbackResult<ClientCertResponse> {
|
||||
public class ReceivedClientCertRequestCallback: BaseCallbackResult<ClientCertResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1019,7 +1019,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onPageCommitVisible", arguments: arguments)
|
||||
}
|
||||
|
||||
public class LoadResourceWithCustomSchemeCallback : BaseCallbackResult<CustomSchemeResponse> {
|
||||
public class LoadResourceWithCustomSchemeCallback: BaseCallbackResult<CustomSchemeResponse> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1037,7 +1037,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onLoadResourceWithCustomScheme", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class CallJsHandlerCallback : BaseCallbackResult<Any> {
|
||||
public class CallJsHandlerCallback: BaseCallbackResult<Any> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1058,7 +1058,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onCallJsHandler", arguments: arguments, callback: callback)
|
||||
}
|
||||
|
||||
public class NavigationResponseCallback : BaseCallbackResult<WKNavigationResponsePolicy> {
|
||||
public class NavigationResponseCallback: BaseCallbackResult<WKNavigationResponsePolicy> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1082,7 +1082,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onNavigationResponse", arguments: navigationResponse.toMap(), callback: callback)
|
||||
}
|
||||
|
||||
public class ShouldAllowDeprecatedTLSCallback : BaseCallbackResult<Bool> {
|
||||
public class ShouldAllowDeprecatedTLSCallback: BaseCallbackResult<Bool> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
@ -1145,7 +1145,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
|||
channel?.invokeMethod("onMicrophoneCaptureStateChanged", arguments: arguments)
|
||||
}
|
||||
|
||||
public class PrintRequestCallback : BaseCallbackResult<Bool> {
|
||||
public class PrintRequestCallback: BaseCallbackResult<Bool> {
|
||||
override init() {
|
||||
super.init()
|
||||
self.decodeResult = { (obj: Any?) in
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
//
|
||||
//public class CustomUIPrintPageRenderer : UIPrintPageRenderer {
|
||||
//public class CustomUIPrintPageRenderer: UIPrintPageRenderer {
|
||||
// private var _numberOfPages: Int?
|
||||
// private var forceRenderingQuality: Int?
|
||||
//
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class PrintAttributes : NSObject {
|
||||
public class PrintAttributes: NSObject {
|
||||
var orientation: NSPrintInfo.PaperOrientation?
|
||||
var margins: NSEdgeInsets?
|
||||
var paperRect: CGRect?
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class PrintJobChannelDelegate : ChannelDelegate {
|
||||
public class PrintJobChannelDelegate: ChannelDelegate {
|
||||
private weak var printJobController: PrintJobController?
|
||||
|
||||
public init(printJobController: PrintJobController, channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -15,7 +15,7 @@ public enum PrintJobState: Int {
|
|||
case canceled = 7
|
||||
}
|
||||
|
||||
public class PrintJobController : NSObject, Disposable {
|
||||
public class PrintJobController: NSObject, Disposable {
|
||||
static let METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_inappwebview_printjobcontroller_"
|
||||
var id: String
|
||||
var plugin: InAppWebViewFlutterPlugin?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class PrintJobInfo : NSObject {
|
||||
public class PrintJobInfo: NSObject {
|
||||
var state: PrintJobState
|
||||
var attributes: PrintAttributes
|
||||
var creationTime: Int64
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class BaseCallbackResult<T> : CallbackResult<T> {
|
||||
public class BaseCallbackResult<T>: CallbackResult<T> {
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class CallbackResult<T> : MethodChannelResult {
|
||||
public class CallbackResult<T>: MethodChannelResult {
|
||||
public var notImplemented: () -> Void = {}
|
||||
public var success: (Any?) -> Void = {_ in }
|
||||
public var error: (String, String?, Any?) -> Void = {_,_,_ in }
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class ChannelDelegate : FlutterMethodCallDelegate, Disposable {
|
||||
public class ChannelDelegate: FlutterMethodCallDelegate, Disposable {
|
||||
var channel: FlutterMethodChannel?
|
||||
|
||||
public init(channel: FlutterMethodChannel) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class ClientCertResponse : NSObject {
|
||||
public class ClientCertResponse: NSObject {
|
||||
var certificatePath: String
|
||||
var certificatePassword: String?
|
||||
var keyStoreType: String?
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import WebKit
|
||||
|
||||
public class CreateWindowAction : NSObject {
|
||||
public class CreateWindowAction: NSObject {
|
||||
var navigationAction: WKNavigationAction
|
||||
var windowId: Int64
|
||||
var windowFeatures: WKWindowFeatures
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class CustomSchemeResponse : NSObject {
|
||||
public class CustomSchemeResponse: NSObject {
|
||||
var data: Data
|
||||
var contentType: String
|
||||
var contentEncoding: String
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class HttpAuthResponse : NSObject {
|
||||
public class HttpAuthResponse: NSObject {
|
||||
var username: String
|
||||
var password: String
|
||||
var permanentPersistence: Bool
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class PermissionResponse : NSObject {
|
||||
public class PermissionResponse: NSObject {
|
||||
var resources: [Any]
|
||||
var action: Int?
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import WebKit
|
||||
|
||||
public class PluginScript : UserScript {
|
||||
public class PluginScript: UserScript {
|
||||
var requiredInAllContentWorlds = false
|
||||
var messageHandlerNames: [String] = []
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class ServerTrustAuthResponse : NSObject {
|
||||
public class ServerTrustAuthResponse: NSObject {
|
||||
var action: Int?
|
||||
|
||||
public init(action: Int? = nil) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class Size2D : NSObject {
|
||||
public class Size2D: NSObject {
|
||||
var width: Double
|
||||
var height: Double
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import WebKit
|
||||
|
||||
public class UserScript : WKUserScript {
|
||||
public class UserScript: WKUserScript {
|
||||
var groupName: String?
|
||||
|
||||
private var contentWorldWrapper: Any?
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class WebMessage : NSObject, Disposable {
|
||||
public class WebMessage: NSObject, Disposable {
|
||||
var data: Any?
|
||||
var type: WebMessageType
|
||||
var ports: [WebMessagePort]?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class WebMessagePort : NSObject {
|
||||
public class WebMessagePort: NSObject {
|
||||
var name: String
|
||||
var index: Int64
|
||||
var webMessageChannelId: String
|
||||
|
|
|
@ -10,7 +10,7 @@ import AuthenticationServices
|
|||
import SafariServices
|
||||
import FlutterMacOS
|
||||
|
||||
public class WebAuthenticationSession : NSObject, ASWebAuthenticationPresentationContextProviding, Disposable {
|
||||
public class WebAuthenticationSession: NSObject, ASWebAuthenticationPresentationContextProviding, Disposable {
|
||||
static let METHOD_CHANNEL_NAME_PREFIX = "com.pichillilorenzo/flutter_webauthenticationsession_"
|
||||
var id: String
|
||||
var plugin: InAppWebViewFlutterPlugin?
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
public class WebAuthenticationSessionChannelDelegate : ChannelDelegate {
|
||||
public class WebAuthenticationSessionChannelDelegate: ChannelDelegate {
|
||||
private weak var webAuthenticationSession: WebAuthenticationSession?
|
||||
|
||||
public init(webAuthenticationSession: WebAuthenticationSession, channel: FlutterMethodChannel) {
|
||||
|
|
Loading…
Reference in New Issue