Class ProjectCapabilityManager | Platforms iOS | 0.9.0-preview.9
docs.unity3d.com
    Show / Hide Table of Contents

    Class ProjectCapabilityManager

    The ProjectCapabilityManager class helps to add capabilities to the Xcode project. This operation potentially involves modification of any of the pbxproj file, the entitlements file(s) and Info.plist file(s). The manager assumes ownership of all of these files until the last WriteToFile() invocation.

    Inheritance
    Object
    ProjectCapabilityManager
    Namespace: UnityEditor.iOS.Xcode.Custom
    Syntax
    public class ProjectCapabilityManager

    Constructors

    ProjectCapabilityManager(String, String, String)

    Creates a new instance of ProjectCapabilityManager. The returned instance assumes ownership of the referenced pbxproj project file, the entitlements file and project Info.plist files until the last WriteToFile() call.

    Declaration
    public ProjectCapabilityManager(string pbxProjectPath, string entitlementFilePath, string targetName)
    Parameters
    Type Name Description
    String pbxProjectPath

    Path to the pbxproj file.

    String entitlementFilePath

    Path to the entitlements file.

    String targetName

    The name of the target to add entitlements for.

    Fields

    project

    Declaration
    protected PBXProject project
    Field Value
    Type Description
    PBXProject

    Methods

    AddAccessWiFiInformation()

    Adds the Access WiFi Information capability..

    Declaration
    public void AddAccessWiFiInformation()

    AddAppGroups(String[])

    Adds App Groups capability to the project.

    Declaration
    public void AddAppGroups(string[] groups)
    Parameters
    Type Name Description
    String[] groups

    The list of app groups to configure.

    AddApplePay(String[])

    Adds Apple Pay capability to the project.

    Declaration
    public void AddApplePay(string[] merchants)
    Parameters
    Type Name Description
    String[] merchants

    The list of merchant IDs to configure

    AddAssociatedDomains(String[])

    Adds Associated Domains capability to the project.

    Declaration
    public void AddAssociatedDomains(string[] domains)
    Parameters
    Type Name Description
    String[] domains

    The list of domains to configure.

    AddBackgroundModes(BackgroundModesOptions)

    Adds Background capability to the project.

    Declaration
    public void AddBackgroundModes(BackgroundModesOptions options)
    Parameters
    Type Name Description
    BackgroundModesOptions options

    The list of background modes to configure.

    AddDataProtection()

    Adds Data Protection capability to the project.

    Declaration
    public void AddDataProtection()

    AddGameCenter()

    Adds Game Center capability to the project

    Declaration
    public void AddGameCenter()

    AddHealthKit()

    Adds HealthKit capability to the project.

    Declaration
    public void AddHealthKit()

    AddHomeKit()

    Adds HomeKit capability to the project.

    Declaration
    public void AddHomeKit()

    AddiCloud(Boolean, Boolean, Boolean, Boolean, String[])

    Adds iCloud capability to project

    Declaration
    public void AddiCloud(bool enableKeyValueStorage, bool enableiCloudDocument, bool enablecloudKit, bool addDefaultContainers, string[] customContainers)
    Parameters
    Type Name Description
    Boolean enableKeyValueStorage

    Enables key-value storage option if set to true

    Boolean enableiCloudDocument

    Enables iCloud document option if set to true

    Boolean enablecloudKit

    Enables cloudKit option if set to true

    Boolean addDefaultContainers

    Default containers are added if this option is set to true

    String[] customContainers

    A list of custom containers to add

    AddiCloud(Boolean, Boolean, String[])

    Adds iCloud capability to project

    Declaration
    public void AddiCloud(bool enableKeyValueStorage, bool enableiCloudDocument, string[] customContainers)
    Parameters
    Type Name Description
    Boolean enableKeyValueStorage

    Enables key-value storage option if set to true

    Boolean enableiCloudDocument

    Enables iCloud document option if set to true

    String[] customContainers

    A list of custom containers to add

    AddInAppPurchase()

    Adds In App Purchase capability to the project.

    Declaration
    public void AddInAppPurchase()

    AddInterAppAudio()

    Adds Inter App Audio capability to the project.

    Declaration
    public void AddInterAppAudio()

    AddKeychainSharing(String[])

    Adds Keychain Sharing capability to the project.

    Declaration
    public void AddKeychainSharing(string[] accessGroups)
    Parameters
    Type Name Description
    String[] accessGroups

    The list of keychain access groups to configure.

    AddMaps(MapsOptions)

    Adds Maps capability to the project.

    Declaration
    public void AddMaps(MapsOptions options)
    Parameters
    Type Name Description
    MapsOptions options

    The routing options to configure.

    AddPersonalVPN()

    Adds Personal VPN capability to the project.

    Declaration
    public void AddPersonalVPN()

    AddPushNotifications(Boolean)

    Add Push (or remote) Notifications capability to the project

    Declaration
    public void AddPushNotifications(bool development)
    Parameters
    Type Name Description
    Boolean development

    Sets the development option if set to true

    AddSiri()

    Adds Siri capability to project.

    Declaration
    public void AddSiri()

    AddWallet(String[])

    Adds wallet capability to the project.

    Declaration
    public void AddWallet(string[] passSubset)
    Parameters
    Type Name Description
    String[] passSubset

    Controls the allowed pass types. If null or empty, then all team pass types are allowed. Otherwise, only the specified subset of pass types is allowed

    AddWirelessAccessoryConfiguration()

    Adds Wireless Accessory Configuration capability to the project.

    Declaration
    public void AddWirelessAccessoryConfiguration()

    WriteToFile()

    Writes the modifications to the project file, entitlements file and the Info.plist file. Any external changes to these files after the ProjectCapabilityManager instance has been created and before the call to WriteToFile() will be overwritten.

    Declaration
    public void WriteToFile()
    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