FBInsights.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright 2010-present Facebook.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "FBSDKMacros.h"
  18. #import "FBSession.h"
  19. /*!
  20. @typedef FBInsightsFlushBehavior enum
  21. @abstract This enum has been deprecated in favor of FBAppEventsFlushBehavior.
  22. */
  23. __attribute__ ((deprecated("use FBAppEventsFlushBehavior instead")))
  24. typedef NS_ENUM(NSUInteger, FBInsightsFlushBehavior) {
  25. FBInsightsFlushBehaviorAuto __attribute__ ((deprecated("use FBAppEventsFlushBehaviorAuto instead"))),
  26. FBInsightsFlushBehaviorExplicitOnly __attribute__ ((deprecated("use FBAppEventsFlushBehaviorExplicitOnly instead"))),
  27. };
  28. FBSDK_EXTERN NSString *const FBInsightsLoggingResultNotification __attribute__((deprecated));
  29. /*!
  30. @class FBInsights
  31. @abstract This class has been deprecated in favor of FBAppEvents.
  32. */
  33. __attribute__ ((deprecated("Use the FBAppEvents class instead")))
  34. @interface FBInsights : NSObject
  35. + (NSString *)appVersion __attribute__((deprecated));
  36. + (void)setAppVersion:(NSString *)appVersion __attribute__((deprecated("use [FBSettings setAppVersion] instead")));
  37. + (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency __attribute__((deprecated("use [FBAppEvents logPurchase] instead")));
  38. + (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency parameters:(NSDictionary *)parameters __attribute__((deprecated("use [FBAppEvents logPurchase] instead")));
  39. + (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency parameters:(NSDictionary *)parameters session:(FBSession *)session __attribute__((deprecated("use [FBAppEvents logPurchase] instead")));
  40. + (void)logConversionPixel:(NSString *)pixelID valueOfPixel:(double)value __attribute__((deprecated));
  41. + (void)logConversionPixel:(NSString *)pixelID valueOfPixel:(double)value session:(FBSession *)session __attribute__((deprecated));
  42. + (FBInsightsFlushBehavior)flushBehavior __attribute__((deprecated("use [FBAppEvents flushBehavior] instead")));
  43. + (void)setFlushBehavior:(FBInsightsFlushBehavior)flushBehavior __attribute__((deprecated("use [FBAppEvents setFlushBehavior] instead")));
  44. + (void)flush __attribute__((deprecated("use [FBAppEvents flush] instead")));
  45. @end