UserActivation

The UserActivation interface provides information about whether a user is currently interacting with the page, or has completed an interaction since page load.

MDN Reference

Properties

Link copied to clipboard
external val hasBeenActive: Boolean

The read-only hasBeenActive property of the UserActivation interface indicates whether the current window has sticky user activation.

Link copied to clipboard
external val isActive: Boolean

The read-only isActive property of the UserActivation interface indicates whether the current window has transient user activation.