Search completed in 1.23 seconds.
3 results for "onrelease":
WakeLockSentinel - Web APIs
entinel instances of a given wake lock type will cause the underlying platform wake lock to be released. Properties This interface provides the following properties. type Read only Returns a String representation of the currently acquired WakeLockSentinel type. Return values are: 'screen': A screen wake lock. Prevents devices from dimming or locking the screen. ...
...The sentinel can be acquired or released via appropriate interactions. ...
NPEvent - Archive of obsolete content
ers Integer. Flags. XEvent NPEvent on Unix/X11 NPEvent is defined as an XEvent data structure, which is a union of a number of different X11 event structures. type The type member is an int representing an event type, and indicating which structure is relevant. The event type may be any of the ollowing: GraphicsExpose FocusIn FocusOut EnterNotify LeaveNotify MotionNotify ButtonPress Butt
onRelease KeyPress KeyRelease Description Microsoft Windows Description The type NPEvent represents an event passed by NPP_HandleEvent() to a windowless plug-in. For information about these events, see your Microsoft Windows documentation. Mac OS Description The NPEvent object represents an event passed by NPP_HandleEvent() to a windowless plug-in. This structure is defined as EventRecord, the event t...
WakeLockSentinel.release() - Web APIs
The release() method of the WakeLockSentinel interface releases the WakeLockSentinel, returning a Promise that is resolved once the sentinel has been successfully released. Syntax WakeLockSentinel.release().then(...); Parameters None. Return value Returns a Promise that resolves with undefined Exceptions No exceptions are thrown. You should always listen for the
onrelease event to check if a wake lock has been released. Examples In this example, when a user clicks a button the WakeLockSentinel is released. wakeLockOffButton.addEventListener('click', () => { WakeLockSentinel.release(); }) Specifications Specification Status Comment Screen Wake Lock APIThe definition of 'release()' in that specification. Unknown Initial definition. ...