Language

AssociationRequest.Builder.SetForceConfirmation(Boolean) Method

Definition

Indicates whether the application requires the CompanionDeviceManager service to collect an explicit confirmation from the user before creating an association, even if such confirmation is not required from the service's perspective.

[Android.Runtime.Register("setForceConfirmation", "(Z)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=33)]
public Android.Companion.AssociationRequest.Builder SetForceConfirmation(bool forceConfirmation);
[<Android.Runtime.Register("setForceConfirmation", "(Z)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=33)>]
member this.SetForceConfirmation : bool -> Android.Companion.AssociationRequest.Builder

Parameters

forceConfirmation
Boolean

true to make the service collect an explicit user confirmation before it creates the association, even if the service does not require one; false to let the service decide whether a confirmation is necessary.

Returns

This builder, with the confirmation setting assigned.

Attributes

Remarks

Indicates whether the application requires the CompanionDeviceManager service to collect an explicit confirmation from the user before creating an association, even if such confirmation is not required from the service's perspective. Requires Manifest.permission.REQUEST_COMPANION_SELF_MANAGED

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

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