संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Localbroadcastmanager
इस आर्टफ़ैक्ट और इसकी क्लास का इस्तेमाल नहीं किया जा सकता. इसके बजाय, LiveData या रिऐक्टिव स्ट्रीम का इस्तेमाल करें.
नया अपडेट |
रिलीज़ किया गया जांचा और परखा हुआ वर्शन |
रिलीज़ कैंडिडेट |
बीटा रिलीज़ |
ऐल्फ़ा रिलीज़ |
12 जनवरी, 2022 |
1.1.0 |
- |
- |
- |
सुझाव
आपके सुझाव, शिकायत या राय से हमें Jetpack को बेहतर बनाने में मदद मिलती है. अगर आपको कोई नई समस्या मिलती है या इस लाइब्रेरी को बेहतर बनाने के लिए आपके पास कोई सुझाव है, तो हमें बताएं. नई लाइब्रेरी बनाने से पहले, कृपया इस लाइब्रेरी में मौजूद मौजूदा समस्याओं पर एक नज़र डालें. किसी मौजूदा समस्या पर अपना वोट जोड़ने के लिए, स्टार बटन पर क्लिक करें.
नई समस्या बनाना
ज़्यादा जानकारी के लिए, समस्या ट्रैकर का दस्तावेज़ देखें.
वर्शन 1.1.0
वर्शन 1.1.0
12 जनवरी, 2022
androidx.localbroadcastmanager:localbroadcastmanager:1.1.0
रिलीज़ हो गया है. 1.1.0 वर्शन में ये बदलाव शामिल हैं.
1.0.0 के बाद किए गए अहम बदलाव
androidx.localbroadcastmanager
का अब इस्तेमाल नहीं किया जा सकता. इस लाइब्रेरी की कोई और रिलीज़ नहीं होगी. डेवलपर को LocalBroadcastManager
के इस्तेमाल को, ऑब्ज़र्वेबल पैटर्न के दूसरे तरीकों से बदलना चाहिए. इस्तेमाल के उदाहरण के आधार पर, LiveData
या रिऐक्टिव स्ट्रीम सही विकल्प हो सकते हैं.
वर्शन 1.1.0-rc01
15 दिसंबर, 2021
androidx.localbroadcastmanager:localbroadcastmanager:1.1.0-rc01
रिलीज़ हो गया है. 1.1.0-rc01 वर्शन में ये बदलाव शामिल हैं.
वर्शन 1.1.0-alpha01
17 दिसंबर, 2018
androidx.localbroadcastmanager
को 1.1.0-alpha01
वर्शन में बंद किया जा रहा है.
वजह
LocalBroadcastManager
, ऐप्लिकेशन के लिए एक इवेंट बस है. यह आपके ऐप्लिकेशन में लेयर के उल्लंघनों को स्वीकार करती है. कोई भी कॉम्पोनेंट, किसी भी दूसरे कॉम्पोनेंट के इवेंट को सुन सकता है.
- इसमें सिस्टम
BroadcastManager
के इस्तेमाल के उदाहरण से जुड़ी ग़ैर-ज़रूरी सीमाएं शामिल होती हैं. डेवलपर को Intent
का इस्तेमाल करना पड़ता है, भले ही ऑब्जेक्ट सिर्फ़ एक प्रोसेस में मौजूद हों और कभी भी उससे बाहर न निकलें. इसी वजह से, यह सुविधा के हिसाब से BroadcastManager
का पालन नहीं करता .
इन वजहों से, डेवलपर को परेशानी होती है.
डिवाइस बदलना
LocalBroadcastManager
के इस्तेमाल को, ऑब्ज़र्वेबल पैटर्न के दूसरे तरीके से बदला जा सकता है. आपके इस्तेमाल के उदाहरण के आधार पर, LiveData
या रिऐक्टिव स्ट्रीम सही विकल्प हो सकते हैं.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Localbroadcastmanager\n=====================\n\n[User Guide](/guide/components/broadcasts) [Code Sample](https://github.com/android/location-samples/blob/master/LocationUpdatesForegroundService/app/src/main/java/com/google/android/gms/location/sample/locationupdatesforegroundservice/MainActivity.java) \nAPI Reference \n[androidx.localbroadcastmanager.content](/reference/kotlin/androidx/localbroadcastmanager/content/package-summary) \nThis artifact and its classes are deprecated. Use LiveData or reactive streams instead. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|------------------|-----------------------------------------------------------------|-------------------|--------------|---------------|\n| January 12, 2022 | [1.1.0](/jetpack/androidx/releases/localbroadcastmanager#1.1.0) | - | - | - |\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:460939%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=460939&template=1422575)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 1.1.0\n-------------\n\n### Version 1.1.0\n\nJanuary 12, 2022\n\n`androidx.localbroadcastmanager:localbroadcastmanager:1.1.0` is released. [Version 1.1.0 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/abade69a222024e74015882531553477622890a5..d2d922e60b4cb018c91276a85fb27a05b8a2b0c9/localbroadcastmanager/localbroadcastmanager)\n\n**Important changes since 1.0.0**\n\n`androidx.localbroadcastmanager` has been fully deprecated. There will be no further releases of this library. Developers should replace usages of `LocalBroadcastManager` with other implementations of the observable pattern. Depending on the use case, suitable options may be `LiveData` or reactive streams.\n\n### Version 1.1.0-rc01\n\nDecember 15, 2021\n\n`androidx.localbroadcastmanager:localbroadcastmanager:1.1.0-rc01` is released. [Version 1.1.0-rc01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/86267e31251cdaf875674004b9937ff3da0c3f24..abade69a222024e74015882531553477622890a5/localbroadcastmanager/localbroadcastmanager)\n\n### Version 1.1.0-alpha01\n\nDecember 17, 2018\n\n`androidx.localbroadcastmanager` is being deprecated in version `1.1.0-alpha01`.\n\n**Reason**\n\n- `LocalBroadcastManager` is an application-wide event bus and embraces layer violations in your app; any component may listen to events from any other component.\n- It inherits unnecessary use-case limitations of system `BroadcastManager`; developers have to use `Intent` even though objects live in only one process and never leave it. For this same reason, it doesn't follow feature-wise `BroadcastManager` .\n\nThese add up to a confusing developer experience.\n\n**Replacement**\n\n- You can replace usage of `LocalBroadcastManager` with other implementations of the observable pattern. Depending on your use case, suitable options may be `LiveData` or reactive streams."]]