public static ApiArStatus CheckAlgorithm(ApiAlgorithmType type, ApiAlgorithmMode mode) { AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); AndroidJavaObject activity = unityPlayer.GetStatic <AndroidJavaObject>("currentActivity"); AndroidJavaObject context = activity.Call <AndroidJavaObject>("getApplicationContext"); return(ExternApi.arApplicationCheckAlgorithm(context.GetRawObject(), type, mode)); }
public static extern ApiArStatus arApplicationCheckAlgorithm(IntPtr appContextd, ApiAlgorithmType type, ApiAlgorithmMode mode);
public static extern void arConfigSetAlgorithmStreamMode(IntPtr config, ApiAlgorithmType algorithmType, ApiStreamMode streamMode);
public static extern void arConfigSetAlgorithmMode(IntPtr config, ApiAlgorithmType algorithmType, ApiAlgorithmMode algorithm_mode);
public static ApiArStatus CheckAlgorithm(ApiAlgorithmType type, ApiAlgorithmMode mode) { return(NativeSession.CheckAlgorithm(type, mode)); }