TdSipPlugin class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
addSipObserver(
TdSipObserver observer) → dynamic - 注册Sip监听
-
answer(
) → dynamic - 接听
-
call(
String sipID) → dynamic - 呼叫 sipID 呼叫的sip账号
-
getLoginStatus(
) → Future< TDSipLoginStatus> - 获取登录状态
-
hangup(
) → dynamic - 挂断
-
initial(
) → dynamic -
login(
{required String sipID, required String sipPassword, required String sipDomain, required String sipPort, String sipTransport = "tcp", bool iceEnable = false, bool turnEnable = false, String turnServer = "", String turnUser = "", String turnPassword = ""}) → dynamic - 登录Sip账号 sipID sip账号 sipPassword sip密码 sipDomain sip服务器地址 sipPort sip服务器端口号 sipTransport tcp or udp iceEnable 是否开启ice turnEnable 是否开启turn turnServer turn服务器地址 turnUser turn账号 turnPassword turn密码
-
logout(
) → dynamic - 退出登录
-
micOFF(
) → dynamic - 关闭麦克风
-
micON(
) → dynamic - 打开麦克风
-
removeSipObserver(
TdSipObserver observer) → dynamic - 移除监听
-
showSipPage(
) → dynamic - 跳转息屏显示呼叫页面,仅Android可用
-
switchToEarphone(
) → dynamic - 切换到听筒
-
switchToLoudspeaker(
) → dynamic - 切换到免提(扬声器)