/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.poidetails/PoiDetailsViewModel

PoiDetailsViewModel

\ class PoiDetailsViewModel@Injectconstructor(locationInfoService: LocationInfoService, placeSearchRepository: PlaceSearchRepository) : RxViewModel

Constructors

PoiDetailsViewModel @Inject
constructor(locationInfoService: LocationInfoService, placeSearchRepository: PlaceSearchRepository)

Properties

Name Summary
address val address: ObservableField<String>
favoriteText val favoriteText: ObservableField<String>
favoriteVisible val favoriteVisible: LiveData<Boolean>
goButtonText val goButtonText: ObservableField<String>
location val location: ObservableField<Location>
locationTitle val locationTitle: ObservableField<String>
openAppButtonText val openAppButtonText: ObservableField<String>
showAddress val showAddress: ObservableBoolean
showCloseButton val showCloseButton: ObservableBoolean
showWebsite val showWebsite: ObservableBoolean
showWhat3words var showWhat3words: ObservableBoolean
type val type: ObservableField<Int>
website val website: ObservableField<String>
what3words var what3words: ObservableField<String>
withExternalApp val withExternalApp: ObservableBoolean

Functions

Name Summary
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.
refresh fun refresh(context: Context)
setFavorite fun setFavorite(context: Context, favorite: Boolean)
start fun start(context: Context, location: Location, isRouting: Boolean = false, isDeparture: Boolean = false)