FBSDKProfileBlock.h 654 B

12345678910111213141516171819202122232425262728
  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. #if !TARGET_OS_TV
  10. @class FBSDKProfile;
  11. NS_ASSUME_NONNULL_BEGIN
  12. /**
  13. The callback closure type for loading the current profile.
  14. @param profile The Profile that was loaded, if any.
  15. @param error The error that occurred during the request, if any.
  16. */
  17. typedef void (^ FBSDKProfileBlock)(FBSDKProfile *_Nullable profile, NSError *_Nullable error)
  18. NS_SWIFT_NAME(ProfileBlock);
  19. NS_ASSUME_NONNULL_END
  20. #endif