Table of Contents

Class TaskPriorityChangeEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The TaskPriorityChangeEvent is the interface for the prioritychange event.

[Value("TaskPriorityChangeEvent")]
public class TaskPriorityChangeEvent : Event
Inheritance
TaskPriorityChangeEvent
Inherited Members

Remarks

Constructors

TaskPriorityChangeEvent()

public TaskPriorityChangeEvent()

TaskPriorityChangeEvent(string, TaskPriorityChangeEventInit)

The TaskPriorityChangeEvent() constructor creates a new TaskPriorityChangeEvent object.

public TaskPriorityChangeEvent(string type, TaskPriorityChangeEventInit priorityChangeEventInitDict)

Parameters

type string
priorityChangeEventInitDict TaskPriorityChangeEventInit

Remarks

This object is created with a value indicating the previous priority of the task: the priority before it changed and this event was fired.

See also on MDN

Properties

PreviousPriority

The previousPriority read-only property of the TaskPriorityChangeEvent interface returns the priority of the corresponding TaskSignal before it was changed and this prioritychange event was emitted.

[Value("previousPriority")]
public TaskPriority PreviousPriority { get; }

Property Value

TaskPriority

A string, indicating the associated task's priority before it was changed.
This will be one of: "user-blocking", "user-visible", "background".

Remarks

This is the value that was set in the TaskPriorityChangeEvent constructor argument options.previous. <!-- link? -->

The new priority of the task can be read from event.target.priority.

See also on MDN