Class

PHProjectInfo

Information about the project extension.

Declaration

@interface PHProjectInfo : NSObject

Overview

macOS Photos automatically generates a PHProjectInfo object when creating a new project. Photos passes along the project information with a PHProjectExtensionContext object. This object contains metadata about the project's creation source, sections, product type, branding, and page numbers. Your extension leverages project information to influence project layout, autoflow, and theme selection. The properties of this class are immutable, and your extension can't instantiate the object directly.

Topics

Determining Project Type

projectType

The project type that the user selected from the project extension options.

PHProjectType

The type descriptor of a project extension.

creationSource

The source from which the project was created.

sections

An array of project sections, each containing one or more section content objects.

PHProjectTypeDescription

An extensible enumerator for PHProjectType that's presented to users in the project picker.

PHProjectTypeDescriptionDataSource

A protocol that you use to provide the project with type description data.

PHProjectTypeDescriptionInvalidator

A protocol that you use to tell the project when and how to invalidate type and footer text.

PHProjectCreationSource

Defines the source of a project extension.

Creating a Project from an Apple Print Product

brandingEnabled

A Boolean value indicating whether branding was enabled in the source project.

pageNumbersEnabled

A Boolean value indicating whether page numbering was enabled in the source project.

productIdentifier

The product identifier of the originating Apple Print Product.

themeIdentifier

The product theme identifier of the originating Apple Print Product.

Relationships

Inherits From

Conforms To

See Also

macOS Photos Project Extensions

Creating a Slideshow Project Extension for Photos

Augment the macOS Photos app with extensions that support project creation.

PHProject

A representation of a Photos app project extension.

PHProjectExtensionContext

An object that provides Photos project extensions with access to the underlying project, as well as to the user's photo library for editing.

PHProjectElement

The superclass for all element objects.

PHProjectSection

A collection of content representing curated asset and text elements.

PHProjectRegionOfInterest

A representation of a region of interest in a photo asset.

PHProjectChangeRequest

A request to change asset data in a Photos project extension.

PHProjectExtensionController

A protocol defining the life cycle and supported types of project extensions.

PHCloudIdentifier

A cloud identifier for a Photos project extension.

PHProjectCategory

A representation of Photos project extension categories.