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:

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. }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.