Protocol

PHProjectTypeDescriptionInvalidator

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

Declaration

protocol PHProjectTypeDescriptionInvalidator

Overview

An object adheres to this protocol to implement custom behavior when you invalidate project information, such as type description and footer text.

Topics

Invalidating a Project Type

func invalidateTypeDescription(for: PHProjectType)

Invalidates the type description for the given project type.

Required.

func invalidateFooterText(forSubtypesOf: PHProjectType)

Invalidates the footer text for the subtypes of the given project type.

Required.

Relationships

Inherits From

See Also

Determining Project Type

var projectType: PHProjectType

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

struct PHProjectType

The type descriptor of a project extension.

var creationSource: PHProjectInfo.CreationSource

The source from which the project was created.

var sections: [PHProjectSection]

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

class PHProjectTypeDescription

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

protocol PHProjectTypeDescriptionDataSource

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

enum PHProjectInfo.CreationSource

Defines the source of a project extension.