Пример #1
0
 public IIPSMobileVersionCallBack(IIPSMobileVersionCallBackInterface imp)
 {
     this.pManagedObject = GCHandle.ToIntPtr(GCHandle.Alloc(imp, GCHandleType.Normal));
     this.versionFunc    = new OnGetNewVersionInfoFunc(IIPSMobileVersionCallBack.OnGetNewVersionInfo);
     this.progressFunc   = new OnProgressFunc(IIPSMobileVersionCallBack.OnProgress);
     this.errFunc        = new OnErrorFunc(IIPSMobileVersionCallBack.OnError);
     this.succFUnc       = new OnSuccessFunc(IIPSMobileVersionCallBack.OnSuccess);
     this.saveFUnc       = new SaveConfigFunc(IIPSMobileVersionCallBack.SaveConfig);
     this.installApk     = new OnNoticeInstallApkFunc(IIPSMobileVersionCallBack.OnNoticeInstallApk);
     this.actionMsg      = new OnActionMsgFunc(IIPSMobileVersionCallBack.OnActionMsg);
 }
Пример #2
0
 private static extern IntPtr CreateVersionInfoCallBack(OnGetNewVersionInfoFunc onGetNewVersionInfoFunc, OnProgressFunc onProgressFunc, OnErrorFunc onErrorFunc, OnSuccessFunc onSuccessFunc, SaveConfigFunc saveConfigFunc, OnNoticeInstallApkFunc noticeInstallApk, OnActionMsgFunc msg, IntPtr callback);