Table of Contents

Class SearchItem

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

Represents search item for global search results.

public class SearchItem : ObservableObject, INotifyPropertyChanged
Inheritance
SearchItem
Implements
Derived
Inherited Members

Constructors

SearchItem(string, SearchItemAction)

Creates new instance of SearchItem.

public SearchItem(string name, SearchItemAction primaryAction)

Parameters

name string
primaryAction SearchItemAction

SearchItem(string, SearchItemAction, object)

Creates new instance of SearchItem.

public SearchItem(string name, SearchItemAction primaryAction, object icon)

Parameters

name string
primaryAction SearchItemAction
icon object

SearchItem(string, string, Action)

Creates new instance of SearchItem.

public SearchItem(string name, string primaryActionName, Action primaryAction)

Parameters

name string
primaryActionName string
primaryAction Action

SearchItem(string, string, Action, object)

Creates new instance of SearchItem.

public SearchItem(string name, string primaryActionName, Action primaryAction, object icon)

Parameters

name string
primaryActionName string
primaryAction Action
icon object

Properties

Description

Gets or sets item description.

public string Description { get; set; }

Property Value

string

Icon

Gets or sets item icon.

public object Icon { get; set; }

Property Value

object

MenuAction

Gets or sets menu action context.

public ContextSwitchSearchItemAction MenuAction { get; set; }

Property Value

ContextSwitchSearchItemAction

Name

Gets or sets item name.

public string Name { get; set; }

Property Value

string

PrimaryAction

Gets or sets primary actions.

public SearchItemAction PrimaryAction { get; set; }

Property Value

SearchItemAction

SecondaryAction

Gets or sets secondary action.

public SearchItemAction SecondaryAction { get; set; }

Property Value

SearchItemAction