Skip to content

OrionTopSitesAPI

Corban Amouzou edited this page Jan 12, 2022 · 2 revisions

OrionTopSitesAPI

The API class of the mozilla topSites api

class OrionTopSitesAPI: NSObject, OrionBaseAPI 

Inheritance

NSObject, OrionBaseAPI

Properties

apiFunctionNames

let apiFunctionNames: [String] = [
        "topSites.get",
        "topSites.MostVisitedURL"
    ]

supportingJSFileName

let supportingJSFileName: String = "browserObject"

Methods

userContentController(_:didReceive:)

The handler for a message call that corresponded to one of the apiFunctionNames specified on the class

func userContentController(
        _ userContentController: WKUserContentController,
        didReceive message: WKScriptMessage
    ) 
Clone this wiki locally