FBSDKMeasurementEvent.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  2. //
  3. // You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
  4. // copy, modify, and distribute this software in source code or binary form for use
  5. // in connection with the web services and APIs provided by Facebook.
  6. //
  7. // As with any software that integrates with the Facebook platform, your use of
  8. // this software is subject to the Facebook Developer Principles and Policies
  9. // [http://developers.facebook.com/policy/]. This copyright notice shall be
  10. // included in all copies or substantial portions of the software.
  11. //
  12. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  14. // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  15. // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  16. // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  17. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  18. #import <Foundation/Foundation.h>
  19. NS_ASSUME_NONNULL_BEGIN
  20. #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
  21. /*! The name of the notification posted by FBSDKMeasurementEvent */
  22. FOUNDATION_EXPORT NSNotificationName const FBSDKMeasurementEventNotification;
  23. #else
  24. /*! The name of the notification posted by FBSDKMeasurementEvent */
  25. FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventNotification;
  26. #endif
  27. FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventNotificationName
  28. DEPRECATED_MSG_ATTRIBUTE("Use `FBSDKMeasurementEventNotification` instead");
  29. /*! Defines keys in the userInfo object for the notification named FBSDKMeasurementEventNotificationName */
  30. /*! The string field for the name of the event */
  31. FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventNameKey;
  32. /*! The dictionary field for the arguments of the event */
  33. FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventArgsKey;
  34. /*! Events raised by FBSDKMeasurementEvent for Applink */
  35. /*!
  36. The name of the event posted when [FBSDKURL URLWithURL:] is called successfully. This represents the successful parsing of an app link URL.
  37. */
  38. FOUNDATION_EXPORT NSString *const FBSDKAppLinkParseEventName;
  39. /*!
  40. The name of the event posted when [FBSDKURL URLWithInboundURL:] is called successfully.
  41. This represents parsing an inbound app link URL from a different application
  42. */
  43. FOUNDATION_EXPORT NSString *const FBSDKAppLinkNavigateInEventName;
  44. /*! The event raised when the user navigates from your app to other apps */
  45. FOUNDATION_EXPORT NSString *const FBSDKAppLinkNavigateOutEventName;
  46. /*!
  47. The event raised when the user navigates out from your app and back to the referrer app.
  48. e.g when the user leaves your app after tapping the back-to-referrer navigation bar
  49. */
  50. FOUNDATION_EXPORT NSString *const FBSDKAppLinkNavigateBackToReferrerEventName;
  51. @interface FBSDKMeasurementEvent : NSObject
  52. @end
  53. NS_ASSUME_NONNULL_END