Пример #1
0
            public override void OnProgress(VKProgressType progressType, long bytesLoaded, long bytesTotal)
            {
                var handler = onProgress;

                if (handler != null)
                {
                    handler(progressType, bytesLoaded, bytesTotal);
                }
            }
Пример #2
0
 /**
  * Called immediately if there was API error, or after <b>attempts</b> tries if there was an HTTP error
  *
  * @param error error for VKRequest
  */
 /**
  * Specify progress for uploading or downloading. Useless for text requests (because gzip encoding bytesTotal will always return -1)
  *
  * @param progressType type of progress (upload or download)
  * @param bytesLoaded  total bytes loaded
  * @param bytesTotal   total bytes suppose to be loaded
  */
 public void onProgress(VKProgressType progressType, long bytesLoaded, long bytesTotal)
 {
 }