Package io.scanbot.sdk.util.snap
Class StubSoundController
-
- All Implemented Interfaces:
-
io.scanbot.sdk.util.snap.SoundController
public final class StubSoundController implements SoundController
-
-
Constructor Summary
Constructors Constructor Description StubSoundController()
-
Method Summary
Modifier and Type Method Description UnitsetUp()Prepare SoundController for future sound or vibration playing. Unitrelease()Release resources. UnitsetBleepEnabled(Boolean enable)Whether actual sound playing is enabled. UnitsetVibrationEnabled(Boolean enable)Whether actual vibration is enabled. UnitplayBleepSound()Attempt to play sound and vibrate, if enabled. UnitsetBleepUri(Uri uri)Set custom bleepsound resource from file Uri.UnitsetBleepResId(Integer resId)Set custom bleepsound resource from app resources.-
-
Method Detail
-
setUp
Unit setUp()
Prepare SoundController for future sound or vibration playing.
-
setBleepEnabled
Unit setBleepEnabled(Boolean enable)
Whether actual sound playing is enabled.
-
setVibrationEnabled
Unit setVibrationEnabled(Boolean enable)
Whether actual vibration is enabled. NOTE: Vibration feature requires
android.permission.VIBRATEpermission. Add it to the AndroidManifest to use the vibration.
-
playBleepSound
Unit playBleepSound()
Attempt to play sound and vibrate, if enabled.
-
setBleepUri
Unit setBleepUri(Uri uri)
Set custom
bleepsound resource from file Uri.
-
setBleepResId
Unit setBleepResId(Integer resId)
Set custom
bleepsound resource from app resources.
-
-
-
-