Udostępnij za pośrednictwem


CompanionDeviceManager.AttachSystemDataTransport Method

Definition

Attach a bidirectional communication stream to be used as a transport channel for transporting system data between associated devices.

[Android.Runtime.Register("attachSystemDataTransport", "(ILjava/io/InputStream;Ljava/io/OutputStream;)V", "", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.DELIVER_COMPANION_MESSAGES")]
public void AttachSystemDataTransport (int associationId, System.IO.Stream in, System.IO.Stream out);
[<Android.Runtime.Register("attachSystemDataTransport", "(ILjava/io/InputStream;Ljava/io/OutputStream;)V", "", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.DELIVER_COMPANION_MESSAGES")>]
member this.AttachSystemDataTransport : int * System.IO.Stream * System.IO.Stream -> unit

Parameters

associationId
Int32

id of the associated device.

in
Stream

Already connected stream of data incoming from remote associated device.

out
Stream

Already connected stream of data outgoing to remote associated device.

Attributes

Remarks

Attach a bidirectional communication stream to be used as a transport channel for transporting system data between associated devices.

Java documentation for android.companion.CompanionDeviceManager.attachSystemDataTransport(int, java.io.InputStream, java.io.OutputStream).

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