StorageCategoryBehavior
public protocol StorageCategoryBehavior
Behavior of the Storage category used though Amplify.Storage.*. Plugin implementations
conform to this protocol indirectly though the
StorageCategoryPlugin protocol.
- Tag: StorageCategoryBehavior
-
getURL(key:Asynchronousoptions: ) Retrieve the remote URL for the object from storage.
Tag: StorageCategoryBehavior.getURL
Declaration
Swift
@available(*, deprecated, message: "Use getURL(path:options:﹚") @discardableResult func getURL( key: String, options: StorageGetURLOperation.Request.Options? ) async throws -> URLParameters
keyThe unique identifier for the object in storage.
optionsParameters to specific plugin behavior
Return Value
requested Get URL
-
getURL(path:Asynchronousoptions: ) Retrieve the remote URL for the object from storage.
Tag: StorageCategoryBehavior.getURL
Declaration
Swift
@discardableResult func getURL( path: any StoragePath, options: StorageGetURLOperation.Request.Options? ) async throws -> URLParameters
paththe path to the object in storage.
optionsParameters to specific plugin behavior
Return Value
requested Get URL
-
Retrieve the object from storage into memory.
Tag: StorageCategoryBehavior.downloadData
Declaration
Swift
@available(*, deprecated, message: "Use downloadData(path:options:﹚") @discardableResult func downloadData( key: String, options: StorageDownloadDataOperation.Request.Options? ) -> StorageDownloadDataTaskParameters
keyThe unique identifier for the object in storage
optionsOptions to adjust the behavior of this request, including plugin-options
Return Value
A task that provides progress updates and the key which was used to download
-
Retrieve the object from storage into memory.
Tag: StorageCategoryBehavior.downloadData
Declaration
Swift
func downloadData( path: any StoragePath, options: StorageDownloadDataOperation.Request.Options? ) -> StorageDownloadDataTaskParameters
pathThe path for the object in storage
optionsOptions to adjust the behavior of this request, including plugin-options
Return Value
A task that provides progress updates and the key which was used to download
-
Download to file the object from storage.
Tag: StorageCategoryBehavior.downloadFile
Declaration
Swift
@available(*, deprecated, message: "Use downloadFile(path:options:﹚") @discardableResult func downloadFile( key: String, local: URL, options: StorageDownloadFileOperation.Request.Options? ) -> StorageDownloadFileTaskParameters
keyThe unique identifier for the object in storage.
localThe local file to download destination
optionsParameters to specific plugin behavior
Return Value
A task that provides progress updates and the key which was used to download
-
Download to file the object from storage.
Tag: StorageCategoryBehavior.downloadFile
Declaration
Swift
@discardableResult func downloadFile( path: any StoragePath, local: URL, options: StorageDownloadFileOperation.Request.Options? ) -> StorageDownloadFileTaskParameters
pathThe path for the object in storage.
localThe local file to download destination
optionsParameters to specific plugin behavior
Return Value
A task that provides progress updates and the key which was used to download
-
Upload data to storage
Tag: StorageCategoryBehavior.uploadData
Declaration
Swift
@available(*, deprecated, message: "Use uploadData(path:options:﹚") @discardableResult func uploadData( key: String, data: Data, options: StorageUploadDataOperation.Request.Options? ) -> StorageUploadDataTaskParameters
keyThe unique identifier of the object in storage.
dataThe data in memory to be uploaded
optionsParameters to specific plugin behavior
Return Value
A task that provides progress updates and the key which was used to upload
-
Upload data to storage
Tag: StorageCategoryBehavior.uploadData
Declaration
Swift
@discardableResult func uploadData( path: any StoragePath, data: Data, options: StorageUploadDataOperation.Request.Options? ) -> StorageUploadDataTaskParameters
pathThe path of the object in storage.
dataThe data in memory to be uploaded
optionsParameters to specific plugin behavior
Return Value
A task that provides progress updates and the key which was used to upload
-
Upload local file to storage
Tag: StorageCategoryBehavior.uploadFile
Declaration
Swift
@available(*, deprecated, message: "Use uploadFile(path:options:﹚") @discardableResult func uploadFile( key: String, local: URL, options: StorageUploadFileOperation.Request.Options? ) -> StorageUploadFileTaskParameters
keyThe unique identifier of the object in storage.
localThe path to a local file.
optionsParameters to specific plugin behavior
Return Value
A task that provides progress updates and the key which was used to upload
-
Upload local file to storage
Tag: StorageCategoryBehavior.uploadFile
Declaration
Swift
@discardableResult func uploadFile( path: any StoragePath, local: URL, options: StorageUploadFileOperation.Request.Options? ) -> StorageUploadFileTaskParameters
pathThe path of the object in storage.
localThe path to a local file.
optionsParameters to specific plugin behavior
Return Value
A task that provides progress updates and the key which was used to upload
-
remove(key:Asynchronousoptions: ) Delete object from storage
Tag: StorageCategoryBehavior.remove
Declaration
Swift
@available(*, deprecated, message: "Use remove(path:options:﹚") @discardableResult func remove( key: String, options: StorageRemoveOperation.Request.Options? ) async throws -> StringParameters
keyThe unique identifier of the object in storage.
optionsParameters to specific plugin behavior
Return Value
An operation object that provides notifications and actions related to the execution of the work
-
remove(path:Asynchronousoptions: ) Delete object from storage
Tag: StorageCategoryBehavior.remove
Declaration
Swift
@discardableResult func remove( path: any StoragePath, options: StorageRemoveOperation.Request.Options? ) async throws -> StringParameters
pathThe path of the object in storage.
optionsParameters to specific plugin behavior
Return Value
An operation object that provides notifications and actions related to the execution of the work
-
list(options:Asynchronous) List the object identifiers under the hierarchy specified by the path, relative to access level, from storage
Tag: StorageCategoryBehavior.list
Declaration
Swift
@available(*, deprecated, message: "Use list(path:options:﹚") @discardableResult func list(options: StorageListOperation.Request.Options?) async throws -> StorageListResultParameters
optionsParameters to specific plugin behavior
Return Value
An operation object that provides notifications and actions related to the execution of the work
-
list(path:Asynchronousoptions: ) List the object identifiers under the hierarchy specified by the path, relative to access level, from storage
Tag: StorageCategoryBehavior.list
Declaration
Swift
@discardableResult func list( path: any StoragePath, options: StorageListOperation.Request.Options? ) async throws -> StorageListResultParameters
pathThe path of the object in storage.
optionsParameters to specific plugin behavior
Return Value
An operation object that provides notifications and actions related to the execution of the work
-
handleBackgroundEvents(identifier:Asynchronous) Handles background events which are related to URLSession
Tag: StorageCategoryBehavior.handleBackgroundEvents
Declaration
Swift
func handleBackgroundEvents(identifier: String) async -> BoolParameters
identifieridentifier
Return Value
returns true if the identifier is handled by Amplify
View on GitHub