Package com.battlelancer.seriesguide.api
Class Intents
- java.lang.Object
-
- com.battlelancer.seriesguide.api.Intents
-
public class Intents extends Object
Helper methods to view shows or episodes within SeriesGuide.
-
-
Field Summary
Fields Modifier and Type Field Description static StringACTION_VIEW_EPISODEstatic StringACTION_VIEW_SHOWstatic StringEXTRA_EPISODE_NUMBERstatic StringEXTRA_EPISODE_SEASONstatic StringEXTRA_SHOW_TMDBID
-
Constructor Summary
Constructors Constructor Description Intents()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntentbuildViewEpisodeIntent(int showTmdbId, int seasonNumber, int episodeNumber)Builds an implicitIntentto view an episode in SeriesGuide.static IntentbuildViewShowIntent(int showTmdbId)Builds an implicitIntentto view a show in SeriesGuide.
-
-
-
Field Detail
-
ACTION_VIEW_EPISODE
public static final String ACTION_VIEW_EPISODE
- See Also:
- Constant Field Values
-
ACTION_VIEW_SHOW
public static final String ACTION_VIEW_SHOW
- See Also:
- Constant Field Values
-
EXTRA_EPISODE_NUMBER
public static final String EXTRA_EPISODE_NUMBER
- See Also:
- Constant Field Values
-
EXTRA_EPISODE_SEASON
public static final String EXTRA_EPISODE_SEASON
- See Also:
- Constant Field Values
-
EXTRA_SHOW_TMDBID
public static final String EXTRA_SHOW_TMDBID
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildViewEpisodeIntent
public static Intent buildViewEpisodeIntent(int showTmdbId, int seasonNumber, int episodeNumber)
Builds an implicitIntentto view an episode in SeriesGuide. Like any Intent it may throwActivityNotFoundException, e.g. if SeriesGuide (or another app capable of handling this intent) is not available.If the show does not exist, the user will be asked if the show should be added.
-
buildViewShowIntent
public static Intent buildViewShowIntent(int showTmdbId)
Builds an implicitIntentto view a show in SeriesGuide. Like any Intent it may throwActivityNotFoundException, e.g. if SeriesGuide (or another app capable of handling this intent) is not available.If the show is not added to SeriesGuide, the user will be asked if it should be.
-
-