downloadManifest

suspend fun downloadManifest(depotId: Int, manifestId: Long, manifestRequestCode: ULong, server: Server, depotKey: ByteArray? = null, proxyServer: Server? = null, cdnAuthToken: String? = null): DepotManifest

Downloads the depot manifest specified by the given manifest ID, and optionally decrypts the manifest's filenames if the depot decryption key has been provided.

Return

A DepotManifest instance that contains information about the files present within a depot.

Parameters

depotId

The id of the depot being accessed.

manifestId

The unique identifier of the manifest to be downloaded.

manifestRequestCode

The manifest request code for the manifest that is being downloaded.

server

The content server to connect to.

depotKey

The depot decryption key for the depot that will be downloaded. This is used for decrypting filenames (if needed) in depot manifests.

proxyServer

Optional content server marked as UseAsProxy which transforms the request.

cdnAuthToken

CDN auth token for CDN content server endpoints if necessary. Get one with SteamContent.getCDNAuthToken.

Throws

A network error occurred when performing the request.

A network error occurred when performing the request.

When the data received is not as expected