-
-
Notifications
You must be signed in to change notification settings - Fork 402
Extension API
Uwe Trottmann edited this page Sep 23, 2016
·
33 revisions
Learn how to build extensions for SeriesGuide.
An extension provides a piece of text and optionally a view intent for media items (currently only episodes). It might just link to external content (app deep-link, web page, ...) or trigger an action in another app (play, record, ...). Or just display some status information (e.g. "downloaded").
- If your Android project is built with Gradle or Maven, add the following dependency:
com.uwetrottmann.seriesguide:seriesguide-api:1.3.0
For everyone else, the API jar is available on Maven Central. - Create a new class that extends
SeriesGuideExtension
and implements at least one of theonRequest
methods. - Add the required tags to your
AndroidManifest.xml
file. Read the class documentation ofSeriesGuideExtension
for details.
Install your extension side-by-side with SeriesGuide. You should be able to add it from the extension customization screen. The activity of this screen, ExtensionsConfigurationActivity
, is also exported so you can directly start it if you want to direct users to it.
A sample extension Android project for Android Studio is available.
Take a look at the API reference documentation.
- Add show release date to
Episode
. Formatted as an ISO string, for example: ``. - Support for movies. Added an additonal
onRequest
method specific for movie actions. Extensions can choose if to implement episode or movie actions, or both.
- Add absolute number to
Episode
.
- Updated
Intents
helper class to create intents that do not create new tasks.
- Create
Intents
class to create intents for viewing shows or episodes with SeriesGuide.
- Initial release. Extensions can provide actions for episodes.