Mac Developer Library

Developer

WebKit Framework Reference

Introduction

Classes   Protocols   Other Reference  

WebKit provides a set of classes to display web content in windows, and implements browser features such as following links when clicked by the user, managing a back-forward list, and managing a history of pages recently visited. WebKit greatly simplifies the complicated process of loading webpages—that is, asynchronously requesting web content from an HTTP server where the response may arrive incrementally, in random order, or partially due to network errors. WebKit also simplifies the process of displaying that content which can contain various MIME types, and compound frame elements each with their own set of scroll bars.

Classes

NSObject

NSObject is the root class of most Objective-C class hierarchies.

WKBackForwardList

A WKBackForwardList object is a list of webpages previously visited in a web view that can be reached by going back or forward.

WKBackForwardListItem

A WKBackForwardListItem object represents a webpage in the back-forward list of a web view.

WKFrameInfo

A WKFrameInfo object contains information about a frame on a webpage.

WKNavigation

A WKNavigation object contains information for tracking the loading progress of a webpage.

WKNavigationAction

A WKNavigationAction object contains information about an action that may cause a navigation, used for making policy decisions.

WKNavigationResponse

A WKNavigationResponse object contains information about a navigation response, used for making policy decisions.

WKPreferences

A WKPreferences object encapsulates the preference settings for a web view.

WKProcessPool

A WKProcessPool object represents a pool of Web Content processes.

WKScriptMessage

A WKScriptMessage object contains information about a message sent from a webpage.

WKUserContentController

A WKUserContentController object provides a way for JavaScript to post messages and inject user scripts to a web view.

WKUserScript

A WKUserScript object represents a script that can be injected into a webpage.

WKWebViewConfiguration

A WKWebViewConfiguration object is a collection of properties with which to initialize a web view.

WKWindowFeatures

WebArchive

A WebArchive object represents a webpage that can be archived—for example, archived on disk or on the pasteboard.

WebBackForwardList

A WebBackForwardList object maintains a list of visited pages used to go back and forward to the most recent page.

WebDataSource

WebDataSource encapsulates the web content to be displayed in a web frame view.

WebFrame

A WebFrame object encapsulates the data displayed in a WebFrameView object.

WebHistory

WebHistory objects are used to maintain the pages visited by users.

WebHistoryItem

WebHistoryItem objects encapsulate information about visiting a page so that users can return to that page.

WebPreferences

WebPreferences encapsulates the preferences you can change per WebView object.

WebResource

A WebResource object represents a downloaded URL.

WebScriptObject

A WebScriptObject object is an Objective-C wrapper for a scripting object passed to your application from the scripting environment.

DOMObject

DOMAbstractView

DOMBlob

DOMFile

DOMCSSRule

DOMCSSCharsetRule

DOMCSSFontFaceRule

DOMCSSImportRule

DOMCSSMediaRule

DOMCSSPageRule

DOMCSSStyleRule

DOMCSSUnknownRule

DOMCSSRuleList

DOMCSSStyleDeclaration

DOMCSSValue

DOMCSSPrimitiveValue

DOMCSSValueList

DOMCounter

DOMEvent

DOMMutationEvent

DOMOverflowEvent

DOMProgressEvent

DOMUIEvent

DOMKeyboardEvent

DOMMouseEvent

DOMWheelEvent

DOMFileList

DOMHTMLCollection

DOMHTMLOptionsCollection

DOMImplementation

DOMMediaList

DOMNamedNodeMap

DOMNode

DOMAttr

DOMCharacterData

DOMComment

DOMProcessingInstruction

DOMText

DOMCDATASection

DOMDocument

DOMHTMLDocument

DOMDocumentFragment

DOMDocumentType

DOMElement

DOMHTMLElement

DOMHTMLAnchorElement

DOMHTMLAppletElement

DOMHTMLAreaElement

DOMHTMLBRElement

DOMHTMLBaseElement

DOMHTMLBaseFontElement

DOMHTMLBodyElement

DOMHTMLButtonElement

DOMHTMLDListElement

DOMHTMLDirectoryElement

DOMHTMLDivElement

DOMHTMLEmbedElement

DOMHTMLFieldSetElement

DOMHTMLFontElement

DOMHTMLFormElement

DOMHTMLFrameElement

DOMHTMLFrameSetElement

DOMHTMLHRElement

DOMHTMLHeadElement

DOMHTMLHeadingElement

DOMHTMLHtmlElement

DOMHTMLIFrameElement

DOMHTMLImageElement

DOMHTMLInputElement

DOMHTMLLIElement

DOMHTMLLabelElement

DOMHTMLLegendElement

