LaunchBoxCONTRIBUTORS
On this page

14.1 Beta 1 SDK

This reference documents the current beta SDK. Beta APIs can change before stable.

GameActivityObservation14.1 Beta

C#
public sealed class Unbroken.LaunchBox.Plugins.Activity.GameActivityObservation
Describes cumulative playtime and last-played data for one associated game.

Constructors

GameActivityObservation 14.1 Beta

C#
public GameActivityObservation(string gameId)
Creates an observation.
gameId 14.1 Beta
The source-local game ID.

Properties

GameId 14.1 Beta

C#
public string GameId { get; }
Gets the source-local game ID.

LastPlayed 14.1 Beta

C#
public System.DateTimeOffset? LastPlayed { get; init; }
Gets or initializes the last-played instant, or null when unknown.

PlayTime 14.1 Beta

C#
public System.TimeSpan? PlayTime { get; init; }
Gets or initializes the nonnegative cumulative playtime. Null is unknown; zero is an observed zero.