Instance Method

finishProject(completionHandler:)

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

Required.

Declaration

func finishProject(completionHandler completion: @escaping () -> Void)

Parameters

completion

A completion handler to execute before exiting 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 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.