GEAutoTrackProtocol.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // GEAutoTrackProtocol.h
  3. // GravityEngineSDK
  4. //
  5. //
  6. #ifndef GEAutoTrackProtocol_h
  7. #define GEAutoTrackProtocol_h
  8. #import <UIKit/UIKit.h>
  9. @protocol TDUIViewAutoTrackDelegate
  10. @optional
  11. /**
  12. UITableView event properties
  13. @return event properties
  14. */
  15. - (NSDictionary *)gravityEngine_tableView:(UITableView *)tableView autoTrackPropertiesAtIndexPath:(NSIndexPath *)indexPath;
  16. /**
  17. APPID UITableView event properties
  18. @return event properties
  19. */
  20. - (NSDictionary *)gravityEngineWithAppid_tableView:(UITableView *)tableView autoTrackPropertiesAtIndexPath:(NSIndexPath *)indexPath;
  21. @optional
  22. /**
  23. UICollectionView event properties
  24. @return event properties
  25. */
  26. - (NSDictionary *)gravityEngine_collectionView:(UICollectionView *)collectionView autoTrackPropertiesAtIndexPath:(NSIndexPath *)indexPath;
  27. /**
  28. APPID UICollectionView event properties
  29. @return event properties
  30. */
  31. - (NSDictionary *)gravityEngineWithAppid_collectionView:(UICollectionView *)collectionView autoTrackPropertiesAtIndexPath:(NSIndexPath *)indexPath;
  32. @end
  33. @protocol GEAutoTracker
  34. @optional
  35. - (NSDictionary *)getTrackProperties;
  36. - (NSDictionary *)getTrackPropertiesWithAppid;
  37. @end
  38. /**
  39. Automatically track the page
  40. */
  41. @protocol GEScreenAutoTracker <GEAutoTracker>
  42. @optional
  43. /**
  44. Attributes for custom page view events
  45. */
  46. - (NSString *)getScreenUrl;
  47. /**
  48. Configure the properties of the APPID custom page view event
  49. */
  50. - (NSDictionary *)getScreenUrlWithAppid;
  51. @end
  52. #endif /* GEAutoTrackProtocol_h */