LaunchBoxCONTRIBUTORS
On this page

14.1 Beta 1 SDK

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

StorefrontProviderImportMediaOption14.1 Beta

C#
public sealed class Unbroken.LaunchBox.Plugins.Storefronts.StorefrontProviderImportMediaOption
Describes one provider media choice shown by the host-owned manual import wizard.

Constructors

StorefrontProviderImportMediaOption 14.1 Beta

C#
public StorefrontProviderImportMediaOption(string mediaType, string? displayNameResourceKey = null, bool isSelectedByDefault = true)
mediaType 14.1 Beta
The media type emitted by Unbroken.LaunchBox.Plugins.Storefronts.StorefrontGameMedia.MediaType, normally a value from Unbroken.LaunchBox.Plugins.Data.ImageTypes or Unbroken.LaunchBox.Plugins.Data.VideoTypes.
displayNameResourceKey 14.1 Beta
An optional plugin string-resource key for the choice label. The media type is used when omitted.
isSelectedByDefault 14.1 Beta
Whether the choice is selected when the host has no saved preference for the media type.

Properties

DisplayNameResourceKey 14.1 Beta

C#
public string? DisplayNameResourceKey { get; }
Gets the optional plugin string-resource key for the choice label.

IsSelectedByDefault 14.1 Beta

C#
public bool IsSelectedByDefault { get; }
Gets whether the choice is selected when the host has no saved preference.

MediaType 14.1 Beta

C#
public string MediaType { get; }
Gets the media type emitted by the provider's game metadata.