FIRStorageUploadTask.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #import <Foundation/Foundation.h>
  17. #import "FIRStorageObservableTask.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. /**
  20. * FIRStorageUploadTask implements resumable uploads to a file in Firebase Storage.
  21. * Uploads can be returned on completion with a completion callback, and can be monitored
  22. * by attaching observers, or controlled by calling FIRStorageTask#pause, FIRStorageTask#resume,
  23. * or FIRStorageTask#cancel.
  24. * Uploads can take NSData in memory, or an NSURL to a file on disk.
  25. * Uploads are performed on a background queue, and callbacks are raised on the developer
  26. * specified callbackQueue in FIRStorage, or the main queue if left unspecified.
  27. * Currently all uploads must be initiated and managed on the main queue.
  28. */
  29. NS_SWIFT_NAME(StorageUploadTask)
  30. @interface FIRStorageUploadTask : FIRStorageObservableTask <FIRStorageTaskManagement>
  31. @end
  32. NS_ASSUME_NONNULL_END