Contents

PHAssetResourceUploadJob

An object that represents a request to upload an asset resource.

Declaration

class PHAssetResourceUploadJob

Overview

Use within an application’s com.apple.photos.background-upload extension to request an upload of a PHAssetResource to a destination NSURLRequest.

When the extension’s principal class receives a call to process() background uploads, it can create new PHAssetResourceUploadJob objects using PHAssetResourceUploadJobChangeRequest.

The maximum number of jobs that can be in flight is limited to the jobLimit. To make space for new jobs, you must call PHAssetResourceUploadJobChangeRequest/fetchJobsWithAction:options: and retry/acknowledge them with PHAssetResourceUploadJobChangeRequest/acknowledge: or retry(destination:) respectively.

Topics

Fetching jobs

Inspecting a job

See Also

Background resource upload extensions