FIRLifecycleEvents.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Copyright 2019 Google
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #import <Foundation/Foundation.h>
  15. NS_ASSUME_NONNULL_BEGIN
  16. /// Default event name for when an experiment is set.
  17. extern NSString *const FIRSetExperimentEventName NS_SWIFT_NAME(DefaultSetExperimentEventName);
  18. /// Default event name for when an experiment is activated.
  19. // clang-format off
  20. // clang-format12 will merge lines and exceed 100 character limit.
  21. extern NSString *const FIRActivateExperimentEventName
  22. NS_SWIFT_NAME(DefaultActivateExperimentEventName);
  23. /// Default event name for when an experiment is cleared.
  24. extern NSString *const FIRClearExperimentEventName NS_SWIFT_NAME(DefaultClearExperimentEventName);
  25. /// Default event name for when an experiment times out for being activated.
  26. extern NSString *const FIRTimeoutExperimentEventName
  27. NS_SWIFT_NAME(DefaultTimeoutExperimentEventName);
  28. // clang-format on
  29. /// Default event name for when an experiment is expired as it reaches the end of TTL.
  30. extern NSString *const FIRExpireExperimentEventName NS_SWIFT_NAME(DefaultExpireExperimentEventName);
  31. /// An Experiment Lifecycle Event Object that specifies the name of the experiment event to be
  32. /// logged by Firebase Analytics.
  33. NS_SWIFT_NAME(LifecycleEvents)
  34. @interface FIRLifecycleEvents : NSObject
  35. /// Event name for when an experiment is set. It is default to FIRSetExperimentEventName and can be
  36. /// overridden. If experiment payload has a valid string of this field, always use experiment
  37. /// payload.
  38. @property(nonatomic, copy) NSString *setExperimentEventName;
  39. /// Event name for when an experiment is activated. It is default to FIRActivateExperimentEventName
  40. /// and can be overridden. If experiment payload has a valid string of this field, always use
  41. /// experiment payload.
  42. @property(nonatomic, copy) NSString *activateExperimentEventName;
  43. /// Event name for when an experiment is cleared. It is default to FIRClearExperimentEventName and
  44. /// can be overridden. If experiment payload has a valid string of this field, always use experiment
  45. /// payload.
  46. @property(nonatomic, copy) NSString *clearExperimentEventName;
  47. /// Event name for when an experiment is timeout from being STANDBY. It is default to
  48. /// FIRTimeoutExperimentEventName and can be overridden. If experiment payload has a valid string
  49. /// of this field, always use experiment payload.
  50. @property(nonatomic, copy) NSString *timeoutExperimentEventName;
  51. /// Event name when an experiment is expired when it reaches the end of its TTL.
  52. /// It is default to FIRExpireExperimentEventName and can be overridden. If experiment payload has a
  53. /// valid string of this field, always use experiment payload.
  54. @property(nonatomic, copy) NSString *expireExperimentEventName;
  55. @end
  56. NS_ASSUME_NONNULL_END