TypeScript API
Internalcarplay

Interface: InternalCarPlay

Hierarchy

  • NativeModule

    InternalCarPlay

Table of contents

Properties

Methods

Properties

addListener

addListener: (eventType: string) => void

Type declaration

▸ (eventType): void

Add the provided eventType as an active listener

Parameters
NameTypeDescription
eventTypestringname of the event for which we are registering listener
Returns

void

Inherited from

NativeModule.addListener

Defined in

node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.d.ts:24


removeListeners

removeListeners: (count: number) => void

Type declaration

▸ (count): void

Remove a specified number of events. There are no eventTypes in this case, as the native side doesn't remove the name, but only manages a counter of total listeners

Parameters
NameTypeDescription
countnumbernumber of listeners to remove (of any type)
Returns

void

Inherited from

NativeModule.removeListeners

Defined in

node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.d.ts:32

Methods

activateVoiceControlState

activateVoiceControlState(id, identifier): void

Parameters

NameType
idstring
identifierstring

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:91 (opens in a new tab)


alert

alert(config): void

Parameters

NameType
configObject
config.actions?Action<ActionType>[]
config.durationnumber
config.icon?ImageSourcePropType
config.idnumber
config.subtitle?string
config.titlestring

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:95 (opens in a new tab)


cancelNavigationSession

cancelNavigationSession(id): void

Parameters

NameType
idstring

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:50 (opens in a new tab)


checkForConnection

checkForConnection(): void

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:35 (opens in a new tab)


createTemplate

createTemplate(id, config, callback?): void

Parameters

NameType
idstring
configunknown
callback?unknown

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:56 (opens in a new tab)


createTrip

createTrip(id, config): void

Parameters

NameType
idstring
configTripConfig

Returns

void

Defined in

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


dismissNavigationAlert

dismissNavigationAlert(id, animated): void

Parameters

NameType
idstring
animatedboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:78 (opens in a new tab)


dismissPanningInterface

dismissPanningInterface(id, animated): void

Parameters

NameType
idstring
animatedboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:80 (opens in a new tab)


dismissTemplate

dismissTemplate(animated): void

Parameters

NameType
animatedboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:42 (opens in a new tab)


enableNowPlaying

enableNowPlaying(enabled): void

Parameters

NameType
enabledboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:43 (opens in a new tab)


finishNavigationSession

finishNavigationSession(id): void

Parameters

NameType
idstring

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:51 (opens in a new tab)


getMaximumListImageRowItemImageSize

getMaximumListImageRowItemImageSize(id): Promise<ImageSize>

Parameters

NameType
idstring

Returns

Promise<ImageSize>

Defined in

packages/react-native-carplay/src/CarPlay.ts:85 (opens in a new tab)


getMaximumListItemCount

getMaximumListItemCount(id): Promise<number>

Parameters

NameType
idstring

Returns

Promise<number>

Defined in

packages/react-native-carplay/src/CarPlay.ts:82 (opens in a new tab)


getMaximumListItemImageSize

getMaximumListItemImageSize(id): Promise<ImageSize>

Parameters

NameType
idstring

Returns

Promise<ImageSize>

Defined in

packages/react-native-carplay/src/CarPlay.ts:83 (opens in a new tab)


getMaximumListSectionCount

getMaximumListSectionCount(id): Promise<number>

Parameters

NameType
idstring

Returns

Promise<number>

Defined in

packages/react-native-carplay/src/CarPlay.ts:81 (opens in a new tab)


getMaximumNumberOfGridImages

getMaximumNumberOfGridImages(id): Promise<number>

Parameters

NameType
idstring

Returns

Promise<number>

Defined in

packages/react-native-carplay/src/CarPlay.ts:84 (opens in a new tab)


hideTripPreviews

hideTripPreviews(id): void

Parameters

NameType
idstring

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:74 (opens in a new tab)


invalidate

invalidate(id): void

Parameters

NameType
idstring

Returns

void

Defined in

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


pauseNavigationSession

pauseNavigationSession(id, reason, description?): void

Parameters

NameType
idstring
reasonPauseReason
description?string

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:52 (opens in a new tab)


popTemplate

popTemplate(animated): void

Parameters

NameType
animatedboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:40 (opens in a new tab)


