UMRemoteConfigEnum.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // UMRemoteConfigEnum.h
  3. // myFireBase
  4. //
  5. // Created by 张军华 on 2019/12/30.
  6. // Copyright © 2019年 张军华. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /// Indicates whether updated data was successfully fetched.
  11. typedef NS_ENUM(NSInteger, UMRemoteConfigFetchStatus) {
  12. /// Config has never been fetched.
  13. UMRemoteConfigFetchStatusNoFetchYet,
  14. /// Config fetch succeeded.
  15. UMRemoteConfigFetchStatusSuccess,
  16. /// Config fetch failed.
  17. UMRemoteConfigFetchStatusFailure,
  18. /// Config fetch was throttled.
  19. UMRemoteConfigFetchStatusThrottled,
  20. };
  21. /// Indicates whether ActiveStatus in the local data .
  22. typedef NS_ENUM(NSInteger, UMRemoteConfigActiveStatus) {
  23. UMRemoteConfigActiveStatus_None,
  24. UMRemoteConfigActiveStatus_Ready,
  25. UMRemoteConfigActiveStatus_Active,
  26. UMRemoteConfigActiveStatus_Expiration
  27. };
  28. ///// Indicates whether updated data was successfully fetched and activated.
  29. //typedef NS_ENUM(NSInteger, UMRemoteConfigFetchAndActivateStatus) {
  30. // // The remote fetch succeeded and fetched data was activated.
  31. // UMRemoteConfigFetchAndActivateStatusSuccessFetchedFromRemote,
  32. // // The fetch and activate succeeded from already fetched but yet unexpired config data. You can
  33. // // control this using minimumFetchInterval property in FIRRemoteConfigSettings.
  34. // UMRemoteConfigFetchAndActivateStatusSuccessUsingPreFetchedData,
  35. // // The fetch and activate failed.
  36. // UMRemoteConfigFetchAndActivateStatusError
  37. //};
  38. //typedef NS_ENUM(NSInteger, UMRemoteConfigSource) {
  39. // UMRemoteConfigSourceRemote, ///< The data source is the Remote Config service.
  40. // UMRemoteConfigSourceDefault, ///< The data source is the DefaultConfig defined for this app.
  41. // UMRemoteConfigSourceStatic, ///< The data doesn't exist, return a static initialized value.
  42. //};
  43. NS_ASSUME_NONNULL_END