WakeLockSentinel Class
A wake lock acquired by WakeLock.Request (https://w3c.github.io/screen-wake-lock/#the-wakelocksentinel-interface): its release event is fired when it is released by WakeLockSentinel.Release or by the user agent.
public sealed class WakeLockSentinel : EventTarget- Inheritance
EventTargetWakeLockSentinel
Properties
| Name | Description |
|---|---|
| OnRelease | Gets or sets the event handler of the release event. |
| Released | Gets whether the lock was released. |
| Type | Gets the type of the lock. |
OnRelease
WakeLock.csGets or sets the event handler of the release event.
Property value
See also
Released
WakeLock.csGets whether the lock was released.
public bool Released { get; }Type
WakeLock.csGets the type of the lock.
public WakeLockType Type { get; }Methods
| Name | Description |
|---|---|
| Release() | Releases the lock (https://w3c.github.io/screen-wake-lock/#the-release-method); the release event is fired before the method returns. |
Release()
WakeLock.csReleases the lock (https://w3c.github.io/screen-wake-lock/#the-release-method); the release event is fired before the method returns.
public Task Release()