| using Playnite.SDK.Models; |
| using Playnite.SDK.Models; |
| using System; |
| using System; |
| using System.Collections.Generic; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Linq; |
| using System.Text; |
| using System.Text; |
| using System.Threading.Tasks; |
| using System.Threading.Tasks; |
| |
| |
| namespace Playnite.SDK |
| namespace Playnite.SDK |
| { |
| { |
| /// <summary> |
| /// <summary> |
| /// Describes object providing API for main UI view. |
| /// Describes object providing API for main UI view. |
| /// </summary> |
| /// </summary> |
| public interface IMainViewAPI |
| public interface IMainViewAPI |
| { |
| { |
| /// <summary> |
| /// <summary> |
| /// Gets list of currently selected games. |
| /// Gets list of currently selected games. |
| /// </summary> |
| /// </summary> |
| IEnumerable<Game> SelectedGames { get; } |
| IEnumerable<Game> SelectedGames { get; } |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Opens settings view for specified plugin. |
| /// Opens settings view for specified plugin. |
| /// </summary> |
| /// </summary> |
| /// <param name="pluginId">Plugin ID.</param> |
| /// <param name="pluginId">Plugin ID.</param> |
| /// <returns>True if user saved any changes, False if dialog was canceled.</returns> |
| /// <returns>True if user saved any changes, False if dialog was canceled.</returns> |
| bool OpenPluginSettings(Guid pluginId); |
| bool OpenPluginSettings(Guid pluginId); |
. | |
| |
| |
| /// <summary> |
| |
| /// Switches Playnite to Library view. |
| |
| /// </summary> |
| |
| void SwitchToLibraryView(); |
| |
| |
| |
| /// <summary> |
| |
| /// Selects game. |
| |
| /// </summary> |
| |
| /// <param name="gameId">Game's database ID.</param> |
| |
| void SelectGame(Guid gameId); |
| } |
| } |
| } |
| } |
| |
| |