Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Posting a new task notification is as easy as pie.
Available Methods
create
:Creates a new Task Notification.
Required fields:
id
(String),action
(String),title
(String).Optional fields:
message
(String),percentage
(Double),isLoading
(Bool).createWithPriority
:Creates a new Task Notification and inserts it at the start of the array.
This ensures it appears in the activity viewer even if there are other task notifications before it.
Note: This should only be used for important notifications!
Required fields:
id
(String),action
(String),title
(String).Optional fields:
message
(String),percentage
(Double),isLoading
(Bool).update
:Updates an existing task notification. It's important to pass the same
id
to update the correct task.Required fields:
id
(String),action
(String).Optional fields:
title
(String),message
(String),percentage
(Double),isLoading
(Bool).delete
:Deletes an existing task notification.
Required fields:
id
(String),action
(String).deleteWithDelay
:Deletes an existing task notification after a certain
TimeInterval
.Required fields:
id
(String),action
(String),delay
(Double).Important: When specifying the delay, ensure it's a double.
For example, '2' would be invalid because it would count as an integer, use '2.0' instead.
Related Issues
Checklist
Screenshots