Places Rx 程式庫
可讓您在 Maps SDK for Android 上接收非同步事件的可觀察序列
和 Places SDK for Android 這兩個版本,方便您使用豐富的 RxJava 功能。
安裝
如要在 Google 地圖專案中安裝 Places Rx 程式庫,請按照下列步驟操作:
將以下依附元件加進模組層級 build.gradle 檔案:
dependencies {// RxJava bindings for the Maps SDKimplementation("com.google.maps.android:maps-rx:1.0.0")// RxJava bindings for the Places SDKimplementation("com.google.maps.android:places-rx:1.0.0")// It is recommended to also include the latest Maps SDK, Places SDK and RxJava so you// have the latest features and bug fixes.implementation("com.google.android.gms:play-services-maps:19.0.0")implementation("com.google.android.libraries.places:places:3.5.0")implementation("io.reactivex.rxjava3:rxjava:3.1.8")