Most visited

Recently visited

Added in API level 23

MidiSender

public abstract class MidiSender
extends Object

java.lang.Object
   ↳ android.media.midi.MidiSender
Known Direct Subclasses


由设备提供的接口允许将MidiReceivers连接到MIDI设备。

Summary

Public constructors

MidiSender()

Public methods

void connect(MidiReceiver receiver)

MidiReceiver连接到发件人

void disconnect(MidiReceiver receiver)

断开 MidiReceiver与发件人的连接

abstract void onConnect(MidiReceiver receiver)

打电话给 MidiReceiver连接到发件人

abstract void onDisconnect(MidiReceiver receiver)

打电话断开发件人的 MidiReceiver

Inherited methods

From class java.lang.Object

Public constructors

MidiSender

Added in API level 23
MidiSender ()

Public methods

connect

Added in API level 23
void connect (MidiReceiver receiver)

MidiReceiver连接到发件人

Parameters
receiver MidiReceiver: the receiver to connect

disconnect

Added in API level 23
void disconnect (MidiReceiver receiver)

断开 MidiReceiver与发件人的连接

Parameters
receiver MidiReceiver: the receiver to disconnect

onConnect

Added in API level 23
void onConnect (MidiReceiver receiver)

打电话给 MidiReceiver连接到发件人

Parameters
receiver MidiReceiver: the receiver to connect

onDisconnect

Added in API level 23
void onDisconnect (MidiReceiver receiver)

打电话断开 MidiReceiver与发件人的连接

Parameters
receiver MidiReceiver: the receiver to disconnect

Hooray!