SegmentAPI.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. "use strict";
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Business Analytics (C) Copyright IBM Corp. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class SegmentAPI
  10. * @hideconstructor
  11. * @classdesc Internal API class that is used to send tracking (segment) data to glass.
  12. */
  13. define([], function () {
  14. var SegmentAPI = function () {
  15. function SegmentAPI() {
  16. _classCallCheck(this, SegmentAPI);
  17. }
  18. /**
  19. * @function SegmentAPI#track
  20. * @description send the track event to glass with the required data
  21. * @param {string} action event action
  22. */
  23. SegmentAPI.prototype.track = function track() {};
  24. /**
  25. * @function SegmentAPI#getInfo
  26. * @description collect the required data
  27. * @returns {object} tracking data for Segment
  28. */
  29. SegmentAPI.prototype.getInfo = function getInfo() {};
  30. /**
  31. * @function SegmentAPI#registerInfoCallback
  32. * @description register info callback
  33. * @param {function} cb info callback to register
  34. */
  35. SegmentAPI.prototype.registerInfoCallback = function registerInfoCallback() {};
  36. /**
  37. * @function SegmentAPI#unregisterInfoCallback
  38. * @description unregister info callback
  39. */
  40. SegmentAPI.prototype.unregisterInfoCallback = function unregisterInfoCallback() {};
  41. return SegmentAPI;
  42. }();
  43. return SegmentAPI;
  44. });
  45. //# sourceMappingURL=SegmentAPI.js.map