FIRHeartbeatInfo.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. @interface FIRHeartbeatInfo : NSObject
  17. // TODO: Remove this class in future PRs (it will be replaced by `FIRHeartbeatLogger`).
  18. // Enum representing the different heartbeat codes.
  19. typedef NS_ENUM(NSInteger, FIRHeartbeatInfoCode) {
  20. FIRHeartbeatInfoCodeNone = 0,
  21. FIRHeartbeatInfoCodeSDK = 1,
  22. FIRHeartbeatInfoCodeGlobal = 2,
  23. FIRHeartbeatInfoCodeCombined = 3,
  24. };
  25. /**
  26. * Get heartbeat code required for the sdk.
  27. * @param heartbeatTag String representing the sdk heartbeat tag.
  28. * @return Heartbeat code indicating whether or not an sdk/global heartbeat
  29. * needs to be sent
  30. */
  31. + (FIRHeartbeatInfoCode)heartbeatCodeForTag:(NSString *)heartbeatTag;
  32. @end
  33. NS_ASSUME_NONNULL_END