ExpansionDownloader.Service.DownloaderService.StartDownloadServiceIfRequired C# (CSharp) Метод

StartDownloadServiceIfRequired() публичный статический Метод

This version assumes that the intent contains the pending intent as a parameter. This is used for responding to alarms. The pending intent must be in an extra with the key DownloaderService#PendingIntent.
public static StartDownloadServiceIfRequired ( Android.Content.Context context, Android.Content.Intent intent, Type serviceType ) : DownloadServiceRequirement
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 System.Type /// The type of the service to start. ///
Результат DownloadServiceRequirement
        public static DownloadServiceRequirement StartDownloadServiceIfRequired(
            Context context, Intent intent, Type serviceType)
        {
            var pendingIntent = (PendingIntent)intent.GetParcelableExtra(DownloaderServiceExtras.PendingIntent);
            return StartDownloadServiceIfRequired(context, pendingIntent, serviceType);
        }

Same methods

DownloaderService::StartDownloadServiceIfRequired ( Android.Content.Context context, Android.App.PendingIntent pendingIntent, Type serviceType ) : DownloadServiceRequirement