Mac Developer Library

Developer

GameKit Framework Reference GKFriendRequestComposeViewControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

GKFriendRequestComposeViewControllerDelegate

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import GameKit

Objective-C

@import GameKit;

Availability


Available in OS X v10.8 and later.

The GKFriendRequestComposeViewControllerDelegate protocol is implemented by delegates of the GKFriendRequestComposeViewController class. The delegate is called when the player dismisses the friend request.

  • Called when the player dismisses the request. (required)

    Declaration

    Swift

    func friendRequestComposeViewControllerDidFinish(_ viewController: GKFriendRequestComposeViewController!)

    Objective-C

    - (void)friendRequestComposeViewControllerDidFinish:(GKFriendRequestComposeViewController *)viewController

    Parameters

    viewController

    The friend request view controller that was dismissed by the player.

    Discussion

    Your delegate should dismiss the view controller. If your game paused any gameplay or other activities, it can restart those services in this method.

    Import Statement

    Objective-C

    @import GameKit;

    Swift

    import GameKit

    Availability

    Available in OS X v10.8 and later.