There is a need to find out what's new in AIR 2.0. All described Christian Cantrell, and I - translated.
Multi-touch - touch events are similar to mouse events, but you can handle several such movements at once — for example, with two fingers. While Multi-touch is supported only on windows-platform.
Hence, Gestures support (gestures) —that is, an air application can support both touch movements and gestures — they are processed within a single event and are essentially a synthesis of touch movements. Gestures are currently supported on the win- and mac-platform. And what are the gestures are:
')
- GESTURE_TWO_FINGER_TAP (print with two fingers);
- GESTURE_PRESS_AND_TAP (one finger is “pressed”, the other one prints, and on some devices it calls the context menu);
- GESTURE_PAN;
- GESTURE_ROTATE;
- GESTURE_SWIPE;
- GESTURE_ZOOM.
New API File.openWithDefaultApplication () - allows you to open files that are associated with an air application. The solution is cross-platform, and allows you to integrate one application with another.
A new security dialog at startup - the File.downloaded property will allow you to set the flag that the file was downloaded from the network and the OS should offer the user a dialog box to open the file. Supported on win-and mac-platform, including Windows XP SP2 and above, as well as Mac OS 10.5 (Leopard) and above. And on Linux, there is simply no such concept, so there’s nothing to catch.
A new API for mounting and unmounting disks, including obtaining information about the disks themselves, their names, file system type, and whether they are removable, writable, and the like.
Native processes are extremely useful if you want to invoke .exe, .dmg or Debian and Red Hat Package Manager. This thing is possible to use only if your air application is compiled as .exe or .dmg (and a special tool is publicly available).
The so-called File Promises - that is, files that do not yet exist, but you can drag them somewhere, or if they exist on a remote server - you drag them from the server to a folder on your computer, and they will automatically be downloaded and placed to the specified folder.
Server sockets - I suppose that whoever does programming knows what it is, but if you don’t know - I’m explaining: you can listen to server sockets, and you can’t do without it if you decide to write a P2P application, or what any protocol like ftp.
Datagram sockets are UDP sockets.
Encrypted sockets - everything is clear, sockets will be encrypted using TLS / SSL.
IPv6 support.
The ability to access information on low-level networks - you can get information about the interfaces on the machine, get the properties, their IP and name.
Bind Sockets for special network interfaces is already for cool programmers: you can organize the binding of information from special network interfaces - well, that is, you can easily (as I understand it) organize the receipt of exchange information or something else like that.
DNSResolver is also a network thing that will allow you to get information about DNS records of the following types:
- ARecord (IPv4 address for the host);
- AAAARecord (IPv6 address for host)
- MXRecord (mx-record for the host);
- PTRRecord (hostname for the IP address);
- SRVRecord (service record for service).
Configuring the timeout for the HTTP request — URLRequest.idleTimeout and URLRequestDefaults.idleTimeout — in milliseconds.
Local audio encoding support - access to audio data directly from a microphone, and this data can be immediately sent to a remote server - that is, simply put, you can organize audio broadcasting.
Global error handling is also an innovation that will allow you to write handlers to handle any uncomfortable errors in one place.
Improving accessibility - AIR 2.0 supports screen readers.
NativeWindow and Bitmap Size - the maximum window size in your air application can now be 4094x4094.
Improved printing support:
- vector for mac-platform;
- comprehensive transparency.
Nested transaction support - SQLite now supports nested transactions.
In AIR 2.0, you can control the events that cause the computer to shut down: now you will not lose data after any program has caused the computer to shut down.
Updated WebKit:
- support for Nitro JavaScript Engine;
- CSS3 modules;
- styles for scrollbars.
In addition, the AIR 2.0 development team was able to optimize memory consumption and CPU load.