SearchPanel

A panel that offers the end-user quick access to search functionality. This panel is meant to provide a visual context for location based search, such as searching for a driving destination, parking spots or charging stations. It is not meant for searching content within a TaskPanel, like songs within a media frontend.

Note: This is marked as IviExperimental to leave the domain of this panel open. It is not clear if this should be domain specific (like only for navigation related search) or support a more generic approach.

Parameters

frontendContext

An entry point for this Panel to communicate with the rest of the system.

Constructors

Link copied to clipboard
constructor(frontendContext: FrontendContext)

Properties

Link copied to clipboard
@IviExperimental(reasons = [])
abstract val hasContentToShow: LiveData<Boolean>

A flag that enables to signify to system UI that the panel wants to show content even if it is invisible.

Link copied to clipboard

A callback to register for back presses in the system UI.

Link copied to clipboard

A dispatcher that dispatches back presses to callbacks. Components that need to react to back presses must add their callbacks to this dispatcher. The last added callback that is currently enabled receives the back press.

Inherited properties

Link copied to clipboard
Link copied to clipboard
val id: Long

Unique identifier of a GenericPanel. Each ID is an increment of the previously created panel's ID, allowing this value to be used for sorting purposes.

Link copied to clipboard

true if the panel is currently attached.

Link copied to clipboard

Whether a panel wants to be removed from its frontend.

Link copied to clipboard
val tag: String

The tag to recognise this panel with. Useful in combination with fragment tags to detect which fragment belongs to which panel.

Link copied to clipboard

A destination that the information contained by this panel transitions to when this panel closes. By default it is null, indicating the information does not transition anywhere.

Link copied to clipboard

The source of the information contained by this panel when the information transitions from another panel to this one. By default it is null, indicating the information does not transition from any other particular panel.

Inherited functions

Link copied to clipboard

The fragment used when initially showing the panel. The fragment may be recreated by the system UI upon configuration changes.

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getLifecycle(): Lifecycle
Link copied to clipboard
open override fun getPanelContext(iviFragmentId: IviFragmentId): CommonPanelContext

The PanelContext of an IviFragment identified by iviFragmentId.

Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard

Called when this panel is added to Frontend.panels, allowing it to be shown in the system UI.

Link copied to clipboard

Called when the panel is attached to the system UI.

Link copied to clipboard

Called when the panel has been detached from the system UI.

Link copied to clipboard

Called when this panel is removed from Frontend.panels, preventing it from being shown in the system UI.

Link copied to clipboard
open override fun toString(): String