다음을 통해 공유


MidiManager.GetDevicesForTransport(Int32) Method

Definition

Gets a list of connected MIDI devices by transport.

[Android.Runtime.Register("getDevicesForTransport", "(I)Ljava/util/Set;", "", ApiSince=33)]
public System.Collections.Generic.ICollection<Android.Media.Midi.MidiDeviceInfo> GetDevicesForTransport (int transport);
[<Android.Runtime.Register("getDevicesForTransport", "(I)Ljava/util/Set;", "", ApiSince=33)>]
member this.GetDevicesForTransport : int -> System.Collections.Generic.ICollection<Android.Media.Midi.MidiDeviceInfo>

Parameters

transport
Int32

The transport to be used. This is either TRANSPORT_MIDI_BYTE_STREAM or TRANSPORT_UNIVERSAL_MIDI_PACKETS.

Returns

a collection of MIDI devices

Attributes

Remarks

Gets a list of connected MIDI devices by transport. TRANSPORT_MIDI_BYTE_STREAM is used for MIDI 1.0 and is the most common. For devices with built in Universal MIDI Packet support, use TRANSPORT_UNIVERSAL_MIDI_PACKETS instead.

Java documentation for android.media.midi.MidiManager.getDevicesForTransport(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to