Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val audioManager = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
- val audioAttributes = AudioAttributesCompat.Builder()
- .setContentType(AudioAttributesCompat.CONTENT_TYPE_MUSIC)
- .setUsage(AudioAttributesCompat.USAGE_MEDIA)
- .build()
Add Comment
Please, Sign In to add comment