HERE Android SDK Developer's Guide

OnBatteryLevelListener

The interface OnBatteryLevelListener is a member of com.here.android.mpa.nlp.Nlp.

Interface Summary

public static abstract interface Nlp.OnBatteryLevelListener

   extends com.here.android.mpa.nlp.Nlp.ListenerBase

The remaining battery level event listener interface

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnBatteryLevelListener
Methods

public abstract void onBatteryLevel (Error error, int level)

A callback with the device battery level in percentage.

Interface Details

The remaining battery level event listener interface

Method Details

public abstract void onBatteryLevel (Error error, int level)

A callback with the device battery level in percentage. e.g. "What is my battery level"

Parameters:

  • error

    NONE if battery level can be determined; otherwise FAILED

  • level

    The battery level percentage of the remaining charge, [0..100] if error is NONE; otherwise -1.