public static class BleDeviceConfig.DefaultBondFilter extends java.lang.Object implements BondFilter
BondFilter
that unbonds for certain phone models upon discovery and disconnects.
See further explanation in documentation for BondFilter
.BondFilter.CharacteristicEvent, BondFilter.CharacteristicEventType, BondFilter.ConnectionBugEvent, BondFilter.Please, BondFilter.StateChangeEvent
Constructor and Description |
---|
DefaultBondFilter() |
Modifier and Type | Method and Description |
---|---|
BondFilter.Please |
onEvent(BondFilter.CharacteristicEvent e)
Called immediately before reading, writing, or enabling notification on a characteristic.
|
BondFilter.ConnectionBugEvent.Please |
onEvent(BondFilter.ConnectionBugEvent e)
Called after bonding to a device, and the state reports as being disconnected, but the connection is still actually alive.
|
BondFilter.Please |
onEvent(BondFilter.StateChangeEvent e)
Called after a device undergoes a change in its
BleDeviceState . |
boolean |
phoneHasBondingIssues()
Forwards
Utils.phoneHasBondingIssues() . |
public boolean phoneHasBondingIssues()
Utils.phoneHasBondingIssues()
. Override to make this true
for more (or fewer) phones.public BondFilter.Please onEvent(BondFilter.StateChangeEvent e)
BondFilter
BleDeviceState
.onEvent
in interface BondFilter
public BondFilter.Please onEvent(BondFilter.CharacteristicEvent e)
BondFilter
onEvent
in interface BondFilter
public BondFilter.ConnectionBugEvent.Please onEvent(BondFilter.ConnectionBugEvent e)
BondFilter
BondFilter.ConnectionBugEvent.Please
returned
here will tell the library to attempt to fix it or not.onEvent
in interface BondFilter