Skip to content

DigitalStrawberry/ANE-DeviceUtils

Repository files navigation

ANE-DeviceUtils

A simple native extension to retrieve basic device information.

Usage

Download the ANE from the bin directory or from the releases page and add it to your app's descriptor:

<extensions>
    <extensionID>com.digitalstrawberry.ane.deviceUtils</extensionID>
</extensions>

To retrieve an identifier for vendor (iOS) / ANDROID_ID (Android), call the idfv getter:

if(DeviceUtils.isSupported)
{
    trace(DeviceUtils.idfv);
}

You can also retrieve the device model, system name and version:

trace(DeviceUtils.model);
trace(DeviceUtils.systemName);
trace(DeviceUtils.systemVersion);

Changelog

August 23, 2017 (v1.0.2)

  • Changed structure of the iOS project

June 13, 2017 (v1.0.1)

  • Initialized FREObject variables to NULL (iOS)

April 27, 2017 (v1.0.0)

  • Public release