Table of Contents

Class BasicSidebarItem

Namespace
Playnite
Assembly
Playnite.SDK.dll
public class BasicSidebarItem : SidebarItem, INotifyPropertyChanged, INotifyPropertyChanging, IAsyncDisposable
Inheritance
BasicSidebarItem
Implements
Inherited Members

Constructors

BasicSidebarItem(UIIcon?, SidebarItemPopup, SidebarItemPopup?, Action<DisposeArgs>?, string?)

public BasicSidebarItem(UIIcon? icon, SidebarItemPopup leftClickPopup, SidebarItemPopup? rightClickPopup, Action<BasicSidebarItem.DisposeArgs>? disposeAction, string? tooltip)

Parameters

icon UIIcon
leftClickPopup SidebarItemPopup
rightClickPopup SidebarItemPopup
disposeAction Action<BasicSidebarItem.DisposeArgs>
tooltip string

BasicSidebarItem(UIIcon?, SidebarItemPopup, SidebarItemPopup?, Func<DisposeArgs, Task>?, string?)

public BasicSidebarItem(UIIcon? icon, SidebarItemPopup leftClickPopup, SidebarItemPopup? rightClickPopup, Func<BasicSidebarItem.DisposeArgs, Task>? disposeAction, string? tooltip)

Parameters

icon UIIcon
leftClickPopup SidebarItemPopup
rightClickPopup SidebarItemPopup
disposeAction Func<BasicSidebarItem.DisposeArgs, Task>
tooltip string

BasicSidebarItem(UIIcon?, SidebarItemPopup, SidebarItemPopup?, string?)

public BasicSidebarItem(UIIcon? icon, SidebarItemPopup leftClickPopup, SidebarItemPopup? rightClickPopup = null, string? tooltip = null)

Parameters

icon UIIcon
leftClickPopup SidebarItemPopup
rightClickPopup SidebarItemPopup
tooltip string

BasicSidebarItem(UIIcon?, Action<ClickArgs>, Action<DisposeArgs>?, SidebarItemPopup?, string?)

public BasicSidebarItem(UIIcon? icon, Action<BasicSidebarItem.ClickArgs> clickAction, Action<BasicSidebarItem.DisposeArgs>? disposeAction = null, SidebarItemPopup? rightClickPopup = null, string? tooltip = null)

Parameters

icon UIIcon
clickAction Action<BasicSidebarItem.ClickArgs>
disposeAction Action<BasicSidebarItem.DisposeArgs>
rightClickPopup SidebarItemPopup
tooltip string

BasicSidebarItem(UIIcon?, Func<ClickArgs, Task>, Func<DisposeArgs, Task>?, SidebarItemPopup?, string?)

public BasicSidebarItem(UIIcon? icon, Func<BasicSidebarItem.ClickArgs, Task> clickAction, Func<BasicSidebarItem.DisposeArgs, Task>? disposeAction = null, SidebarItemPopup? rightClickPopup = null, string? tooltip = null)

Parameters

icon UIIcon
clickAction Func<BasicSidebarItem.ClickArgs, Task>
disposeAction Func<BasicSidebarItem.DisposeArgs, Task>
rightClickPopup SidebarItemPopup
tooltip string

Properties

LeftClickPopup

public SidebarItemPopup? LeftClickPopup { get; }

Property Value

SidebarItemPopup

RightClickPopup

public SidebarItemPopup? RightClickPopup { get; }

Property Value

SidebarItemPopup

Methods

ClickAsync(ClickAsyncArgs)

public override Task ClickAsync(SidebarItem.ClickAsyncArgs args)

Parameters

args SidebarItem.ClickAsyncArgs

Returns

Task

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public override ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.