docs.unity3d.com
Search Results for

    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
    Assembly: Unity.InputSystem.dll
    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
    bool
    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.

    See Also
    https://developer.apple.com/documentation/bundleresources/information_property_list/protected_resources

    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

    See Also

    https://developer.apple.com/documentation/bundleresources/information_property_list/protected_resources
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)