sendGlobalEvent

Send global events to the front end through the client, and the front end can listen to the event through GlobalEventEmitter;

Syntax

Android

public void sendGlobalEvent(String name, JavaOnlyArray params);

Parameters

  • name: String: Global event name;
  • params: : Parameters carried by global events;

iOS

- (void)sendGlobalEvent:(nonnull NSString*)name withParams:(nullable NSArray*)params;

Parameters

  • name: NSString*: global event name;
  • params: NSArray*: Parameters carried by global events;

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.