Share via


CompanionDeviceService.DetachSystemDataTransport(Int32) Method

Definition

Detach any bidirectional communication streams previously configured through #attachSystemDataTransport.

[Android.Runtime.Register("detachSystemDataTransport", "(I)V", "", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.DELIVER_COMPANION_MESSAGES")]
public void DetachSystemDataTransport (int associationId);
[<Android.Runtime.Register("detachSystemDataTransport", "(I)V", "", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.DELIVER_COMPANION_MESSAGES")>]
member this.DetachSystemDataTransport : int -> unit

Parameters

associationId
Int32

id of the associated device

Attributes

Remarks

Detach any bidirectional communication streams previously configured through #attachSystemDataTransport.

This method passes through to CompanionDeviceManager#detachSystemDataTransport(int) for your convenience if you get callbacks in this class.

Java documentation for android.companion.CompanionDeviceService.detachSystemDataTransport(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