forked from sticksen/STKWebKitViewController
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTKWebKitViewController.h
More file actions
41 lines (31 loc) · 1.41 KB
/
STKWebKitViewController.h
File metadata and controls
41 lines (31 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// STKWebKitViewController.h
// STKWebKitViewController
//
// Created by Marc on 03.09.14.
// Copyright (c) 2014 sticksen. All rights reserved.
//
#import <WebKit/WebKit.h>
#import "STKWebKitModalViewController.h"
#ifndef __IPHONE_8_0
#warning "This project uses features only available in iOS SDK 8.0 and later."
#endif
typedef enum {
OpenNewTabExternal,
OpenNewTabInternal
} NewTabOpenMode;
@interface STKWebKitViewController : UIViewController <WKNavigationDelegate>
- (instancetype)initWithURL:(NSURL *)url;
- (instancetype)initWithURL:(NSURL *)url userScript:(WKUserScript *)script;
- (instancetype)initWithAddress:(NSString *)urlString;
- (instancetype)initWithAddress:(NSString *)string userScript:(WKUserScript *)script;
- (instancetype)initWithRequest:(NSURLRequest *)request;
- (instancetype)initWithRequest:(NSURLRequest *)request userScript:(WKUserScript *)script NS_DESIGNATED_INITIALIZER;
@property(nonatomic, readonly) WKWebView *webView;
/** How to open links (<a href>-tags) that have e.g. target=_blank. Internal opens the link in the existing WKWebView, external opens the operating system´s Browser */
@property(nonatomic) NewTabOpenMode newTabOpenMode;
@property(nonatomic) UIColor *toolbarTintColor;
@property(nonatomic) UIColor *navigationBarTintColor;
/** use this to customize the UIActivityViewController (aka Sharing-Dialog) */
@property (nonatomic) NSArray *applicationActivities;
@end