MCPcopy Create free account
hub / github.com/defold/defold / IsAndroidMarshmallowOrAbove

Function IsAndroidMarshmallowOrAbove

engine/script/src/script_sys.cpp:971–978  ·  view source on GitHub ↗

Android version 6 Marshmallow (API level 23) and up does not support getting hw adr programmatically (https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-hardware-id).

Source from the content-addressed store, hash-verified

969
970 // Android version 6 Marshmallow (API level 23) and up does not support getting hw adr programmatically (https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-hardware-id).
971 static bool IsAndroidMarshmallowOrAbove()
972 {
973 #ifdef ANDROID
974 const long android_marshmallow_api_level = 23;
975 return android_get_device_api_level() >= android_marshmallow_api_level;
976 #endif
977 return false;
978 }
979
980 /*# enumerate network interfaces
981 *

Callers 1

Sys_GetIfaddrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected