Share via


CardEmulation.UnsetPreferredService(Activity) Method

Definition

Unsets the preferred service for the specified Activity.

[Android.Runtime.Register("unsetPreferredService", "(Landroid/app/Activity;)Z", "")]
public bool UnsetPreferredService (Android.App.Activity? activity);
[<Android.Runtime.Register("unsetPreferredService", "(Landroid/app/Activity;)Z", "")>]
member this.UnsetPreferredService : Android.App.Activity -> bool

Parameters

activity
Activity

The activity which the service was registered for

Returns

true when successful

Attributes

Remarks

Unsets the preferred service for the specified Activity.

Note that the specified Activity must still be in resumed state at the time of this call. A good place to call this method is in your Activity#onPause implementation.

Java documentation for android.nfc.cardemulation.CardEmulation.unsetPreferredService(android.app.Activity).

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