Package 

Class BatteryLevelDataCallback

  • All Implemented Interfaces:
    android.os.Parcelable , no.nordicsemi.android.ble.callback.DataReceivedCallback , no.nordicsemi.android.ble.callback.profile.ProfileDataCallback , no.nordicsemi.android.ble.common.profile.battery.BatteryLevelCallback

    
    public abstract class BatteryLevelDataCallback
    extends ProfileReadResponse implements BatteryLevelCallback
                        

    Data callback that parses 1-byte value into Battery Level value. The data must be in range 0-100 inclusive (in percent), otherwise onInvalidDataReceived is called.

    • Method Summary

      Modifier and Type Method Description
      void onDataReceived(@NonNull() BluetoothDevice device, @NonNull() Data data)
      • Methods inherited from class no.nordicsemi.android.ble.callback.profile.ProfileReadResponse

        isValid, onInvalidDataReceived, writeToParcel
      • Methods inherited from class no.nordicsemi.android.ble.response.ReadResponse

        describeContents, getBluetoothDevice, getRawData, onDataReceived
      • Methods inherited from class no.nordicsemi.android.ble.common.profile.battery.BatteryLevelCallback

        onBatteryLevelChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait