playScanBeep

fun playScanBeep(context: Context, @RawRes soundResId: Int = R.raw.mb_blinkid_beep)

Plays the scan completion sound.

If the sound has not been preloaded, it is loaded first and played as soon as loading completes.

Parameters

context

Context used to access the raw sound resource.

soundResId

Raw resource ID of the sound to play.