34 lines
1.5 KiB
C#
34 lines
1.5 KiB
C#
// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved.
|
|
// This code can only be used under the standard Unity Asset Store End User License Agreement
|
|
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
|
|
|
|
namespace Doozy.Runtime.UIManager.Orientation
|
|
{
|
|
/// <summary>
|
|
/// Describes the physical orientation of the device as determined by the OS.
|
|
/// <para/> This is a simplified version of the UnityEngine.DeviceOrientation enum
|
|
/// </summary>
|
|
public enum DetectedOrientation
|
|
{
|
|
/// <summary>
|
|
/// The orientation of the device cannot be determined.
|
|
/// <para/> This is the default value and is used for initialization purposes.
|
|
/// </summary>
|
|
Unknown = 0,
|
|
|
|
/// <summary>
|
|
/// The device is in portrait mode, with the device held upright and the home button at the bottom (Portrait)
|
|
/// <para/> - OR -
|
|
/// <para/> The device is in portrait mode but upside down, with the device held upright and the home button at the top (PortraitUpsideDown)
|
|
/// </summary>
|
|
Portrait = 1,
|
|
|
|
/// <summary>
|
|
/// The device is in landscape mode, with the device held upright and the home button on the right side (LandscapeLeft)
|
|
/// <para/> - OR -
|
|
/// <para/> The device is in landscape mode, with the device held upright and the home button on the left side (LandscapeRight)
|
|
/// </summary>
|
|
Landscape = 2
|
|
}
|
|
}
|