| Adobe AIR 1.1 |
|
|
Dock iconsContents [Hide]AIR supports dock icons when NativeApplication.supportsDockIcon is true. The NativeApplication.nativeApplication.icon property represents the application icon on the dock (not a window dock icon). Note: AIR does not support changing window icons on
the dock under Mac OS X. Also, changes to the application dock icon
only apply while an application is running — the icon reverts to
its normal appearance when the application terminates.
Dock icon menusYou can add commands to the standard dock menu by creating a NativeMenu object containing the commands and assigning it to the NativeApplication.nativeApplication.icon.menu property. The items in the menu are displayed above the standard dock icon menu items. Bouncing the dockYou can bounce the dock icon by calling the NativeApplication.nativeApplication.icon.bounce() method. If you set the bounce() priority parameter to informational, then the icon bounces once. If you set it to critical, then the icon bounces until the user activates the application. Constants for the priority parameter are defined in the NotificationType class. Note: The icon does not bounce if the application
is already active.
|