/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.tripresult
Package-level declarations
Types
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) |