Udostępnij za pośrednictwem


AssociationInfo.AssociatedDevice Property

Definition

Companion device that was associated.

public Android.Companion.AssociatedDevice? AssociatedDevice { [Android.Runtime.Register("getAssociatedDevice", "()Landroid/companion/AssociatedDevice;", "", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getAssociatedDevice", "()Landroid/companion/AssociatedDevice;", "", ApiSince=34)>]
member this.AssociatedDevice : Android.Companion.AssociatedDevice

Property Value

the companion device that was associated, or null if the device is self-managed or this association info was retrieved from persistent storage.

Attributes

Remarks

Companion device that was associated. Note that this field is not persisted across sessions. Device can be one of the following types:

<ul> <li>for classic Bluetooth - AssociatedDevice#getBluetoothDevice()</li> <li>for Bluetooth LE - AssociatedDevice#getBleDevice()</li> <li>for WiFi - AssociatedDevice#getWifiDevice()</li> </ul>

Java documentation for android.companion.AssociationInfo.getAssociatedDevice().

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