Method signature MeetAddonClient.on
Stay organized with collections
Save and categorize content based on your preferences.
Provides access to the
AddonCallbacks
that the add-on can utilize.
Signature
on<T extends keyof AddonCallbacks>(
eventId: T,
eventHandler: AddonCallbacks[T],
): void;
Type parameters
Details
Parameters
Name |
Type |
Optional |
Description |
eventId |
T |
No |
|
eventHandler |
AddonCallbacks[T] |
No |
|
Returns
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-27 UTC.
[null,null,["Last updated 2025-03-27 UTC."],[],[],null,["# Method signature MeetAddonClient.on\n\nProvides access to the\n[`AddonCallbacks`](/workspace/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks)\nthat the add-on can utilize.\n\nSignature\n---------\n\n on\u003cT extends keyof AddonCallbacks\u003e(\n eventId: T,\n eventHandler: AddonCallbacks[T],\n ): void;\n\nType parameters\n---------------\n\n| Name | Optional | Constraint | Default |\n|------|----------|---------------------------------------------------------|---------|\n| `T` | No | `keyof `[AddonCallbacks](./addon_sdk.addoncallbacks.md) | |\n\nDetails\n-------\n\n| Optional | No |\n|----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|----------------|------------------------------------------------------|----------|-------------|\n| `eventId` | `T` | No | |\n| `eventHandler` | [AddonCallbacks](./addon_sdk.addoncallbacks.md)`[T]` | No | |\n\nReturns\n-------\n\n`void`"]]