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); }
private static extern IntPtr CreateVersionInfoCallBack(OnGetNewVersionInfoFunc onGetNewVersionInfoFunc, OnProgressFunc onProgressFunc, OnErrorFunc onErrorFunc, OnSuccessFunc onSuccessFunc, SaveConfigFunc saveConfigFunc, OnNoticeInstallApkFunc noticeInstallApk, OnActionMsgFunc msg, IntPtr callback);