Search Results for

    Show / Hide Table of Contents

    Interface IFile

    Inherited Members
    IHasId<string>.Id
    IHasName.Name
    Namespace: Glitch9.IO.Files
    Assembly: Glitch9.IO.dll
    Syntax
    [JsonConverter(typeof(IFileJsonConverter))]
    public interface IFile : IData, IHasId<string>, IHasName

    Properties

    | Edit this page View Source

    CloudUrl

    Declaration
    string CloudUrl { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ContentType

    Declaration
    MimeType ContentType { get; }
    Property Value
    Type Description
    MimeType
    | Edit this page View Source

    Exists

    Declaration
    bool Exists { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Extension

    Declaration
    string Extension { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    FileType

    Declaration
    string FileType { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    FullPath

    Declaration
    string FullPath { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    HasData

    Declaration
    bool HasData { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    HasValidPath

    Declaration
    bool HasValidPath { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsError

    Declaration
    bool IsError { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsLoaded

    Declaration
    bool IsLoaded { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsLoading

    Declaration
    bool IsLoading { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    LastError

    Declaration
    string LastError { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Metadata

    Declaration
    SerializableMetadata Metadata { get; }
    Property Value
    Type Description
    SerializableMetadata

    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
    Type Description
    FileInfo
    | Edit this page View Source

    CopyTo(string, bool)

    Declaration
    FileInfo CopyTo(string destinationPath, bool overwrite)
    Parameters
    Type Name Description
    string destinationPath
    bool overwrite
    Returns
    Type Description
    FileInfo
    | Edit this page View Source

    Delete()

    Declaration
    void Delete()
    | Edit this page View Source

    EncodeToBase64()

    Declaration
    string EncodeToBase64()
    Returns
    Type Description
    string
    | Edit this page View Source

    EnsureAssetLoaded(Action<bool>)

    Declaration
    void EnsureAssetLoaded(Action<bool> onResult = null)
    Parameters
    Type Name Description
    Action<bool> onResult
    | Edit this page View Source

    EnsureAssetLoadedAsync(Action<bool>)

    Declaration
    UniTask EnsureAssetLoadedAsync(Action<bool> onResult = null)
    Parameters
    Type Name Description
    Action<bool> onResult
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    ReadAllBytes()

    Declaration
    byte[] ReadAllBytes()
    Returns
    Type Description
    byte[]
    | 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
    Type Name Description
    Action<bool> onResult

    Extension Methods

    CoreLibTypeExtensions.GetNameOrDash(IData)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    FileExtensions.GetUnityObjectOrNull<T>(IFile)
    FileExtensions.ToBase64String(IFile)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation