Share via


NfcFCardEmulation.DisableService(Activity) Method

Definition

Disables the service for the specified Activity.

[Android.Runtime.Register("disableService", "(Landroid/app/Activity;)Z", "", ApiSince=24)]
public bool DisableService (Android.App.Activity? activity);
[<Android.Runtime.Register("disableService", "(Landroid/app/Activity;)Z", "", ApiSince=24)>]
member this.DisableService : Android.App.Activity -> bool

Parameters

activity
Activity

The activity which the service was registered for

Returns

true when successful

Attributes

Remarks

Disables the 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.NfcFCardEmulation.disableService(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