Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public static extern ApiArStatus arApplicationCheckAlgorithm(IntPtr appContextd, ApiAlgorithmType type, ApiAlgorithmMode mode);
 public static extern void arConfigSetAlgorithmMode(IntPtr config,
                                                    ApiAlgorithmType algorithmType, ApiAlgorithmMode algorithm_mode);
Esempio n. 4
0
 public static ApiArStatus CheckAlgorithm(ApiAlgorithmType type, ApiAlgorithmMode mode)
 {
     return(NativeSession.CheckAlgorithm(type, mode));
 }