Examples of QQActionListener


Examples of iqq.im.QQActionListener

   */
  public void relogin() {
    QQSession session = getContext().getSession();
    if(session.getState() == QQSession.State.LOGINING) return;
    // 登录失效,重新登录
    relogin(getContext().getAccount().getStatus(), new QQActionListener() {

      @Override
      public void onActionEvent(QQActionEvent event) {
        if(event.getType() == QQActionEvent.Type.EVT_OK) {
          // 重新登录成功重新POLL
View Full Code Here

Examples of iqq.im.QQActionListener

  /**
   * <p>doPollMsg.</p>
   */
  public void doPollMsg() {
    final LoginModule login = getContext().getModule(QQModule.Type.LOGIN);
    login.pollMsg(new QQActionListener() {
      public void onActionEvent(QQActionEvent event) {
        // 回调通知事件函数
        if (event.getType() == QQActionEvent.Type.EVT_OK) {
          List<QQNotifyEvent> events = (List<QQNotifyEvent>) event.getTarget();
          for (QQNotifyEvent evt : events) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.