Instance Method

resumeProject(with:completion:)

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

Required.

Declaration

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

Parameters

extensionContext

The extension context with access to the project assets.

completion

A completion handler to execute upon returning to the extension.

See Also

Tracking the Project Extension Life Cycle

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

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

Required.

func finishProject(completionHandler: () -> Void)

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

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.