com.siemens.mp.game
Class Vibrator

java.lang.Object
  extended bycom.siemens.mp.game.Vibrator

public class Vibrator
extends Object

This class gives basic access to the phone's vibrator. You can activate the vibrator either for a given period of time by using triggerVibrator method, or you can control the duration yourself by using the startVibrator and stopVibrator methods.


 Example:

    Vibrator.startVibrator();
    Thread.sleep(1000);
    Vibrator.stopVibrator();

 Alternative way:

    Vibrator.triggerVibrator(1000);


Constructor Summary
Vibrator()
           
 
Method Summary
static void startVibrator()
          Activates vibrator.
static void stopVibrator()
          Deactivates vibrator.
static void triggerVibrator(int duration)
          Activates the vibrator for a given time in milliseconds.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vibrator

public Vibrator()
Method Detail

triggerVibrator

public static void triggerVibrator(int duration)
Activates the vibrator for a given time in milliseconds.

Parameters:
duration - duration of the vibrator activation period, in milliseconds.

startVibrator

public static void startVibrator()
Activates vibrator.


stopVibrator

public static void stopVibrator()
Deactivates vibrator.



Generated on 2003-10-17For further information and updates, please visit Siemens mobile Developer Portal