Interface IFile
Assembly: Glitch9.IO.dll
Syntax
[JsonConverter(typeof(IFileJsonConverter))]
public interface IFile : IData, IHasId<string>, IHasName
Properties
|
Edit this page
View Source
CloudUrl
Declaration
Property Value
|
Edit this page
View Source
ContentType
Declaration
MimeType ContentType { get; }
Property Value
|
Edit this page
View Source
Exists
Declaration
Property Value
|
Edit this page
View Source
Extension
Declaration
string Extension { get; }
Property Value
|
Edit this page
View Source
FileType
Declaration
Property Value
|
Edit this page
View Source
FullPath
Declaration
Property Value
|
Edit this page
View Source
HasData
Declaration
Property Value
|
Edit this page
View Source
HasValidPath
Declaration
bool HasValidPath { get; }
Property Value
|
Edit this page
View Source
IsError
Declaration
Property Value
|
Edit this page
View Source
IsLoaded
Declaration
Property Value
|
Edit this page
View Source
IsLoading
Declaration
Property Value
|
Edit this page
View Source
LastError
Declaration
string LastError { get; }
Property Value
|
Edit this page
View Source
Declaration
SerializableMetadata Metadata { get; }
Property Value
Methods
|
Edit this page
View Source
ChangeExtension(string)
Declaration
void ChangeExtension(string newExtension)
Parameters
| Type |
Name |
Description |
| string |
newExtension |
|
|
Edit this page
View Source
CopyTo(string)
Declaration
FileInfo CopyTo(string destinationPath)
Parameters
| Type |
Name |
Description |
| string |
destinationPath |
|
Returns
|
Edit this page
View Source
CopyTo(string, bool)
Declaration
FileInfo CopyTo(string destinationPath, bool overwrite)
Parameters
| Type |
Name |
Description |
| string |
destinationPath |
|
| bool |
overwrite |
|
Returns
|
Edit this page
View Source
Delete()
Declaration
|
Edit this page
View Source
EncodeToBase64()
Declaration
Returns
|
Edit this page
View Source
EnsureAssetLoaded(Action<bool>)
Declaration
void EnsureAssetLoaded(Action<bool> onResult = null)
Parameters
|
Edit this page
View Source
EnsureAssetLoadedAsync(Action<bool>)
Declaration
UniTask EnsureAssetLoadedAsync(Action<bool> onResult = null)
Parameters
Returns
|
Edit this page
View Source
ReadAllBytes()
Declaration
Returns
|
Edit this page
View Source
ReadAllBytesAsync()
Declaration
UniTask<byte[]> ReadAllBytesAsync()
Returns
| Type |
Description |
| UniTask<byte[]> |
|
|
Edit this page
View Source
ReloadAsset(Action<bool>)
Declaration
void ReloadAsset(Action<bool> onResult = null)
Parameters
Extension Methods