SearchFragment
SearchFragment is modular Search class to use. Feature- It searches for given results into given property if downloaded. It can be used as simple fragment. It can also be used full screen bottom up sheet fragment.
Entities with OPENING_SOON, TEMPORARILY_CLOSED and PERMENANTLY_CLOSED status will not be included in search.
See also
To use this class as call newInstance() and pass following parameters to customize its behavior - propertyId - search results for item in to the given property Id. showMyLocation - "My Location" ui will be visible, it is used only to add to itinerary showFullScreenView - class view shows fragment as full screen. You can launch using searchFragment.show() method. searchAction - action should be taken when we tap on the search result. @see SearchAction Mainly, there are three ways 1) Select on the map 2) Select on the map auto close search dialog 3) Add selected item to the itinerary. itineraryIndex - Position at which selected item should be added to the itinerary list
Example usage:- fun newInstance( propertyId: Int, showMyLocation: Boolean, showFullScreenView:Boolean, searchAction: SearchAction, itineraryIndex: Int )