A cada versão, APIs específicas do Android podem se tornar obsoletas ou precisar ser refatoradas para oferecer uma experiência melhor ao desenvolvedor ou oferecer suporte a novos recursos da plataforma. Nesses casos, descontinuamos oficialmente as APIs obsoletas e direcionamos os desenvolvedores a APIs alternativas.
Descontinuação significa que encerramos o suporte oficial às APIs, mas elas continuarão disponíveis para os desenvolvedores. Esta página destaca algumas descontinuações importantes nesta versão do Android. Para ver outras descontinuações, consulte o Relatório de diferenças da API.
Usar o Spatializer em vez do Virtualizer
First added in Android 12 (API level 32), the Spatializer
class lets apps query the capabilities and behavior of sound spatialization on
the device. In Android 15, we're deprecating the
Virtualizer
class. Use
AudioAttributes.Builder.setSpatializationBehavior
instead
to characterize how you want your content to be played when spatialization is
supported.
AndroidX media3 ExoPlayer 1.0 enables spatial audio by default for multichannel audio when the device supports it. See this recent blog post and the spatial audio documentation for more information, including APIs to control the feature.