Instance Method

deleteSavedGames(withName:completionHandler:)

Deletes a specific saved game file.

Declaration

func deleteSavedGames(withName name: String, completionHandler handler: ((Error?) -> Void)? = nil)

Parameters

name

A string that identifies the saved game data to be deleted.

handler

A block to be called when the request completes.

The block receives the following parameters:

error

If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is nil, indicating a successful delete.

Discussion

This method deletes saved game files asynchronously.