Language

AssociationRequest.Builder.SetDeviceProfile(String) Method

Definition

If set, association will be requested as a corresponding kind of device

[Android.Runtime.Register("setDeviceProfile", "(Ljava/lang/String;)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=31)]
public Android.Companion.AssociationRequest.Builder SetDeviceProfile(string deviceProfile);
[<Android.Runtime.Register("setDeviceProfile", "(Ljava/lang/String;)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=31)>]
member this.SetDeviceProfile : string -> Android.Companion.AssociationRequest.Builder

Parameters

deviceProfile
String

This value cannot be null. Value is one of the following: AssociationRequest.DEVICE_PROFILE_WATCH; AssociationRequest.DEVICE_PROFILE_COMPUTER; AssociationRequest.DEVICE_PROFILE_AUTOMOTIVE_PROJECTION; AssociationRequest.DEVICE_PROFILE_APP_STREAMING; AssociationRequest.DEVICE_PROFILE_GLASSES; AssociationRequest.DEVICE_PROFILE_NEARBY_DEVICE_STREAMING

Returns

Attributes

Remarks

If set, association will be requested as a corresponding kind of device

Android reference for android.companion.AssociationRequest.Builder.setDeviceProfile.

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