public final class BeepVibrateManager
extends java.lang.Object
Constructor and Description |
---|
BeepVibrateManager(android.content.Context ctx) |
Modifier and Type | Method and Description |
---|---|
void |
initBeepManager()
Inits beep manager sound pool
|
void |
playBeepSoundAndVibrate()
Plays defined sound if any and vibrate if set.
|
void |
release()
Be sure to call this to free memory when not needed anymore
|
void |
setBeepResId(int beepResId)
Sets the raw audio resource id to be played.
|
void |
setVibrate(boolean vibrate)
Sets if vibration is enabled or not.
|
public BeepVibrateManager(android.content.Context ctx)
ctx
- Context. Provide AppContext to avoid leakspublic void setVibrate(boolean vibrate)
vibrate
- boolean true to enable, false to disablepublic void setBeepResId(int beepResId)
beepResId
- public void initBeepManager()
public void playBeepSoundAndVibrate()
public void release()