Places Android KTX는 Android용 Places SDK를 위한 Kotlin 확장 프로그램 모음입니다. 이 확장 프로그램에서는 Android용 Places SDK 기반으로 개발할 때 간결하고 자연스러운 Kotlin을 작성할 수 있도록 하는 Kotlin 언어 기능을 제공합니다.
장소 KTX는 오픈소스로 제공되며 GitHub에서 예시와 함께 제공됩니다.
Places SDK용 KTX 설치
Android용 Places SDK를 위한 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 라이브러리를 사용할 수 있는 방법을 보여주는 데모 애플리케이션도 포함되어 있습니다.
[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"]]