public static void OnDownloadProgress(System.IntPtr callback, System.UInt32 taskId, DataDownloader.DownloadInfo info)
        {
            //	if (mCBImp != null)
            {
                GCHandle handle = GCHandle.FromIntPtr(callback);
                mCBImp = (IIPSMobileDownloadCallbackInterface)handle.Target;
                //handle.Free();

                mCBImp.OnDownloadProgress(taskId, info);
            }
        }
Beispiel #2
0
 private static extern byte GetDownloadTaskInfo(IntPtr dataDownloader, uint taskId, ref DataDownloader.DownloadInfo downloadInfo);
 public static void OnDownloadProgress(IntPtr callback, uint taskId, DataDownloader.DownloadInfo info)
 {
     DownloadCallBack.mCBImp = (IIPSMobileDownloadCallbackInterface)GCHandle.FromIntPtr(callback).get_Target();
     DownloadCallBack.mCBImp.OnDownloadProgress(taskId, info);
 }
Beispiel #4
0
 public bool GetDownloadTaskInfo(uint taskId, ref DataDownloader.DownloadInfo downloadInfo)
 {
     return(!(this.mDownloader == IntPtr.Zero) && DataDownloader.GetDownloadTaskInfo(this.mDownloader, taskId, ref downloadInfo) > 0);
 }