MidiManager.DeviceCallback


public static class MidiManager.DeviceCallback
extends Object

java.lang.Object
   ↳ android.media.midi.MidiManager.DeviceCallback


Callback class used for clients to receive MIDI device added and removed notifications

Summary

Public constructors

DeviceCallback()

Public methods

void onDeviceAdded(MidiDeviceInfo device)

Called to notify when a new MIDI device has been added

void onDeviceRemoved(MidiDeviceInfo device)

Called to notify when a MIDI device has been removed

void onDeviceStatusChanged(MidiDeviceStatus status)

Called to notify when the status of a MIDI device has changed

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

DeviceCallback

public DeviceCallback ()

Public methods

onDeviceAdded

Added in API level 23
public void onDeviceAdded (MidiDeviceInfo device)

Called to notify when a new MIDI device has been added

Parameters
device MidiDeviceInfo: a MidiDeviceInfo for the newly added device

onDeviceRemoved

Added in API level 23
public void onDeviceRemoved (MidiDeviceInfo device)

Called to notify when a MIDI device has been removed

Parameters
device MidiDeviceInfo: a MidiDeviceInfo for the removed device

onDeviceStatusChanged

Added in API level 23
public void onDeviceStatusChanged (MidiDeviceStatus status)

Called to notify when the status of a MIDI device has changed

Parameters
status MidiDeviceStatus: a MidiDeviceStatus for the changed device