---
title: selectedIndex
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cppointofinteresttemplate/selectedindex
---

# selectedIndex

The current selection’s index.

## Declaration

```swift
var selectedIndex: Int { get set }
```

## Discussion

Discussion The value of the property must be within the bounds of the pointsOfInterest array, or NSNotFound to indicate no selection.

## See Also

### Managing the Points of Interest

- [pointsOfInterest](carplay/cppointofinteresttemplate/pointsofinterest.md)
- [setPointsOfInterest(_:selectedIndex:)](carplay/cppointofinteresttemplate/setpointsofinterest(_:selectedindex:).md)
