C# Класс Hanselminutes.HomeViewController

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
HomeViewController ( ) : System
HomeViewController ( IntPtr handle ) : System
PlayAudioUrl ( string url ) : void
ViewDidLoad ( ) : void

Приватные методы

Метод Описание
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.

Описание методов

HomeViewController() публичный Метод

public HomeViewController ( ) : System
Результат System

HomeViewController() публичный Метод

public HomeViewController ( IntPtr handle ) : System
handle IntPtr
Результат System

PlayAudioUrl() публичный Метод

public PlayAudioUrl ( string url ) : void
url string
Результат void

ViewDidLoad() публичный Метод

public ViewDidLoad ( ) : void
Результат void