| | |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | #import <FBSDKCoreKit/FBSDKCopying.h> |
| | | #import <FBSDKCoreKit/FBSDKMacros.h> |
| | | #if TARGET_OS_TV |
| | | |
| | | /*! |
| | | @typedef NS_ENUM(NSUInteger, FBSDKAppGroupPrivacy) |
| | | @abstract Specifies the privacy of a group. |
| | | typedef NS_ENUM(NSUInteger, AppGroupPrivacy) { AppGroupPrivacyOpen }; |
| | | |
| | | FOUNDATION_EXPORT NSString *NSStringFromFBSDKAppGroupPrivacy(AppGroupPrivacy privacy) |
| | | NS_REFINED_FOR_SWIFT; |
| | | |
| | | #else |
| | | |
| | | #import "FBSDKCoreKitImport.h" |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | /** |
| | | NS_ENUM(NSUInteger, FBSDKAppGroupPrivacy) |
| | | Specifies the privacy of a group. |
| | | */ |
| | | typedef NS_ENUM(NSUInteger, FBSDKAppGroupPrivacy) |
| | | { |
| | | /*! Anyone can see the group, who's in it and what members post. */ |
| | | /** Anyone can see the group, who's in it and what members post. */ |
| | | FBSDKAppGroupPrivacyOpen = 0, |
| | | /*! Anyone can see the group and who's in it, but only members can see posts. */ |
| | | /** Anyone can see the group and who's in it, but only members can see posts. */ |
| | | FBSDKAppGroupPrivacyClosed, |
| | | }; |
| | | } NS_SWIFT_NAME(AppGroupPrivacy); |
| | | |
| | | /*! |
| | | @abstract Converts an FBSDKAppGroupPrivacy to an NSString. |
| | | /** |
| | | Converts an FBSDKAppGroupPrivacy to an NSString. |
| | | */ |
| | | FBSDK_EXTERN NSString *NSStringFromFBSDKAppGroupPrivacy(FBSDKAppGroupPrivacy privacy); |
| | | FOUNDATION_EXPORT NSString *NSStringFromFBSDKAppGroupPrivacy(FBSDKAppGroupPrivacy privacy) |
| | | NS_REFINED_FOR_SWIFT; |
| | | |
| | | /*! |
| | | @abstract A model for creating an app group. |
| | | /** |
| | | A model for creating an app group. |
| | | */ |
| | | NS_SWIFT_NAME(AppGroupContent) |
| | | @interface FBSDKAppGroupContent : NSObject <FBSDKCopying, NSSecureCoding> |
| | | |
| | | /*! |
| | | @abstract The description of the group. |
| | | /** |
| | | The description of the group. |
| | | */ |
| | | @property (nonatomic, copy) NSString *groupDescription; |
| | | |
| | | /*! |
| | | @abstract The name of the group. |
| | | /** |
| | | The name of the group. |
| | | */ |
| | | @property (nonatomic, copy) NSString *name; |
| | | |
| | | /*! |
| | | @abstract The privacy for the group. |
| | | /** |
| | | The privacy for the group. |
| | | */ |
| | | @property (nonatomic, assign) FBSDKAppGroupPrivacy privacy; |
| | | |
| | | /*! |
| | | @abstract Compares the receiver to another app group content. |
| | | /** |
| | | Compares the receiver to another app group content. |
| | | @param content The other content |
| | | @return YES if the receiver's values are equal to the other content's values; otherwise NO |
| | | */ |
| | | - (BOOL)isEqualToAppGroupContent:(FBSDKAppGroupContent *)content; |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | | |
| | | #endif |