| | |
| | | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| | | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| | | |
| | | #import "TargetConditionals.h" |
| | | |
| | | #if !TARGET_OS_TV |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | #import <FBSDKCoreKit/FBSDKCopying.h> |
| | | #import <FBSDKShareKit/FBSDKSharingValidation.h> |
| | | #import "FBSDKCoreKitImport.h" |
| | | |
| | | #import "FBSDKSharingValidation.h" |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | /** |
| | | NS_ENUM(NSUInteger, FBSDKGameRequestActionType) |
| | |
| | | FBSDKGameRequestActionTypeAskFor, |
| | | /** Turn action type: It is the turn of the friends to play against the user in a match. (no object) */ |
| | | FBSDKGameRequestActionTypeTurn, |
| | | }; |
| | | } NS_SWIFT_NAME(GameRequestActionType); |
| | | |
| | | /** |
| | | NS_ENUM(NSUInteger, FBSDKGameRequestFilters) |
| | |
| | | FBSDKGameRequestFilterAppUsers, |
| | | /** Friends not using the app can be displayed. */ |
| | | FBSDKGameRequestFilterAppNonUsers, |
| | | }; |
| | | } NS_SWIFT_NAME(GameRequestFilter); |
| | | |
| | | /** |
| | | A model for a game request. |
| | | */ |
| | | NS_SWIFT_NAME(GameRequestContent) |
| | | @interface FBSDKGameRequestContent : NSObject <FBSDKCopying, FBSDKSharingValidation, NSSecureCoding> |
| | | |
| | | /** |
| | |
| | | Additional freeform data you may pass for tracking. This will be stored as part of |
| | | the request objects created. The maximum length is 255 characters. |
| | | */ |
| | | @property (nonatomic, copy) NSString *data; |
| | | @property (nonatomic, copy, nullable) NSString *data; |
| | | |
| | | /** |
| | | This controls the set of friends someone sees if a multi-friend selector is shown. |
| | |
| | | |
| | | This is equivalent to the "to" parameter when using the web game request dialog. |
| | | */ |
| | | @property (nonatomic, copy) NSArray *recipients; |
| | | @property (nonatomic, copy) NSArray<NSString *> *recipients; |
| | | |
| | | /** |
| | | An array of user IDs that will be included in the dialog as the first suggested friends. |
| | |
| | | |
| | | This is equivalent to the "suggestions" parameter when using the web game request dialog. |
| | | */ |
| | | @property (nonatomic, copy) NSArray *recipientSuggestions; |
| | | |
| | | /** |
| | | |
| | | @warning Use `recipientSuggestions` instead. |
| | | */ |
| | | @property (nonatomic, copy) NSArray *suggestions |
| | | DEPRECATED_MSG_ATTRIBUTE("use recipientSuggestions instead"); |
| | | @property (nonatomic, copy) NSArray<NSString *> *recipientSuggestions; |
| | | |
| | | /** |
| | | The title for the dialog. |
| | | */ |
| | | @property (nonatomic, copy) NSString *title; |
| | | |
| | | /** |
| | | |
| | | @warning Use `recipients` instead. |
| | | */ |
| | | @property (nonatomic, copy) NSArray *to |
| | | DEPRECATED_MSG_ATTRIBUTE("use recipients instead"); |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | | |
| | | #endif |