Skip to main content

Device

class Device

Class responsible for controlling device interactions.


public class Device

— Static Methods (8) —

NameDescription
int availableProcessors()Returns the number of all available processes of the device.
void openURL(String url)Opens a link with its URL defined to be the argument.
void openLink(String url)Opens a link with its URL defined to be the argument.
void vibrate(long pattern)Causes the device to vibrate.
void vibrate(final long[] pattern, int repeat)Causes the device to vibrate.
void stopVibrate()Stop performing the device vibration.
void setClipboard(String text)Sets the contents of the device clipboard.
String getClipboard()Returns a String with the contents of the device’s clipboard.