/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.locationpointer/LocationPointerViewModel

LocationPointerViewModel

\ class LocationPointerViewModel@Injectconstructor(val context: Context, val locationHistoryRepository: LocationHistoryRepository) : RxViewModel

Constructors

LocationPointerViewModel @Inject
constructor(context: Context, locationHistoryRepository: LocationHistoryRepository)

Properties

Name Summary
canChoose val canChoose: LiveData<Boolean>
context val context: Context
currentAddress var currentAddress: String
currentLatLng var currentLatLng: LatLng
doneClicked val doneClicked: TapAction<LocationPointerViewModel>
geocoder var geocoder: AndroidGeocoder
geocodeResult var geocodeResult: PublishSubject<LatLng>
locationHistoryRepository val locationHistoryRepository: LocationHistoryRepository
locationText val locationText: LiveData<String>
mapIdleThrottle var mapIdleThrottle: PublishSubject<LatLng>
showInfo val showInfo: LiveData<Boolean>
showSpinner val showSpinner: LiveData<Boolean>

Functions

Name Summary
autoClear fun <T> Observable<T>.autoClear(): Observable<T>
fun Disposable.autoClear()
mapMoveStarted fun mapMoveStarted()
onCleared open override fun onCleared()
This method will be called when this ViewModel is no longer used and will be destroyed.
saveLocation fun saveLocation(location: Location)
setLocationText fun setLocationText(value: String)