<GNSSubscription> โปรโตคอล
ออบเจ็กต์การสมัครใช้บริการแสดงถึงการสมัครใช้บริการข้อความประเภทหนึ่งจากอุปกรณ์ใกล้เคียง
ตราบใดที่ยังมีการสมัครใช้บริการอยู่ คลังข้อความจะพยายามอย่างสุดความสามารถเพื่อส่งข้อความที่ตรงกับประเภทการสมัครใช้บริการ ตราบใดที่เป็นไปตามเงื่อนไขที่กำหนด (เช่น แอปต้องอยู่เบื้องหน้า) ระบบจะเรียกใช้เครื่องจัดการข้อความเมื่อค้นพบข้อความหรือสูญหาย เมื่อออบเจ็กต์การสมัครใช้บริการได้รับการจัดการแล้ว การนำส่งข้อความจะหยุดลง
รับค่า <NSObject>
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-02 UTC
[null,null,["อัปเดตล่าสุด 2023-12-02 UTC"],[[["The GNSSubscription protocol enables subscribing to specific message types from nearby devices."],["Active subscriptions trigger message delivery to the app, primarily when it's in the foreground, based on defined criteria."],["Message handlers manage the discovery and loss of messages, ensuring appropriate actions are taken."],["Deallocation of the subscription object halts further message delivery to the application."]]],["A subscription object enables receiving specific message types from nearby devices. The messages library actively delivers matching messages while the subscription is active, under certain conditions (e.g., app foreground). Message handlers are triggered upon message discovery or loss. Deallocating the subscription object stops message delivery. It inherits from `NSObject`.\n"]]