C# Class Hanselminutes.HomeViewController

Datei anzeigen Open project: chrisntr/HanselminutesIphone Class Usage Examples

Private Properties

Property Type Description
BufferedSignificantly bool
CancelCurrentAudioPlayback void
CancelCurrentClientCalls void
DisplayButtonPressed void
DisplayButtonPressed void
DisplayPodcastList void
DownloadPodcastFile void
GetCurrentAudioLength double
GetCurrentAudioLength double
GetLocalPodcastListXml string
GetPodcastList void
HandleClientDownloadProgressChanged void
HasLocalXml bool
HomeViewController System
Initialize void
OfflineMp3Available bool
PausePlayback void
PlayButtonPressed void
PlayButtonPressed void
PlaybackAudio void
ResetProgressBar void
SaveOnDevice void
SetAudioSession void
StartInternetActivity void
StartLoadingScreen void
StartPlayback void
StopInternetActivity void
StopLoadingScreen void
UpdateCurrentTime void
UpdateTotalTime void
UpdateViewForPlayerInfo void
UpdateViewForPlayerState void

Public Methods

Method Description
HomeViewController ( ) : System
HomeViewController ( IntPtr handle ) : System
PlayAudioUrl ( string url ) : void
ViewDidLoad ( ) : void

Private Methods

Method Description
BufferedSignificantly ( bool playing, int ProgressPercentage ) : bool
CancelCurrentAudioPlayback ( ) : void
CancelCurrentClientCalls ( ) : void
DisplayButtonPressed ( MonoTouch sender ) : void
DisplayButtonPressed ( UIButton sender ) : void
DisplayPodcastList ( string podcastXml ) : void

Uses the XML string to display podcasts in the table view.

DownloadPodcastFile ( string partialFilePath, string offlineFilePath, string url ) : void
GetCurrentAudioLength ( double byteCount ) : double

Converts byte count and bit rate into time in seconds - will use 96kbps as bit rate.

GetCurrentAudioLength ( double byteCount, double bitRate ) : double

Converts byte count and bit rate into time in seconds.

GetLocalPodcastListXml ( ) : string

Reads in the local podcast xml string.

GetPodcastList ( ) : void

Gets a list of podcasts from local storage or online.

HandleClientDownloadProgressChanged ( object sender2, DownloadProgressChangedEventArgs e2 ) : void
HasLocalXml ( ) : bool

Checks to see if we have a local podcast xml string.

HomeViewController ( NSCoder coder ) : System
Initialize ( ) : void
OfflineMp3Available ( string offlineFilePath ) : bool

Checks if a Offline Mp3 is available.

PausePlayback ( ) : void
PlayButtonPressed ( MonoTouch sender ) : void
PlayButtonPressed ( UIButton sender ) : void
PlaybackAudio ( string filePath ) : void
ResetProgressBar ( ) : void

Resets the progress bar.

SaveOnDevice ( string podcastXmlString ) : void

Saves the podcast xml string locally as a file on the device.

SetAudioSession ( string audioCategory ) : void

Sets the Audio Session for the iPhone application.

StartInternetActivity ( ) : void
StartLoadingScreen ( string message ) : void

Creates a Loading Screen with the specified message.

StartPlayback ( ) : void
StopInternetActivity ( ) : void
StopLoadingScreen ( ) : void

If a loading screen exists, it will fade it out.

UpdateCurrentTime ( ) : void

Updates the current playing time.

UpdateTotalTime ( ) : void

Update the Total time from byte count.

UpdateViewForPlayerInfo ( ) : void

Update the Total Time from the duration.

UpdateViewForPlayerState ( ) : void

Handle update timers and button presses.

Method Details

HomeViewController() public method

public HomeViewController ( ) : System
return System

HomeViewController() public method

public HomeViewController ( IntPtr handle ) : System
handle IntPtr
return System

PlayAudioUrl() public method

public PlayAudioUrl ( string url ) : void
url string
return void

ViewDidLoad() public method

public ViewDidLoad ( ) : void
return void