AndSSE:适用于 Android 的服务器发送事件!

上传者: 42099151 | 上传时间: 2023-02-16 09:47:42 | 文件大小: 63KB | 文件类型: ZIP
上证所 适用于 Android 的服务器发送事件! 用 这个库在 maven 上。 为了使用它,您需要将其添加为项目中的依赖项。 编译'gr.spiritinlife:andsse:0.0.1' 如何 此时使用库的首选方法是创建一个单例适配器,该适配器创建 AndSSEEventSource,它是我们库的 tcp 连接的前端。 例如。 public class AndSSEAdapter { private static final String SERVER_ENDPOINT = "192.168.2.20"; /** * This is the endpoint that the sends the events */ private static final String SSE_ENDPOINT = "/events/"; pri

文件下载

资源详情

[{"title":"( 17 个子文件 63KB ) AndSSE:适用于 Android 的服务器发送事件!","children":[{"title":"AndSSE-master","children":[{"title":".gitignore <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 670B </span>","children":null,"spread":false},{"title":"andsse.iml <span style='color:#111;'> 6.97KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"java","children":[{"title":"gr","children":[{"title":"spiritinlife","children":[{"title":"andsse","children":[{"title":"IEventCallback.java <span style='color:#111;'> 110B </span>","children":null,"spread":false},{"title":"AndSSEEventSource.java <span style='color:#111;'> 9.87KB </span>","children":null,"spread":false},{"title":"AndEvent.java <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"AndSSE.java <span style='color:#111;'> 8.07KB </span>","children":null,"spread":false},{"title":"EventSource.java <span style='color:#111;'> 626B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 69B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 14.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 18.93KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"gr","children":[{"title":"spiritinlife","children":[{"title":"andsse","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 354B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明