Places Android KTX, Android के लिए Places SDK टूल के लिए Kotlin एक्सटेंशन का कलेक्शन है. ये एक्सटेंशन, Kotlin लैंग्वेज की सुविधाएं देते हैं. इनकी मदद से, Places SDK for Android के लिए ऐप्लिकेशन डेवलप करते समय, कम शब्दों में और आसानी से Kotlin कोड लिखा जा सकता है.
Places KTX, ओपन सोर्स है और उदाहरणों के साथ-साथ, GitHub पर उपलब्ध है.
Places SDK के लिए KTX इंस्टॉल करना
Places SDK for Android के लिए KTX इंस्टॉल करने के लिए, अपनी ऐप्लिकेशन-लेवल build.gradle.kts फ़ाइल में ये डिपेंडेंसी जोड़ें.
dependencies{// KTX for the Places SDK for Android libraryimplementation("com.google.maps.android:places-ktx:3.3.1")}
सैंपल ऐप्लिकेशन आज़माएं
इस लाइब्रेरी के GitHub रिपॉज़िटरी में एक डेमो ऐप्लिकेशन भी शामिल है. इससे पता चलता है कि अपने ऐप्लिकेशन में Places KTX लाइब्रेरी का इस्तेमाल कैसे किया जा सकता है.
डेमो ऐप्लिकेशन आज़माने के लिए, यह तरीका अपनाएं:
GitHub से, ZIP फ़ाइल को क्लोन करें या डाउनलोड करें.
Android Studio में, फ़ाइल -> खोलें को चुनें. इसके बाद, डायरेक्ट्री पर जाएं और वह फ़ोल्डर खोलें जिसे आपने अभी क्लोन किया है या डाउनलोड किया है.
[null,null,["आखिरी बार 2025-02-25 (UTC) को अपडेट किया गया."],[[["Places Android KTX offers Kotlin extensions for streamlined Places SDK interaction using idiomatic Kotlin."],["Native Kotlin APIs within the Places SDK for Android (version 4.0.0 and later) can be used as an alternative to Places Android KTX extensions."],["Developers can easily integrate Places KTX by adding the specified dependency to their app's `build.gradle.kts` file."],["A demo application within the GitHub repository provides practical examples of utilizing the Places KTX library."]]],["Places KTX provides Kotlin extensions for the Places SDK for Android, enabling concise Kotlin development. Install it by adding the `com.google.maps.android:places-ktx:3.3.1` dependency to your app's `build.gradle.kts` file. A demo app is available on GitHub; to run it, clone the repository, obtain a Places API key, and store it in a `secrets.properties` file in the root directory. Select and Run the **app-places-ktx** module in Android Studio. The Places SDK also offers native Kotlin APIs as of version 4.0.0.\n"]]