/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.map.servicestop/ServiceStopMapViewModel
ServiceStopMapViewModel
\ class ServiceStopMapViewModel@Injectconstructor(val context: Context, val fetchAndLoadServices: FetchAndLoadServices, val regionService: RegionService, val getStopDisplayText: GetStopDisplayText) : RxViewModel
Constructors
ServiceStopMapViewModel | @Inject constructor(context: Context, fetchAndLoadServices: FetchAndLoadServices, regionService: RegionService, getStopDisplayText: GetStopDisplayText) |
Properties
Name | Summary |
---|---|
context | val context: Context |
drawServiceLine | val drawServiceLine: Observable<List<PolylineOptions>> |
drawStops | val drawStops: Observable<Pair<List<Pair<MarkerOptions, String>>, Set<String>>> |
fetchAndLoadServices | val fetchAndLoadServices: FetchAndLoadServices |
getStopDisplayText | val getStopDisplayText: GetStopDisplayText |
realtimeVehicle | val realtimeVehicle: Observable<OptionalCompat<RealTimeVehicle>> |
realtimeViewModel | lateinit var realtimeViewModel: RealTimeChoreographerViewModel |
region | val region: Observable<Region> |
regionService | val regionService: RegionService |
service | val service: BehaviorRelay<TimetableEntry> |
serviceStopMarkerCreator | lateinit var serviceStopMarkerCreator: ServiceStopMarkerCreator |
stop | val stop: BehaviorRelay<ScheduledStop> |
viewPort | val viewPort: Observable<List<LatLng>> |
Functions
Name | Summary |
---|---|
autoClear | fun <T> Observable<T>.autoClear(): Observable<T> fun Disposable.autoClear() |
getStopForService | fun getStopForService(stop: ScheduledStop, service: TimetableEntry): ScheduledStop |
onCleared | open override fun onCleared() This method will be called when this ViewModel is no longer used and will be destroyed. |
stopRealtimeUpdates | fun stopRealtimeUpdates() |