BasicsBackgroundTasks

A collection of background task objects.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

count(
)
 → number
item(
index)
 → BackgroundTask
itemByName(
name)
 → BackgroundTask
itemByRange(
from, to)
 → BackgroundTask
nextItem(
obj)
 → BackgroundTask
toSource(
)
 → string
anyItem(
)
 → BackgroundTask
Returns any BackgroundTask in the collection.
count(
)
 → number
Displays the number of elements in the BackgroundTask.
everyItem(
)
 → BackgroundTask
Returns every BackgroundTask in the collection.
firstItem(
)
 → BackgroundTask
Returns the first BackgroundTask in the collection.
item(
index)
 → BackgroundTask
Returns the BackgroundTask with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → BackgroundTask
Returns the BackgroundTask with the specified ID.
id number The ID.
itemByName(
name)
 → BackgroundTask
Returns the BackgroundTask with the specified name.
name string The name.
itemByRange(
from, to)
 → BackgroundTask
Returns the BackgroundTasks within the specified range.
from The BackgroundTask, index, or name at the beginning of the range. Can accept: BackgroundTask, Long Integer or String.
to The BackgroundTask, index, or name at the end of the range. Can accept: BackgroundTask, Long Integer or String.
lastItem(
)
 → BackgroundTask
Returns the last BackgroundTask in the collection.
middleItem(
)
 → BackgroundTask
Returns the middle BackgroundTask in the collection.
nextItem(
obj)
 → BackgroundTask
Returns the BackgroundTask whose index follows the specified BackgroundTask in the collection.
obj BackgroundTask The BackgroundTask whose index comes before the desired BackgroundTask.
previousItem(
obj)
 → BackgroundTask
Returns the BackgroundTask with the index previous to the specified index.
obj BackgroundTask The index of the BackgroundTask that follows the desired BackgroundTask.
toSource(
)
 → string
Generates a string which, if executed, will return the BackgroundTask.