Interface IPlayniteAPI
Describes object providing Playnite API.
public interface IPlayniteAPI
Properties
Addons
Gets addons API.
IAddons Addons { get; }
Property Value
ApplicationInfo
Gets application info API.
IPlayniteInfoAPI ApplicationInfo { get; }
Property Value
ApplicationSettings
Get application settings API.
IPlayniteSettingsAPI ApplicationSettings { get; }
Property Value
Database
Gets database API.
IGameDatabaseAPI Database { get; }
Property Value
Dialogs
Gets dialog API.
IDialogsFactory Dialogs { get; }
Property Value
Emulation
Gets emulation API.
IEmulationAPI Emulation { get; }
Property Value
MainView
Gets main view API.
IMainViewAPI MainView { get; }
Property Value
Notifications
Gets notification API.
INotificationsAPI Notifications { get; }
Property Value
Paths
Gets paths API.
IPlaynitePathsAPI Paths { get; }
Property Value
Resources
Gets resources API.
IResourceProvider Resources { get; }
Property Value
UriHandler
Gets URI handler API.
IUriHandlerAPI UriHandler { get; }
Property Value
WebViews
Gets web view API.
IWebViewFactory WebViews { get; }
Property Value
Methods
AddConvertersSupport(Plugin, AddConvertersSupportArgs)
void AddConvertersSupport(Plugin source, AddConvertersSupportArgs args)
Parameters
source
Pluginargs
AddConvertersSupportArgs
AddCustomElementSupport(Plugin, AddCustomElementSupportArgs)
void AddCustomElementSupport(Plugin source, AddCustomElementSupportArgs args)
Parameters
source
Pluginargs
AddCustomElementSupportArgs
AddSettingsSupport(Plugin, AddSettingsSupportArgs)
void AddSettingsSupport(Plugin source, AddSettingsSupportArgs args)
Parameters
source
Pluginargs
AddSettingsSupportArgs
ExpandGameVariables(Game, GameAction)
Expands dynamic game variables in specified game action.
GameAction ExpandGameVariables(Game game, GameAction action)
Parameters
game
GameGame to use dynamic variables from.
action
GameActionGame action to expand variables to.
Returns
- GameAction
Game action with expanded variables.
ExpandGameVariables(Game, string)
Expands dynamic game variables in specified string.
string ExpandGameVariables(Game game, string inputString)
Parameters
game
GameGame to use dynamic variables from.
inputString
stringString containing dynamic variables.
Returns
- string
String with replaces variables.
ExpandGameVariables(Game, string, string)
Expands dynamic game variables in specified string.
string ExpandGameVariables(Game game, string inputString, string emulatorDir)
Parameters
game
GameGame to use dynamic variables from.
inputString
stringString containing dynamic variables.
emulatorDir
stringString to be used to expand {EmulatorDir} variable if present.
Returns
- string
String with replaces variables.
InstallGame(Guid)
Installs game.
void InstallGame(Guid gameId)
Parameters
gameId
GuidGame's database ID.
StartGame(Guid)
Starts game.
void StartGame(Guid gameId)
Parameters
gameId
GuidGame's database ID.
UninstallGame(Guid)
Uninstalls game.
void UninstallGame(Guid gameId)
Parameters
gameId
GuidGame's database ID.