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.
Tham chiếu giao thức <GNSPublication>
Tổng quan
Đối tượng ấn bản biểu thị một thông báo được đăng lên các thiết bị ở gần.
Trong thời gian tồn tại, thư viện thông báo sẽ cố gắng hết sức để đảm bảo thông báo được xuất bản, miễn là đáp ứng các điều kiện bắt buộc (ví dụ: ứng dụng phải chạy ở nền trước). Khi đối tượng ấn bản được giải phóng, thông báo sẽ không được xuất bản nữa.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-13 UTC."],[],["A publication object signifies a message broadcast to nearby devices. The message library ensures the message's publication while the object exists, provided necessary conditions are satisfied, such as the app being in the foreground. Upon deallocation of the publication object, the message is no longer published. This object is derived from the base class `\u003cNSObject\u003e`. It represents the lifecycle of message delivery.\n"]]