Table Of Contents

Previous topic

EasyARBehaviour Class

Next topic

Frame Class

Engine Class

Public Types

enum RotationOffsetMode{R0, R90, R180, R270}

Public Functions

static bool Initialize(string key, IntPtr classloader, IntPtr activity)
static void Resume()
static void Pause()
static string VersionString()
static string Name()
static void OnApplicationQuit()
static void SetRotationOffset(RotationOffsetMode offset)

Public Events

event Action<string> ExceptionEvent (until 2.0.0)

enum RotationOffsetMode

Constant Value Description
R0 0 Used for customized hardware to set 0 degrees offset.
R90 90 Used for customized hardware to set 90 degrees offset.
R180 180 Used for customized hardware to set 180 degrees offset.
R270 270 Used for customized hardware to set 270 degrees offset.

static bool Initialize(string key, IntPtr classloader, IntPtr activity)

Initializes EasyAR with key. classloader & activity are required only in Android. EasyAR must be initialized before other functions start to work.

static void Resume()

Handles the app onResume, resumes internal tasks.

static void Pause()

Handles the app onPause, pauses internal tasks.

static string VersionString()

Returns EasyAR version string.

static string Name()

Returns EasyAR product name.

static void OnApplicationQuit()

Handles the app quit.

static void SetRotationOffset(RotationOffsetMode offset)

Set rotation for customized hardware.

event Action<string> ExceptionEvent (until 2.0.0)

The exception event. Exceptions will be thrown when key or product version do not meet request. If not used, EasyAR will default print all exception messages using Debug.LogError.

EasyAR 2.1 and later versions are exception free, so this interface only exists in the 2.0.0 version.