Skip to content

emit(_:_:)

Sends an event to JS: the extension with the hook’s key gets { name, payload } in its onEvent. It is dropped while the hook is off.

func emit(_ name: String, _ payload: [String : Any])