Table of Contents

Interface IContentProvider

Namespace
MonoGame.Framework.Content
Assembly
MonoGame.Framework.dll

A content provider used for loading of remote content by TitleContainer.

public interface IContentProvider

Methods

FetchContent(string)

Sends a request for the content to be acquired from the remote content server.

Task<bool> FetchContent(string relativePath)

Parameters

relativePath string

Relative path to the content.

Returns

Task<bool>

true if no unexpected error has occured, false otherwise.

OpenReadStream(string)

Opens the file stream that was acquired by FetchContent(string) if its available.

Stream OpenReadStream(string relativePath)

Parameters

relativePath string

Relative path to the content.

Returns

Stream

A valid Stream if the content was found, null otherwise.