Descripción general y configuración de Places para Android KTX
Places Android KTX es una colección de extensiones de Kotlin para el SDK de Places para Android. Estas extensiones proporcionan funciones de lenguaje Kotlin que te permiten escribir Kotlin idiomático y conciso cuando desarrollas utilizando el SDK de Places para Android.
Places KTX es de código abierto y está disponible en GitHub junto con ejemplos.
Instala KTX para el SDK de Places
Para instalar KTX para el SDK de Places para Android, agrega las siguientes dependencias a tu archivo build.gradle.kts a nivel de la app.
dependencies{// KTX for the Places SDK for Android libraryimplementation("com.google.maps.android:places-ktx:3.3.1")}
Prueba la app de muestra
El repositorio de GitHub para esta biblioteca también contiene una app de demo que muestra cómo puedes utilizar la biblioteca de Places KTX en tu propia app.
[null,null,["Última actualización: 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"]]