popToRootTemplate

popToRootTemplate(animated): void

Parameters

NameType
animatedboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:39 (opens in a new tab)


popToTemplate

popToTemplate(templateId, animated): void

Parameters

NameType
templateIdstring
animatedboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:38 (opens in a new tab)


presentNavigationAlert

presentNavigationAlert(id, config, animated): void

Parameters

NameType
idstring
configunknown
animatedboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:77 (opens in a new tab)


presentTemplate

presentTemplate(templateId, animated): void

Parameters

NameType
templateIdstring
animatedboolean

Returns

void

Defined in

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


pushTemplate

pushTemplate(templateId, animated): void

Parameters

NameType
templateIdstring
animatedboolean

Returns

void

Defined in

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


reactToSelectedResult

reactToSelectedResult(status): void

Parameters

NameType
statusboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:86 (opens in a new tab)


reactToUpdatedSearchText

reactToUpdatedSearchText(id, items): void

Parameters

NameType
idstring
itemsunknown

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:89 (opens in a new tab)


reload

reload(): void

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:93 (opens in a new tab)


setRootTemplate

setRootTemplate(templateId, animated): void

Parameters

NameType
templateIdstring
animatedboolean

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:36 (opens in a new tab)


showPanningInterface

showPanningInterface(id, animated): void

Parameters

NameType
idstring
animatedboolean

Returns

void

Defined in

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


showRouteChoicesPreviewForTrip

showRouteChoicesPreviewForTrip(id, tripId, config): void

Parameters

NameType
idstring
tripIdstring
configTextConfiguration

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:76 (opens in a new tab)


showTripPreviews

showTripPreviews(id, previews, config): void

Parameters

NameType
idstring
previewsstring[]
configTextConfiguration

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:75 (opens in a new tab)


startNavigationSession

startNavigationSession(id, tripId): Promise<{ navigationSessionId: string ; tripId: string }>

Parameters

NameType
idstring
tripIdstring

Returns

Promise<{ navigationSessionId: string ; tripId: string }>

Defined in

packages/react-native-carplay/src/CarPlay.ts:59 (opens in a new tab)


toast

toast(message, duration): void

Parameters

NameType
messagestring
durationnumber

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:94 (opens in a new tab)


updateInformationTemplateActions

updateInformationTemplateActions(id, config): void

Parameters

NameType
idstring
configunknown

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:55 (opens in a new tab)


updateInformationTemplateItems

updateInformationTemplateItems(id, config): void

Parameters

NameType
idstring
configunknown

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:54 (opens in a new tab)


updateListTemplateItem

updateListTemplateItem(id, config): void

Parameters

NameType
idstring
configunknown

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:88 (opens in a new tab)


updateListTemplateSections

updateListTemplateSections(id, config): void

Parameters

NameType
idstring
configunknown

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:87 (opens in a new tab)


updateManeuversNavigationSession

updateManeuversNavigationSession(id, x): void

Parameters

NameType
idstring
xManeuver[]

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:44 (opens in a new tab)


updateMapTemplateConfig

updateMapTemplateConfig(id, config): void

Parameters

NameType
idstring
configunknown

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:72 (opens in a new tab)


updateMapTemplateMapButtons

updateMapTemplateMapButtons(id, config): void

Parameters

NameType
idstring
configunknown

Returns

void

Defined in

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


updateTabBarTemplates

updateTabBarTemplates(id, config): void

Parameters

NameType
idstring
configunknown

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:90 (opens in a new tab)


updateTemplate

updateTemplate(id, config): void

Parameters

NameType
idstring
configunknown

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:57 (opens in a new tab)


updateTravelEstimatesForTrip

updateTravelEstimatesForTrip(id, tripId, travelEstimates, timeRemainingColor): void

Parameters

NameType
idstring
tripIdstring
travelEstimatesTravelEstimates
timeRemainingColorTimeRemainingColor

Returns

void

Defined in

packages/react-native-carplay/src/CarPlay.ts:66 (opens in a new tab)


updateTravelEstimatesNavigationSession

updateTravelEstimatesNavigationSession(id, index, estimates): void

Parameters

NameType
idstring
indexnumber
estimatesTravelEstimates

Returns

void

Defined in

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