Udostępnij za pośrednictwem


MidiDevice.ConnectPorts(MidiInputPort, Int32) Method

Definition

Connects the supplied MidiInputPort to the output port of this device with the specified port number.

[Android.Runtime.Register("connectPorts", "(Landroid/media/midi/MidiInputPort;I)Landroid/media/midi/MidiDevice$MidiConnection;", "", ApiSince=23)]
public Android.Media.Midi.MidiDevice.MidiConnection? ConnectPorts (Android.Media.Midi.MidiInputPort? inputPort, int outputPortNumber);
[<Android.Runtime.Register("connectPorts", "(Landroid/media/midi/MidiInputPort;I)Landroid/media/midi/MidiDevice$MidiConnection;", "", ApiSince=23)>]
member this.ConnectPorts : Android.Media.Midi.MidiInputPort * int -> Android.Media.Midi.MidiDevice.MidiConnection

Parameters

inputPort
MidiInputPort

the inputPort to connect

outputPortNumber
Int32

the port number of the output port to connect inputPort to.

Returns

MidiDevice.MidiConnection object if the connection is successful, or null in case of failure.

Attributes

Remarks

Java documentation for android.media.midi.MidiDevice.connectPorts(android.media.midi.MidiInputPort, 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