WebKit Constants

WebKit constants affecting multiple classes.

Symbols

WKPreview Constants

let WKPreviewActionItemIdentifierCopy: String

Copies the item to the clipboard.

let WKPreviewActionItemIdentifierShare: String

Displays the Share panel options available for the item.

WK_API_Enabled Constant

WebKit Constants (Legacy)

let WebActionButtonKey: String

An NSNumber object where 0 indicates the left button, 1 indicates the middle button, and 2 indicates the right button.

let WebActionElementKey: String

A dictionary containing element information. See WebView for a description of the key-value pairs in this dictionary.

let WebActionModifierFlagsKey: String

An unsigned number that indicates the modifier flag.

let WebActionNavigationTypeKey: String

The navigation type of the action. Can be any of the values defined in WebNavigationType below.

let WebActionOriginalURLKey: String

The URL that initiated the action.

let WebArchivePboardType: String

The pasteboard type constant used when adding or accessing a WebArchive on the pasteboard.

let WebElementDOMNodeKey: String

The DOMNode for this element.

let WebElementFrameKey: String

The WebFrame object associated with this element.

let WebElementImageAltStringKey: String

An NSString of the ALT attribute of an image element.

let WebElementImageKey: String

An NSImage representing an image element.

let WebElementImageRectKey: String

An NSValue containing an NSRect, the size of an image element.

let WebElementImageURLKey: String

An NSURL containing the location of an image element.

let WebElementIsSelectedKey: String

An NSNumber used as a BOOL value to indicate whether a text element is selected or not. Zero value indicates false, true otherwise.

let WebElementLinkLabelKey: String

An NSString containing the text within an anchor.

let WebElementLinkTargetFrameKey: String

The WebFrame object associated with the target of the anchor.

let WebElementLinkTitleKey: String

An NSString containing the title of an anchor.

let WebElementLinkURLKey: String

An NSURL containing the location of a link if the element is within an anchor.

static let WebHistoryAllItemsRemoved: NSNotification.Name

Posted when all history items have been removed from the web history.

static let WebHistoryItemChanged: NSNotification.Name

Posted by a WebHistoryItem object when the value of the history item’s title, alternate title, URL strings, or last visited interval changes.

static let WebHistoryItemsAdded: NSNotification.Name

Posted when history items have been added to a web history.

let WebHistoryItemsKey: String

The key to access an array containing the added or removed web history items.

static let WebHistoryItemsRemoved: NSNotification.Name

Posted when items have been removed from the web history.

static let WebHistoryLoaded: NSNotification.Name

Posted when web history items have been loaded from a URL.

static let WebHistorySaved: NSNotification.Name

Posted when web history items have been saved to a URL.

let WebKitErrorDomain: Stringlet WebKitErrorMIMETypeKey: Stringlet WebKitErrorPlugInNameKey: Stringlet WebKitErrorPlugInPageURLStringKey: String
let WebPlugInAttributesKey: String

The NSDictionary object containing all names and values of all attributes of the plug-in’s associated HTML element, as well as all names and values of the parameters to be passed to the plug-in. For example, this dictionary will contain all PARAM elements within an APPLET element. If attribute and parameter names conflict, the attributes of an element take precedence over any of its parameters. All keys and values in this dictionary must be of type NSString. Required key.

let WebPlugInBaseURLKey: String

The base URL of the document containing the plug-in's view. Required key.

let WebPlugInContainerKey: String

An object that conforms to the WebPlugInContainer informal protocol. This object is used for callbacks from the plug-in to the enclosing application. If WebPlugInContainerKey is nil, no callbacks will occur.

let WebPlugInContainingElementKey: String

If an element of the page’s Document Object Model was used to specify the plug-in, this will contain that element. Otherwise, it will be nil.

let WebPlugInShouldLoadMainResourceKey: String

A Boolean value indicating whether the plug-in should load its own main resource (the src URL, in most cases). If true, the plug-in should load its own main resource. If false, the plug-in uses the data provided by WebKit and the webPlugInMainResourceDidReceiveData: message is sent to the plug-in when data is received. The default value is false.

static let WebPreferencesChanged: NSNotification.Name

Posted when the web preference settings are changed.

static let WebViewDidBeginEditing: NSNotification.Name

Posted when a web view begins any operation that changes its contents in response to user editing.

static let WebViewDidChange: NSNotification.Name

Posted when a web view performs any operation that changes its contents in response to user editing.

static let WebViewDidChangeSelection: NSNotification.Name

Posted when a web view changes its typing selection.

static let WebViewDidChangeTypingStyle: NSNotification.Name

Posted when a web view changes its typing style.

static let WebViewDidEndEditing: NSNotification.Name

Posted when a web view ends any operation that changes its contents in response to user editing.

static let WebViewProgressEstimateChanged: NSNotification.Name

Posted by a WebView object when the estimated progress value of a load changes.

static let WebViewProgressFinished: NSNotification.Name

Posted by a WebView object when the load has finished.

static let WebViewProgressStarted: NSNotification.Name

Posted by a WebView object when a load begins, including a load that is initiated in a subframe.