<GNSPublication> प्रोटोकॉल
पब्लिकेशन ऑब्जेक्ट, आस-पास मौजूद डिवाइसों पर पब्लिश किया गया मैसेज दिखाता है.
जब तक ऐप्लिकेशन लाइव रहेगा, तब तक मैसेज की लाइब्रेरी यह पक्का करने की पूरी कोशिश करेगी कि मैसेज पब्लिश किया जा रहा है या नहीं.ऐसा तब तक होगा, जब तक ज़रूरी शर्तें पूरी हो जाती हैं. उदाहरण के लिए, ऐप्लिकेशन फ़ोरग्राउंड में होना चाहिए. पब्लिकेशन ऑब्जेक्ट की जानकारी हटाए जाने के बाद, मैसेज पब्लिश नहीं होगा.
<NSObject> को इनहेरिट करता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-12-02 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2023-12-02 (UTC) को अपडेट किया गया."],[[["GNSPublication objects represent messages that are broadcasted to nearby devices."],["Messages continue to be published while the publication object exists and conditions are met, like the app being in the foreground."],["Deallocation of the publication object stops further message broadcasting."],["GNSPublication inherits functionality from the NSObject class."]]],["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"]]