public class DeviceInfo extends Object
Example Usage: deviceInfo.getFriendlyName();
Modifier and Type | Method and Description |
---|---|
ConnectionType |
getConnectionType()
Returns the notification device connection type to mobile computer.
|
NotificationManager.DeviceIdentifier |
getDeviceIdentifier()
Returns the Device Identifier.
|
DeviceType |
getDeviceType()
Returns the notification device type.
|
String |
getFriendlyName()
Returns the friendly name of the notification device.
|
String |
getModelNumber()
Returns the notification device model number.
|
boolean |
isBeepSupported()
Returns true if the notification device supports Beep feature else false.
|
boolean |
isConnected()
Returns true if the notification device is connected to the mobile computer else false.
|
boolean |
isDefaultDevice()
Returns true if it is a default notification device else false.
|
boolean |
isLEDSupported()
Returns true if the notification device supports LED feature else false.
|
boolean |
isVibrateSupported()
Returns true if the notification device supports Vibrate feature else false.
|
public String getFriendlyName()
Example Usage: String name = deviceInfo.getFriendlyName();
public String getModelNumber()
Example Usage: String model = deviceInfo.getModelNumber();
public DeviceType getDeviceType()
Example Usage: DeviceType deviceType = deviceInfo.getDeviceType();
public ConnectionType getConnectionType()
Example Usage: ConnectionType connectionType = deviceInfo.getConnectionType();
public NotificationManager.DeviceIdentifier getDeviceIdentifier()
Example Usage: DeviceIdentifier deviceIdentifier = deviceInfo.getDeviceIdentifier();
public boolean isDefaultDevice()
Example Usage: boolean defaultDevice = deviceInfo.isDefaultDevice();
public boolean isConnected()
Example Usage: boolean connected = deviceInfo.isConnected();
public boolean isLEDSupported()
Example Usage: boolean ledSupported = deviceInfo.isLEDSupported();
public boolean isBeepSupported()
Example Usage: boolean beepSupported = deviceInfo.isBeepSupported();
public boolean isVibrateSupported()
Example Usage: boolean vibrateSupported = deviceInfo.isVibrateSupported();