C# Class PodcastWP.PodcastHelper

ファイルを表示 Open project: robwirving/PodcastWP

Public Methods

Method Description
CommandPodcastApp ( PodcastCommand command, PlayMode playMode = PlayMode.None, UiMode uiMode = UiMode.Standard, string callbackUri = "", string callbackName = "" ) : void

Launches a podcast app w/ a specified command

HasPodcastUri ( Uri uri ) : bool

Determines whether the specified URI uses the podcast URI scheme

RetrievePodcastAction ( Uri uri ) : PodcastAction

Retrieves the podcast action.

SubscribeToPodcast ( Uri feedUrl, string callbackUri = "", string callbackName = "" ) : void

Launches a podcast app w/ a request to subscribe to a specified podcast

Method Details

CommandPodcastApp() public static method

Launches a podcast app w/ a specified command
public static CommandPodcastApp ( PodcastCommand command, PlayMode playMode = PlayMode.None, UiMode uiMode = UiMode.Standard, string callbackUri = "", string callbackName = "" ) : void
command PodcastCommand The command.
playMode PlayMode The mode of playback
uiMode UiMode The mode of the UI
callbackUri string The callback URI for your app if you want to be called back after the podcast app finishes its command.
callbackName string The name of your app which could be displayed in the target podcast app
return void

HasPodcastUri() public static method

Determines whether the specified URI uses the podcast URI scheme
public static HasPodcastUri ( Uri uri ) : bool
uri System.Uri The URI.
return bool

RetrievePodcastAction() public static method

Retrieves the podcast action.
public static RetrievePodcastAction ( Uri uri ) : PodcastAction
uri System.Uri The URI.
return PodcastAction

SubscribeToPodcast() public static method

Launches a podcast app w/ a request to subscribe to a specified podcast
public static SubscribeToPodcast ( Uri feedUrl, string callbackUri = "", string callbackName = "" ) : void
feedUrl System.Uri Url for the podcast feed
callbackUri string The callback URI for your app if you want to be called back after the podcast app finishes its command.
callbackName string The name of your app which could be displayed in the target podcast app
return void