Class SessionAvailabilityExtensions
Extensions to the SessionAvailability and SessionInstallationStatus enums.
Inheritance
System.Object
SessionAvailabilityExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.XR.ARExtensions
Syntax
public static class SessionAvailabilityExtensions
Methods
IsInstalled(SessionAvailability)
A helper method for SessionAvailability flags.
Declaration
public static bool IsInstalled(this SessionAvailability availability)
Parameters
Type | Name | Description |
---|---|---|
SessionAvailability | availability | A SessionAvailability enum |
Returns
Type | Description |
---|---|
System.Boolean | True if the Installed flag is set. |
IsSupported(SessionAvailability)
A helper method for SessionAvailability flags.
Declaration
public static bool IsSupported(this SessionAvailability availability)
Parameters
Type | Name | Description |
---|---|---|
SessionAvailability | availability | A SessionAvailability enum |
Returns
Type | Description |
---|---|
System.Boolean | True if the Supported flag is set. |