/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.trippreview.nearby/ModeLocationTripPreviewViewModel
ModeLocationTripPreviewViewModel
\ class ModeLocationTripPreviewViewModel@Injectconstructor(locationInfoService: LocationInfoService) : RxViewModel
Constructors
| ModeLocationTripPreviewViewModel | @Inject constructor(locationInfoService: LocationInfoService) |
Properties
| Name | Summary |
|---|---|
| address | var address: ObservableField<String> |
| infoGroupBinding | val infoGroupBinding: ItemBinding<InfoGroupViewModel> |
| infoGroups | val infoGroups: ObservableArrayList<InfoGroupViewModel> |
| showAddress | var showAddress: ObservableBoolean |
| showWebsite | var showWebsite: ObservableBoolean |
| showWhat3words | var showWhat3words: ObservableBoolean |
| website | var website: ObservableField<String> |
| what3words | var what3words: ObservableField<String> |
Functions
| Name | Summary |
|---|---|
| addCloseable | open fun addCloseable(@NonNullp0: Closeable) |
| autoClear | fun <T> Observable<T>.autoClear(): Observable<T> fun Disposable.autoClear() |
| onCleared | open override fun onCleared() This method will be called when this ViewModel is no longer used and will be destroyed. |
| set | fun set(segment: TripSegment) fun set(location: NearbyLocation) |