예제 #1
0
        /// <summary>
        /// Gets the platform specific AR service
        /// </summary>
        /// <param name="service">The found service if defined</param>
        /// <returns><c>true</c> if the service has been found; otherwise, <c>false</c>.</returns>
        internal static bool GetService(out ARMobileService service)
        {
            service = WaveServices.GetService <ARMobileService>(false);

            if (service == null)
            {
#if IOS
                service = new ARKitService();
                WaveServices.RegisterService(service);
#elif ANDROID
                service = new ARCoreService();
                WaveServices.RegisterService(service);
#endif
            }

            return(service != null);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ARKitSessionDelegate"/> class.
 /// </summary>
 /// <param name="session">The <see cref="ARKitService"/> instance</param>
 public ARKitSessionDelegate(ARKitService session)
 {
     this.service = session;
     this.supportARKitOnePointFive = UIDevice.CurrentDevice.CheckSystemVersion(11, 3);
 }