Share via


CompanionDeviceManager.Associations Property

Definition

Calling this API requires a uses-feature PackageManager#FEATURE_COMPANION_DEVICE_SETUP declaration in the manifest

public System.Collections.Generic.IList<string> Associations { [Android.Runtime.Register("getAssociations", "()Ljava/util/List;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getAssociations", "()Ljava/util/List;", "", ApiSince=26)>]
member this.Associations : System.Collections.Generic.IList<string>

Property Value

a list of MAC addresses of devices that have been previously associated with the current app are managed by CompanionDeviceManager (ie. does not include devices managed by application itself even if they have a MAC address).

Attributes

Remarks

Calling this API requires a uses-feature PackageManager#FEATURE_COMPANION_DEVICE_SETUP declaration in the manifest

This member is deprecated. use #getMyAssociations()

Java documentation for android.companion.CompanionDeviceManager.getAssociations().

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