package Ġcom . mapbox . navigation . ui . voice . api Ċ Ċ import Ġandroid . media . Audio Manager Ċ import Ġandroid . os . Build Ċ Ċ internal Ġobject ĠAudio Focus Delegate Provider Ġ{ ĊĊĠĠĠ Ġfun Ġretrieve Audio Focus Delegate ( ĊĠĠĠĠĠĠĠ Ġaudio Manager : ĠAudio Manager , ĊĠĠĠĠĠĠĠ Ġplayer Attributes : ĠVoice Instructions Player Attributes , ĊĠĠĠ Ġ): ĠAudio Focus Delegate Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġbuild Audio Focus Delegate ( audio Manager , Ġplayer Attributes ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġbuild Audio Focus Delegate ( ĊĠĠĠĠĠĠĠ Ġaudio Manager : ĠAudio Manager , ĊĠĠĠĠĠĠĠ Ġplayer Attributes : ĠVoice Instructions Player Attributes , ĊĠĠĠ Ġ): ĠAudio Focus Delegate Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġif Ġ( Build . VERSION . SDK _ INT Ġ>= ĠBuild . VERSION _ CODES . O ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠO re o And Later Audio Focus Delegate ( audio Manager , Ġplayer Attributes ) ĊĠĠĠĠĠĠĠ Ġ} Ġelse ĠPre O re o Audio Focus Delegate ( audio Manager , Ġplayer Attributes ) ĊĠĠĠ Ġ} Ċ } Ċ