Check for System Tray or Dock Icon Support in Adobe AIR


/ Published in: ActionScript 3
Save to your folder(s)

Used for for blog post: http://www.brettwidmann.com/2010/07/check-for-dock-icon-or-system-tray-icon-adobe-air


Copy this code and paste it in your HTML
  1. if(NativeApplication.supportsDockIcon)
  2. {
  3. //supports Dock Icons for Mac
  4. //insert logic here
  5. //examples: icon, menu options
  6. }
  7. else if(NativeApplication.supportsSystemTrayIcon)
  8. {
  9. //supports System Tray Icons for Windows
  10. //insert logic here
  11. //examples: icon, menu options
  12. }

URL: http://www.brettwidmann.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.