| | |
| | | #import <FBSDKCoreKit/FBSDKGraphRequestConnecting.h> |
| | | #import <FBSDKCoreKit/FBSDKGraphRequestConnectionDelegate.h> |
| | | |
| | | @protocol FBSDKURLSessionProxyProviding; |
| | | @protocol FBSDKErrorConfigurationProviding; |
| | | @protocol FBSDKGraphRequestPiggybackManaging; |
| | | @protocol FBSDKSettings; |
| | | @protocol FBSDKGraphRequestConnectionFactory; |
| | | @protocol FBSDKEventLogging; |
| | | @protocol FBSDKOperatingSystemVersionComparing; |
| | | @protocol FBSDKMacCatalystDetermining; |
| | | @protocol FBSDKAccessTokenProviding; |
| | | @protocol FBSDKErrorCreating; |
| | | @protocol FBSDKAuthenticationTokenProviding; |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | /** |
| | | The key in the result dictionary for requests to old versions of the Graph API |
| | | whose response is not a JSON object. |
| | | |
| | | |
| | | When a request returns a non-JSON response (such as a "true" literal), that response |
| | | will be wrapped into a dictionary using this const as the key. This only applies for very few Graph API |
| | |
| | | The request settings are encapsulated in a reusable <FBSDKGraphRequest> object. The |
| | | `FBSDKGraphRequestConnection` object encapsulates the concerns of a single communication |
| | | e.g. starting a connection, canceling a connection, or batching requests. |
| | | |
| | | */ |
| | | NS_SWIFT_NAME(GraphRequestConnection) |
| | | @interface FBSDKGraphRequestConnection : NSObject <FBSDKGraphRequestConnecting> |
| | | |
| | | /** |
| | | The default timeout on all FBSDKGraphRequestConnection instances. Defaults to 60 seconds. |
| | | */ |
| | | /// The default timeout on all FBSDKGraphRequestConnection instances. Defaults to 60 seconds. |
| | | @property (class, nonatomic, assign) NSTimeInterval defaultConnectionTimeout; |
| | | |
| | | /** |
| | | The delegate object that receives updates. |
| | | */ |
| | | /// The delegate object that receives updates. |
| | | @property (nullable, nonatomic, weak) id<FBSDKGraphRequestConnectionDelegate> delegate; |
| | | |
| | | /** |
| | | Gets or sets the timeout interval to wait for a response before giving up. |
| | | */ |
| | | /// Gets or sets the timeout interval to wait for a response before giving up. |
| | | @property (nonatomic, assign) NSTimeInterval timeout; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @property (nullable, nonatomic) NSOperationQueue *delegateQueue; |
| | | |
| | | /** |
| | | @methodgroup Class methods |
| | | */ |
| | | /// @methodgroup Class methods |
| | | |
| | | /** |
| | | @methodgroup Adding requests |
| | | */ |
| | | /// @methodgroup Adding requests |
| | | |
| | | /** |
| | | @method |
| | |
| | | parameters:(nullable NSDictionary<NSString *, id> *)parameters |
| | | completion:(FBSDKGraphRequestCompletion)completion; |
| | | |
| | | /** |
| | | @methodgroup Instance methods |
| | | */ |
| | | /// @methodgroup Instance methods |
| | | |
| | | /** |
| | | @method |
| | |
| | | */ |
| | | - (void)overrideGraphAPIVersion:(NSString *)version; |
| | | |
| | | /** |
| | | Internal method exposed to facilitate transition to Swift. |
| | | API Subject to change or removal without warning. Do not use. |
| | | |
| | | @warning INTERNAL - DO NOT USE |
| | | */ |
| | | + (void)setCanMakeRequests; |
| | | |
| | | /** |
| | | Internal method exposed to facilitate transition to Swift. |
| | | API Subject to change or removal without warning. Do not use. |
| | | |
| | | @warning INTERNAL - DO NOT USE |
| | | */ |
| | | + (void)configureWithURLSessionProxyFactory:(nonnull id<FBSDKURLSessionProxyProviding>)proxyFactory |
| | | errorConfigurationProvider:(nonnull id<FBSDKErrorConfigurationProviding>)errorConfigurationProvider |
| | | piggybackManager:(nonnull id<FBSDKGraphRequestPiggybackManaging>)piggybackManager |
| | | settings:(nonnull id<FBSDKSettings>)settings |
| | | graphRequestConnectionFactory:(nonnull id<FBSDKGraphRequestConnectionFactory>)factory |
| | | eventLogger:(nonnull id<FBSDKEventLogging>)eventLogger |
| | | operatingSystemVersionComparer:(nonnull id<FBSDKOperatingSystemVersionComparing>)operatingSystemVersionComparer |
| | | macCatalystDeterminator:(nonnull id<FBSDKMacCatalystDetermining>)macCatalystDeterminator |
| | | accessTokenProvider:(nonnull Class<FBSDKAccessTokenProviding>)accessTokenProvider |
| | | errorFactory:(nonnull id<FBSDKErrorCreating>)errorFactory |
| | | authenticationTokenProvider:(nonnull Class<FBSDKAuthenticationTokenProviding>)authenticationTokenProvider |
| | | NS_SWIFT_NAME(configure(urlSessionProxyFactory:errorConfigurationProvider:piggybackManager:settings:graphRequestConnectionFactory:eventLogger:operatingSystemVersionComparer:macCatalystDeterminator:accessTokenProvider:errorFactory:authenticationTokenProvider:)); |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |