tripkit-android / com.skedgo.tripkit.ui.search / LocationSearchFragment / Builder

Builder

class Builder

Used to create a new instance of the fragment.

Constructors

Name Summary
<init> Used to create a new instance of the fragment.Builder()

Functions

Name Summary
allowCurrentLocation The fragment can optionally show a static option of "Current Location".fun allowCurrentLocation(withCurrentLocation:Boolean= true): Builder
allowDropPin The fragment can optionally show a static option of "Choose on Map".fun allowDropPin(withDropPin:Boolean= true): Builder
build Finalize and build the Fragmentfun build():LocationSearchFragment
near Used for TripGo searches. For example, the center of a map.fun near(near: LatLng?): Builder
withBounds Used for Google Places searches. For example, a map's visible boundaries.fun withBounds(bounds: LatLngBounds?): Builder
withHint Sets the EditText hint. For example, "Where do you want to go?"fun withHint(hint:String?): Builder
withInitialQuery Sets the initial query.fun withInitialQuery(initialQuery:String?): Builder