Table of Contents

Class PlayController

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

Represents play controller.

public abstract class PlayController : ControllerBase, IDisposable
Inheritance
PlayController
Implements
Derived
Inherited Members

Constructors

PlayController(Game)

Creates new instance of PlayController.

public PlayController(Game game)

Parameters

game Game

Methods

InvokeOnStarted()

Invoke to signal that game started running.

protected void InvokeOnStarted()

InvokeOnStarted(GameStartedEventArgs)

Invoke to signal that game started running.

protected void InvokeOnStarted(GameStartedEventArgs args)

Parameters

args GameStartedEventArgs

InvokeOnStopped(GameStoppedEventArgs)

Invoke to signal that game stopped running.

protected void InvokeOnStopped(GameStoppedEventArgs args)

Parameters

args GameStoppedEventArgs

Play(PlayActionArgs)

Play game.

public abstract void Play(PlayActionArgs args)

Parameters

args PlayActionArgs

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.