---
title: "numberOfChildItems(at:)"
framework: mediaplayer
role: symbol
role_heading: Instance Method
path: "mediaplayer/mpplayablecontentdatasource/numberofchilditems(at:)"
---

# numberOfChildItems(at:)

Provides the number of child nodes for the indicated node.

## Declaration

```swift
func numberOfChildItems(at indexPath: IndexPath) -> Int
```

## Parameters

- `indexPath`: The index for the node to be queried.

## Return Value

Return Value An NSInteger value representing the number of child nodes associated with the indicated node.

## See Also

### Working with child nodes

- [beginLoadingChildItems(at:completionHandler:)](mediaplayer/mpplayablecontentdatasource/beginloadingchilditems(at:completionhandler:).md)
- [childItemsDisplayPlaybackProgress(at:)](mediaplayer/mpplayablecontentdatasource/childitemsdisplayplaybackprogress(at:).md)
