Class PrivacyDataUsage
Governs access to a privacy-related resource on the user's device. Corresponds to a key in the application's Information Property List (Info.plist).
Namespace: UnityEngine.InputSystem.iOS
Syntax
[Serializable]
public class PrivacyDataUsage
Properties
enabled
Whether access to the respective resource will be requested.
Declaration
public bool enabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
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.
If this is set to true, the respective protected resource key will be entered in the application's Information Property List (Info.plist) using usageDescription.
usageDescription
Provide meaningful usage description.
Declaration
public string usageDescription { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
The description will be presented to the user in the dialog when you'll try to access a related resource or sensor.