CardEmulation.SetRequireDeviceScreenOnForService 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 the device must have its screen on for the service to be activated.
[Android.Runtime.Register("setRequireDeviceScreenOnForService", "(Landroid/content/ComponentName;Z)V", "", ApiSince=36)]
public void SetRequireDeviceScreenOnForService(Android.Content.ComponentName service, bool enable);
[<Android.Runtime.Register("setRequireDeviceScreenOnForService", "(Landroid/content/ComponentName;Z)V", "", ApiSince=36)>]
member this.SetRequireDeviceScreenOnForService : Android.Content.ComponentName * bool -> unit
Parameters
- service
- ComponentName
The component name of the service. This value cannot be null.
- enable
- Boolean
- Attributes
Remarks
Sets whether the device must have its screen on for the service to be activated. This API overrides the android:requireDeviceScreenOn attribute declared in the service's manifest.
Android reference for android.nfc.cardemulation.CardEmulation.setRequireDeviceScreenOnForService.
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.