⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messageeventmanager.html

📁 开源项目smack的API文件
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="MessageEventManager(org.jivesoftware.smack.XMPPConnection)"><!-- --></A><H3>MessageEventManager</H3><PRE>public <B>MessageEventManager</B>(<A HREF="../../../org/jivesoftware/smack/XMPPConnection.html" title="class in org.jivesoftware.smack">XMPPConnection</A>&nbsp;con)</PRE><DL><DD>Creates a new message event manager.<P><DL><DT><B>Parameters:</B><DD><CODE>con</CODE> - an XMPPConnection.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="addNotificationsRequests(org.jivesoftware.smack.packet.Message, boolean, boolean, boolean, boolean)"><!-- --></A><H3>addNotificationsRequests</H3><PRE>public static void <B>addNotificationsRequests</B>(<A HREF="../../../org/jivesoftware/smack/packet/Message.html" title="class in org.jivesoftware.smack.packet">Message</A>&nbsp;message,                                            boolean&nbsp;offline,                                            boolean&nbsp;delivered,                                            boolean&nbsp;displayed,                                            boolean&nbsp;composing)</PRE><DL><DD>Adds event notification requests to a message. For each event type that the user wishes event notifications from the message recepient for, <tt>true</tt> should be passed in to this method.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message to add the requested notifications.<DD><CODE>offline</CODE> - specifies if the offline event is requested.<DD><CODE>delivered</CODE> - specifies if the delivered event is requested.<DD><CODE>displayed</CODE> - specifies if the displayed event is requested.<DD><CODE>composing</CODE> - specifies if the composing event is requested.</DL></DD></DL><HR><A NAME="addMessageEventRequestListener(org.jivesoftware.smackx.MessageEventRequestListener)"><!-- --></A><H3>addMessageEventRequestListener</H3><PRE>public void <B>addMessageEventRequestListener</B>(<A HREF="../../../org/jivesoftware/smackx/MessageEventRequestListener.html" title="interface in org.jivesoftware.smackx">MessageEventRequestListener</A>&nbsp;messageEventRequestListener)</PRE><DL><DD>Adds a message event request listener. The listener will be fired anytime a request for event notification is received.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>messageEventRequestListener</CODE> - a message event request listener.</DL></DD></DL><HR><A NAME="removeMessageEventRequestListener(org.jivesoftware.smackx.MessageEventRequestListener)"><!-- --></A><H3>removeMessageEventRequestListener</H3><PRE>public void <B>removeMessageEventRequestListener</B>(<A HREF="../../../org/jivesoftware/smackx/MessageEventRequestListener.html" title="interface in org.jivesoftware.smackx">MessageEventRequestListener</A>&nbsp;messageEventRequestListener)</PRE><DL><DD>Removes a message event request listener. The listener will be fired anytime a request for event notification is received.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>messageEventRequestListener</CODE> - a message event request listener.</DL></DD></DL><HR><A NAME="addMessageEventNotificationListener(org.jivesoftware.smackx.MessageEventNotificationListener)"><!-- --></A><H3>addMessageEventNotificationListener</H3><PRE>public void <B>addMessageEventNotificationListener</B>(<A HREF="../../../org/jivesoftware/smackx/MessageEventNotificationListener.html" title="interface in org.jivesoftware.smackx">MessageEventNotificationListener</A>&nbsp;messageEventNotificationListener)</PRE><DL><DD>Adds a message event notification listener. The listener will be fired anytime a notification event is received.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>messageEventNotificationListener</CODE> - a message event notification listener.</DL></DD></DL><HR><A NAME="removeMessageEventNotificationListener(org.jivesoftware.smackx.MessageEventNotificationListener)"><!-- --></A><H3>removeMessageEventNotificationListener</H3><PRE>public void <B>removeMessageEventNotificationListener</B>(<A HREF="../../../org/jivesoftware/smackx/MessageEventNotificationListener.html" title="interface in org.jivesoftware.smackx">MessageEventNotificationListener</A>&nbsp;messageEventNotificationListener)</PRE><DL><DD>Removes a message event notification listener. The listener will be fired anytime a notification event is received.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>messageEventNotificationListener</CODE> - a message event notification listener.</DL></DD></DL><HR><A NAME="sendDeliveredNotification(java.lang.String, java.lang.String)"><!-- --></A><H3>sendDeliveredNotification</H3><PRE>public void <B>sendDeliveredNotification</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;to,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;packetID)</PRE><DL><DD>Sends the notification that the message was delivered to the sender of the original message<P><DD><DL><DT><B>Parameters:</B><DD><CODE>to</CODE> - the recipient of the notification.<DD><CODE>packetID</CODE> - the id of the message to send.</DL></DD></DL><HR><A NAME="sendDisplayedNotification(java.lang.String, java.lang.String)"><!-- --></A><H3>sendDisplayedNotification</H3><PRE>public void <B>sendDisplayedNotification</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;to,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;packetID)</PRE><DL><DD>Sends the notification that the message was displayed to the sender of the original message<P><DD><DL><DT><B>Parameters:</B><DD><CODE>to</CODE> - the recipient of the notification.<DD><CODE>packetID</CODE> - the id of the message to send.</DL></DD></DL><HR><A NAME="sendComposingNotification(java.lang.String, java.lang.String)"><!-- --></A><H3>sendComposingNotification</H3><PRE>public void <B>sendComposingNotification</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;to,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;packetID)</PRE><DL><DD>Sends the notification that the receiver of the message is composing a reply<P><DD><DL><DT><B>Parameters:</B><DD><CODE>to</CODE> - the recipient of the notification.<DD><CODE>packetID</CODE> - the id of the message to send.</DL></DD></DL><HR><A NAME="sendCancelledNotification(java.lang.String, java.lang.String)"><!-- --></A><H3>sendCancelledNotification</H3><PRE>public void <B>sendCancelledNotification</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;to,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;packetID)</PRE><DL><DD>Sends the notification that the receiver of the message has cancelled composing a reply.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>to</CODE> - the recipient of the notification.<DD><CODE>packetID</CODE> - the id of the message to send.</DL></DD></DL><HR><A NAME="destroy()"><!-- --></A><H3>destroy</H3><PRE>public void <B>destroy</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="finalize()"><!-- --></A><H3>finalize</H3><PRE>public void <B>finalize</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Smack</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jivesoftware/smackx/LastActivityManager.html" title="class in org.jivesoftware.smackx"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jivesoftware/smackx/MessageEventNotificationListener.html" title="interface in org.jivesoftware.smackx"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?org/jivesoftware/smackx/MessageEventManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="MessageEventManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &copy; 2003-2007 Jive Software. </i></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -