Share via


CompanionDeviceManager.BuildAssociationCancellationIntent Method

Definition

Cancel the current association activity.

[Android.Runtime.Register("buildAssociationCancellationIntent", "()Landroid/content/IntentSender;", "", ApiSince=34)]
public Android.Content.IntentSender? BuildAssociationCancellationIntent ();
[<Android.Runtime.Register("buildAssociationCancellationIntent", "()Landroid/content/IntentSender;", "", ApiSince=34)>]
member this.BuildAssociationCancellationIntent : unit -> Android.Content.IntentSender

Returns

An IntentSender that the app should use to launch in order to cancel the current association activity

Attributes

Remarks

Cancel the current association activity.

The app should launch the returned intentSender by calling Activity#startIntentSenderForResult(IntentSender, int, Intent, int, int, int) to cancel the current association activity

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

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

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