SearchFragment

class SearchFragment : BaseFragment<ERROR CLASS: Symbol not found for FragmentSearchBinding>

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 )

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val context: Context?
Link copied to clipboard
Link copied to clipboard
open val dialog: Dialog?
Link copied to clipboard
Link copied to clipboard
open var exitTransition: Any?
Link copied to clipboard
Link copied to clipboard
val host: Any?
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tag: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val theme: ERROR CLASS: Unresolved name: DialogCustomTheme
Link copied to clipboard
Link copied to clipboard
open val view: View?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun constructViewBinding(): ViewBinding
Link copied to clipboard
open fun dismiss()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dump(@NonNull prefix: String, @Nullable fd: FileDescriptor?, @NonNull writer: PrintWriter, @Nullable args: Array<out String?>??)
Link copied to clipboard
fun getString(@StringRes resId: Int, @Nullable vararg formatArgs: Any?): String
Link copied to clipboard
Link copied to clipboard
open override fun getTheme(): ERROR CLASS: Unresolved name: DialogCustomTheme
Link copied to clipboard
fun getViewBinding(): ERROR CLASS: Symbol not found for FragmentSearchBinding
Link copied to clipboard
open override fun init(viewBinding: ViewBinding)
Link copied to clipboard
open fun onActivityCreated(@Nullable savedInstanceState: Bundle?)
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, @Nullable data: Intent?)
Link copied to clipboard
open fun onAttach(@NonNull context: Context)
Link copied to clipboard
open fun onAttachFragment(@NonNull childFragment: Fragment)
Link copied to clipboard
open fun onCancel(@NonNull dialog: DialogInterface)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onCreate(savedInstanceState: Bundle?)
Link copied to clipboard
open fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation?
Link copied to clipboard
open fun onCreateAnimator(transit: Int, enter: Boolean, nextAnim: Int): Animator?
Link copied to clipboard
open fun onCreateDialog(@Nullable savedInstanceState: Bundle?): Dialog
Link copied to clipboard
Link copied to clipboard
open override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View
Link copied to clipboard
open override fun onDestroy()
Link copied to clipboard
Link copied to clipboard
open override fun onDestroyView()
Link copied to clipboard
open fun onDetach()
Link copied to clipboard
Link copied to clipboard
open fun onGetLayoutInflater(@Nullable savedInstanceState: Bundle?): LayoutInflater
Link copied to clipboard
Link copied to clipboard
open fun onInflate(@NonNull activity: Activity, @NonNull attrs: AttributeSet, @Nullable savedInstanceState: Bundle?)
open fun onInflate(@NonNull context: Context, @NonNull attrs: AttributeSet, @Nullable savedInstanceState: Bundle?)
Link copied to clipboard
Link copied to clipboard
open fun onMultiWindowModeChanged(isInMultiWindowMode: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun onPrimaryNavigationFragmentChanged(isPrimaryNavigationFragment: Boolean)
Link copied to clipboard
open fun onRequestPermissionsResult(requestCode: Int, @NonNull permissions: Array<out String?>, @NonNull grantResults: IntArray)
Link copied to clipboard
open override fun onResume()
Link copied to clipboard
Link copied to clipboard
open override fun onStart()
Link copied to clipboard
open fun onStop()
Link copied to clipboard
open override fun onViewCreated(view: View, savedInstanceState: Bundle?)
Link copied to clipboard
open fun onViewStateRestored(@Nullable savedInstanceState: Bundle?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestPermissions(@NonNull permissions: Array<out String?>, requestCode: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setHasOptionsMenu(hasMenu: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setMenuVisibility(menuVisible: Boolean)
Link copied to clipboard
open fun setStyle(style: Int, @StyleRes theme: Int)
Link copied to clipboard
open fun setTargetFragment(@Nullable fragment: Fragment?, requestCode: Int)
Link copied to clipboard
Link copied to clipboard
open fun show(@NonNull manager: FragmentManager, @Nullable tag: String?)
open fun show(@NonNull transaction: FragmentTransaction, @Nullable tag: String?): Int
Link copied to clipboard
fun showError(@StringRes stringRes: Int)
Link copied to clipboard
fun showLoading(view: View)
Link copied to clipboard
open fun showNow(@NonNull manager: FragmentManager, @Nullable tag: String?)
Link copied to clipboard
open fun startActivity(@NonNull intent: Intent)
open fun startActivity(@NonNull intent: Intent, @Nullable options: Bundle?)
Link copied to clipboard
open fun startActivityForResult(@NonNull intent: Intent, requestCode: Int)
open fun startActivityForResult(@NonNull intent: Intent, requestCode: Int, @Nullable options: Bundle?)
Link copied to clipboard
open fun startIntentSenderForResult(@NonNull intent: IntentSender, requestCode: Int, @Nullable fillInIntent: Intent?, flagsMask: Int, flagsValues: Int, extraFlags: Int, @Nullable options: Bundle?)
Link copied to clipboard
Link copied to clipboard