setJumpList
Sets or removes a custom Jump List for the application, and returns one of the following strings:
ok
- Nothing went wrong.error
- One or more errors occurred, enable runtime logging to figure out the likely cause.invalidSeparatorError
- An attempt was made to add a separator to a custom category in the Jump List. Separators are only allowed in the standardTasks
category.fileTypeRegistrationError
- An attempt was made to add a file link to the Jump List for a file type the app isn't registered to handle.customCategoryAccessDeniedError
- Custom categories can't be added to the Jump List due to user privacy or group policy settings.
If categories
is null
the previously set custom Jump List (if any) will be replaced by the standard Jump List for the app (managed by Windows).
!NOTE If a
JumpListCategory
object has neither thetype
nor thename
property set then itstype
is assumed to betasks
. If thename
property is set but thetype
property is omitted then thetype
is assumed to becustom
.
!NOTE Users can remove items from custom categories, and Windows will not allow a removed item to be added back into a custom category until after the next successful call to
app.setJumpList(categories)
. Any attempt to re-add a removed item to a custom category earlier than that will result in the entire custom category being omitted from the Jump List. The list of removed items can be obtained usingapp.getJumpListSettings()
.
!NOTE The maximum length of a Jump List item's
description
property is 260 characters. Beyond this limit, the item will not be added to the Jump List, nor will it be displayed.
Here's a very simple example of creating a custom Jump List: