forked from hyperfiction/HypSystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroid.hx
More file actions
executable file
·39 lines (32 loc) · 811 Bytes
/
Android.hx
File metadata and controls
executable file
·39 lines (32 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package hypsystem.system.platform;
@:build(ShortCuts.mirrors())
class Android
{
/**
Allow to retrieve the device screenbuck name (mdpi,hdpi....)
@return The screen bucket name (String)
**/
@JNI public static function getScreenBucket():String
{
return "mdpi";
}
/**
Allow to scale a DP value by device density
@param dp : The value to be scale in DP (Int)
@return The scale value
**/
@JNI public static function dpToPx(dp:Int):Int
{
return dp;
}
/**
Allow to generate device UDID from the Android Build number and device type.
The generate UDID *should* be unique, but keep in mind than several chinese
android device have the same Build number due to a fabrication error.
@returns The generate UDID (String)
**/
@JNI public static function getUDID():String
{
return "";
}
}