Skip to content

Commit

Permalink
Hdworld11/general improvements (#7437)
Browse files Browse the repository at this point in the history
* update swift set up code sample

* remove plugin options for swift
  • Loading branch information
hdworld11 authored May 2, 2024
1 parent a86ba5a commit bbc4de3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { getCustomStaticPath } from '@/utils/getCustomStaticPath';
export const meta = {
title: 'Data usage policy',
description: "Review the data types gathered by the Amplify library that Apple requires you to disclose in your app's data usage policy when submitting the app to the App Store.",
platforms: ['swift']
platforms: ['swift',
'flutter']
};

export const getStaticPaths = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ let url = try await Amplify.Storage.getURL(
Option | Type | Description |
| -- | -- | ----------- |
| expires | Integer | Number of seconds before the URL expires |
| pluginOptions | - | Extra plugin specific options, only used in special circumstances when the existing options do not provide a way to utilize the underlying storage system's functionality. |

</InlineFilter>

Expand Down Expand Up @@ -368,16 +367,6 @@ let resultSink = downloadTask
</BlockSwitcher>
</InlineFilter>

<InlineFilter filters={["swift"]}>

### More download options

Option | Description |
| -- | ----------- |
| pluginOptions | Extra plugin specific options, only used in special circumstances when the existing options do not provide a way to utilize the underlying storage system's functionality. |
</InlineFilter>
<InlineFilter filters={["flutter"]}>

You can download a file to a local directory using `Amplify.Storage.downloadFile`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ Option | Type | Description |
| -- | -- | ----------- |
| pageSize | UInt | Number between 1 and 1,000 that indicates the limit of how many entries to fetch when retrieving file lists from the server |
| nextToken | String | String indicating the page offset at which to resume a listing. |
| pluginOptions | - | Extra plugin specific options, only used in special circumstances when the existing options do not provide a way to utilize the underlying storage system's functionality. |

</InlineFilter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ receiveValue: { removedObject in

</BlockSwitcher>

### More `remove` options

Option | Description |
| -- | ----------- |
| pluginOptions | Extra plugin specific options, only used in special circumstances when the existing options do not provide a way to utilize the underlying storage system's functionality. |

</InlineFilter>

<InlineFilter filters={["flutter"]}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,6 @@ Option | Type | Description |
| -- | -- | ----------- |
| metadata | Dictionary | Metadata for the object to store. |
| contentType | String | The standard MIME type describing the format of the object to store. |
| pluginOptions | - | Extra plugin specific options, only used in special circumstances when the existing options do not provide a way to utilize the underlying storage system's functionality. |

</InlineFilter>

Expand Down

0 comments on commit bbc4de3

Please sign in to comment.