TypeScript API
Placelistmaptemplateconfig

Interface: PlaceListMapTemplateConfig

Hierarchy

  • AndroidNavigationBaseTemplateConfig

    PlaceListMapTemplateConfig

Table of contents

Properties

Methods

Properties

actions

Optional actions: Action<ActionType>[]

Sets an ActionStrip with a list of template-scoped actions for this template. The Action buttons in Map Based Template are automatically adjusted based on the screen size. On narrow width screen, icon Actions show by default. If no icon specify, showing title Actions instead. On wider width screen, title Actions show by default. If no title specify, showing icon Actions instead.

Limit

This template allows up to 4 Actions in its ActionStrip. Of the 4 allowed Actions, it can either be a title Action as set via setTitle, or a icon Action as set via setIcon.

Defined in

packages/react-native-carplay/src/templates/android/PlaceListMapTemplate.ts:15 (opens in a new tab)


anchor

Optional anchor: Place

Sets the anchor maker on the map. An anchor marker will not be displayed unless set with this method. The anchor marker is displayed differently from other markers by the host. If not null, an anchor marker will be shown at the specified CarLocation on the map. The camera will adapt to always have the anchor marker visible within its viewport, along with other places' markers from Row that are currently visible in the Pane. This can be used to provide a reference point on the map (e.g. the center of a search region) as the user pages through the Pane's markers, for example.

Defined in

packages/react-native-carplay/src/templates/android/PlaceListMapTemplate.ts:22 (opens in a new tab)


component

component: ComponentType<any>

Your component to render inside Android Auto Map view Example component: MyComponent

Inherited from

AndroidNavigationBaseTemplateConfig.component

Defined in

packages/react-native-carplay/src/templates/android/AndroidNavigationBaseTemplate.ts:11 (opens in a new tab)


currentLocationEnabled

Optional currentLocationEnabled: boolean

Sets whether to show the current location in the map. The map template will show the user's current location on the map. This functionality requires the app to have either the ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION permission. When isEnabled is true, the host may receive location updates from the app in order to show the user's current location.

Defined in

packages/react-native-carplay/src/templates/android/PlaceListMapTemplate.ts:28 (opens in a new tab)


headerAction

Optional headerAction: HeaderAction

Sets the Action that will be displayed in the header of the template. Unless set with this method, the template will not have a header action.

Limit

This template only supports either one of APP_ICON and BACK as a header Action.

Defined in

packages/react-native-carplay/src/templates/android/PlaceListMapTemplate.ts:34 (opens in a new tab)


id

Optional id: string

Give the template your own ID. Must be unique.

Inherited from

AndroidNavigationBaseTemplateConfig.id

Defined in

packages/react-native-carplay/src/templates/Template.ts:23 (opens in a new tab)


itemList

Optional itemList: ListItem[]

Sets an ItemList to show in a list view along with the map. Unless set with this method, the template will not show an item list. To show a marker corresponding to a point of interest represented by a row, set the Place instance via setMetadata. The host will display the PlaceMarker in both the map and the list view as the row becomes visible.

Limit

The number of items in the ItemList should be smaller or equal than the limit provided by CONTENT_LIMIT_TYPE_PLACE_LIST. The host will ignore any items over that limit. The list itself cannot be selectable as set via setOnSelectedListener. Each Row can add up to 2 lines of texts via addText and cannot contain a Toggle.

Defined in

packages/react-native-carplay/src/templates/android/PlaceListMapTemplate.ts:41 (opens in a new tab)


leadingNavigationBarButtons

Optional leadingNavigationBarButtons: BarButton[]

An array of bar buttons to display on the leading side of the navigation bar.

The navigation bar displays up to two buttons in the leading space. When including more than two buttons in the array, the system displays only the first two buttons. iOS

Inherited from

AndroidNavigationBaseTemplateConfig.leadingNavigationBarButtons

Defined in

packages/react-native-carplay/src/templates/Template.ts:30 (opens in a new tab)


loading

Optional loading: boolean

Sets whether the template is in a loading state.

Defined in

