### start method Source: https://developer.apple.com/documentation/webkitjs/audiobuffersourcenode/1630189-start The start method schedules the playback of an AudioBufferSourceNode. ```APIDOC ## start ### Description Schedules the playback of an AudioBufferSourceNode. ### Parameters - **when** (unrestricted double) - Optional - The time at which the sound should begin playing. - **grainOffset** (unrestricted double) - Optional - An offset into the buffer at which to begin playback. - **grainDuration** (unrestricted double) - Optional - The duration of the portion of the buffer to play. ``` -------------------------------- ### start() Method Source: https://developer.apple.com/documentation/webkit/domhtmlmarqueeelement/start%28%29 Documentation for the start() method of the DOMHTMLMarqueeElement interface. ```APIDOC ## start() ### Description Starts the marquee animation. This method is deprecated. ### Method Instance Method ### Availability macOS 10.5–10.14 (Deprecated) ### Syntax ``` func start() ``` ``` -------------------------------- ### Get start position of character in SVG Source: https://developer.apple.com/documentation/webkitjs/svgtextcontentelement/1629833-getstartpositionofchar Retrieves the starting coordinate of a character at the specified index. ```WebIDL SVGPoint getStartPositionOfChar( optional unsigned long offset ); ``` -------------------------------- ### startDownload(using:) async Source: https://developer.apple.com/documentation/webkit/wkwebview/startdownload%28using%3Acompletionhandler%3A%29 Starts to download the resource at the URL in the request. This is the async/await version. ```APIDOC ## startDownload(using:) async ### Description Starts to download the resource at the URL in the request using async/await. ### Method Instance Method ### Endpoint N/A (Instance Method) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) - **WKDownload** (WKDownload) - An object representing the initiated download. #### Response Example None ### Parameters - **request** (URLRequest) - The object that encapsulates a URL and other parameters needed to download a resource. ``` -------------------------------- ### Get start time of a time range Source: https://developer.apple.com/documentation/webkitjs/timeranges/1632359-start Use the start() method to retrieve the starting time of a specific time range. This method is available on TimeRanges objects in Safari Desktop 3.1+ and Safari Mobile 2.0+. ```javascript unrestricted double start( unsigned long index ); ``` -------------------------------- ### Initializer Source: https://developer.apple.com/documentation/webkit/wkcontentruleliststore/init%28url%3A%29-dile Creates a new content rule list store in the specified directory. ```swift convenience init!(url: URL!) ``` -------------------------------- ### Get Initial Tab URL Source: https://developer.apple.com/documentation/webkit/wkwebextension/tabconfiguration/url Use this property to get the initial URL for a tab. If the value is nil, the app's default start page will be displayed. ```swift var url: URL? { get } ``` -------------------------------- ### init(configuration:) Source: https://developer.apple.com/documentation/webkit/webpage/init%28configuration%3A%29 Initializes a new WebPage instance with a specified configuration. ```APIDOC ## init(configuration:) ### Description Creates a new WebPage instance using the provided configuration settings. ### Parameters #### Path Parameters - **configuration** (WebPage.Configuration) - Optional - A configuration value that specifies the preferences and behaviors of the webpage. Defaults to Configuration(). ### Request Example let page = WebPage(configuration: WebPage.Configuration()) ``` -------------------------------- ### GET DOMRange.startOffset Source: https://developer.apple.com/documentation/webkit/domrange/startoffset Retrieves the start offset of the DOMRange object. Note that this property is deprecated. ```APIDOC ## GET DOMRange.startOffset ### Description Returns the offset at which the range starts within the start container. This property is deprecated. ### Method GET ### Endpoint DOMRange.startOffset ### Response - **startOffset** (Int32) - The starting offset of the range. ``` -------------------------------- ### init(configuration:) Source: https://developer.apple.com/documentation/webkit/wkwebextensioncontroller/init%28configuration%3A%29 Initializes a new web extension controller with a specified configuration. ```APIDOC ## init(configuration:) ### Description Returns a web extension controller initialized with the specified configuration. ### Parameters #### Path Parameters - **configuration** (WKWebExtensionController.Configuration) - Required - The configuration for the new web extension controller. ### Return Value An initialized web extension controller, or nil if the object could not be initialized. ### Discussion This is a designated initializer. The initializer copies the specified configuration, so mutating the configuration after invoking the initializer has no effect on the web extension controller. ``` -------------------------------- ### OscillatorNode.start() Method Signature Source: https://developer.apple.com/documentation/webkitjs/oscillatornode/1631744-start This is the method signature for starting an OscillatorNode. It accepts an optional 'when' parameter to specify the exact time to start playback. ```javascript void start( optional unrestricted double when ); ``` -------------------------------- ### GET DOMRange.startContainer Source: https://developer.apple.com/documentation/webkit/domrange/startcontainer Retrieves the start container node for a DOMRange object. Note that this property is deprecated. ```APIDOC ## GET DOMRange.startContainer ### Description Returns the node within which the Range begins. This property is deprecated. ### Endpoint DOMRange.startContainer ### Response - **startContainer** (DOMNode!) - The node where the range starts. ``` -------------------------------- ### Instance Method: webView(_:start:) Source: https://developer.apple.com/documentation/webkit/wkurlschemehandler/webview%28_%3Astart%3A%29 Asks your handler to begin loading the data for the specified resource. This method is called when a web view encounters a resource with your custom URL scheme. ```APIDOC ## Instance Method: webView(_:start:) ### Description Asks your handler to begin loading the data for the specified resource. When a web view encounters a resource with your custom URL scheme, it calls this method on the appropriate handler object. Use your implementation of this method to begin loading the resource. Call the methods of the provided `WKURLSchemeTask` object to report the progress of the loading operation back to the web view. You also use that object to deliver the resource data to the web view. ### Parameters - **webView** (WKWebView) - Required - The web view that requires the resource. - **urlSchemeTask** (any WKURLSchemeTask) - Required - The task object that identifies the resource to load. You also use this object to report the progress of the load operation back to the web view. ### Availability iOS 11.0+ iPadOS 11.0+ Mac Catalyst 13.1+ macOS 10.13+ visionOS 1.0+ ### Code Example ```swift func webView( _ webView: WKWebView, start urlSchemeTask: any WKURLSchemeTask ) ``` ``` -------------------------------- ### Get WebArchive Data Source: https://developer.apple.com/documentation/webkit/webarchive/data Access the data representation of a WebArchive instance. This property is deprecated starting from macOS 10.15. ```swift var data: Data! { get } ``` -------------------------------- ### Get startOffset Property Source: https://developer.apple.com/documentation/webkitjs/staticrange/2871081-startoffset Read-only attribute representing the offset within the start node. Available in Safari 10.1+. ```javascript readonly attribute unsigned long startOffset; ``` -------------------------------- ### Initializer Source: https://developer.apple.com/documentation/webkit/webresource/init%28data%3Aurl%3Amimetype%3Atextencodingname%3Aframename%3A%29-914h4 Initializes and returns a web resource instance. ```swift init!( data: Data!, url URL: URL!, mimeType MIMEType: String!, textEncodingName: String!, frameName: String! ) ``` -------------------------------- ### Access selectionStart property Source: https://developer.apple.com/documentation/webkit/domhtmlinputelement/selectionstart This property is deprecated and used to get or set the starting index of the selection in an input element. ```swift var selectionStart: Int32 { get set } ``` -------------------------------- ### webView(_:start:) Source: https://developer.apple.com/documentation/webkit/wkurlschemehandler Method to begin loading a resource for a custom URL scheme. ```APIDOC ## func webView(_:start:) ### Description Asks your handler to begin loading the data for the specified resource. ### Parameters - **webView** (WKWebView) - The web view that encountered the custom scheme. - **urlSchemeTask** (any WKURLSchemeTask) - The task object representing the resource request. ``` -------------------------------- ### Start a download using async/await Source: https://developer.apple.com/documentation/webkit/wkwebview/startdownload%28using%3Acompletionhandler%3A%29 Initiates a download asynchronously and returns the WKDownload object directly. ```swift func startDownload(using request: URLRequest) async -> WKDownload ``` -------------------------------- ### Get border color in Swift Source: https://developer.apple.com/documentation/webkit/domcssstyledeclaration/bordercolor%28%29 Use this method to retrieve the border color as a string. Available starting from macOS 10.4. ```swift func borderColor() -> String! ``` -------------------------------- ### init(frame:configuration:) Source: https://developer.apple.com/documentation/webkit/wkwebview/init%28frame%3Aconfiguration%3A%29 Creates a web view and initializes it with the specified frame and configuration data. ```APIDOC ## init(frame:configuration:) ### Description Creates a web view and initializes it with the specified frame and configuration data. This is the designated initializer for the class. ### Parameters - **frame** (CGRect) - Required - The frame rectangle for the new web view. - **configuration** (WKWebViewConfiguration) - Required - The configuration of the new web view. This method saves a copy of your configuration object. ### Return Value - **WKWebView?** - An initialized web view, or nil if the view couldn’t be initialized. ``` -------------------------------- ### Get Gamepad Index Source: https://developer.apple.com/documentation/webkitjs/gamepad/1631073-index Read-only attribute representing the index of the gamepad. Available on Safari Desktop and Mobile starting from version 10.1. ```javascript readonly attribute unsigned long index; ``` -------------------------------- ### Get WKNavigationType Source: https://developer.apple.com/documentation/webkit/webpage/navigationaction/navigationtype Access the navigationType property to determine how a navigation was triggered. Available on iOS, iPadOS, macOS, and visionOS starting from version 26.0. ```swift @MainActor var navigationType: WKNavigationType { get } ``` -------------------------------- ### startDownload(using:completionHandler:) Source: https://developer.apple.com/documentation/webkit/wkwebview/startdownload%28using%3Acompletionhandler%3A%29 Starts to download the resource at the URL in the request. This is the callback-based version. ```APIDOC ## startDownload(using:completionHandler:) ### Description Starts to download the resource at the URL in the request. ### Method Instance Method ### Endpoint N/A (Instance Method) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) None (This method initiates a download and provides a callback) #### Response Example None ### Parameters - **request** (URLRequest) - The object that encapsulates a URL and other parameters needed to download a resource. - **completionHandler** (@escaping @MainActor @Sendable (WKDownload) -> Void) - A closure the system executes when it has started to download the resource. ``` -------------------------------- ### init(url:) Source: https://developer.apple.com/documentation/webkit/webview-swift.struct/init%28url%3A%29 Initializes a new WebView instance with a specified URL to load. ```APIDOC ## init(url:) ### Description Create a new WebView with the specified URL. If the URL value is non-nil or changes to a non-nil value, the new URL is loaded into the view. ### Method Initializer ### Parameters #### Path Parameters - **url** (URL?) - Optional - The URL to display in the view. ### Request Example WebView(url: URL(string: "https://www.apple.com")) ``` -------------------------------- ### Get Animations Instance Method Source: https://developer.apple.com/documentation/webkitjs/animatable/2871390-getanimations This method returns a sequence of WebAnimation objects. It is available on Safari Desktop and Mobile starting from version 10.1. ```javascript sequence getAnimations(); ``` -------------------------------- ### init() Source: https://developer.apple.com/documentation/webkit/webpage/configuration/init%28%29 Initializes a new instance of WebPage.Configuration. ```APIDOC ## init() ### Description Creates a new configuration value for a WebPage. ### Method Initializer ### Availability - iOS 26.0+ - iPadOS 26.0+ - Mac Catalyst - macOS 26.0+ - visionOS 26.0+ ### Declaration @MainActor init() ``` -------------------------------- ### DOMHTMLAnchorElement text Property Source: https://developer.apple.com/documentation/webkit/domhtmlanchorelement/text The 'text' property of DOMHTMLAnchorElement is used to get the text content of an anchor element. It is deprecated starting from macOS 10.15. ```APIDOC ## DOMHTMLAnchorElement text Property ### Description This property returns the text content of the anchor element. It is deprecated and should not be used in new development. ### Method `get` ### Endpoint N/A (Instance Property) ### Parameters N/A ### Request Example N/A ### Response #### Success Response (200) - **text** (String!) - The text content of the anchor element. #### Response Example ```javascript var anchorElement = document.createElement('a'); anchorElement.textContent = 'Example Link'; console.log(anchorElement.text); // Output: "Example Link" ``` ### Deprecation Information - **Platforms**: macOS 10.5–10.14 - **Status**: Deprecated ``` -------------------------------- ### Get the Mouse Button Number Source: https://developer.apple.com/documentation/webkit/webpage/navigationaction/buttonnumber-4sg9k Retrieve the number of the mouse button that initiated the navigation request. Available on iOS, iPadOS, macOS, and visionOS starting from version 26.0. ```swift @MainActor var buttonNumber: UIEvent.ButtonMask { get } ``` -------------------------------- ### Start a download with completion handler Source: https://developer.apple.com/documentation/webkit/wkwebview/startdownload%28using%3Acompletionhandler%3A%29 Initiates a download using a URLRequest and a completion handler that returns the WKDownload object. ```swift func startDownload( using request: URLRequest, completionHandler: @escaping @MainActor @Sendable (WKDownload) -> Void ) ``` -------------------------------- ### HTMLHRElement.color Property Source: https://developer.apple.com/documentation/webkitjs/htmlhrelement/2871285-color The color property of an HTMLHRElement allows you to get or set the color of the horizontal rule. This property is available in Safari Desktop and Mobile starting from version 10.1. ```APIDOC ## HTMLHRElement.color ### Description Represents the color of the horizontal rule. ### Method Attribute ### Endpoint N/A (Instance Property) ### Parameters N/A ### Request Example N/A ### Response #### Success Response (200) - **color** (DOMString) - The color of the horizontal rule. #### Response Example ```json { "color": "red" } ``` ``` -------------------------------- ### Initialize a WebPage with configuration, navigation decider, and dialog presenter Source: https://developer.apple.com/documentation/webkit/webpage/init%28configuration%3Anavigationdecider%3Adialogpresenter%3A%29 Creates a new WebPage instance using the specified configuration, navigation decider, and dialog presenter. Must be called on the MainActor. ```swift @MainActor convenience init( configuration: WebPage.Configuration = Configuration(), navigationDecider: some WebPage.NavigationDeciding, dialogPresenter: some WebPage.DialogPresenting ) ``` -------------------------------- ### Initialize WKWebExtension with App Extension Bundle Source: https://developer.apple.com/documentation/webkit/wkwebextension/init%28appextensionbundle%3A%29 Use this initializer to create a web extension from a provided app extension bundle. Ensure the bundle contains a valid `manifest.json` file in its resources directory, otherwise an error will be thrown. ```swift @MainActor @preconcurrency convenience init(appExtensionBundle: Bundle) async throws ``` -------------------------------- ### DOMHTMLLinkElement href Property Source: https://developer.apple.com/documentation/webkit/domhtmllinkelement/href The href property of DOMHTMLLinkElement is used to get or set the URL of the linked resource. It is deprecated starting from macOS 10.4 and removed in later versions. ```APIDOC ## DOMHTMLLinkElement href Property ### Description Represents the URL of the linked resource. This property is deprecated. ### Method Read/Write ### Endpoint N/A (Instance Property) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```javascript var linkElement = document.createElement('a'); linkElement.href = 'https://example.com'; // Setting the href var url = linkElement.href; // Getting the href ``` ### Response #### Success Response (200) N/A (Instance Property) #### Response Example ```javascript "https://example.com" ``` ### Deprecation Information Deprecated in macOS 10.4–10.14. ``` -------------------------------- ### Volume Instance Property Source: https://developer.apple.com/documentation/webkitjs/mediacontroller/1630095-volume The 'volume' property is an unrestricted double attribute that allows you to get or set the volume level. It is available in Safari Desktop and Safari Mobile starting from version 10.0. ```APIDOC ## Volume Instance Property ### Description Represents the volume level, which can be set or retrieved. ### Method Attribute (getter/setter) ### Endpoint N/A (Instance Property) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```javascript // Get volume let currentVolume = mediaController.volume; // Set volume mediaController.volume = 0.5; ``` ### Response #### Success Response (200) - **volume** (double) - The current volume level, typically between 0.0 and 1.0. #### Response Example ```json { "volume": 0.75 } ``` ``` -------------------------------- ### Implement webView(_:start:) for Custom URL Schemes Source: https://developer.apple.com/documentation/webkit/wkurlschemehandler/webview%28_%3Astart%3A%29 Implement this method to begin loading a resource for a custom URL scheme. Use the WKURLSchemeTask to report progress and deliver data back to the web view. This method is required when conforming to the WKURLSchemeHandler protocol. ```swift func webView( _ webView: WKWebView, start urlSchemeTask: any WKURLSchemeTask ) ``` -------------------------------- ### Get Existing Tabs for Window Configuration Source: https://developer.apple.com/documentation/webkit/wkwebextension/windowconfiguration/tabs Use this property to specify the existing tabs that should be moved to the new window. If both 'tabs' and 'tabURLs' are empty, the app's default start page will load. ```swift var tabs: [any WKWebExtensionTab] { get } ``` -------------------------------- ### init(configuration:dialogPresenter:) Source: https://developer.apple.com/documentation/webkit/webpage/init%28configuration%3Adialogpresenter%3A%29 Initializes a new WebPage instance with a specific configuration and a dialog presenter. ```APIDOC ## init(configuration:dialogPresenter:) ### Description Creates a new WebPage instance with the provided configuration and dialog presenter. ### Parameters #### Parameters - **configuration** (WebPage.Configuration) - Optional - A configuration value to use when initializing the page. - **dialogPresenter** (some WebPage.DialogPresenting) - Required - A dialog presenter which controls how JavaScript dialogs are handled. ### Request Example ```swift let page = WebPage(configuration: myConfig, dialogPresenter: myPresenter) ``` ``` -------------------------------- ### webkitLineDash Instance Property Source: https://developer.apple.com/documentation/webkitjs/canvasrenderingcontext2d/1630482-webkitlinedash The webkitLineDash property allows you to set or get the line dash pattern for drawing dashed lines on a 2D canvas context. It is supported on Safari Desktop and Safari Mobile starting from version 10.0. ```APIDOC ## webkitLineDash ### Description Represents the line dash pattern for drawing dashed lines on a 2D canvas. ### Method Attribute ### Endpoint N/A (Instance Property) ### Parameters N/A ### Request Example ```javascript const canvas = document.getElementById('myCanvas'); const ctx = canvas.getContext('2d'); ctx.webkitLineDash = [10, 5]; // Sets a dash pattern of 10 pixels on, 5 pixels off ctx.stroke(); ``` ### Response #### Success Response (200) - **sequence ** - The line dash pattern as an array of numbers. #### Response Example ```json [10, 5] ``` ``` -------------------------------- ### Initializer Source: https://developer.apple.com/documentation/webkit/wkwebextensioncontext/init%28forextension%3A%29-6gjca Initializes a new WKWebExtensionContext for a given WKWebExtension. ```swift convenience init(forExtension extension: WKWebExtension) ``` -------------------------------- ### OscillatorNode.start() Source: https://developer.apple.com/documentation/webkitjs/oscillatornode/1631744-start The start() method of the OscillatorNode interface is used to schedule the start of an oscillator. It can take an optional double value representing the time at which the oscillator should start. ```APIDOC ## OscillatorNode.start() ### Description Schedules the start of an oscillator. ### Method void start(optional unrestricted double when) ### Parameters #### Path Parameters - **when** (double) - Optional - The time at which to start the oscillator. If not provided, the oscillator starts immediately. ### Request Example ```javascript // Example usage (conceptual, requires AudioContext setup) const oscillator = audioContext.createOscillator(); oscillator.start(audioContext.currentTime + 1); // Start 1 second from now ``` ### Response This method does not return a value. ``` -------------------------------- ### init(configuration:navigationDecider:dialogPresenter:) Source: https://developer.apple.com/documentation/webkit/webpage/init%28configuration%3Anavigationdecider%3Adialogpresenter%3A%29 Initializes a new WebPage instance with specific configuration, navigation decider, and dialog presenter. ```APIDOC ## init(configuration:navigationDecider:dialogPresenter:) ### Description Creates a new WebPage instance with custom configuration, navigation logic, and dialog presentation handling. ### Parameters - **configuration** (WebPage.Configuration) - Optional - A configuration value to use when initializing the page. - **navigationDecider** (some WebPage.NavigationDeciding) - Required - A navigation decider used to customize navigations that happen within the page. - **dialogPresenter** (some WebPage.DialogPresenting) - Required - A dialog presenter which controls how JavaScript dialogs are handled. ``` -------------------------------- ### Initialize WKAudiovisualMediaTypes Source: https://developer.apple.com/documentation/webkit/wkaudiovisualmediatypes Example of initializing an empty set of media types, indicating no user gesture is required. ```swift let myAudiovisualMediaType: WKAudiovisualMediaTypes = [] ``` -------------------------------- ### init(for:) Source: https://developer.apple.com/documentation/webkit/wkwebextensioncontext/init%28for%3A%29 Initializes a new web extension context with the provided extension object. ```APIDOC ## init(for:) ### Description Returns a web extension context initialized with a specified extension. ### Parameters #### Path Parameters - **extension** (WKWebExtension) - Required - The extension to use for the new web extension context. ### Return Value An initialized web extension context. ``` -------------------------------- ### init(appExtensionBundle:) Source: https://developer.apple.com/documentation/webkit/wkwebextension/init%28appextensionbundle%3A%29 Initializes a new web extension instance using the specified app extension bundle. ```APIDOC ## init(appExtensionBundle:) ### Description Creates a web extension initialized with a specified app extension bundle. The bundle must contain a manifest.json file in its resources directory. ### Method Initializer ### Parameters #### Path Parameters - **appExtensionBundle** (Bundle) - Required - The bundle to use for the new web extension. ### Request Example @MainActor @preconcurrency convenience init(appExtensionBundle: Bundle) async throws ### Response - **Success** - Returns a new WKWebExtension instance. - **Error** - Throws an error if the manifest.json is invalid, missing, or the bundle is improperly configured. ``` -------------------------------- ### Method: start Source: https://developer.apple.com/documentation/webkitjs/timeranges/1632359-start Retrieves the start time of the range at the specified index. ```APIDOC ## start ### Description Returns the start time of the range at the specified index. ### Method Instance Method ### Parameters #### Path Parameters - **index** (unsigned long) - Required - The index of the range to retrieve. ### Response - **double** - The start time of the range in seconds. ``` -------------------------------- ### Start Provisional Navigation Delegate Method Source: https://developer.apple.com/documentation/webkit/wknavigationdelegate/webview%28_%3Adidstartprovisionalnavigation%3A%29 Implement this method to be notified when a navigation request has started in the main frame. It is called before the web view receives a response to the request. ```swift optional func webView( _ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation! ) ``` -------------------------------- ### HTMLOListElement.start Property Source: https://developer.apple.com/documentation/webkitjs/htmlolistelement/1634434-start The start attribute represents the starting value of an ordered list. ```APIDOC ## Property: start ### Description The start attribute of the HTMLOListElement interface specifies the starting value of an ordered list (
    ). ### Syntax attribute long start; ### Compatibility - Safari Desktop: 10.0+ - Safari Mobile: 10.0+ ``` -------------------------------- ### init(rawValue:) Source: https://developer.apple.com/documentation/webkit/wkwebextension/matchpattern/options/init%28rawvalue%3A%29 Initializes a new instance of WKWebExtension.MatchPattern.Options using the provided raw value. ```APIDOC ## init(rawValue:) ### Description Initializes a new instance of WKWebExtension.MatchPattern.Options with the specified raw value. ### Parameters #### Request Body - **rawValue** (UInt) - Required - The raw value used to initialize the options. ``` -------------------------------- ### Accessing the start attribute Source: https://developer.apple.com/documentation/webkitjs/htmlolistelement/1634434-start Defines the start attribute for an ordered list element. ```IDL attribute long start; ``` -------------------------------- ### init(configuration:navigationDecider:) Source: https://developer.apple.com/documentation/webkit/webpage/init%28configuration%3Anavigationdecider%3A%29 Initializes a new WebPage instance with a specific configuration and navigation decider. ```APIDOC ## init(configuration:navigationDecider:) ### Description Creates a new WebPage instance using the provided configuration and navigation decider. ### Parameters #### Parameters - **configuration** (WebPage.Configuration) - Optional - A WebPage.Configuration value to use when initializing the page. - **navigationDecider** (some WebPage.NavigationDeciding) - Required - A navigation decider used to customize navigations that happen within the page. ``` -------------------------------- ### Retrieve animation start time Source: https://developer.apple.com/documentation/webkitjs/svganimationelement/1634321-getstarttime Returns the start time of the animation as an unrestricted float. ```WebIDL unrestricted float getStartTime(); ``` -------------------------------- ### Making Windows Key and Main Source: https://developer.apple.com/documentation/webkit/webuidelegate Methods for managing the focus and active state of web view windows. ```APIDOC ## Making Windows Key and Main ### `webViewFocus(_:)` Brings a web view’s window to the front and makes it the active window. ### `webViewUnfocus(_:)` Relinquishes focus on a web view’s window. ``` -------------------------------- ### Initialize WebPage with Configuration Source: https://developer.apple.com/documentation/webkit/webpage/init%28configuration%3A%29 Use this initializer to create a new WebPage with default or custom configuration settings. Available on iOS, iPadOS, macOS, and visionOS. ```swift @MainActor convenience init(configuration: WebPage.Configuration = Configuration()) ``` -------------------------------- ### Start marquee animation Source: https://developer.apple.com/documentation/webkitjs/htmlmarqueeelement/1629889-start Invokes the start method to begin the marquee scrolling behavior. ```IDL void start(); ``` -------------------------------- ### Play Media Source: https://developer.apple.com/documentation/webkitjs/htmlmediaelement/1630114-play Call this method to start playing a media resource. If the resource is not available, it will be loaded first. Returns a Promise that resolves when playback has started or rejects if an error occurs. ```javascript Promise play(); ``` -------------------------------- ### WKWebExtensionController Initializers Source: https://developer.apple.com/documentation/webkit/wkwebextensioncontroller Initializes a new WKWebExtensionController. ```APIDOC ## Initializers ### `init()` Returns a web extension controller initialized with the default configuration. ### `init(configuration: WKWebExtensionController.Configuration)` Returns a web extension controller initialized with the specified configuration. ``` -------------------------------- ### DOMHTMLIFrameElement Additions - Getting the Content Frame Source: https://developer.apple.com/documentation/webkit/domhtmliframeelement-additions This section describes how to get the content frame of a DOMHTMLIFrameElement. ```APIDOC ## DOMHTMLIFrameElement Additions Additions to the `DOMHTMLIFrameElement` class facilitate communication between the DOM API and WebKit. ### Getting the Content Frame `var contentFrame: WebFrame!` #### Description The content frame of the element. #### Method Getter #### Endpoint N/A (Property access) #### Parameters None ### Request Example N/A ### Response #### Success Response (200) - **contentFrame** (WebFrame!) - The content frame of the element. #### Response Example N/A ``` -------------------------------- ### Define Range Start Position Source: https://developer.apple.com/documentation/webkitjs/range/1631205-setstart Sets the start of a range to a specific offset within a reference node. ```IDL void setStart( Node refNode, unsigned long offset ); ``` -------------------------------- ### Set Range Start After Node Source: https://developer.apple.com/documentation/webkitjs/range/1629460-setstartafter Sets the start position of a range to be immediately after the specified reference node. ```IDL void setStartAfter( Node refNode ); ``` -------------------------------- ### Initialize WKWebExtension with a resource base URL Source: https://developer.apple.com/documentation/webkit/wkwebextension/init%28resourcebaseurl%3A%29 Initializes a web extension from a file URL pointing to a directory or ZIP archive. Requires the URL to contain a valid manifest.json file. ```swift @MainActor @preconcurrency convenience init(resourceBaseURL: URL) async throws ``` -------------------------------- ### init(rawValue:) Source: https://developer.apple.com/documentation/webkit/wkwebview/fullscreenstate-swift.enum/init%28rawvalue%3A%29 Initializes a FullscreenState instance from a raw integer value. ```APIDOC ## init(rawValue:) ### Description Creates a new instance of FullscreenState from the provided raw integer value. ### Method Initializer ### Parameters #### Parameters - **rawValue** (Int) - Required - The raw integer value representing the fullscreen state. ### Request Example let state = WKWebView.FullscreenState(rawValue: 1) ``` -------------------------------- ### Retrieve Media Start Date Source: https://developer.apple.com/documentation/webkitjs/htmlmediaelement/1634352-getstartdate Returns the Date object representing the start time of the media element. ```javascript Date getStartDate(); ``` -------------------------------- ### Initializer: init(_:) Source: https://developer.apple.com/documentation/webkit/webview-swift.struct/init%28_%3A%29 Creates a new WebView instance and associates it with a provided WebPage object. It's important to ensure that each WebPage is associated with only one WebView to avoid programming errors. ```APIDOC ## Initializer: init(_:) ### Description Creates a new `WebView` instance and associates it with a provided `WebPage` object. It is a programming error to create multiple `WebView`s with the same `WebPage`. ### Method `init(_ page: WebPage)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) None #### Response Example None ### Parameters - **page** (WebPage) - Required - The `WebPage` that should be associated with this `WebView`. ``` -------------------------------- ### Collapse DOMSelection to start Source: https://developer.apple.com/documentation/webkitjs/domselection/1633130-collapsetostart Collapses the selection to the start of the range. Supported in Safari Desktop and Mobile 10.0+. ```IDL void collapseToStart(); ``` -------------------------------- ### Implement webView(_:didCommit:) Source: https://developer.apple.com/documentation/webkit/wknavigationdelegate/webview%28_%3Adidcommit%3A%29 Use this method to handle the start of content reception for the main frame. ```Swift optional func webView( _ webView: WKWebView, didCommit navigation: WKNavigation! ) ``` -------------------------------- ### Define DOM_START_TO_START constant Source: https://developer.apple.com/documentation/webkit/dom_start_to_start Represents the constant value for comparing the start of one range to the start of another. ```swift var DOM_START_TO_START: Int { get } ``` -------------------------------- ### Get obscuredContentInsets on macOS Source: https://developer.apple.com/documentation/webkit/wkwebview/obscuredcontentinsets Use this property to get the insets for obscured content on macOS. It is an NSEdgeInsets value. ```swift var obscuredContentInsets: NSEdgeInsets { get set } ``` -------------------------------- ### Initialize WKWebExtension.Permission Source: https://developer.apple.com/documentation/webkit/wkwebextension/permission/init%28_%3A%29 Creates a new permission instance using a raw string value. ```swift init(_ rawValue: String) ``` -------------------------------- ### WKWebExtension.MatchPattern.Options Initializer Source: https://developer.apple.com/documentation/webkit/wkwebextension/matchpattern/options Details the initializer for WKWebExtension.MatchPattern.Options. ```APIDOC ## Initializers - `init(rawValue: UInt)` Initializes the options set with a raw unsigned integer value. ``` -------------------------------- ### Getting State Source: https://developer.apple.com/documentation/webkitjs/htmlmediaelement This section describes the read-only properties used to get the current state of the media element. ```APIDOC ## Getting State ### Properties - **buffered** (TimeRanges) - The time ranges of the media resource that have been downloaded. (read-only) - **currentSrc** (URL) - The absolute URL of the media resource. (read-only) - **duration** (Number) - The length of the media resource in seconds. (read-only) - **ended** (Boolean) - Indicates whether the media played to the end. (read-only) - **error** (MediaError) - The last error that occurred for this element. (read-only) - **networkState** (Number) - The state of downloading the media resource. (read-only) - **paused** (Boolean) - Indicates whether the media is paused. (read-only) - **played** (TimeRanges) - The ranges of the media resource that were played. (read-only) - **readyState** (Number) - The ready state of the media resource. (read-only) - **seekable** (TimeRanges) - The ranges that can be played in a nonlinear fashion. (read-only) - **seeking** (Boolean) - Indicates whether the element is seeking. (read-only) - **startTime** (Number) - The earliest possible time in seconds to start playback. (read-only) ``` -------------------------------- ### Get and Set mediaText Property Source: https://developer.apple.com/documentation/webkit/dommedialist/mediatext This property is deprecated and should not be used. It was used to get or set the media text. ```swift var mediaText: String! { get set } ``` -------------------------------- ### Create an AnalyserNode Source: https://developer.apple.com/documentation/webkitjs/audiocontext/1633616-createanalyser Initializes an AnalyserNode for real-time frequency and time-domain analysis. ```javascript AnalyserNode createAnalyser(); ``` -------------------------------- ### void setPreparedToReturnVideoLayerToInline(boolean prepared) Source: https://developer.apple.com/documentation/webkitjs/mediacontrolshost/2870996-setpreparedtoreturnvideolayertoi Sets the prepared state for returning a video layer to an inline display mode. ```APIDOC ## void setPreparedToReturnVideoLayerToInline(boolean prepared) ### Description Sets whether the video layer is prepared to return to an inline display mode. ### Method Instance Method ### Parameters #### Parameters - **prepared** (boolean) - Required - Indicates whether the video layer is prepared to return to inline mode. ### Request Example setPreparedToReturnVideoLayerToInline(true); ``` -------------------------------- ### Get and Set htmlFor Property Source: https://developer.apple.com/documentation/webkit/domhtmlscriptelement/htmlfor This property is deprecated and should not be used. It was intended for setting or getting a string value. ```swift var htmlFor: String! { get set } ``` -------------------------------- ### Get and Set marginWidth Source: https://developer.apple.com/documentation/webkit/domhtmlframeelement/marginwidth This property is deprecated and should not be used. It was used to get or set the margin width of a frame. ```swift var marginWidth: String! { get set } ``` -------------------------------- ### webView(_:createWebViewWith:) Source: https://developer.apple.com/documentation/webkit/webuidelegate/webview%28_%3Acreatewebviewwith%3A%29 Creates a window containing a web view to load the specified request. ```APIDOC ## webView(_:createWebViewWith:) ### Description Creates a window containing a web view to load the specified request. ### Method Instance Method ### Parameters - **sender** (WebView!) - The web view that sent the message. - **request** (URLRequest!) - The request to load. ### Return Value - **WebView!** - The web view that is loading the request. ### Discussion This method should begin loading the content for the specified request by sending load(_:) to its main frame. The new window should initially be hidden. Later, a webViewShow(_:) message is sent to the delegate of the new web view. By default, this method returns nil. ``` -------------------------------- ### Implement webView(_:navigationResponse:didBecome:) Source: https://developer.apple.com/documentation/webkit/wknavigationdelegate/webview%28_%3Anavigationresponse%3Adidbecome%3A%29 Use this method to initiate tracking for a download that originated from a navigation response. ```swift optional func webView( _ webView: WKWebView, navigationResponse: WKNavigationResponse, didBecome download: WKDownload ) ``` -------------------------------- ### Get designMode Property Source: https://developer.apple.com/documentation/webkit/domhtmldocument/designmode This property is deprecated and should not be used. It was used to get the current editing mode of the document. ```swift var designMode: String! { get set } ``` -------------------------------- ### DOMSelection.baseOffset Source: https://developer.apple.com/documentation/webkitjs/domselection/1633016-baseoffset The baseOffset property returns the offset of the start of the selection relative to the start of the DOM node. This property is read-only. ```APIDOC ## DOMSelection.baseOffset ### Description The `baseOffset` property of a `DOMSelection` object returns the offset of the start of the selection relative to the start of the DOM node. ### Method Readonly attribute ### Endpoint N/A (Instance Property) ### Parameters N/A ### Request Example N/A ### Response #### Success Response (200) - **baseOffset** (unsigned long) - The offset of the start of the selection. #### Response Example ```javascript // Example usage (conceptual): const selection = window.getSelection(); const baseOffset = selection.baseOffset; console.log(baseOffset); ``` ``` -------------------------------- ### init(mainResource:subresources:subframeArchives:) Source: https://developer.apple.com/documentation/webkit/webarchive/init%28mainresource%3Asubresources%3Asubframearchives%3A%29 Initializes a WebArchive instance with a main resource, subresources, and subframe archives. ```APIDOC ## init(mainResource:subresources:subframeArchives:) ### Description Initializes the receiver with a resource and optional subresources and subframe archives. This method is deprecated. ### Parameters - **mainResource** (WebResource!) - Required - The main resource for the archive. - **subresources** ([Any]!) - Required - An array of WebResource objects or nil. - **subframeArchives** ([Any]!) - Required - An array of WebArchive objects used by subframes or nil. ### Request Example init!(mainResource: myResource, subresources: [res1, res2], subframeArchives: [subArchive1]) ### Response - **Returns** (WebArchive!) - The initialized WebArchive object. ``` -------------------------------- ### PerformanceTiming.fetchStart Source: https://developer.apple.com/documentation/webkitjs/performancetiming/1634386-fetchstart The fetchStart property returns the time immediately before the browser starts to fetch the resource. ```APIDOC ## fetchStart ### Description The fetchStart property returns the time immediately before the browser starts to fetch the resource. ### Property Definition `readonly attribute unsigned long long fetchStart;` ### Compatibility - Safari Desktop 9.0+ - Safari Mobile 9.0+ ``` -------------------------------- ### Accessing the start property Source: https://developer.apple.com/documentation/webkit/domhtmlolistelement/start Retrieves or sets the starting index of an ordered list. This property is deprecated as of macOS 10.14. ```swift var start: Int32 { get set } ``` -------------------------------- ### init(rawValue:) Source: https://developer.apple.com/documentation/webkit/wkwebextension/permission/init%28rawvalue%3A%29 Initializes a WKWebExtension.Permission instance with a raw string value. ```APIDOC ## init(rawValue:) ### Description Initializes a new instance of WKWebExtension.Permission using the provided raw string value. ### Parameters #### Request Body - **rawValue** (String) - Required - The raw string value used to initialize the permission. ``` -------------------------------- ### Get and Set preferencesIdentifier Source: https://developer.apple.com/documentation/webkit/webview-swift.class/preferencesidentifier This property was used to get and set the identifier for a WebView's preferences. It is deprecated and should not be used. ```swift var preferencesIdentifier: String! { get set } ``` -------------------------------- ### Initialize WebPage.Configuration Source: https://developer.apple.com/documentation/webkit/webpage/configuration/init%28%29 Creates a new configuration value for a WebPage. This initializer must be called on the MainActor. ```swift @MainActor init() ``` -------------------------------- ### Get secureConnectionStart Time Source: https://developer.apple.com/documentation/webkitjs/performancetiming/1629608-secureconnectionstart Access the secureConnectionStart property to get the timestamp when the secure connection was established. This property is read-only. ```javascript readonly attribute unsigned long long secureConnectionStart; ``` -------------------------------- ### Implement webView(_:navigationAction:didBecome:) Source: https://developer.apple.com/documentation/webkit/wknavigationdelegate/webview%28_%3Anavigationaction%3Adidbecome%3A%29 Use this method to initiate tracking for a download triggered by a navigation action. ```swift optional func webView( _ webView: WKWebView, navigationAction: WKNavigationAction, didBecome download: WKDownload ) ``` -------------------------------- ### Get and Set defaultValue Source: https://developer.apple.com/documentation/webkit/domhtmlinputelement/defaultvalue This property was used to get and set the default value of an HTML input element. It is now deprecated. ```swift var defaultValue: String! { get set } ``` -------------------------------- ### Get and Set alinkColor Property Source: https://developer.apple.com/documentation/webkit/domhtmldocument/alinkcolor This property is deprecated and should not be used. It was used to get and set the color of active links. ```swift var alinkColor: String! { get set } ``` -------------------------------- ### WKWebExtensionController load(_:) Method Source: https://developer.apple.com/documentation/webkit/wkwebextensioncontroller/load%28_%3A%29 Loads the specified extension context. This method causes the context to start, loading any background content, and injecting any content into relevant tabs. ```APIDOC ## Instance Method # load(_:) Loads the specified extension context. **Availability:** iOS 18.4+, iPadOS 18.4+, Mac Catalyst 18.4+, macOS 15.4+, visionOS 2.4+ ```swift func load(_ extensionContext: WKWebExtensionContext) throws ``` ### Description Causes the context to start, loading any background content, and injecting any content into relevant tabs. ### Parameters #### Path Parameters * None #### Query Parameters * None #### Request Body * **extensionContext** (WKWebExtensionContext) - Required - The extension context to load. ### Request Example ```json { "extensionContext": { "bundleIdentifier": "com.example.myextension", "startPage": "/index.html" } } ``` ### Response #### Success Response (200) * None explicitly defined, but the method returns `Void` upon successful loading. #### Response Example * None ### See Also * `func load(WKWebExtensionContext) throws` ``` -------------------------------- ### Get and Set autofocus Property Source: https://developer.apple.com/documentation/webkit/domhtmlbuttonelement/autofocus This property is deprecated. Use it to get or set the autofocus state of a button element. ```swift var autofocus: Bool { get set } ``` -------------------------------- ### Initializer Signature Source: https://developer.apple.com/documentation/webkit/wkwebextensioncontext/init%28forextension%3A%29-5v7j1 The signature for the init(forExtension:) initializer. ```swift init(forExtension extension: WKWebExtension) ``` -------------------------------- ### Instance Method load(_:) Source: https://developer.apple.com/documentation/webkit/webframe/load%28_%3A%29-47p2s Connects to a given URL by initiating an asynchronous client request. ```APIDOC ## load(_:) ### Description Connects to a given URL by initiating an asynchronous client request. Creates a provisional data source that will transition to a committed data source once any data has been received. ### Method Instance Method ### Parameters #### Path Parameters - **request** (URLRequest!) - Required - A client request. ### Discussion Use the `dataSource` method to check if a committed data source is available, and the `stopLoading()` method to stop the load. This method is typically invoked on the main frame. ``` -------------------------------- ### Get and Set height Property Source: https://developer.apple.com/documentation/webkit/domhtmlappletelement/height This property is deprecated and should not be used. It was used to get and set the height of an applet element. ```swift var height: String! { get set } ``` -------------------------------- ### resume() Method Source: https://developer.apple.com/documentation/webkitjs/audiocontext/1633601-resume Documentation for the AudioContext.resume() instance method. ```APIDOC ## POST /AudioContext/resume ### Description Resumes the progression of time in an audio context that has been suspended. ### Method POST ### Endpoint AudioContext.resume() ### Response #### Success Response (200) - **Promise** - Returns a promise that resolves when the context has resumed. ``` -------------------------------- ### Set range start after node in Swift Source: https://developer.apple.com/documentation/webkit/domrange/setstartafter%28_%3A%29 Sets the start position of the range to be immediately after the specified node. This method is deprecated. ```swift func setStartAfter(_ refNode: DOMNode!) ``` -------------------------------- ### Get and Set pageZoom Source: https://developer.apple.com/documentation/webkit/wkwebview/pagezoom Use this property to get or set the scale factor for web content. The default value is 1.0. ```swift var pageZoom: CGFloat { get set } ``` -------------------------------- ### SourceBuffer.appendWindowStart Source: https://developer.apple.com/documentation/webkitjs/sourcebuffer/1630201-appendwindowstart The appendWindowStart attribute represents the start of the current valid time range for appending media data. It is a double-precision floating-point number. ```APIDOC ## SourceBuffer.appendWindowStart ### Description Represents the start of the current valid time range for appending media data. ### Method Attribute (Read/Write) ### Endpoint N/A (Instance Property) ### Parameters None ### Request Example ```javascript let sourceBuffer = mediaSource.addSourceBuffer('video/mp4'); console.log(sourceBuffer.appendWindowStart); // Setting the append window start sourceBuffer.appendWindowStart = 10.5; console.log(sourceBuffer.appendWindowStart); ``` ### Response #### Success Response (200) - **appendWindowStart** (double) - The start time of the append window. #### Response Example ```json 10.5 ``` ### Browser Support Safari Desktop 9.0+ ``` -------------------------------- ### WKDownload.PlaceholderPolicy.enable Source: https://developer.apple.com/documentation/webkit/wkdownload/placeholderpolicy/enable Documentation for the enable case of the PlaceholderPolicy enumeration. ```APIDOC ## WKDownload.PlaceholderPolicy.enable ### Description Represents the enable case for the placeholder policy in WKDownload. ### Availability - iOS 18.2+ - iPadOS 18.2+ - Mac Catalyst 18.2+ - macOS - visionOS 2.2+ ### Definition ```swift case enable ``` ``` -------------------------------- ### Get redirectStart value Source: https://developer.apple.com/documentation/webkitjs/performancetiming/1632214-redirectstart Access the redirectStart property to get the time when the last navigation that was redirected finished. This value is a DOMTimeStamp. ```javascript readonly attribute unsigned long long redirectStart; ``` -------------------------------- ### init(string:) Source: https://developer.apple.com/documentation/webkit/wkwebextension/matchpattern/init%28string%3A%29 Initializes a new match pattern object from a provided string. ```APIDOC ## init(string:) ### Description Returns a pattern object for the specified pattern string. ### Parameters #### Path Parameters - **string** (String) - Required - The pattern string used to create the match pattern object. ### Response - **Return Value** (WKWebExtension.MatchPattern) - A pattern object, or nil if the pattern string is invalid. ``` -------------------------------- ### get() Instance Method Signature Source: https://developer.apple.com/documentation/webkitjs/customelementregistry/2871402-get This is the signature for the get() instance method. It takes a DOMString name as an argument and returns any type. ```javascript any get( DOMString name ); ``` -------------------------------- ### WKWebExtension Initializer Source: https://developer.apple.com/documentation/webkit/wkwebextension/init%28resourcebaseurl%3A%29 Initializes a web extension with a specified resource base URL. ```APIDOC ## init(resourceBaseURL:) ### Description Creates a web extension initialized with a specified resource base URL, which can point to either a directory or a ZIP archive. ### Method `convenience init` ### Endpoint N/A (Initializer) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A (Initializer) #### Response Example N/A ### Parameters `resourceBaseURL` (URL) - Required - The file URL to use for the new web extension. ### Discussion The URL must be a file URL that points to either a directory with a `manifest.json` file or a ZIP archive containing a `manifest.json` file. If the manifest is invalid or missing, or the URL points to an unsupported format or invalid archive, an error will be returned. ``` -------------------------------- ### Get and Set cellPadding Property Source: https://developer.apple.com/documentation/webkit/domhtmltableelement/cellpadding This property is deprecated and should not be used. It was used to get and set the cell padding of an HTML table. ```swift var cellPadding: String! { get set } ``` -------------------------------- ### Get and Set codeType Property Source: https://developer.apple.com/documentation/webkit/domhtmlobjectelement/codetype This property is deprecated and should not be used. It was used to get and set the code type of an object element. ```swift var codeType: String! { get set } ``` -------------------------------- ### webView(_:didStartProvisionalNavigation:) Source: https://developer.apple.com/documentation/webkit/wknavigationdelegate/webview%28_%3Adidstartprovisionalnavigation%3A%29 Tells the delegate that navigation from the main frame has started. ```APIDOC ## webView(_:didStartProvisionalNavigation:) ### Description Tells the delegate that navigation from the main frame has started. The web view calls this method after it receives provisional approval to process a navigation request, but before it receives a response to that request. ### Method Instance Method ### Parameters - **webView** (WKWebView) - The web view that is loading the content. - **navigation** (WKNavigation!) - The navigation object associated with the load request. ### Request Example ```swift optional func webView( _ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation! ) ``` ``` -------------------------------- ### Initialize a Web Extension Context Source: https://developer.apple.com/documentation/webkit/wkwebextensioncontext/init%28for%3A%29 Use this designated initializer to create a new context associated with the specified web extension. ```swift init(for extension: WKWebExtension) ``` -------------------------------- ### Get noShade Property Source: https://developer.apple.com/documentation/webkit/domhtmlhrelement/noshade This code shows how to get the value of the noShade property. This property is deprecated and may not function as expected. ```javascript var noShade: Bool { get set } ``` -------------------------------- ### Get and Set vspace Property Source: https://developer.apple.com/documentation/webkit/domhtmlappletelement/vspace This property is deprecated and should not be used. It was used to get and set the vertical spacing around an applet. ```swift var vspace: Int32 { get set } ``` -------------------------------- ### WKWebExtensionController init(configuration:) Source: https://developer.apple.com/documentation/webkit/wkwebextensioncontroller/init%28%29 Initializes a web extension controller with a specified configuration. Available on iOS 18.4+, iPadOS 18.4+, Mac Catalyst 18.4+, macOS 15.4+, and visionOS 2.4+. ```APIDOC ## init(configuration: WKWebExtensionController.Configuration) ### Description Returns a web extension controller initialized with the specified configuration. ### Method `init(configuration:)` ### Endpoint N/A (Initializer) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```swift let configuration = WKWebExtensionController.Configuration() // Configure the configuration object as needed let controller = WKWebExtensionController.init(configuration: configuration) ``` ### Response #### Success Response (200) An initialized web extension controller. #### Response Example ```swift // No direct response body for initializers, the controller instance is returned. ``` ### Discussion Use this initializer to provide custom settings for the web extension controller during its creation. ``` -------------------------------- ### Get DOMHTMLAnchorElement type Source: https://developer.apple.com/documentation/webkit/domhtmlanchorelement/type This property is deprecated and not available in macOS 10.15 and later. Use this to get the type of the anchor element. ```swift var type: String! { get set } ``` -------------------------------- ### PerformanceResourceTiming.fetchStart Source: https://developer.apple.com/documentation/webkitjs/performanceresourcetiming/1629264-fetchstart The fetchStart property represents the time immediately before the browser starts to fetch the resource. ```APIDOC ## PerformanceResourceTiming.fetchStart ### Description The fetchStart property returns a double representing the time immediately before the browser starts to fetch the resource. ### Property Definition `readonly attribute unrestricted double fetchStart;` ### Browser Compatibility - Safari Desktop: 10.0+ - Safari Mobile: 10.0+ ```