Contents

cancelRequest(withRequestID:)

Cancels an asynchronous request

Declaration

class func cancelRequest(withRequestID requestID: PHLivePhotoRequestID)

Parameters

  • requestID:

    The numeric identifier of the request to be canceled.

Discussion

When you use the request(withResourceFileURLs:placeholderImage:targetSize:contentMode:resultHandler:) method to asynchronously load a Live Photo from resource files, the method returns a numeric identifier for the request. To cancel the request before it completes, provide the identifier when calling the cancelRequest(withRequestID:) method.

See Also

Loading a Live Photo from Data Files