public enum StandardGattService extends Enum<StandardGattService>
Modifier and Type | Method and Description |
---|---|
static StandardGattService |
getByNumber(int number)
Get a
StandardGattService instance by an assigned number. |
static StandardGattService |
getByUuid(String uuid)
Get a
StandardGattService instance by a UUID. |
static StandardGattService |
getByUuid(UUID uuid)
Get a
StandardGattService instance by a UUID. |
String |
getName()
Get the specification name.
|
int |
getNumber()
Get the assigned number.
|
String |
getShortType()
Get the specification type without the common prefix
"org.bluetooth.service." . |
String |
getType()
Get the specification type.
|
static StandardGattService |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardGattService[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardGattService ALERT_NOTIFICATION_SERVICE
public static final StandardGattService AUTOMATION_IO
public static final StandardGattService BATTERY_SERVICE
public static final StandardGattService BLOOD_PRESSURE
public static final StandardGattService BODY_COMPOSITION
public static final StandardGattService BOND_MANAGEMENT
public static final StandardGattService CONTINUOUS_GLUCOSE_MONITORING
public static final StandardGattService CURRENT_TIME_SERVICE
public static final StandardGattService CYCLING_POWER
public static final StandardGattService CYCLING_SPEED_AND_CADENCE
public static final StandardGattService DEVICE_INFORMATION
public static final StandardGattService ENVIRONMENTAL_SENSING
public static final StandardGattService GENERIC_ACCESS
public static final StandardGattService GENERIC_ATTRIBUTE
public static final StandardGattService GLUCOSE
public static final StandardGattService HEALTH_THERMOMETER
public static final StandardGattService HEART_RATE
public static final StandardGattService HTTP_PROXY
public static final StandardGattService HUMAN_INTERFACE_DEVICE
public static final StandardGattService IMMEDIATE_ALERT
public static final StandardGattService INDOOR_POSITIONING
public static final StandardGattService INTERNET_PROTOCOL_SUPPORT
public static final StandardGattService LINK_LOSS
public static final StandardGattService LOCATION_AND_NAVIGATION
public static final StandardGattService NEXT_DST_CHANGE_SERVICE
public static final StandardGattService OBJECT_TRANSFER
public static final StandardGattService PHONE_ALERT_STATUS_SERVICE
public static final StandardGattService PULSE_OXIMETER
public static final StandardGattService REFERENCE_TIME_UPDATE_SERVICE
public static final StandardGattService RUNNING_SPEED_AND_CADENCE
public static final StandardGattService SCAN_PARAMETERS
public static final StandardGattService TRANSPORT_DISCOVERY
public static final StandardGattService TX_POWER
public static final StandardGattService USER_DATA
public static final StandardGattService WEIGHT_SCALE
public static StandardGattService[] values()
for (StandardGattService c : StandardGattService.values()) System.out.println(c);
public static StandardGattService valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
"Alert Notification Service"
.public String getShortType()
"org.bluetooth.service."
."alert_notification"
.public String getType()
"org.bluetooth.service.alert_notification"
.public int getNumber()
public static StandardGattService getByNumber(int number)
StandardGattService
instance by an assigned number.number
- An assigned number. For example, 0x1811.StandardGattService
instance that has the assigned number.
null
is returned if no instance has the assigned number.public static StandardGattService getByUuid(String uuid)
StandardGattService
instance by a UUID.uuid
- UUID. For example, "00001811-0000-1000-8000-00805f9b34fb"
.
Case-insensitive. Hyphens can be omitted.StandardGattService
instance that has the UUID.
null
is returned if no instance has the UUID.public static StandardGattService getByUuid(UUID uuid)
StandardGattService
instance by a UUID.uuid
- UUID.StandardGattService
instance that has the UUID.
null
is returned if no instance has the UUID.Copyright © 2016. All rights reserved.