packages/react-native-carplay/src/templates/android/PlaceListMapTemplate.ts:45 (opens in a new tab)


tabImage

Optional tabImage: ImageSourcePropType

Image source for tab

Inherited from

AndroidNavigationBaseTemplateConfig.tabImage

Defined in

packages/react-native-carplay/src/templates/Template.ts:49 (opens in a new tab)


tabSystemImageName

Optional tabSystemImageName: string

Name of system image for tab

Inherited from

AndroidNavigationBaseTemplateConfig.tabSystemImageName

Defined in

packages/react-native-carplay/src/templates/Template.ts:45 (opens in a new tab)


tabSystemItem

Optional tabSystemItem: number

UITabBarSystemItem

Inherited from

AndroidNavigationBaseTemplateConfig.tabSystemItem

Defined in

packages/react-native-carplay/src/templates/Template.ts:41 (opens in a new tab)


tabTitle

Optional tabTitle: string

Set tab title

Inherited from

AndroidNavigationBaseTemplateConfig.tabTitle

Defined in

packages/react-native-carplay/src/templates/Template.ts:53 (opens in a new tab)


title

Optional title: string

Title for the map

Defined in

packages/react-native-carplay/src/templates/android/PlaceListMapTemplate.ts:49 (opens in a new tab)


trailingNavigationBarButtons

Optional trailingNavigationBarButtons: BarButton[]

An array of bar buttons to display on the trailing side of the navigation bar.

The navigation bar displays up to two buttons in the trailing space. When including more than two buttons in the array, the system displays only the first two buttons. iOS

Inherited from

AndroidNavigationBaseTemplateConfig.trailingNavigationBarButtons

Defined in

packages/react-native-carplay/src/templates/Template.ts:37 (opens in a new tab)

Methods

onBarButtonPressed

onBarButtonPressed(e): void

Fired when bar button is pressed

Parameters

NameTypeDescription
eBarButtonEventEvent

Returns

void

Inherited from

AndroidNavigationBaseTemplateConfig.onBarButtonPressed

Defined in

packages/react-native-carplay/src/templates/Template.ts:79 (opens in a new tab)


onDidAppear

onDidAppear(e): void

Fired after template appears

Parameters

NameTypeDescription
eBaseEventEvent

Returns

void

Inherited from

AndroidNavigationBaseTemplateConfig.onDidAppear

Defined in

packages/react-native-carplay/src/templates/Template.ts:68 (opens in a new tab)


onDidDisappear

onDidDisappear(e): void

Fired after template disappears

Parameters

NameTypeDescription
eBaseEventEvent

Returns

void

Inherited from

AndroidNavigationBaseTemplateConfig.onDidDisappear

Defined in

packages/react-native-carplay/src/templates/Template.ts:73 (opens in a new tab)


onDidDismissPanningInterface

onDidDismissPanningInterface(): void

Returns

void

Inherited from

AndroidNavigationBaseTemplateConfig.onDidDismissPanningInterface

Defined in

packages/react-native-carplay/src/templates/android/AndroidNavigationBaseTemplate.ts:14 (opens in a new tab)


onDidShowPanningInterface

onDidShowPanningInterface(): void

Returns

void

Inherited from

AndroidNavigationBaseTemplateConfig.onDidShowPanningInterface

Defined in

packages/react-native-carplay/src/templates/android/AndroidNavigationBaseTemplate.ts:13 (opens in a new tab)


onWillAppear

onWillAppear(e): void

Fired before template appears

Parameters

NameTypeDescription
eBaseEventEvent

Returns

void

Inherited from

AndroidNavigationBaseTemplateConfig.onWillAppear

Defined in

packages/react-native-carplay/src/templates/Template.ts:58 (opens in a new tab)


onWillDisappear

onWillDisappear(e): void

Fired before template disappears

Parameters

NameTypeDescription
eBaseEventEvent

Returns

void

Inherited from

AndroidNavigationBaseTemplateConfig.onWillDisappear

Defined in

packages/react-native-carplay/src/templates/Template.ts:63 (opens in a new tab)