FBSDKSwizzling.h 943 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. #pragma clang diagnostic push
  10. #pragma clang diagnostic ignored "-Wstrict-prototypes"
  11. /**
  12. Internal type exposed to facilitate transition to Swift.
  13. API Subject to change or removal without warning. Do not use.
  14. @warning INTERNAL - DO NOT USE
  15. */
  16. typedef void (^_swizzleBlock)();
  17. #pragma clang diagnostic pop
  18. NS_ASSUME_NONNULL_BEGIN
  19. /**
  20. Internal type exposed to facilitate transition to Swift.
  21. API Subject to change or removal without warning. Do not use.
  22. @warning INTERNAL - DO NOT USE
  23. */
  24. NS_SWIFT_NAME(_Swizzling)
  25. @protocol FBSDKSwizzling
  26. + (void)swizzleSelector:(SEL)aSelector onClass:(Class)aClass withBlock:(_swizzleBlock)block named:(NSString *)aName;
  27. @end
  28. NS_ASSUME_NONNULL_END