-
- All Implemented Interfaces:
-
android.os.Parcelable,com.polidea.rxandroidble2.internal.scan.ExternalScanSettingsExtension
public class ScanSettings implements Parcelable, ExternalScanSettingsExtension<ScanSettings>
Bluetooth LE scan settings are passed to startScan to define the parameters for the scan. RxAndroidBle Note: This class is basically copied from the Android AOSP. All of the exposed functionality is emulated by the software due to a lot of potential issues with different phones: https://code.google.com/p/android/issues/detail?id=158522 https://code.google.com/p/android/issues/detail?id=178614 https://code.google.com/p/android/issues/detail?id=228428
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceScanSettings.ScanModepublic @interfaceScanSettings.CallbackTypepublic @interfaceScanSettings.MatchNumpublic @interfaceScanSettings.MatchModepublic final classScanSettings.BuilderBuilder for ScanSettings.
-
Field Summary
Fields Modifier and Type Field Description public final static intSCAN_MODE_OPPORTUNISTICpublic final static intSCAN_MODE_LOW_POWERpublic final static intSCAN_MODE_BALANCEDpublic final static intSCAN_MODE_LOW_LATENCYpublic final static intCALLBACK_TYPE_ALL_MATCHESpublic final static intCALLBACK_TYPE_FIRST_MATCHpublic final static intCALLBACK_TYPE_MATCH_LOSTpublic final static intMATCH_NUM_ONE_ADVERTISEMENTpublic final static intMATCH_NUM_FEW_ADVERTISEMENTpublic final static intMATCH_NUM_MAX_ADVERTISEMENTpublic final static intMATCH_MODE_AGGRESSIVEpublic final static intMATCH_MODE_STICKYpublic final static Parcelable.Creator<ScanSettings>CREATOR
-
Method Summary
Modifier and Type Method Description intgetScanMode()intgetCallbackType()intgetMatchMode()intgetNumOfMatches()booleangetLegacy()longgetReportDelayMillis()Returns report delay timestamp based on the device clock. booleanshouldCheckLocationProviderState()voidwriteToParcel(Parcel dest, int flags)intdescribeContents()ScanSettingscopyWithCallbackType(int callbackType)Copies the current ScanSettings with changed callback type. -
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel -
Methods inherited from class com.polidea.rxandroidble2.internal.scan.ExternalScanSettingsExtension
copyWithCallbackType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getScanMode
int getScanMode()
-
getCallbackType
int getCallbackType()
-
getMatchMode
int getMatchMode()
-
getNumOfMatches
int getNumOfMatches()
-
getLegacy
boolean getLegacy()
-
getReportDelayMillis
long getReportDelayMillis()
Returns report delay timestamp based on the device clock.
-
shouldCheckLocationProviderState
boolean shouldCheckLocationProviderState()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
copyWithCallbackType
ScanSettings copyWithCallbackType(int callbackType)
Copies the current ScanSettings with changed callback type.
- Parameters:
callbackType- callback type of the copied object
-
-
-
-