docs.unity.cn
    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
    [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.

    See Also

    https://developer.apple.com/documentation/bundleresources/information_property_list/protected_resources
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, July 17, 2023