StorefrontImportMediaOption14.1
Class in Unbroken.LaunchBox.Plugins.Components.Storefronts
public sealed class StorefrontImportMediaOption
Describes one provider media choice shown by the host-owned manual import wizard.
Constructors
StorefrontImportMediaOptionInitializes a new instance of the StorefrontImportMediaOption class.
StorefrontImportMediaOption
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
public PluginText? DisplayName { get; }Gets the optional localizable text for the choice label.
IsSelectedByDefault
public bool IsSelectedByDefault { get; }Gets whether the choice is selected when the host has no saved preference.
MediaType
public string MediaType { get; }Gets the media type emitted by the provider's game metadata.