/tripkit/CommonCoreLegacy/com.skedgo.tripkit.routing/VehicleMode

VehicleMode

enum VehicleMode : Enum<VehicleMode>

As of v11, this denotes local transport icons.

See also

{@link ModeInfo}

Entries

AEROPLANE AEROPLANE
BICYCLE_SHARE BICYCLE_SHARE
BICYCLE_ELECTRIC_SHARE BICYCLE_ELECTRIC_SHARE
BICYCLE BICYCLE
BUS BUS
CABLECAR CABLECAR
CAR_POOL CAR_POOL
CAR_RIDE_SHARE CAR_RIDE_SHARE
CAR_SHARE CAR_SHARE
CAR CAR
COACH COACH
FERRY FERRY
KICK_SCOOTER KICK_SCOOTER
MONORAIL MONORAIL
MOTORBIKE MOTORBIKE
MOTO_SCOOTER MOTO_SCOOTER
PARKING PARKING
PEDELEC PEDELEC
PUBLIC_TRANSPORT PUBLIC_TRANSPORT
SHUTTLE_BUS SHUTTLE_BUS
SUBWAY SUBWAY
TAXI TAXI
TRAIN_INTERCITY TRAIN_INTERCITY
TRAIN TRAIN
TRAM TRAM
WALK WALK
WHEEL_CHAIR WHEEL_CHAIR
FUNICULAR FUNICULAR
TOLL TOLL

Types

Name Summary
Companion object Companion

Properties

Name Summary
entries val entries: EnumEntries<VehicleMode>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
iconRes @JvmField
@get:DrawableRes
val iconRes: Int
isPublicTransport val isPublicTransport: Boolean
name val name: String
ordinal val ordinal: Int
realTimeIconRes @get:DrawableRes
var realTimeIconRes: Int

Functions

Name Summary
getMapIconRes fun getMapIconRes(context: Context): Drawable?
getRealtimeMapIconRes fun getRealtimeMapIconRes(context: Context): Drawable?
valueOf fun valueOf(value: String): VehicleMode
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values fun values(): Array<VehicleMode>
Returns an array containing the constants of this enum type, in the order they're declared.