|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.samsung.util.Vibration
The Vibration
class controls vibration of phone.
Method Summary | |
static boolean |
isSupported()
Gets an information whether vibration is supported by the device. |
static void |
start(int duration,
int strength)
Starts vibrating with duration(sec) and strength. |
static void |
stop()
Stops vibrating. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean isSupported()
vibration
is supported.public static void start(int duration, int strength)
duration
- is the duration of vibrating in seconds. Duration must be positive.strength
- is between 1 and 5. Strength will be applied only to specific devices.
Currently this is ignored.
java.lang.IllegalStateException
- Thrown if the device does not support Vibration
java.lang.IllegalArgumentException
- Thrown if duration
or strength is in invalid range.public static void stop()
java.lang.IllegalStateException
- Thrown if the device does not support Vibration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |