Beispiel #1
0
 /// <summary>
 /// 开始请求
 /// </summary>
 /// <param name="options"> </param>
 /// <param name="acpListener"> </param>
 internal virtual void Request(AcpOptions options, IAcpListener acpListener)
 {
     lock (this)
     {
         mCallback = acpListener;
         mOptions  = options;
         CheckSelfPermission();
     }
 }
Beispiel #2
0
 /// <summary>
 /// 摧毁本库的 AcpActivity
 /// </summary>
 private void OnDestroy()
 {
     if (mActivity != null)
     {
         mActivity.Finish();
         mActivity = null;
     }
     mCallback = null;
 }
Beispiel #3
0
 /// <summary>
 /// 开始请求
 /// </summary>
 /// <param name="options"> </param>
 /// <param name="acpListener"> </param>
 public virtual void request(AcpOptions options, IAcpListener acpListener)
 {
     if (options == null)
     {
         new System.NullReferenceException("AcpOptions is null...");
     }
     if (acpListener == null)
     {
         new System.NullReferenceException("AcpListener is null...");
     }
     mAcpManager.Request(options, acpListener);
 }