NIMSDK-AOS
10.6.0
plugins
avchat
src
com
netease
nimlib
sdk
avchat
model
AVChatEngineConfig.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.avchat.model;
2
3
4
import
com
.
netease
.
nimlib
.
sdk
.
avchat
.
constant
.
AVChatOSCategory
;
5
9
public
class
AVChatEngineConfig
{
10
11
private
AVChatEngineConfig
() {
12
13
}
14
15
private
int
osType;
16
17
private
boolean
lowEnergy;
18
19
private
AVChatServerAddresses
serverAddresses;
20
21
22
public
int
getOsType
() {
23
return
osType;
24
}
25
26
public
boolean
isLowEnergy
() {
27
return
lowEnergy;
28
}
29
30
public
AVChatServerAddresses
getServerAddresses
() {
31
return
serverAddresses;
32
}
33
34
38
public
static
class
Builder {
39
40
private
int
osType =
AVChatOSCategory
.
OS_DEFAULT
;
41
42
private
boolean
lowEnergy =
false
;
43
44
private
AVChatServerAddresses
serverAddresses;
45
46
public
Builder() {
47
}
48
52
public
Builder osType(
int
osType) {
53
this.osType = osType;
54
return
this
;
55
}
56
60
public
Builder lowEnergy(
boolean
lowEnergy) {
61
this.lowEnergy = lowEnergy;
62
return
this
;
63
}
64
70
public
Builder serverAddresses(
AVChatServerAddresses
serverAddresses) {
71
72
this.serverAddresses = serverAddresses;
73
return
this
;
74
75
}
76
77
78
public
AVChatEngineConfig
build() {
79
AVChatEngineConfig
config =
new
AVChatEngineConfig
();
80
config.osType = osType;
81
config.lowEnergy = lowEnergy;
82
config.serverAddresses = serverAddresses;
83
return
config;
84
}
85
86
}
87
88
89
}
com.netease.nimlib.sdk
Definition:
RequestCallback.java:1
com.netease
com
com.netease.nimlib.sdk.avchat.model.AVChatEngineConfig.isLowEnergy
boolean isLowEnergy()
Definition:
AVChatEngineConfig.java:26
com.netease.nimlib.sdk.avchat.model.AVChatEngineConfig
引擎初始化的一些自定义配置,使用Builder 去构造
Definition:
AVChatEngineConfig.java:9
com.netease.nimlib.sdk.avchat.constant
Definition:
AVChatVideoCaptureOrientation.java:6
com.netease.nimlib.sdk.avchat.model.AVChatServerAddresses
私有化服务器配置项
Definition:
AVChatServerAddresses.java:11
com.netease.nimlib.sdk.avchat.constant.AVChatOSCategory.OS_DEFAULT
int OS_DEFAULT
普通 Android 设备
Definition:
AVChatOSCategory.java:9
com.netease.nimlib.sdk.avchat.model.AVChatEngineConfig.getServerAddresses
AVChatServerAddresses getServerAddresses()
Definition:
AVChatEngineConfig.java:30
com.netease.nimlib.sdk.avchat.model.AVChatEngineConfig.getOsType
int getOsType()
Definition:
AVChatEngineConfig.java:22
com.netease.nimlib.sdk.avchat
com.netease.nimlib.sdk.avchat.constant.AVChatOSCategory
Definition:
AVChatOSCategory.java:5
com.netease.nimlib
生成于 2024年 十一月 19日 星期二 20:07:50 , 为 NIMSDK-AOS使用
1.8.13