FBSDKGraphRequestMetadata.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  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. #import <Foundation/Foundation.h>
  9. #import <FBSDKCoreKit/FBSDKGraphRequestConnection.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @protocol FBSDKGraphRequest;
  12. /**
  13. Internal Type exposed to facilitate transition to Swift.
  14. API Subject to change or removal without warning. Do not use.
  15. Used to facilitate FBSDKGraphRequest processing, specifically
  16. associating FBSDKGraphRequest and FBSDKGraphRequestBlock instances and necessary
  17. data for retry processing.
  18. @warning INTERNAL - DO NOT USE
  19. */
  20. NS_SWIFT_NAME(GraphRequestMetadata)
  21. @interface FBSDKGraphRequestMetadata : NSObject
  22. @property (nonatomic, retain) id<FBSDKGraphRequest> request;
  23. @property (nonatomic, copy) FBSDKGraphRequestCompletion completionHandler;
  24. @property (nonatomic, copy) NSDictionary<NSString *, id> *batchParameters;
  25. - (instancetype)init NS_UNAVAILABLE;
  26. + (instancetype)new NS_UNAVAILABLE;
  27. - (instancetype)initWithRequest:(id<FBSDKGraphRequest>)request
  28. completionHandler:(nullable FBSDKGraphRequestCompletion)handler
  29. batchParameters:(nullable NSDictionary<NSString *, id> *)batchParameters
  30. NS_DESIGNATED_INITIALIZER;
  31. - (void)invokeCompletionHandlerForConnection:(id<FBSDKGraphRequestConnecting>)connection
  32. withResults:(id)results
  33. error:(nullable NSError *)error;
  34. @end
  35. NS_ASSUME_NONNULL_END