PPOTAnalyticsTracker.h 794 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // PPOTAnalyticsTracker.h
  3. // PayPalOneTouch
  4. //
  5. // Copyright © 2014 PayPal, Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @interface PPOTAnalyticsTracker : NSObject
  9. /**
  10. Retrieves singleton instance.
  11. */
  12. + (nonnull PPOTAnalyticsTracker *)sharedManager;
  13. /**
  14. Tracks a "page"/action taken.
  15. @param pagename the page or "action" taken
  16. @param environment the environment (production, sandbox, etc.)
  17. @param clientID the client ID of the request
  18. @param error an optional error that occurred
  19. @param hermesToken web token
  20. */
  21. - (void)trackPage:(nonnull NSString *)pagename
  22. environment:(nonnull NSString *)environment
  23. clientID:(nullable NSString *)clientID
  24. error:(nullable NSError *)error
  25. hermesToken:(nullable NSString *)hermesToken;
  26. @end