ObservingDevicePresenceRequest.Builder.SetAssociationId(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the association id to be observed for device presence.
[Android.Runtime.Register("setAssociationId", "(I)Landroid/companion/ObservingDevicePresenceRequest$Builder;", "", ApiSince=36)]
public Android.Companion.ObservingDevicePresenceRequest.Builder SetAssociationId(int associationId);
[<Android.Runtime.Register("setAssociationId", "(I)Landroid/companion/ObservingDevicePresenceRequest$Builder;", "", ApiSince=36)>]
member this.SetAssociationId : int -> Android.Companion.ObservingDevicePresenceRequest.Builder
Parameters
- associationId
- Int32
The association id for observing device presence.
Returns
- Attributes
Remarks
Set the association id to be observed for device presence.
The provided device must be associated with the calling app before calling this method if using this API. Caller must implement a single CompanionDeviceService which will be bound to and receive callbacks to CompanionDeviceService.onDevicePresenceEvent(DevicePresenceEvent).
Calling apps must use either setUuid(ParcelUuid) or this API, but not both.
Android reference for android.companion.ObservingDevicePresenceRequest.Builder.setAssociationId.
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.