Instance Method

messageReceivedFromContainingApp(withName:userInfo:)

Called when a message is received from the extension's containing app.

Declaration

optional func messageReceivedFromContainingApp(withName messageName: String, userInfo: [String : Any]? = nil)

Parameters

messageName

A string that identifies the message.

userInfo

Optional message content.

See Also

Receiving Messages in Your App Extension

func messageReceived(withName: String, from: SFSafariPage, userInfo: [String : Any]?)

Called when a message is received from an injected script.