/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.tripresult

Package-level declarations

Types

Name Summary
ActionButtonClickListener interface ActionButtonClickListener
ActionButtonViewModel class ActionButtonViewModel(context: Context, button: ActionButton)
CustomUrlTileProvider class CustomUrlTileProvider(urls: List<String>) : TileProvider
GetAlternativeTripForAlternativeService open class GetAlternativeTripForAlternativeService@Injectconstructor(val context: Context, val tripGroupRepository: TripGroupRepository, val regionService: RegionService, val configRepository: ConfigRepository)
IsLocationPermissionGranted open class IsLocationPermissionGranted(val context: Context)
MapCameraUpdate sealed class MapCameraUpdate
A view model for GoogleMap to know when it should GoogleMap.moveCamera or GoogleMap.animateCamera
RoadTagChart data class RoadTagChart(val max: Int, val middle: Int, val items: List<RoadTagChartItem>)
RoadTagChartAdapter class RoadTagChartAdapter@Injectconstructor : RecyclerView.Adapter<RoadTagChartAdapter.Holder> , AutoUpdatableAdapter
RoadTagChartItem data class RoadTagChartItem(val label: String, var length: Int, val color: Int, val textColor: Int = Color.WHITE, var progress: Int = 0, var maxProgress: Int = 0, var index: Int = 0)
RoadTagChartItemAdapter class RoadTagChartItemAdapter@Injectconstructor : RecyclerView.Adapter<RoadTagChartItemAdapter.Holder> , AutoUpdatableAdapter
RoadTagLabelListAdapter class RoadTagLabelListAdapter@Injectconstructor : RecyclerView.Adapter<RoadTagLabelListAdapter.Holder> , AutoUpdatableAdapter
TripGroupsPagerAdapter class TripGroupsPagerAdapter(fragmentManager: FragmentManager, tripResultMapContributor: TripResultMapContributor) : FragmentStatePagerAdapter
TripPreviewStepCustomRecyclerViewAdapter class TripPreviewStepCustomRecyclerViewAdapter<T> : BindingRecyclerViewAdapter<T>
TripResultMapContributor class TripResultMapContributor : TripKitMapContributor
TripResultPagerFragment class TripResultPagerFragment : BaseFragment<<Error class: unknown class>> , ViewPager.OnPageChangeListener, TripSegmentListFragment.OnTripKitButtonClickListener
TripResultPagerViewModel class TripResultPagerViewModel : RxViewModel
TripSegmentAlertsItemViewModel class TripSegmentAlertsItemViewModel : RxViewModel
TripSegmentAlertsSheet class TripSegmentAlertsSheet : BottomSheetDialogFragment
TripSegmentAlertsSheetViewModel class TripSegmentAlertsSheetViewModel
TripSegmentCustomRecyclerViewAdapter class TripSegmentCustomRecyclerViewAdapter<T> : BindingRecyclerViewAdapter<T>
TripSegmentGetOffAlertDetailViewModel class TripSegmentGetOffAlertDetailViewModel : RxViewModel
TripSegmentGetOffAlertsViewModel class TripSegmentGetOffAlertsViewModel : RxViewModel
TripSegmentItemViewModel class TripSegmentItemViewModel : RxViewModel
TripSegmentListFragment class TripSegmentListFragment : BaseTripKitFragment, View.OnClickListener
TripSegmentsViewModel class TripSegmentsViewModel : RxViewModel, ActionButtonContainer, ActionButtonClickListener
UpdateTripForRealtime open class UpdateTripForRealtime
WaypointTask class WaypointTask(context: Context, configCreator: ConfigRepository, param: WayPointTaskParam) : SingleOnSubscribe<List<TripGroup>>
https://redmine.buzzhives.com/projects/buzzhives/wiki/Routing_API#Trips-from-waypoint
WayPointTaskParam sealed class WayPointTaskParam

Properties

Name Summary
ARG_TRIP_GROUP_ID const val ARG_TRIP_GROUP_ID: String
CameraUpdatePadding const val CameraUpdatePadding: Int = 120
OneKilometers const val OneKilometers: Double = 1000.0
stableKey val Trip.stableKey: String?
Server-assigned identity of a trip that survives re-parsing and persistence, unlike the client-generated Trip.uuid (random per instance) and Trip.tripId (often 0).
ZoomOnSingleLocation const val ZoomOnSingleLocation: Float = 21.0f
ZoomToCoverFirstOneKilometers const val ZoomToCoverFirstOneKilometers: Float = 16.0f

Functions

Name Summary
expandedForHorizontalLabels fun LatLngBounds.expandedForHorizontalLabels(labelExtentPx: Int, mapWidthPx: Int, mapHeightPx: Int, paddingPx: Int): LatLngBounds
Returns bounds widened east and west so that, when fitted into a mapWidthPx x mapHeightPx map with paddingPx on every side, there are at least labelExtentPx pixels between the leftmost/rightmost point and the map edge. Marker labels such as the trip time pills are drawn beside their marker, so a uniform padding clips them at the screen edge once the label is wider than the padding (e.g. at large font scales).
findSelectedTrip fun TripGroup.findSelectedTrip(uuid: String?, tripId: Long?, stableKey: String?): Trip?
Finds the trip the user selected in this group: by uuid, then a non-zero tripId, then the stableKey. Falls back to the group's display trip only when none match, so a preview restored after rotation or a font-size change keeps showing the selected trip (Redmine #19351).
toCameraUpdate fun List<GeoPoint>.toCameraUpdate(): CameraUpdate
fun LatLngBounds.toCameraUpdate(padding: Int): CameraUpdate
fun List<GeoPoint>.toCameraUpdate(labelExtentPx: Int, mapWidthPx: Int, mapHeightPx: Int): CameraUpdate
Same as toCameraUpdate, but leaves room for marker labels (e.g. departure/arrival time pills) that extend labelExtentPx horizontally from markers at the edge of the trip. See expandedForHorizontalLabels.
updateCamera fun GoogleMap.updateCamera(mapCameraUpdate: MapCameraUpdate)