commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
#if TARGET_OS_TV |
|
12 |
|
|
13 |
typedef NS_ENUM(NSUInteger, AppGroupPrivacy) { AppGroupPrivacyOpen, }; |
|
14 |
|
|
15 |
FOUNDATION_EXPORT NSString *NSStringFromFBSDKAppGroupPrivacy(AppGroupPrivacy privacy) |
|
16 |
NS_REFINED_FOR_SWIFT; |
|
17 |
|
|
18 |
#else |
|
19 |
|
|
20 |
#import <FBSDKCoreKit/FBSDKCoreKit.h> |
|
21 |
|
|
22 |
NS_ASSUME_NONNULL_BEGIN |
|
23 |
|
|
24 |
/** |
|
25 |
NS_ENUM(NSUInteger, FBSDKAppGroupPrivacy) |
|
26 |
Specifies the privacy of a group. |
|
27 |
*/ |
|
28 |
typedef NS_ENUM(NSUInteger, FBSDKAppGroupPrivacy) { |
|
29 |
/** Anyone can see the group, who's in it and what members post. */ |
|
30 |
FBSDKAppGroupPrivacyOpen = 0, |
|
31 |
/** Anyone can see the group and who's in it, but only members can see posts. */ |
|
32 |
FBSDKAppGroupPrivacyClosed, |
|
33 |
} NS_SWIFT_NAME(AppGroupPrivacy); |
|
34 |
|
|
35 |
/** |
|
36 |
Converts an FBSDKAppGroupPrivacy to an NSString. |
|
37 |
*/ |
|
38 |
FOUNDATION_EXPORT NSString *NSStringFromFBSDKAppGroupPrivacy(FBSDKAppGroupPrivacy privacy) |
|
39 |
NS_REFINED_FOR_SWIFT; |
|
40 |
|
|
41 |
/** |
|
42 |
A model for creating an app group. |
|
43 |
*/ |
|
44 |
NS_SWIFT_NAME(AppGroupContent) |
|
45 |
@interface FBSDKAppGroupContent : NSObject <NSCopying, NSObject, NSSecureCoding> |
|
46 |
|
|
47 |
/** |
|
48 |
The description of the group. |
|
49 |
*/ |
|
50 |
@property (nonatomic, copy) NSString *groupDescription; |
|
51 |
|
|
52 |
/** |
|
53 |
The name of the group. |
|
54 |
*/ |
|
55 |
@property (nonatomic, copy) NSString *name; |
|
56 |
|
|
57 |
/** |
|
58 |
The privacy for the group. |
|
59 |
*/ |
|
60 |
@property (nonatomic, assign) FBSDKAppGroupPrivacy privacy; |
|
61 |
|
|
62 |
/** |
|
63 |
Compares the receiver to another app group content. |
|
64 |
@param content The other content |
|
65 |
@return YES if the receiver's values are equal to the other content's values; otherwise NO |
|
66 |
*/ |
|
67 |
- (BOOL)isEqualToAppGroupContent:(FBSDKAppGroupContent *)content; |
|
68 |
|
|
69 |
@end |
|
70 |
|
|
71 |
NS_ASSUME_NONNULL_END |
|
72 |
|
|
73 |
#endif |