Esempio n. 1
0
            public override Promise <SessionAvailability> GetAvailabilityAsync()
            {
                var availability =
                    SessionAvailability.Installed | SessionAvailability.Supported;

                return(Promise <SessionAvailability> .CreateResolvedPromise(availability));
            }
Esempio n. 2
0
            public override Promise<SessionAvailability> GetAvailabilityAsync()
            {
                var result = NativeApi.UnityARKit_session_getAvailability();
                var retVal = SessionAvailability.None;
                if (result == NativeApi.Availability.Supported)
                    retVal = SessionAvailability.Installed | SessionAvailability.Supported;

                return Promise<SessionAvailability>.CreateResolvedPromise(retVal);
            }
Esempio n. 3
0
            public override Promise <SessionAvailability> GetAvailabilityAsync()
            {
                var availability =
#if PLATFORM_LUMIN
                    SessionAvailability.Installed | SessionAvailability.Supported;
#else
                    SessionAvailability.None;
#endif
                return(Promise <SessionAvailability> .CreateResolvedPromise(availability));
            }
        /// <summary>
        /// For internal use. Use <c>XRSessionSubsystem.GetAvailabilityAsync</c> instead.
        /// </summary>
        /// <param name="sessionSubsystem">The <c>XRSessionSubsystem</c> which this method extends.</param>
        /// <param name="callback">A callback to invoke when the availability has been determined.</param>
        public static Promise <SessionAvailability> GetAvailabilityAsync(XRSessionSubsystem sessionSubsystem)
        {
            var result = Api.UnityARKit_CheckAvailability();
            var retVal = SessionAvailability.None;

            if (result == Api.Availability.Supported)
            {
                retVal = SessionAvailability.Installed | SessionAvailability.Supported;
            }

            return(Promise <SessionAvailability> .CreateResolvedPromise(retVal));
        }
Esempio n. 5
0
 public override Promise <SessionAvailability> GetAvailabilityAsync()
 {
     return(Promise <SessionAvailability> .CreateResolvedPromise(availability));
 }
Esempio n. 6
0
 public override Promise <SessionAvailability> GetAvailabilityAsync() =>
 Promise <SessionAvailability> .CreateResolvedPromise(SessionAvailability.Installed | SessionAvailability.Supported);
Esempio n. 7
0
 /// <summary>
 /// Attempt to update or install necessary XR software. Will only be called if
 /// <see cref="XRSessionSubsystemDescriptor.supportsInstall"/> is true.
 /// </summary>
 /// <returns></returns>
 public virtual Promise <SessionInstallationStatus> InstallAsync()
 {
     return(Promise <SessionInstallationStatus> .CreateResolvedPromise(SessionInstallationStatus.ErrorInstallNotSupported));
 }
Esempio n. 8
0
 /// <summary>
 /// Get the session's availability, such as whether the platform supports XR.
 /// </summary>
 /// <returns>A <see cref="Promise{T}"/> that the caller can yield on until availability is determined.</returns>
 public virtual Promise <SessionAvailability> GetAvailabilityAsync()
 {
     return(Promise <SessionAvailability> .CreateResolvedPromise(SessionAvailability.None));
 }