Type Method

show(withTitle:message:completionHandler:)

Displays a banner to the player.

Declaration

class func show(withTitle title: String?, message: String?, completionHandler: (() -> Void)? = nil)

Parameters

title

The title of the banner.

message

A secondary message to be displayed.

completionHandler

A block to be called after the score is reported.

Discussion

When this method is called, it creates a new background task to handle the request. The method then returns control to your game. Later, when the task is complete, Game Kit calls your completion handler. The completion handler is always called on the main thread.

See Also

Displaying a Notification Banner