Interface: PointOfInterestTemplateConfig
Hierarchy
-
↳
PointOfInterestTemplateConfig
Table of contents
Properties
- id
- items
- leadingNavigationBarButtons
- tabImage
- tabSystemImageName
- tabSystemItem
- tabTitle
- title
- trailingNavigationBarButtons
Methods
- onBarButtonPressed
- onChangeMapRegion
- onDidAppear
- onDidDisappear
- onPointOfInterestSelect
- onWillAppear
- onWillDisappear
Properties
id
• Optional
id: string
Give the template your own ID. Must be unique.
Inherited from
Defined in
packages/react-native-carplay/src/templates/Template.ts:23 (opens in a new tab)
items
• items: PointOfInterestItem
[]
Defined in
packages/react-native-carplay/src/templates/PointOfInterestTemplate.ts:19 (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
TemplateConfig.leadingNavigationBarButtons
Defined in
packages/react-native-carplay/src/templates/Template.ts:30 (opens in a new tab)
tabImage
• Optional
tabImage: ImageSourcePropType
Image source for tab
Inherited from
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
TemplateConfig.tabSystemImageName
Defined in
packages/react-native-carplay/src/templates/Template.ts:45 (opens in a new tab)
tabSystemItem
• Optional
tabSystemItem: number
UITabBarSystemItem
Inherited from
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
Defined in
packages/react-native-carplay/src/templates/Template.ts:53 (opens in a new tab)
title
• title: string
Defined in
packages/react-native-carplay/src/templates/PointOfInterestTemplate.ts:18 (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
TemplateConfig.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
Name | Type | Description |
---|---|---|
e | BarButtonEvent | Event |
Returns
void
Inherited from
TemplateConfig.onBarButtonPressed
Defined in
packages/react-native-carplay/src/templates/Template.ts:79 (opens in a new tab)
onChangeMapRegion
▸ onChangeMapRegion(e
): void
Parameters
Name | Type |
---|---|
e | Object |
e.latitude | number |
e.latitudeDelta | number |
e.longitude | number |
e.longitudeDelta | number |
Returns
void
Defined in
packages/react-native-carplay/src/templates/PointOfInterestTemplate.ts:21 (opens in a new tab)
onDidAppear
▸ onDidAppear(e
): void
Fired after template appears
Parameters
Name | Type | Description |
---|---|---|
e | BaseEvent | Event |
Returns
void
Inherited from
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
Name | Type | Description |
---|---|---|
e | BaseEvent | Event |
Returns
void
Inherited from
Defined in
packages/react-native-carplay/src/templates/Template.ts:73 (opens in a new tab)
onPointOfInterestSelect
▸ onPointOfInterestSelect(e
): void
Parameters
Name | Type |
---|---|
e | PointOfInterestItem |
Returns
void
Defined in
packages/react-native-carplay/src/templates/PointOfInterestTemplate.ts:20 (opens in a new tab)
onWillAppear
▸ onWillAppear(e
): void
Fired before template appears
Parameters
Name | Type | Description |
---|---|---|
e | BaseEvent | Event |
Returns
void
Inherited from
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
Name | Type | Description |
---|---|---|
e | BaseEvent | Event |
Returns
void
Inherited from
TemplateConfig.onWillDisappear
Defined in
packages/react-native-carplay/src/templates/Template.ts:63 (opens in a new tab)