| | |
| | | |
| | | /** |
| | | Convenience method to build up a game request with content and a delegate. |
| | | - Parameter content: The content for the game request. |
| | | - Parameter delegate: The receiver's delegate. |
| | | @param content The content for the game request. |
| | | @param delegate The receiver's delegate. |
| | | */ |
| | | + (instancetype)showWithContent:(FBSDKGameRequestContent *)content delegate:(id<FBSDKGameRequestDialogDelegate>)delegate; |
| | | |
| | |
| | | required but not available. This method does not validate the content on the receiver, so this can be checked before |
| | | building up the content. |
| | | |
| | | - See:validateWithError: |
| | | - Returns: YES if the receiver can share, otherwise NO. |
| | | @see validateWithError: |
| | | @return YES if the receiver can share, otherwise NO. |
| | | */ |
| | | - (BOOL)canShow; |
| | | @property (nonatomic, readonly) BOOL canShow; |
| | | |
| | | /** |
| | | Begins the game request from the receiver. |
| | | - Returns: YES if the receiver was able to show the dialog, otherwise NO. |
| | | @return YES if the receiver was able to show the dialog, otherwise NO. |
| | | */ |
| | | - (BOOL)show; |
| | | |
| | | /** |
| | | Validates the content on the receiver. |
| | | - Parameter errorRef: If an error occurs, upon return contains an NSError object that describes the problem. |
| | | - Returns: YES if the content is valid, otherwise NO. |
| | | @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. |
| | | @return YES if the content is valid, otherwise NO. |
| | | */ |
| | | - (BOOL)validateWithError:(NSError *__autoreleasing *)errorRef; |
| | | |
| | |
| | | |
| | | /** |
| | | Sent to the delegate when the game request completes without error. |
| | | - Parameter gameRequestDialog: The FBSDKGameRequestDialog that completed. |
| | | - Parameter results: The results from the dialog. This may be nil or empty. |
| | | @param gameRequestDialog The FBSDKGameRequestDialog that completed. |
| | | @param results The results from the dialog. This may be nil or empty. |
| | | */ |
| | | - (void)gameRequestDialog:(FBSDKGameRequestDialog *)gameRequestDialog didCompleteWithResults:(NSDictionary *)results; |
| | | |
| | | /** |
| | | Sent to the delegate when the game request encounters an error. |
| | | - Parameter gameRequestDialog: The FBSDKGameRequestDialog that completed. |
| | | - Parameter error: The error. |
| | | @param gameRequestDialog The FBSDKGameRequestDialog that completed. |
| | | @param error The error. |
| | | */ |
| | | - (void)gameRequestDialog:(FBSDKGameRequestDialog *)gameRequestDialog didFailWithError:(NSError *)error; |
| | | |
| | | /** |
| | | Sent to the delegate when the game request dialog is cancelled. |
| | | - Parameter gameRequestDialog: The FBSDKGameRequestDialog that completed. |
| | | @param gameRequestDialog The FBSDKGameRequestDialog that completed. |
| | | */ |
| | | - (void)gameRequestDialogDidCancel:(FBSDKGameRequestDialog *)gameRequestDialog; |
| | | |