[android-components](../../index.md) / [mozilla.components.feature.media.state](../index.md) / [MediaStateMachine](index.md) / [getState](./get-state.md)

# getState

`fun getState(): `[`MediaState`](../-media-state/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/media/src/main/java/mozilla/components/feature/media/state/MediaStateMachine.kt#L51)

Get the current [MediaState](../-media-state/index.md).

