Class BackgroundScanState

java.lang.Object
com.dsi.ant.channel.BackgroundScanState
All Implemented Interfaces:
android.os.Parcelable

public class BackgroundScanState extends Object implements android.os.Parcelable
The status of background scan on this ANT adapter. Only one channel can perform a background at a time (any other attempts to open a background scanning channel will fail with AntCommandFailedException reason AntCommandFailureReason.BACKGROUND_SCAN_IN_USE. Multiple channels may be configured as background scanning channels at the same time.
Since:
4.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<BackgroundScanState>
    For Parcelable

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
    int
     
    boolean
    Have any channels been assigned with the Background Scan extended assignment set
    boolean
    Is any background scanning channel open.
     
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<BackgroundScanState> CREATOR
      For Parcelable
      Since:
      4.0
  • Method Details

    • isConfigured

      public boolean isConfigured()
      Have any channels been assigned with the Background Scan extended assignment set
      Returns:
      True if any background scan channels are configured on this adapter.
      Since:
      4.0
    • isInProgress

      public boolean isInProgress()
      Is any background scanning channel open.
      Returns:
      True if any background scan channels are scanning on this adapter.
      Since:
      4.0
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Since:
      4.0
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Since:
      4.0
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      4.0
    • 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