Class MultiDeviceSearch.MultiDeviceSearchResult
java.lang.Object
com.dsi.ant.plugins.antplus.pccbase.MultiDeviceSearch.MultiDeviceSearchResult
- All Implemented Interfaces:
android.os.Parcelable
- Direct Known Subclasses:
AntPlusBikeSpdCadCommonPcc.MultiDeviceSearchSpdCadResult
- Enclosing class:
- MultiDeviceSearch
public static class MultiDeviceSearch.MultiDeviceSearchResult
extends Object
implements android.os.Parcelable
Search Result Information
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<MultiDeviceSearch.MultiDeviceSearchResult>
CREATOR is used by Android parceling system.protected final boolean
protected final DeviceType
protected final AntPluginDeviceDbProvider.DeviceDbDeviceInfo
final int
Unique identifier for this device.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionMultiDeviceSearchResult
(int resultID, DeviceType type, AntPluginDeviceDbProvider.DeviceDbDeviceInfo info, boolean alreadyConnected) Constructorprotected
MultiDeviceSearchResult
(android.os.Parcel source) -
Method Summary
Modifier and TypeMethodDescriptionint
int
Get the ANT Device NumberGet the ANT+ Device TypeGet 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
Indicates if device is already connected to another applicationboolean
Indicates if device is set as preferred in the user's ANT+ Plugin Service databaseboolean
Indicates if device exists in the user's ANT+ Plugin Service databasevoid
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
mAlreadyConnected
protected final boolean mAlreadyConnected -
mDeviceType
-
mInfo
-
resultID
public final int resultIDUnique identifier for this device. This id is consistent across the existence of this MultiDeviceSearch instance. -
CREATOR
public static final android.os.Parcelable.Creator<MultiDeviceSearch.MultiDeviceSearchResult> CREATORCREATOR is used by Android parceling system.
-
-
Constructor Details
-
MultiDeviceSearchResult
public MultiDeviceSearchResult(int resultID, DeviceType type, AntPluginDeviceDbProvider.DeviceDbDeviceInfo info, boolean alreadyConnected) Constructor- Parameters:
resultID
- unique identifier for this devicetype
- type of deviceinfo
- device informationalreadyConnected
- true if device is already connected to another application in the plugin service
-
MultiDeviceSearchResult
protected MultiDeviceSearchResult(android.os.Parcel source)
-
-
Method Details
-
getAntDeviceType
Get the ANT+ Device Type- Returns:
- The ANT+ Device Type
-
getAntDeviceNumber
public int getAntDeviceNumber()Get the ANT Device Number- Returns:
- the ANT device number
-
isAlreadyConnected
public boolean isAlreadyConnected()Indicates if device is already connected to another application- Returns:
- true if device is already connected to another application in the plugin service
-
isPreferredDevice
public boolean isPreferredDevice()Indicates if device is set as preferred in the user's ANT+ Plugin Service database- Returns:
- true if device is set as preferred in the user's ANT+ Plugin Service database
-
isUserRecognizedDevice
public boolean isUserRecognizedDevice()Indicates if device exists in the user's ANT+ Plugin Service database- Returns:
- true if device exists in the user's ANT+ Plugin Service database
-
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.- Returns:
- 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.
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-