docs.unity3d.com
    Show / Hide Table of Contents

    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).

    Inheritance
    Object
    PrivacyDataUsage
    Namespace: UnityEngine.InputSystem.iOS
    Syntax
    public class PrivacyDataUsage : object

    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.

    See Also

    https://developer.apple.com/documentation/bundleresources/information_property_list/protected_resources
    In This Article
    • Properties
      • enabled
      • usageDescription
    • See Also
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023