AdaptiveMediaSource.DownloadCompleted Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a resource download operation completes
// Register
event_token DownloadCompleted(TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadCompletedEventArgs const&> const& handler) const;
// Revoke with event_token
void DownloadCompleted(event_token const* cookie) const;
// Revoke with event_revoker
AdaptiveMediaSource::DownloadCompleted_revoker DownloadCompleted(auto_revoke_t, TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<AdaptiveMediaSource,AdaptiveMediaSourceDownloadCompletedEventArgs> DownloadCompleted;
function onDownloadCompleted(eventArgs) { /* Your code */ }
adaptiveMediaSource.addEventListener("downloadcompleted", onDownloadCompleted);
adaptiveMediaSource.removeEventListener("downloadcompleted", onDownloadCompleted);
- or -
adaptiveMediaSource.ondownloadcompleted = onDownloadCompleted;
Public Custom Event DownloadCompleted As TypedEventHandler(Of AdaptiveMediaSource, AdaptiveMediaSourceDownloadCompletedEventArgs)