FBSDKProfileNotifications.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. Notification name indicating that the current profile has changed.
  13. The user info dictionary of the notification may contain values for the keys
  14. `ProfileChangeOldKey` and `ProfileChangeNewKey`.
  15. */
  16. FOUNDATION_EXPORT NSNotificationName const FBSDKProfileDidChangeNotification
  17. NS_SWIFT_NAME(ProfileDidChange);
  18. /**
  19. Key in notification's user info object for storing the old profile.
  20. If there was no old profile, the key will not be present.
  21. */
  22. FOUNDATION_EXPORT NSString *const FBSDKProfileChangeOldKey
  23. NS_SWIFT_NAME(ProfileChangeOldKey);
  24. /**
  25. Key in notification's user info object for storing the new profile.
  26. If there is no new profile, the key will not be present.
  27. */
  28. FOUNDATION_EXPORT NSString *const FBSDKProfileChangeNewKey
  29. NS_SWIFT_NAME(ProfileChangeNewKey);
  30. NS_ASSUME_NONNULL_END
  31. #endif