DOMHTMLLinkElement

DOMHTMLMapElement

DOMHTMLMarqueeElement

DOMHTMLMenuElement

DOMHTMLMetaElement

DOMHTMLModElement

DOMHTMLOListElement

DOMHTMLObjectElement

DOMHTMLOptGroupElement

DOMHTMLOptionElement

DOMHTMLParagraphElement

DOMHTMLParamElement

DOMHTMLPreElement

DOMHTMLQuoteElement

DOMHTMLScriptElement

DOMHTMLSelectElement

DOMHTMLStyleElement

DOMHTMLTableCaptionElement

DOMHTMLTableCellElement

DOMHTMLTableColElement

DOMHTMLTableElement

DOMHTMLTableRowElement

DOMHTMLTableSectionElement

DOMHTMLTextAreaElement

DOMHTMLTitleElement

DOMHTMLUListElement

DOMEntity

DOMEntityReference

DOMNotation

DOMNodeIterator

DOMNodeList

DOMRGBColor

DOMRange

DOMRect

DOMStyleSheet

DOMCSSStyleSheet

DOMStyleSheetList

DOMTreeWalker

DOMXPathExpression

DOMXPathResult

WebUndefined

WebUndefined objects are simply used to represent the JavaScript “undefined” value in methods when bridging between JavaScript and Objective-C.

NSURLDownload

The NSURLDownload class downloads a request asynchronously and saves the data to a file.

WebDownload

WebDownload objects initiate download client requests on behalf of a delegate.

NSView

The NSView class defines the basic drawing, event-handling, and printing architecture of an app.

WKWebView

A WKWebView object displays interactive web content.

WebFrameView

WebFrameView objects and their subviews display the web content contained in a frame.

WebView

WebView is the core view class in the WebKit framework that manages interactions between the WebFrame and WebFrameView classes.

Protocols

WKNavigationDelegate

A class conforming to the WKNavigationDelegate protocol provides methods for tracking the progress of main frame navigations and for deciding load policy for main frame and subframe navigations.

WKScriptMessageHandler

A class conforming to the WKScriptMessageHandler protocol provides a method for receiving messages from JavaScript running in a webpage.

WKUIDelegate

A class conforming to the WKUIDelegate protocol provides methods for presenting native user interface elements on behalf of a webpage.

WebDocumentRepresentation

This protocol is adopted by document representation classes that handle specific MIME types.

WebDocumentSearching

WebDocumentSearching is an optional protocol for document view objects that support searching.

WebDocumentText

WebDocumentText is an optional protocol for document view objects that display text.

WebDocumentView

This protocol is adopted by the document view of a WebFrameView.

WebEditingDelegate

You use WebEditingDelegate to control or augment the editing behavior of a WebView object.

WebFrameLoadDelegate

WebView frame load delegates implement this informal protocol to be notified while frame loads are in progress.

WebJavaPlugIn

The WebJavaPlugIn protocol provides methods to facilitate JNI access to the Java virtual machine via the plug-in.

WebOpenPanelResultListener

WebView user interface delegates that implement the webView:runOpenPanelForFileButtonWithResultListener: method use the methods defined in this protocol to communicate with the listener object.

WebPlugIn

The WebPlugIn informal protocol defines methods that enable interaction between an application using the WebKit framework and any WebKit-based plug-ins it may use.

WebPlugInContainer

WebPlugInContainer is an informal protocol that enables a plug-in to send messages to the application.

WebPlugInViewFactory

A WebPlugInViewFactory object is used to create an NSView for a plug-in.

WebPolicyDecisionListener

This protocol enables WebView policy delegates to communicate with listener objects.

WebPolicyDelegate

The WebPolicyDelegate informal protocol works with the WebPolicyDecisionListener protocol to modify the policy decisions that the WebView class makes when handling URLs or the data objects they represent.

WebResourceLoadDelegate

Web view resource load delegates implement this informal protocol to be notified on the progress of loading individual resources.

WebScripting

WebScripting is an informal protocol that defines methods that classes can implement to export their interfaces to a WebScript environment such as JavaScript.

WebUIDelegate

Web view user interface delegates implement this informal protocol to control the opening of new windows, augment the behavior of default menu items displayed when the user clicks elements, and perform other user interface–related tasks.

Other Reference

DOMDocument Additions Reference

DOMElement Additions Reference

DOMHTMLDocument Additions Reference

DOMHTMLFrameElement Additions Reference

DOMHTMLIFrameElement Additions Reference

DOMHTMLObjectElement Additions Reference

DOMNode Additions Reference

DOMRange Additions Reference

WebKit Constants Reference