资源简介
基于网易云信Android_Demo_v5.9.0的纯聊天Demo,
1.登录页面去掉了注册功能
2.去掉了直播间功能
3.设置页面去掉了一些不要的功能,红包,Js Bridge演示,音视频通话网络探测
4.聊天界面去掉了Tip,白板,红包
代码片段和文件信息
package com.netease.nim.avchatkit;
import android.app.Notification;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.util.SparseArray;
import com.netease.nim.avchatkit.activity.AVChatActivity;
import com.netease.nim.avchatkit.activity.AVChatSettingsActivity;
import com.netease.nim.avchatkit.common.log.ILogUtil;
import com.netease.nim.avchatkit.common.log.LogUtil;
import com.netease.nim.avchatkit.config.AVChatOptions;
import com.netease.nim.avchatkit.model.ITeamDataProvider;
import com.netease.nim.avchatkit.model.IUserInfoProvider;
import com.netease.nim.avchatkit.receiver.PhoneCallStateObserver;
import com.netease.nim.avchatkit.teamavchat.activity.TeamAVChatActivity;
import com.netease.nimlib.sdk.Observer;
import com.netease.nimlib.sdk.avchat.AVChatManager;
import com.netease.nimlib.sdk.avchat.constant.AVChatControlCommand;
import com.netease.nimlib.sdk.avchat.model.AVChatData;
import java.util.ArrayList;
/**
* 云信音视频组件定制化入口
* Created by winnie on 2017/12/6.
*/
public class AVChatKit {
private static final String TAG = AVChatKit.class.getSimpleName();
private static Context context;
private static String account;
private static boolean mainTaskLaunching;
private static AVChatOptions avChatOptions;
private static IUserInfoProvider userInfoProvider;
private static ITeamDataProvider teamDataProvider;
private static ILogUtil iLogUtil;
private static SparseArray notifications = new SparseArray<>();
public static void init(AVChatOptions avChatOptions) {
AVChatKit.avChatOptions = avChatOptions;
registerAVChatIncomingCallObserver(true);
}
public static void setContext(Context context) {
AVChatKit.context = context;
}
public static Context getContext() {
return context;
}
public static String getAccount() {
return account;
}
public static void setAccount(String account) {
AVChatKit.account = account;
}
public static void setMainTaskLaunching(boolean mainTaskLaunching) {
AVChatKit.mainTaskLaunching = mainTaskLaunching;
}
public static boolean isMainTaskLaunching() {
return mainTaskLaunching;
}
/**
* 获取通知栏提醒数组
*/
public static SparseArray getNotifications() {
return notifications;
}
/**
* 获取音视频初始化配置
* @return AVChatOptions
*/
public static AVChatOptions getAvChatOptions() {
return avChatOptions;
}
/**
* 设置用户相关资料提供者
* @param userInfoProvider 用户相关资料提供者
*/
public static void setUserInfoProvider(IUserInfoProvider userInfoProvider) {
AVChatKit.userInfoProvider = userInfoProvider;
}
/**
* 获取用户相关资料提供者
* @return IUserInfoProvider
*/
public static IUserInfoProvider getUserInfoProvider() {
return userInfoProvider;
}
/**
* 获取日志系统接口
* @return ILogUtil
*/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-01 23:35 nim_demo\nim_demo\
目录 0 2019-01-01 23:35 nim_demo\nim_demo\.gradle\
目录 0 2019-01-01 23:35 nim_demo\nim_demo\.gradle\4.2\
目录 0 2019-01-01 23:35 nim_demo\nim_demo\.gradle\4.2\fileChanges\
文件 1 2019-01-01 04:09 nim_demo\nim_demo\.gradle\4.2\fileChanges\last-build.bin
目录 0 2019-01-01 23:35 nim_demo\nim_demo\.gradle\4.2\fileContent\
文件 17 2019-01-01 04:09 nim_demo\nim_demo\.gradle\4.2\fileContent\fileContent.lock
目录 0 2019-01-01 23:35 nim_demo\nim_demo\.gradle\4.2\fileHashes\
文件 4330817 2019-01-01 04:09 nim_demo\nim_demo\.gradle\4.2\fileHashes\fileHashes.bin
文件 17 2019-01-01 04:09 nim_demo\nim_demo\.gradle\4.2\fileHashes\fileHashes.lock
文件 24379 2018-12-31 01:54 nim_demo\nim_demo\.gradle\4.2\fileHashes\resourceHashesCache.bin
目录 0 2019-01-01 23:35 nim_demo\nim_demo\.gradle\4.2\javaCompile\
文件 5991204 2019-01-01 04:08 nim_demo\nim_demo\.gradle\4.2\javaCompile\classAnalysis.bin
文件 2175760 2018-12-31 01:54 nim_demo\nim_demo\.gradle\4.2\javaCompile\jarAnalysis.bin
文件 17 2019-01-01 04:09 nim_demo\nim_demo\.gradle\4.2\javaCompile\javaCompile.lock
文件 814970 2019-01-01 04:08 nim_demo\nim_demo\.gradle\4.2\javaCompile\taskHistory.bin
文件 47478 2019-01-01 04:08 nim_demo\nim_demo\.gradle\4.2\javaCompile\taskJars.bin
目录 0 2019-01-01 23:35 nim_demo\nim_demo\.gradle\4.2\taskHistory\
文件 21541401 2019-01-01 04:09 nim_demo\nim_demo\.gradle\4.2\taskHistory\fileSnapshots.bin
文件 200626 2019-01-01 04:09 nim_demo\nim_demo\.gradle\4.2\taskHistory\taskHistory.bin
文件 17 2019-01-01 04:09 nim_demo\nim_demo\.gradle\4.2\taskHistory\taskHistory.lock
目录 0 2019-01-01 23:35 nim_demo\nim_demo\.gradle\buildOutputCleanup\
文件 17 2019-01-01 04:09 nim_demo\nim_demo\.gradle\buildOutputCleanup\buildOutputCleanup.lock
文件 51 2018-12-31 01:42 nim_demo\nim_demo\.gradle\buildOutputCleanup\cache.properties
文件 52385 2019-01-01 04:09 nim_demo\nim_demo\.gradle\buildOutputCleanup\outputFiles.bin
目录 0 2019-01-01 23:35 nim_demo\nim_demo\avchatkit\
文件 11982 2018-12-31 14:51 nim_demo\nim_demo\avchatkit\avchatkit.iml
文件 1411 2018-11-28 13:46 nim_demo\nim_demo\avchatkit\build.gradle
目录 0 2019-01-01 23:35 nim_demo\nim_demo\avchatkit\libs\
目录 0 2019-01-01 23:35 nim_demo\nim_demo\avchatkit\libs\arm64-v8a\
文件 6024368 2018-11-28 13:46 nim_demo\nim_demo\avchatkit\libs\arm64-v8a\libnrtc_engine.so
............此处省略2505个文件信息
- 上一篇:Android固件修改工具
- 下一篇:jsp实用教程第三版课件及源码
评论
共有 条评论