Skip to content

Automatic type discovery

Luke edited this page Aug 27, 2013 · 6 revisions

Media Browser will discover a number of Types in your plugin project automatically, without you having to do anything to wire them up. All you need to do is implement the appropriate interface and it will become part of the system.

The following interfaces are available for implementation:

IAppFactory

Implement this interface to create a list of apps that can be launched from the MBT home page. Apps can be external processes, or new pages that offer new functionality.

IInternalMediaPlayer, IExternalMediaPlayer

Implement either of these interfaces to add new media players. The user can then configure them in the configuration area.

IHomePage

Implement this interface to add a new home page. The user can select their home page of choice in the configuration area.

ISettingsPage

Implement this interface to add new settings pages to the configuration area.

IStartupEntryPoint

If you need to run initialization code at application start-up, implement this interface. The class will remain in memory for the lifetime of the application, so if you need to keep state, this is the place to put it. Keep in mind you can have as many of these as you need, allowing you to break larger plugins into smaller pieces.

IScheduledTask

Implement this interface to create a scheduled task that will appear in the Dashboard's Scheduled Tasks area. You'll define the default triggers that cause the task to run. The user will then be able to re-configure as desired, as well as run the task on demand.

ITheme

Implement this interface to create a new theme.