A WKWindow
object specifies optional attributes for the containing window when a new web view is requested.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
Framework
- Web
Kit
Declaration
class WKWindowFeatures : NSObject
A WKWindow
object specifies optional attributes for the containing window when a new web view is requested.
SDKs
Framework
class WKWindowFeatures : NSObject
var allows Resizing: NSNumber?
A Boolean value indicating whether the containing window should be resizable, or nil
if resizability is not specified.
var height: NSNumber?
A CGFloat
value specifying the height of the containing window, or nil
if the height is not specified.
var width: NSNumber?
A CGFloat
value specifying the width of the containing window, or nil
if the width is not specified.
var x: NSNumber?
A CGFloat
value specifying the x-coordinate of the containing window, or nil
if the x-coordinate is not specified.
var y: NSNumber?
A CGFloat
value specifying the y-coordinate of the containing window, or nil
if the y-coordinate is not specified.
var menu Bar Visibility: NSNumber?
A Boolean value indicating whether the menu bar should be visible, or nil
if menu bar visibility is not specified.
var status Bar Visibility: NSNumber?
A Boolean value indicating whether the status bar should be visible, or nil
if status bar visibility is not specified.
var toolbars Visibility: NSNumber?
A Boolean value indicating whether toolbars should be visible, or nil
if toolbars visibility is not specified.
protocol WKNavigation Delegate
The methods of the WKNavigation
protocol help you implement custom behaviors that are triggered during a web view's process of accepting, loading, and completing a navigation request.
class WKProcess Pool
A WKProcess
object represents a pool of Web Content processes.
class WKWeb View
An object that displays interactive web content, such as for an in-app browser.
class WKWeb View Configuration
A collection of properties used to initialize a web view.
class WKPreferences
A WKPreferences
object encapsulates the preference settings for a web view.
protocol WKUIDelegate
The WKUIDelegate
class provides methods for presenting native user interface elements on behalf of a webpage.
Implement a simple iPad web browser that can view either the desktop or mobile version of a website.