/// <summary> /// Initialize Arx for this app.<br/> /// Uses the application name set in Project Settings as the applet name.<br/> /// On macOS uses the identifier set in Project Settings, otherwise uses "app.(company name).(app name)" as an identifier.<br/> /// If you want more control over these options use <see cref="LogiArxInit(string, string, ref logiArxCbContext)"/>. /// </summary> /// <param name="callback">Callback function, called when an Arx related event happens.</param> public static bool Init(ref logiArxCbContext callback) { var identifier = $"app.{Application.companyName}.{Application.productName}"; if (Application.identifier != null && Application.identifier.Length != 0) { identifier = Application.identifier; } return(LogiArxInit(identifier, Application.productName, ref callback)); }
//Common methods. Inatialize, Shutdown etc. bool Init(string identifier, string friendlyName, ref logiArxCbContext callback) { if (LogiArxInit(identifier, friendlyName, ref callback)) { return(true); } else { OnError("ARX NOT INITIALIZED: " + LastError); return(true); } }
public static extern bool LogiArxInit(String identifier, String friendlyName, ref logiArxCbContext callback);
public static extern bool LogiArxInit(String identifier, String friendlyName, ref logiArxCbContext callback);
public static extern bool LogiArxInitWithIcon(String identifier, String friendlyName, ref logiArxCbContext callback, byte[] iconBitmap);