[android-components](../../index.md) / [mozilla.components.feature.media.service](../index.md) / [AbstractMediaService](index.md) / [onCreate](./on-create.md)

# onCreate

`open fun onCreate(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/media/src/main/java/mozilla/components/feature/media/service/AbstractMediaService.kt#L29)