FIRStorage_Private.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright 2017 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. @class FIRApp;
  17. @class GTMSessionFetcherService;
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface FIRStorage ()
  20. @property(strong, nonatomic, readwrite) FIRApp *app;
  21. @property(strong, nonatomic) GTMSessionFetcherService *fetcherServiceForApp;
  22. @property(nonatomic, readonly) dispatch_queue_t dispatchQueue;
  23. @property(strong, nonatomic) NSString *storageBucket;
  24. /**
  25. * Maximum time between retry attempts for uploads.
  26. *
  27. * This is used by GTMSessionFetcher and translated from the user provided `maxUploadRetryTime`.
  28. */
  29. @property(assign, nonatomic) NSTimeInterval maxUploadRetryInterval;
  30. /**
  31. * Maximum time between retry attempts for downloads.
  32. *
  33. * This is used by GTMSessionFetcher and translated from the user provided `maxDownloadRetryTime`.
  34. */
  35. @property(assign, nonatomic) NSTimeInterval maxDownloadRetryInterval;
  36. /**
  37. * Maximum time between retry attempts for any operation that is not an upload or download.
  38. *
  39. * This is used by GTMSessionFetcher and translated from the user provided `maxOperationRetryTime`.
  40. */
  41. @property(assign, nonatomic) NSTimeInterval maxOperationRetryInterval;
  42. /**
  43. * Enables/disables GTMSessionFetcher HTTP logging
  44. * @param isLoggingEnabled Boolean passed through to enable/disable GTMSessionFetcher logging
  45. */
  46. + (void)setGTMSessionFetcherLoggingEnabled:(BOOL)isLoggingEnabled;
  47. @end
  48. NS_ASSUME_NONNULL_END