Contents

show(withTitle:message:duration:completionHandler:)

Displays a banner to the player for a specified period of time.

Declaration

class func show(withTitle title: String?, message: String?, duration: TimeInterval, completionHandler: (@Sendable () -> Void)? = nil)
class func show(withTitle title: String?, message: String?, duration: TimeInterval) async

Parameters

  • title:

    The title of the banner.

  • message:

    The message on the banner.

  • duration:

    The amount of time that GameKit should dispay the banner to the player.

  • completionHandler:

    The block that GameKit calls when the player or GameKit dismisses the banner.

See Also

Displaying the Banner