Instance Method

dispatchMessage

Dispatches a message to your app extension.

Declaration

void dispatchMessage(in DOMString messageName, in any userInfo);

Parameters

name

The message identifier.

userInfo

Optional message content.

Discussion

All messages are dispatched asynchronously.

See Also

Sending Messages

setContextMenuEventUserInfo

Sets the user info to the appropriate context information.