تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
Places Android KTX هي مجموعة من إضافات Kotlin لحزمة تطوير البرامج (SDK) الخاصة بخدمة Places API لنظام التشغيل Android. توفّر هذه الإضافات ميزات لغة Kotlin تتيح لك كتابة رمز Kotlin موجز ومناسب عند تطوير تطبيقات تستخدم حزمة تطوير البرامج Places SDK لنظام التشغيل Android.
Places KTX هي مكتبة مفتوحة المصدر ومتاحة على GitHub مع أمثلة.
تثبيت KTX لحزمة تطوير البرامج Places SDK
لتثبيت KTX لحزمة Places SDK لنظام التشغيل Android، أضِف التبعيات التالية إلى ملف build.gradle.kts على مستوى التطبيق.
dependencies{// KTX for the Places SDK for Android libraryimplementation("com.google.maps.android:places-ktx:3.3.1")}
تجربة التطبيق النموذجي
يحتوي مستودع GitHub الخاص بهذه المكتبة أيضًا على تطبيق
تجريبي
يوضّح كيفية استخدام مكتبة Places KTX في تطبيقك.
تاريخ التعديل الأخير: 2025-07-24 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-24 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]