Class

WKWindowFeatures

A WKWindowFeatures object specifies optional attributes for the containing window when a new web view is requested.

Declaration

class WKWindowFeatures : NSObject

Topics

Inspecting Window +Position and Dimensions

var allowsResizing: 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.

Inspecting Visibility Properties

var menuBarVisibility: NSNumber?

A Boolean value indicating whether the menu bar should be visible, or nil if menu bar visibility is not specified.

var statusBarVisibility: NSNumber?

A Boolean value indicating whether the status bar should be visible, or nil if status bar visibility is not specified.

var toolbarsVisibility: NSNumber?

A Boolean value indicating whether toolbars should be visible, or nil if toolbars visibility is not specified.

Relationships

Inherits From

Conforms To

See Also

Initialization

protocol WKNavigationDelegate

The methods of the WKNavigationDelegate protocol help you implement custom behaviors that are triggered during a web view's process of accepting, loading, and completing a navigation request.

class WKProcessPool

A WKProcessPool object represents a pool of Web Content processes.

class WKWebView

An object that displays interactive web content, such as for an in-app browser.

class WKWebViewConfiguration

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.

Viewing Desktop or Mobile Web Content Using a Web View

Implement a simple iPad web browser that can view either the desktop or mobile version of a website.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software