public static StartDownloadServiceIfRequired ( Android.Content.Context context, Android.Content.Intent intent, |
||
context | Android.Content.Context | /// Your application Context. /// |
intent | Android.Content.Intent | /// An Intent to start the Activity in your application that /// shows the download progress and which will also start the /// application when downloadcompletes. /// |
serviceType | /// The type of the service to start. /// | |
Résultat | DownloadServiceRequirement |
public static DownloadServiceRequirement StartDownloadServiceIfRequired(
Context context, Intent intent, Type serviceType)
{
var pendingIntent = (PendingIntent)intent.GetParcelableExtra(DownloaderServiceExtras.PendingIntent);
return StartDownloadServiceIfRequired(context, pendingIntent, serviceType);
}
DownloaderService::StartDownloadServiceIfRequired ( Android.Content.Context context, Android.App.PendingIntent pendingIntent, |