Example #1
0
 /// <summary>
 /// 返回IM当前状态 -1未实例化 0-未登录 , 1-登录中, 2已登录
 /// </summary>
 /// <returns></returns>
 public int GetImState()
 {
     if (Application.platform == RuntimePlatform.Android)
     {
         return(NativeManager.OnFuncCall <int>("GetImState"));
     }
     else if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         return(NativeManager.GetImState());
     }
     return(0);
 }