AirshipCachedAssetsProtocol

public protocol AirshipCachedAssetsProtocol : Sendable

Convenience struct representing an assets directory containing asset files with filenames derived from their remote URL using sha256.

  • Return URL at which to cache a given asset

    Declaration

    Swift

    func cachedURL(remoteURL: URL) -> URL?

    Parameters

    remoteURL

    URL from which the cached data is fetched

    Return Value

    URL at which to cache a given asset

  • Checks if a URL is cached

    Declaration

    Swift

    func isCached(remoteURL: URL) -> Bool

    Parameters

    remoteURL

    URL from which the cached data is fetched

    Return Value

    true if cached, otherwise false.