Stay organized with collections
Save and categorize content based on your preferences.
Firebase.Storage.DownloadState
DownloadState contains information for a download in progress.
Summary
It is sent to a StorageProgress handler during the operation.
Properties
BytesTransferred
long BytesTransferred
The total number of bytes downloaded so far.
Details |
Returns
|
the total number of bytes downloaded so far.
|
TotalByteCount
long TotalByteCount
The total number of bytes to download.
Details |
Returns
|
The total number of bytes to download or -1 if the size is unknown.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-17 UTC.
[null,null,["Last updated 2021-06-17 UTC."],[],[],null,["# Firebase.Storage.DownloadState Class Reference\n\nFirebase.Storage.DownloadState\n==============================\n\n[DownloadState](/docs/reference/unity/class/firebase/storage/download-state#class_firebase_1_1_storage_1_1_download_state) contains information for a download in progress.\n\nSummary\n-------\n\nIt is sent to a StorageProgress handler during the operation.\n\n| ### Properties ||\n|-------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BytesTransferred](#class_firebase_1_1_storage_1_1_download_state_1aa44d93d22909420964fa83194e67d152) | `long` The total number of bytes downloaded so far. |\n| [Reference](#class_firebase_1_1_storage_1_1_download_state_1a02f50301ed03af0465c7ad4897890ee0) | [StorageReference](/docs/reference/unity/class/firebase/storage/storage-reference#class_firebase_1_1_storage_1_1_storage_reference) Returns the [StorageReference](/docs/reference/unity/class/firebase/storage/storage-reference#class_firebase_1_1_storage_1_1_storage_reference) associated with this download. |\n| [TotalByteCount](#class_firebase_1_1_storage_1_1_download_state_1ad6fed86074c174a64873b52fe1936731) | `long` The total number of bytes to download. |\n\nProperties\n----------\n\n### BytesTransferred\n\n```c#\nlong BytesTransferred\n``` \nThe total number of bytes downloaded so far.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|----------------------------------------------|\n| **Returns** | the total number of bytes downloaded so far. |\n\n### Reference\n\n```c#\nStorageReference Reference\n``` \nReturns the [StorageReference](/docs/reference/unity/class/firebase/storage/storage-reference#class_firebase_1_1_storage_1_1_storage_reference) associated with this download.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | the [StorageReference](/docs/reference/unity/class/firebase/storage/storage-reference#class_firebase_1_1_storage_1_1_storage_reference) associated with this download. |\n\n### TotalByteCount\n\n```c#\nlong TotalByteCount\n``` \nThe total number of bytes to download.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|---------------------------------------------------------------------|\n| **Returns** | The total number of bytes to download or -1 if the size is unknown. |"]]