FilterActionSheet

class FilterActionSheet : BottomSheetDialogFragment

FilterActionSheet is subclass of BottomSheetDialogFragment which is used to display filter operations for the vehicle list shown in VehicleListFragment.

Created at : December 25, 2021

Author

Darshan Bhanushali

See also

com.google.android.material.bottomsheet.BottomSheetDialogFragment

Constructors

Link copied to clipboard
fun FilterActionSheet()

Types

Link copied to clipboard
interface EventListener

It is interface which is used to communicate between FilterActionSheet & VehicleFragment It uses filter(fleetType : String, headingDirection: String) method to pass data.

Functions

Link copied to clipboard
open override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

It is default method which is executed after the View is created

Link copied to clipboard
open override fun onDismiss(dialog: DialogInterface)

On Dismiss of BottomSheetDialogFragment, trigger the filter event to pass the selected parameter back to VehicleListFragment

Link copied to clipboard
fun setEventListener(eventListener: FilterActionSheet.EventListener)

It is used to handle the events performed within FilterActionSheet