Feb 11, 2016
I've recently been experimenting with adding 3D touch quick action menus to some of my apps.
These quick actions can be a very useful way to provide fast access to specific sections of an app, and are relatively easy to implement in a Cordova app through the use of a Cordova plugin.
At the time of writing this, the only devices that can use these quick action menus are the iPhone 6S and iPhone 6S Plus, but since 3D touch technology will presumably spread to all iPhone, iPad and iPod touch devices at some time in the future, it's probably a good feature to add to your app (assuming your app is one that would benefit from quick actions).
There appears to be several 3D touch related Cordova plugins available, but I've been testing out the great 'cordova-plugin-3dtouch' by Eddy Verbruggen (Thanks Eddy!) and it has worked flawlessly so far.
The plugin provides three different ways to customize the appearance of the quick actions:
Apple's official documentation in relation to the built-in icons (UIApplicationShortcutIcon) can be found here, but I thought it might be handy to create a concise reference table with all of the icons that can be used.
So here it is:
iconType | Icon | Available Since |
---|---|---|
Add | iOS 9.0 | |
Alarm | iOS 9.1 | |
Audio | iOS 9.1 | |
Bookmark | iOS 9.1 | |
CapturePhoto | iOS 9.1 | |
CaptureVideo | iOS 9.1 | |
Cloud | iOS 9.1 | |
ComposeNew | iOS 9.0 | |
Confirmation | iOS 9.1 | |
Contact | iOS 9.1 | |
Date | iOS 9.1 | |
Favorite | iOS 9.1 | |
Home | iOS 9.1 | |
Invitation | iOS 9.1 | |
Location | iOS 9.0 | |
Love | iOS 9.1 | |
iOS 9.1 | ||
MarkLocation | iOS 9.1 | |
Message | iOS 9.1 | |
Pause | iOS 9.0 | |
Play | iOS 9.0 | |
Prohibit | iOS 9.1 | |
Search | iOS 9.0 | |
Share | iOS 9.0 | |
Shuffle | iOS 9.1 | |
Task | iOS 9.1 | |
TaskCompleted | iOS 9.1 | |
Time | iOS 9.1 | |
Update | iOS 9.1 |
All of these icons are the ones provided by Apple, reproduced here purely for developer convenience. More details can be found in Apple's documentation. Some of these icons have been available since iOS 9.0, but most of them have only been available since iOS 9.1. All of the icons are present in iOS 9.2, but new versions of iOS could change them or add more.
comments powered by Disqus