Added in API level 23
DeviceCallback
Stay organized with collections
Save and categorize content based on your preferences.
class DeviceCallback
Callback class used for clients to receive MIDI device added and removed notifications
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
onDeviceAdded(device: MidiDeviceInfo!) Called to notify when a new MIDI device has been added |
open Unit |
onDeviceRemoved(device: MidiDeviceInfo!) Called to notify when a MIDI device has been removed |
open Unit |
onDeviceStatusChanged(status: MidiDeviceStatus!) Called to notify when the status of a MIDI device has changed |
Public constructors
DeviceCallback
DeviceCallback()
Public methods
onDeviceAdded
Added in API level 23
open fun onDeviceAdded(device: MidiDeviceInfo!): Unit
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
open fun onDeviceRemoved(device: MidiDeviceInfo!): Unit
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
open fun onDeviceStatusChanged(status: MidiDeviceStatus!): Unit
Called to notify when the status of a MIDI device has changed
Parameters | |
---|---|
status |
MidiDeviceStatus!: a MidiDeviceStatus for the changed device |