namespace UnityEngine.XR.ARCore { /// /// Describes the possible playback statuses. /// public enum ArPlaybackStatus { /// /// The session is not playing back an MP4 dataset file. /// None = 0, /// /// Playback is in process without issues. /// Ok = 1, /// /// Playback has stopped due to an error. /// IOError = 2, /// /// Playback has finished successfully. /// Finished = 3, }; /// /// Extension methods for the enum. /// public static class ArPlaybackStatusExtensions { /// /// Determines whether this status indicates that a recorded session is currently playing. /// /// The value to check. /// Returns `true` if the is . Returns /// `false` otherwise. public static bool Playing(this ArPlaybackStatus status) => status == ArPlaybackStatus.Ok; } }