Class LibraryPlugin
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
LibraryBackground
Gets library background image or null if no background is available.
public virtual string LibraryBackground { get; }
Property Value
LibraryIcon
Gets library icon or null if no icon is available.
public virtual string LibraryIcon { get; }
Property Value
Name
Gets library name.
public abstract string Name { get; }
Property Value
Properties
Gets plugin's properties.
public LibraryPluginProperties Properties { get; protected set; }
Property Value
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
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.