CardEmulation.UnsetPreferredService(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.
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.
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.