[android-components](../index.md) / [mozilla.components.feature.media.ext](index.md) / [getActiveElements](./get-active-elements.md)

# getActiveElements

`fun `[`MediaState`](../mozilla.components.browser.state.state/-media-state/index.md)`.getActiveElements(): `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`Element`](../mozilla.components.browser.state.state/-media-state/-element/index.md)`>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/media/src/main/java/mozilla/components/feature/media/ext/MediaState.kt#L144)

Returns the list of active [MediaState.Element](../mozilla.components.browser.state.state/-media-state/-element/index.md)s.

