Class UserActivation
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The UserActivation interface provides information about whether a user is currently interacting with the page, or has completed an interaction since page load.
[Value("UserActivation")]
public class UserActivation
- Inheritance
-
UserActivation
- Inherited Members
Remarks
This API is only available in the window context and not exposed to workers.
Constructors
UserActivation()
public UserActivation()
Properties
HasBeenActive
The read-only hasBeenActive property of the UserActivation interface indicates whether the current window has {{Glossary("sticky activation","sticky user activation")}}.
[Value("hasBeenActive")]
public bool HasBeenActive { get; }
Property Value
- bool
A boolean.
Remarks
IsActive
The read-only isActive property of the UserActivation interface indicates whether the current window has {{Glossary("transient activation", "transient user activation")}}.
[Value("isActive")]
public bool IsActive { get; }
Property Value
- bool
A boolean.