---
title: "metrics(forType:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmetriceventstreampublisher/metrics(fortype:)"
---

# metrics(forType:)

## Declaration

```swift
func metrics<MetricEvent>(forType metricType: MetricEvent.Type) -> AVMetrics<MetricEvent> where MetricEvent : AVMetricEvent
```

## See Also

### Getting the metrics

- [allMetrics()](avfoundation/avmetriceventstreampublisher/allmetrics().md)
