public static class BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent extends Event
BluetoothEnabler.BluetoothEnablerFilter.onEvent(BluetoothEnablerEvent)
so that the programmer can assign logic to the user's decision to
enable or disable certain required permissions and settings. Each event contains a BluetoothEnabler.BluetoothEnablerFilter.Stage
which holds the current
enabling stage and a BluetoothEnabler.BluetoothEnablerFilter.Status
of that stage. Stages which haven't been performed yet start off as
BluetoothEnabler.BluetoothEnablerFilter.Status.NULL
, stages skipped are BluetoothEnabler.BluetoothEnablerFilter.Status.SKIPPED
and
stages that don't need anything done are BluetoothEnabler.BluetoothEnablerFilter.Status.ALREADY_ENABLED
. Otherwise, the status of the stage is whatever the user selected.public BluetoothEnabler.BluetoothEnablerFilter.Stage stage()
BluetoothEnabler.BluetoothEnablerFilter.Stage
associated with this event.public BluetoothEnabler.BluetoothEnablerFilter.Stage nextStage()
BluetoothEnabler.BluetoothEnablerFilter.Stage
following the Stage for this event.public BluetoothEnabler.BluetoothEnablerFilter.Stage previousStage()
BluetoothEnabler.BluetoothEnablerFilter.Stage
following the Stage for this event.public BluetoothEnabler.BluetoothEnablerFilter.Status status()
BluetoothEnabler.BluetoothEnablerFilter.Status
of the current Stage.public android.app.Activity activity()
Activity
associated with the Eventpublic BluetoothEnabler enabler()
BluetoothEnabler
associated with the Event.public java.lang.Object appData()
null
.public BleManager bleManager()
public boolean isDone()
public boolean isEnabled(BluetoothEnabler.BluetoothEnablerFilter.Stage stage)
BluetoothEnabler.BluetoothEnablerFilter.Stage
is enabled.public java.lang.String toString()
toString
in class java.lang.Object