Capabilities.hx 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package flash.system;
  2. extern class Capabilities
  3. {
  4. static var hasAudio:Bool;
  5. static var hasMP3:Bool;
  6. static var hasAudioEncoder:Bool;
  7. static var hasVideoEncoder:Bool;
  8. static var screenResolutionX:Float;
  9. static var screenResolutionY:Float;
  10. static var screenDPI:Float;
  11. static var screenColor:String;
  12. static var pixelAspectRatio:Float;
  13. static var hasAccessibility:Bool;
  14. static var input:String;
  15. static var isDebugger:Bool;
  16. static var language:String;
  17. static var manufacturer:String;
  18. static var os:String;
  19. static var serverString:String;
  20. static var version:String;
  21. static var hasPrinting:Bool;
  22. static var playerType:String;
  23. static var hasStreamingAudio:Bool;
  24. static var hasScreenBroadcast:Bool;
  25. static var hasScreenPlayback:Bool;
  26. static var hasStreamingVideo:Bool;
  27. static var hasEmbeddedVideo:Bool;
  28. static var avHardwareDisable:Bool;
  29. static var localFileReadDisable:Bool;
  30. static var windowlessDisable:Bool;
  31. #if flash_lite
  32. static var hasCompoundSound:Bool;
  33. static var hasEmail:Bool;
  34. static var hasMMS:Bool;
  35. static var hasSMS:Bool;
  36. static var hasMFI:Bool;
  37. static var hasMIDI:Bool;
  38. static var hasSMAF:Bool;
  39. static var hasDataLoading:Bool;
  40. static var has4WayKeyAS:Bool;
  41. static var hasMouse:Bool;
  42. static var hasMappableSoftKeys:Bool;
  43. static var hasCMIDI:Bool;
  44. static var hasStylus:Bool;
  45. static var screenOrientation:String;
  46. static var hasSharedObjects:Bool;
  47. static var hasQWERTYKeyboard:Bool;
  48. static var softKeyCount:Float;
  49. static var audioMIMETypes:Array<String>;
  50. static var imageMIMETypes:Array<String>;
  51. static var videoMIMETypes:Array<String>;
  52. static var MIMETypes:String;
  53. #end
  54. private static function __init__() : Void untyped {
  55. flash.system.Capabilities = _global["System"]["capabilities"];
  56. }
  57. }