dispatchMessageToScript(withName:userInfo:)
Dispatches a message from the app extension to the content script injected in this page.
Declaration
func dispatchMessageToScript(withName messageName: String, userInfo: [String : Any]? = nil)Parameters
- messageName:
A string that identifies the message.
- userInfo:
An optional dictionary containing additional message content. If a dictionary is provided, values must conform to the W3C standard for safe passing of structured data, such as Boolean objects, numeric values, strings, and arrays.