Instance Method

beginProject(with:projectInfo:completion:)

Provides an opportunity to customize the initial state when the user creates a project using the extension.

Required.

Declaration

func beginProject(with extensionContext: PHProjectExtensionContext, projectInfo: PHProjectInfo, completion: @escaping (Error?) -> Void)

Parameters

extensionContext

The extension context with access to the project assets.

projectInfo

Information about the project the extension is called on.

See Also

Tracking the Project Extension Life Cycle

func finishProject(completionHandler: () -> Void)

Provides an opportunity to perform cleanup when a user switches away from the project or terminates the extension.

Required.

func resumeProject(with: PHProjectExtensionContext, completion: (Error?) -> Void)

Provides an opportunity to restore or refresh the user interface when the user returns to a previously created project.

Required.

func typeDescriptionDataSource(for: PHProjectCategory, invalidator: PHProjectTypeDescriptionInvalidator) -> PHProjectTypeDescriptionDataSource

Fetches the type description data source to provide the user with more information about the project extension category.