Travis Griggs
03/19/2020, 11:11 PMclass BLEConduit(context:Context):BleManager<BleManagerCallbacks>(context) {
...
protected inner class CallbackFoo:BleManagerGattCallback() {
...
}
}
My question is, do I have to do it with an inner class? What if wanted to have a “pluggable” GattCallback thing that used closures to localize the behavior?
My guess is no, because of the way this class/type is declared:
protected abstract class BleManagerGattCallback extends BleManagerHandler {
// All methods defined in the super class.
}