A game about forced loneliness, made by TACStudios
1#if UNITY_EDITOR || UNITY_IOS || UNITY_TVOS || PACKAGE_DOCS_GENERATION 2using System; 3using UnityEngine.InputSystem.iOS; 4 5namespace UnityEngine.InputSystem.iOS 6{ 7 /// <summary> 8 /// Governs access to a privacy-related resource on the user's device. Corresponds to a key in the application's 9 /// Information Property List (Info.plist). 10 /// </summary> 11 /// <seealso href="https://developer.apple.com/documentation/bundleresources/information_property_list/protected_resources"/> 12 [Serializable] 13 public class PrivacyDataUsage 14 { 15 /// <summary> 16 /// Whether access to the respective resource will be requested. 17 /// </summary> 18 /// <remarks> 19 /// Before accessing a resource or a sensor, you need to explicitly enable the usage for it, otherwise the access for the resource will be denied. 20 /// 21 /// If this is set to true, the respective protected resource key will be entered in the application's Information Property List (Info.plist) 22 /// using <see cref="usageDescription"/>. 23 /// </remarks> 24 public bool enabled 25 { 26 get => m_Enabled; 27 set => m_Enabled = value; 28 } 29 30 /// <summary> 31 /// Provide meaningful usage description. 32 /// </summary> 33 /// <remarks> 34 /// The description will be presented to the user in the dialog when you'll try to access a related resource or sensor. 35 /// </remarks> 36 public string usageDescription 37 { 38 get => m_Description; 39 set => m_Description = value; 40 } 41 42 [SerializeField] private bool m_Enabled; 43 [SerializeField] private string m_Description; 44 } 45} 46 47namespace UnityEngine.InputSystem 48{ 49 public partial class InputSettings 50 { 51 /// <summary> 52 /// Project-wide input settings for the iOS/tvOS platform. 53 /// </summary> 54 [Serializable] 55 public class iOSSettings 56 { 57 /// <summary> 58 /// Setting for access to the device's motion sensors (such as <see cref="StepCounter"/>). 59 /// </summary> 60 /// <remarks> 61 /// Alternatively, you can manually add <c>Privacy - Motion Usage Description</c> to the Info.plist file. 62 /// </remarks> 63 /// <seealso cref="StepCounter"/> 64 /// <seealso href="https://developer.apple.com/documentation/bundleresources/information_property_list/nsmotionusagedescription"/> 65 public PrivacyDataUsage motionUsage 66 { 67 get => m_MotionUsage; 68 set => m_MotionUsage = value; 69 } 70 71 [SerializeField] private PrivacyDataUsage m_MotionUsage = new PrivacyDataUsage(); 72 } 73 74 /// <summary> 75 /// iOS/tvOS-specific settings. 76 /// </summary> 77 /// <remarks> 78 /// This is only accessible in the editor or in iOS/tvOS players. 79 /// </remarks> 80 public iOSSettings iOS => m_iOSSettings; 81 82 [SerializeField] 83 private iOSSettings m_iOSSettings = new iOSSettings(); 84 } 85} 86 87#endif