Aracılığıyla paylaş


MidiDevice.OpenInputPort(Int32) Method

Definition

Called to open a MidiInputPort for the specified port number.

[Android.Runtime.Register("openInputPort", "(I)Landroid/media/midi/MidiInputPort;", "", ApiSince=23)]
public Android.Media.Midi.MidiInputPort? OpenInputPort (int portNumber);
[<Android.Runtime.Register("openInputPort", "(I)Landroid/media/midi/MidiInputPort;", "", ApiSince=23)>]
member this.OpenInputPort : int -> Android.Media.Midi.MidiInputPort

Parameters

portNumber
Int32

the number of the input port to open

Returns

the MidiInputPort if the open is successful, or null in case of failure.

Attributes

Remarks

Called to open a MidiInputPort for the specified port number.

An input port can only be used by one sender at a time. Opening an input port will fail if another application has already opened it for use. A MidiDeviceStatus can be used to determine if an input port is already open.

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