docs.unity3d.com
    目次を表示する/隠す

    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
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)