Interfejs MeetAddonClient
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Obiekt klienta, którego dodatek używa do komunikacji z Meet w przeglądarce.
Podpis
interface MeetAddonClient
Sygnatury metod
Nazwa |
Opis |
closeAddon() |
Zamknij dodatek działający w iframe w Meet, wyładowując wszystkie iframe i zamykając panel boczny, jeśli jest otwarty. Wywołanie tej funkcji w czasie trwającej aktywności nie przynosi żadnego efektu. |
endActivity() |
Kończenie trwającej aktywności. Nie uda się, jeśli: – nie ma trwającej aktywności; – Użytkownik nie jest inicjatorem działania. |
getActivityStartingState() |
Pobiera informacje o początkowym stanie dodatku, gdy uczestnik zaakceptuje zaproszenie do aktywności. |
getFrameOpenReason() |
Pobiera działanie powodujące otwarcie ramki dodatku. |
getMeetingInfo() |
Pobiera informacje o spotkaniu, na którym działa dodatek. |
on(eventId, eventHandler) |
Zapewnia dostęp do obszaru AddonCallbacks , z którego może korzystać dodatek. |
setActivityStartingState(activityStartingState) |
Ustawia lub aktualizuje informacje o początkowym stanie dodatku, który jest używany, gdy uczestnik zaakceptuje zaproszenie do aktywności. |
startActivity(activityStartingState) |
Rozpoczyna aktywność z podanym stanem początkowym klatek, których inicjator i uczestnicy mogą używać podczas aktywności. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["# Interface MeetAddonClient\n\nThe client object that an add-on uses to communicate with Meet web.\n\nSignature\n---------\n\n interface MeetAddonClient\n\nMethod signatures\n-----------------\n\n| Name | Description |\n|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`closeAddon()`](./addon_sdk.meetaddonclient.closeaddon.md) | Close the add-on that's running in the Meet iframe by unloading all iframes and closing the side panel if it's open. Calling this while there's an ongoing activity has no effect. |\n| [`endActivity()`](./addon_sdk.meetaddonclient.endactivity.md) | Ends an ongoing activity. Will fail if: - There is not an ongoing activity. - The user is not the initiator of the activity. |\n| [`getActivityStartingState()`](./addon_sdk.meetaddonclient.getactivitystartingstate.md) | Retrieves information about the initial state of the add-on when the participant accepts the invitation to activity. |\n| [`getFrameOpenReason()`](./addon_sdk.meetaddonclient.getframeopenreason.md) | Retrieves the action causing the add-on frame to be opened. |\n| [`getMeetingInfo()`](./addon_sdk.meetaddonclient.getmeetinginfo.md) | Retrieves information about the meeting in which the add-on is running. |\n| [`on(eventId, eventHandler)`](./addon_sdk.meetaddonclient.on.md) | Provides access to the [`AddonCallbacks`](/workspace/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks) that the add-on can utilize. |\n| [`setActivityStartingState(activityStartingState)`](./addon_sdk.meetaddonclient.setactivitystartingstate.md) | Sets or updates information about the initial state of the add-on that's used when the participant accepts the invitation to join the activity. |\n| [`startActivity(activityStartingState)`](./addon_sdk.meetaddonclient.startactivity.md) | Starts an activity with the provided starting state of frames that the initiator and participants can use during the activity. |"]]