mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Since Kotlin 2.0 the compiler became better at detecting incorrect annotation applications. The @OptIn annotation can't be applied to an expression, so when compiling with Kotlin 2.0 it results in an error. PiperOrigin-RevId: 604596657 (cherry picked from commit 718cf1299b805339b605bf268fce0ad9158c44f5)
Media session demo
This app demonstrates use of media sessions. It's a reference app written in Kotlin, which demonstrates best practices for media apps that want to advertise media sessions.
See the demos README for instructions on how to build and run this demo.