Chữ ký phương thức CoDoingClient.broadcastStateUpdate
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Truyền trạng thái đến tất cả người tham gia hiện tại khác và là trạng thái mặc định cho mọi người tham gia cho đến khi một số trạng thái khác được truyền.
Lưu ý: Trạng thái dùng chung này cuối cùng sẽ nhất quán giữa các người tham gia.
Đối với hành vi có thể dự đoán, trạng thái tệp nhị phân này phải hoàn chỉnh, chứ không phải một phần, vì SDK tiện ích bổ sung Meet không đảm bảo việc phân phối từng thông báo, mà chỉ đảm bảo tính nhất quán cuối cùng.
Lưu ý: Trong trường hợp có hai người tham gia gọi phương thức này cùng một lúc, SDK tiện ích bổ sung Meet sẽ chọn một bản cập nhật chính thống chiến thắng. Bản cập nhật thua cuộc có thể được áp dụng hoặc không được áp dụng cho người tham gia, nhưng bản cập nhật chiến thắng luôn được áp dụng sau đó.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["# Method signature CoDoingClient.broadcastStateUpdate\n\n| **Early Access Program:** This feature was only available in limited preview, through an Early Access Program. This program is now closed to new signups.\n\nBroadcasts state to all other current participants, and is the default state for\nany participant until some other state is broadcast.\n\n**Note:** This shared state is eventually consistent across participants.\nFor predictable behavior, this binary state should be complete, not partial, as\nthe Meet add-ons SDK doesn't provide guarantees around the delivery of\nindividual messages -- only eventual consistency.\n\n**Note:** In a race condition where two participants call this method\nsimultaneously, the Meet add-ons SDK selects a canonical winning update. The\nlosing update might or might not be applied to participants, but the winning\nupdate is always applied later.\n\nSignature\n---------\n\n broadcastStateUpdate(newState: CoDoingState): void;\n\nDetails\n-------\n\n| Optional | No |\n|----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|------------|----------------------------------------------------|----------|-------------|\n| `newState` | [CoDoingState](./live_sharing_sdk.codoingstate.md) | No | |\n\nReturns\n-------\n\n`void`"]]