# ShortcutParams
Object of options for addDynamicShortcut.
NOTE
This is an abstract type. Any object of this structure can be used where this type is used.
# Overview
The parameters used when creating and receiving a shortcut. When used for creation, it must include
at least the identifier
and title
properties.
# Properties
# icon
The icon to be displayed on the application shortcut. You can either use one of the constants like SHORTCUT_ICON_TYPE_COMPOSE, a local image specified by the image path or a reference to a Titanium.Contacts.Person.
If you are using one of the pre-defined constants, you can reference to the list of icons from Apple here.
If you are using an image file, enable slicing (adding the image to an asset catalog) for
the project. To enable slicing, add the use-app-thinning
element to the ios
element in the
tiapp.xml
file and set the value to true
. If you do not enable slicing, the image will
not be displayed.
<ti:app>
<ios>
<use-app-thinning>true</use-app-thinning>
</ios>
</ti:app>
The recommended size for image files is 35dp (@2px: 70dp, @3x: 105dp). Also check the Apple documentation
for more information on shortcut icons.
On iOS 13 and higher, with SDK 8.2.1 or higher, you can pass in the Ti.Blob instance returned from <Ti.UI.iOS.systemImage>.
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_COMPOSE
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_PLAY
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_PAUSE
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_ADD
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_LOCATION
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_SEARCH
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_SHARE
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_PROHIBIT
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_CONTACT
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_HOME
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_MARK_LOCATION
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_FAVORITE
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_LOVE
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_CLOUD
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_INVITATION
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_CONFIRMATION
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_MAIL
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_MESSAGE
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_DATE
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_TIME
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_CAPTURE_PHOTO
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_CAPTURE_VIDEO
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_TASK
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_TASK_COMPLETED
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_ALARM
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_BOOKMARK
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_SHUFFLE
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_AUDIO
- Titanium.UI.iOS.SHORTCUT_ICON_TYPE_UPDATE
# identifier
The unique key for the application shortcut. Equates to the underlying UIApplicationShortcutItemIconType
key
# subtitle
The subtitle displayed on the application shortcut.
The subtitle can be localized, see here for more infos.
# title
The title of the application shortcut.
The title can be localized, see here for more infos.
# userInfo
The userInfo of the application shortcut.
The userInfo is an object containing information about the shortcut like an ID or details about it.