PermissionStatus Class

The state of a permission (https://w3c.github.io/permissions/#permissionstatus-interface), returned by Permissions.Query. Its change event is fired when the state changes (e.g. when PermissionStore.SetState is called), while its document is fully active.

public sealed class PermissionStatus : EventTarget
Inheritance
EventTarget PermissionStatus

Properties

NameDescription
NameGets the name of the powerful feature.
OnChangeGets or sets the event handler of the change event.
StateGets the state of the permission.

Gets the name of the powerful feature.

public string Name { get; }

Gets or sets the event handler of the change event.

public Action<Event>? OnChange { get; set; }

Gets the state of the permission.

public PermissionState State { get; }