- 89
- 0
- 约2.73万字
- 约 21页
- 2018-06-26 发布于江西
- 举报
Spark 帮助文档(官方也有).doc
Overview of the Spark Client
The Spark client is designed with the idea that most users find the different aspects of a chat client familiar and easy to use. All components you see below are either accessible from the Workspace or ChatRoom object and can be manipulated based on your needs.
Overview of the Spark API
The Spark API provides a framework for adding extensions on top of the protocol and/or UI of the Spark client. For example, you could write your own message filter or add a button to a chat room and send files using the File Transfer API. The Spark API has the following characteristics:
Several event listeners to either intercept, be informed of, or execute custom code in response to a particular IM event.
Thorough tie-ins to the UI to allow for customization from simple icon changes, to adding buttons, to adding your own menu items.
Ability to add your own XMPP functions using the SMACK API.
Managers - Managers allow for better (lazy) loading of particular areas within the Spark client as well as providing access points to the system. Some of the more relevant managers are:
SparkManager -- Acts as the central manager for all of Spark. You use this manager to get instances of ChatManager, SessionManager, SoundManager, and UserManager.
ChatManager -- Handles registration of most chat listeners and filters, as well as creation and retrieval of chat rooms. It is also used to retrieve the UI of the ChatFrame.
SessionManager -- Contains the information about the current session, such as the server connected to, the handling of connection errors and notification of personal presence changes.
SoundManager -- Used to play sounds.
Event Handlers -- Spark contains numerous listeners and handlers to allow more pluggability into the Spark client. Some of the more common listeners and handlers are:
ChatRoomListener (and ChatRoomListenerAdapter) -- Allows the plugin to listen for chat rooms being opened, closed and activated. You would generally use this to
您可能关注的文档
- 2014年青海省西宁五中片区大联考(四校联考)高三下学期5月高考模拟理科综合试卷及答案.doc
- 宾川县水果产业示范园区建设实施方案.docx
- 2015年辽宁省特岗教师考试真题.doc
- 2017医疗系统事业单位面试题目及答案.doc
- 北京某印刷厂项目可行性报告(可编辑).doc
- 铁路沿线环境综合整治总结.doc
- 职业技术学校招生工作计划方案【精选资料】.doc
- 2016年第十四届“走美杯”决赛试卷(四年级).doc
- 医务人员心得体会篇.doc
- 2016-2017年海运拼箱进出口业务,操作流程(总结).doc
- 部编版人教版一年级语文下册《识字:古对今》赛教课件.pptx
- 新编人教部编版二年级下册语文《我是一只小虫子》名师教学课件.pptx
- 最新人教部编版九年级语文上册《精神的三间小屋》精品课件.ppt
- 全优指导高中数学人教A版选修2-1课件:3.2.1利用向量证明空间中的平行关系.ppt
- 最新人教部编版小学语文一年级下册《动物儿歌》教学设计.docx
- 最新人教部编版四年级语文上册《风筝》精品课件.ppt
- 北师大版数学六年级下册《数的运算》课件.ppt
- 部编版人教版初一七年级语文下册《老王》名师课件.ppt
- 部编版人教版初一七年级语文下册《将军百战死-壮士十年归——“互文”修辞手法》名师课件.pptx
- 部编版三年级语文下册《童年的水墨画》教学课件.pptx
最近下载
- 北师大版五年级上册数学第五单元《分数的意义》练习试卷(含答案).pdf VIP
- 药品GMP检查指南(中药制剂).pdf VIP
- 2026版质量管理体系内审检查表.doc VIP
- 2026年金华市轨道交通控股集团运营有限公司招聘170人备考题库附答案详解.docx VIP
- 精益生产基础.ppt VIP
- 2025至2030年中国赛车行业市场分析研究及发展潜力研判报告.docx
- 湘教版九年级数学上册《一元二次方程》教案及教学反思.docx VIP
- 2026年金华市轨道交通控股集团运营有限公司招聘170人备考题库及答案详解一套.docx VIP
- 2026北京西城初三上学期期末语文试卷和答案.pdf VIP
- 金风1.5MW机组发电机后轴承间隙检测作业指导书.pdf
原创力文档

文档评论(0)