public static class MultiDeviceSearch.MultiDeviceSearchResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static |
CREATOR
CREATOR is used by Android parceling system.
|
int |
resultID
Unique identifier for this device.
|
Constructor and Description |
---|
MultiDeviceSearch.MultiDeviceSearchResult(int resultID,
DeviceType type,
AntPluginDeviceDbProvider.DeviceDbDeviceInfo info,
boolean alreadyConnected)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
int |
getAntDeviceNumber()
Get the ANT Device Number
|
DeviceType |
getAntDeviceType()
Get the ANT+ Device Type
|
java.lang.String |
getDeviceDisplayName()
Get the user's saved name for the device if it exists in the ANT+ Plugin Service database
or a default generated name based on the device number.
|
boolean |
isAlreadyConnected()
Indicates if device is already connected to another application
|
boolean |
isPreferredDevice()
Indicates if device is set as preferred in the user's ANT+ Plugin Service database
|
boolean |
isUserRecognizedDevice()
Indicates if device exists in the user's ANT+ Plugin Service database
|
void |
writeToParcel(Parcel dest,
int flags) |
public final int resultID
public static finalCREATOR
public MultiDeviceSearch.MultiDeviceSearchResult(int resultID, DeviceType type, AntPluginDeviceDbProvider.DeviceDbDeviceInfo info, boolean alreadyConnected)
resultID
- unique identifier for this devicetype
- type of deviceinfo
- device informationalreadyConnected
- true if device is already connected to another application in the plugin servicepublic DeviceType getAntDeviceType()
public int getAntDeviceNumber()
public boolean isAlreadyConnected()
public boolean isPreferredDevice()
public boolean isUserRecognizedDevice()
public java.lang.String getDeviceDisplayName()
public int describeContents()
public void writeToParcel(Parcel dest, int flags)
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.