Package com.dsi.ant.channel
Class BackgroundScanState
java.lang.Object
com.dsi.ant.channel.BackgroundScanState
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<BackgroundScanState>
For ParcelableFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
hashCode()
boolean
Have any channels been assigned with the Background Scan extended assignment setboolean
Is any background scanning channel open.toString()
void
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
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() -
equals
-
toString
-
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
-