FIRLifecycleEvents.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. extern NSString *const FIRActivateExperimentEventName
  20. NS_SWIFT_NAME(DefaultActivateExperimentEventName);
  21. /// Default event name for when an experiment is cleared.
  22. extern NSString *const FIRClearExperimentEventName NS_SWIFT_NAME(DefaultClearExperimentEventName);
  23. /// Default event name for when an experiment times out for being activated.
  24. extern NSString *const FIRTimeoutExperimentEventName
  25. NS_SWIFT_NAME(DefaultTimeoutExperimentEventName);
  26. /// Default event name for when an experiment is expired as it reaches the end of TTL.
  27. extern NSString *const FIRExpireExperimentEventName NS_SWIFT_NAME(DefaultExpireExperimentEventName);
  28. /// An Experiment Lifecycle Event Object that specifies the name of the experiment event to be
  29. /// logged by Firebase Analytics.
  30. NS_SWIFT_NAME(LifecycleEvents)
  31. @interface FIRLifecycleEvents : NSObject
  32. /// Event name for when an experiment is set. It is default to FIRSetExperimentEventName and can be
  33. /// overridden. If experiment payload has a valid string of this field, always use experiment
  34. /// payload.
  35. @property(nonatomic, copy) NSString *setExperimentEventName;
  36. /// Event name for when an experiment is activated. It is default to FIRActivateExperimentEventName
  37. /// and can be overridden. If experiment payload has a valid string of this field, always use
  38. /// experiment payload.
  39. @property(nonatomic, copy) NSString *activateExperimentEventName;
  40. /// Event name for when an experiment is cleared. It is default to FIRClearExperimentEventName and
  41. /// can be overridden. If experiment payload has a valid string of this field, always use experiment
  42. /// payload.
  43. @property(nonatomic, copy) NSString *clearExperimentEventName;
  44. /// Event name for when an experiment is timeout from being STANDBY. It is default to
  45. /// FIRTimeoutExperimentEventName and can be overridden. If experiment payload has a valid string
  46. /// of this field, always use experiment payload.
  47. @property(nonatomic, copy) NSString *timeoutExperimentEventName;
  48. /// Event name when an experiment is expired when it reaches the end of its TTL.
  49. /// It is default to FIRExpireExperimentEventName and can be overridden. If experiment payload has a
  50. /// valid string of this field, always use experiment payload.
  51. @property(nonatomic, copy) NSString *expireExperimentEventName;
  52. @end
  53. NS_ASSUME_NONNULL_END