Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Referensi Protokol <GNSSubscription>
Ringkasan
Objek langganan mewakili tindakan berlangganan pesan jenis tertentu dari perangkat di sekitar.
Selama aktif, library pesan akan melakukan yang terbaik untuk mengirimkan pesan yang cocok dengan jenis langganan, selama kondisi yang diperlukan terpenuhi (misalnya, aplikasi harus berada di latar depan). Pengendali pesan dipanggil saat pesan ditemukan atau hilang. Jika objek langganan dibatalkan alokasinya, pengiriman pesan akan berhenti.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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"]]