tripkit-android / com.skedgo.tripkit.ui.routeinput / RouteInputView

RouteInputView

class RouteInputView : CardView, OnClickListener

A widget for display start and destination locations, as well as departure/arrival times and a "Route" button.

Types

Name Summary
OnRouteWidgetClickedListener Interface definition for a callback that is called when one of several widgets are clicked.interface OnRouteWidgetClickedListener

Constructors

Name Summary
<init> RouteInputView(context: Context)
RouteInputView(context: Context, attrs: AttributeSet?)

Functions

Name Summary
onClick fun onClick(view: View?):Unit
setDestinationText Sets the displayed text in the Destination field.fun setDestinationText(text:String):Unit
setOnRouteWidgetClickedListener Register a callback to be invoked when a widget is clicked.fun setOnRouteWidgetClickedListener(callback: OnRouteWidgetClickedListener):Unitfun setOnRouteWidgetClickedListener(listener: (Widget) ->Unit):Unit
setStartText Sets the displayed text in the Start field.fun setStartText(text:String):Unit
setTimeButton Sets the displayed text on the Time button.fun setTimeButton(text:String):Unit