NfcFCardEmulation.DisableService(Activity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.