LaunchBoxContributors
On this page

StorefrontImportMediaOption14.1

Class in Unbroken.LaunchBox.Plugins.Components.Storefronts

C#
public sealed class StorefrontImportMediaOption
Describes one provider media choice shown by the host-owned manual import wizard.

Constructors

StorefrontImportMediaOption

C#
public StorefrontImportMediaOption(
    string mediaType,
    PluginText? displayName = null,
    bool isSelectedByDefault = true
)
Initializes a new instance of the StorefrontImportMediaOption class.
mediaType
The media type emitted by GameMedia.MediaType, normally a value from ImageTypes or VideoTypes.
displayName
An optional localizable text for the choice label. The media type is used when omitted.
isSelectedByDefault
Whether the choice is selected when the host has no saved preference for the media type.

Properties

  • DisplayNameGets the optional localizable text for the choice label.
  • IsSelectedByDefaultGets whether the choice is selected when the host has no saved preference.
  • MediaTypeGets the media type emitted by the provider's game metadata.

DisplayName

C#
public PluginText? DisplayName { get; }
Gets the optional localizable text for the choice label.

IsSelectedByDefault

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

MediaType

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