Table of Contents

Class LibraryPlugin

Namespace
Playnite.SDK.Plugins
Assembly
Playnite.SDK.dll

Represents base game library plugin.

public abstract class LibraryPlugin : Plugin, IDisposable, IIdentifiable
Inheritance
LibraryPlugin
Implements
Inherited Members

Constructors

LibraryPlugin(IPlayniteAPI)

Creates new instance of LibraryPlugin.

public LibraryPlugin(IPlayniteAPI playniteAPI)

Parameters

playniteAPI IPlayniteAPI

Properties

Client

Gets library client application or null if no client is associated with this library.

public virtual LibraryClient Client { get; }

Property Value

LibraryClient

LibraryBackground

Gets library background image or null if no background is available.

public virtual string LibraryBackground { get; }

Property Value

string

LibraryIcon

Gets library icon or null if no icon is available.

public virtual string LibraryIcon { get; }

Property Value

string

Name

Gets library name.

public abstract string Name { get; }

Property Value

string

Properties

Gets plugin's properties.

public LibraryPluginProperties Properties { get; protected set; }

Property Value

LibraryPluginProperties

Methods

GetGames(LibraryGetGamesArgs)

Gets library games.

public virtual IEnumerable<GameMetadata> GetGames(LibraryGetGamesArgs args)

Parameters

args LibraryGetGamesArgs

Returns

IEnumerable<GameMetadata>

List of library games.

GetMetadataDownloader()

Gets library metadata downloader or null if no metadata provider is available.

public virtual LibraryMetadataProvider GetMetadataDownloader()

Returns

LibraryMetadataProvider

Metadata downloader.

ImportGames(LibraryImportGamesArgs)

Initiates game import if "HasCustomizedGameImport" capability is enabled.

public virtual IEnumerable<Game> ImportGames(LibraryImportGamesArgs args)

Parameters

args LibraryImportGamesArgs

Returns

IEnumerable<Game>

List of newly imported games.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.