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
  • Field Details

    • mAlreadyConnected

      protected final boolean mAlreadyConnected
    • mDeviceType

      protected final DeviceType mDeviceType
    • mInfo

    • resultID

      public final int resultID
      Unique 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> CREATOR
      CREATOR 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 device
      type - type of device
      info - device information
      alreadyConnected - true if device is already connected to another application in the plugin service
    • MultiDeviceSearchResult

      protected MultiDeviceSearchResult(android.os.Parcel source)
  • Method Details

    • getAntDeviceType

      public DeviceType 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

      public 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.
      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 interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable