// // GKFriendRequestComposeViewController.h // Game Center // // Copyright 2010-2023 Apple Inc. All rights reserved. // #import #if TARGET_OS_IPHONE || TARGET_OS_MACCATALYST #import #else #import #endif @protocol GKFriendRequestComposeViewControllerDelegate; @class GKPlayer; /// Standard view controller for sending friend requests to other players. Present modally from the top view controller. #if TARGET_OS_IPHONE || TARGET_OS_MACCATALYST NS_ASSUME_NONNULL_BEGIN NS_CLASS_DEPRECATED(10_8, 10_12, 4_2, 10_0) @interface GKFriendRequestComposeViewController : UINavigationController @end #else #import NS_ASSUME_NONNULL_BEGIN NS_CLASS_DEPRECATED(10_8, 10_12, 4_2, 10_0) @interface GKFriendRequestComposeViewController : NSViewController @end #endif NS_CLASS_DEPRECATED(10_8, 10_12, 4_2, 10_0) @interface GKFriendRequestComposeViewController () /// Get the maximum number of recipients permitted + (NSUInteger)maxNumberOfRecipients; /// Specify the message sent to the invitee. A default message will be used if you don't specify one. - (void)setMessage:(nullable NSString *)message; /// Add recipients to the request. /// If you don't specify at least one recipient before presenting the view, the recipients field will be made firstResponder, to encourage the user to add some. /// If you add more than maxNumberOfRecipients recipients, these methods will throw an exception. - (void)addRecipientPlayers:(NSArray *)players NS_AVAILABLE(10_10, 8_0); - (void)addRecipientsWithPlayerIDs:(NSArray *)playerIDs NS_DEPRECATED(10_8, 10_10, 4_2, 8_0, "use addRecipientPlayers:") ; - (void)addRecipientsWithEmailAddresses:(NSArray *)emailAddresses; @property (nonatomic, weak, nullable) id composeViewDelegate NS_DEPRECATED(10_8, 10_12, 4_2, 10_0) ; @end /// Optional delegate NS_DEPRECATED(10_8, 10_12, 4_2, 10_0) @protocol GKFriendRequestComposeViewControllerDelegate /// The compose view has finished - (void)friendRequestComposeViewControllerDidFinish:(GKFriendRequestComposeViewController *)viewController NS_DEPRECATED(10_8, 10_12, 4_2, 10_0) ; @end NS_ASSUME_NONNULL_END