CardEmulation.SetShouldDefaultToObserveModeForService 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.
Sets whether when this service becomes the preferred service, if the NFC stack should enable observe mode or disable observe mode.
[Android.Runtime.Register("setShouldDefaultToObserveModeForService", "(Landroid/content/ComponentName;Z)Z", "", ApiSince=35)]
public bool SetShouldDefaultToObserveModeForService (Android.Content.ComponentName service, bool enable);
[<Android.Runtime.Register("setShouldDefaultToObserveModeForService", "(Landroid/content/ComponentName;Z)Z", "", ApiSince=35)>]
member this.SetShouldDefaultToObserveModeForService : Android.Content.ComponentName * bool -> bool
Parameters
- service
- ComponentName
The component name of the service
- enable
- Boolean
Whether the service should default to observe mode or not
Returns
whether the change was successful.
- Attributes
Remarks
Sets whether when this service becomes the preferred service, if the NFC stack should enable observe mode or disable observe mode. The default is to not enable observe mode when a service either the foreground default service or the default payment service so not calling this method will preserve that behavior.
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.