MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / on

Method on

harmony/pushy/src/main/ets/EventHub.ts:19–24  ·  view source on GitHub ↗
(event: string, callback: EventCallback)

Source from the content-addressed store, hash-verified

17 }
18
19 public on(event: string, callback: EventCallback): void {
20 if (!this.listeners.has(event)) {
21 this.listeners.set(event, new Set());
22 }
23 this.listeners.get(event)?.add(callback);
24 }
25
26 public off(event: string, callback: EventCallback): void {
27 this.listeners.get(event)?.delete(callback);

Callers 5

hermesc-wrapper.jsFile · 0.80
downloadFileMethod · 0.80
pollFunction · 0.80
pollFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected