> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# sendGlobalEvent

APISummary
Send global events to the front end through the client, and the front end can listen to the event through `GlobalEventEmitter`.

## Syntax

### Harmony

```typescript
sendGlobalEvent(name: string, params: Object[]): void;
```

#### Parameters

- `name`: Global event name.
- `params`: Parameters carried by global events.

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.lynx-context.send-global-event`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/lynx-context/send-global-event.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| send-global-event | Yes (1.0) | Yes (3.4) | Yes (1.0) | No | No | Yes |

**`send-global-event`**

send global event to js environment

**Specifications:**

