-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDeviceInfoTest.as
22 lines (18 loc) · 996 Bytes
/
DeviceInfoTest.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package {
import com.kurst.cfwrk.system.constants.DeviceOrientation;
import com.kurst.cfwrk.system.DeviceCapabilities;
import flash.display.Sprite;
public class DeviceInfoTest extends Sprite {
public function DeviceInfoTest() {
DeviceCapabilities.init( stage , DeviceOrientation.LANDSCAPE );
trace( 'DeviceCapabilities.dpi: ' , DeviceCapabilities.dpi );
trace( 'DeviceCapabilities.screenInchesY: ' , DeviceCapabilities.screenInchesY());
trace( 'DeviceCapabilities.screenInchesX: ' , DeviceCapabilities.screenInchesX());
trace( 'DeviceCapabilities.isPhone: ' , DeviceCapabilities.isPhone());
trace( 'DeviceCapabilities.isDesktop: ' , DeviceCapabilities.isDesktop());
trace( 'DeviceCapabilities.isTablet: ' , DeviceCapabilities.isTablet());
trace( 'DeviceCapabilities.isLandscape: ' , DeviceCapabilities.isLandscape());
trace( 'DeviceCapabilities.deviceInformation: ' , DeviceCapabilities.deviceInformation().toString() );
}
}
}