Instance Method

request(_:didFailWithError:)

Tells the delegate that the request failed to execute.

Declaration

optional func request(_ request: SKRequest, didFailWithError error: Error)

Parameters

request

The request that failed.

error

The error that caused the request to fail.

Discussion

When the request fails, your application should release the request. The requestDidFinish(_:) method is not called after this method is called.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software