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.