public abstract class AbstractOperationSetBasicAutoAnswer extends java.lang.Object implements OperationSetBasicAutoAnswer
Modifier and Type | Field and Description |
---|---|
protected boolean |
answerUnconditional
Should we unconditionally answer.
|
protected boolean |
answerWithVideo
Should we answer video calls with video.
|
protected ProtocolProviderService |
protocolProvider
The parent Protocol Provider.
|
AUTO_ANSWER_UNCOND_PROP, AUTO_ANSWER_WITH_VIDEO_PROP
Constructor and Description |
---|
AbstractOperationSetBasicAutoAnswer(ProtocolProviderService protocolProvider)
Creates this operation set, loads stored values, populating
local variable settings.
|
Modifier and Type | Method and Description |
---|---|
protected void |
answerCall(Call call,
boolean isVideoCall)
Answers call if peer in correct state or wait for it.
|
boolean |
autoAnswer(Call call,
boolean isVideoCall)
Makes a check after creating call locally, should we answer it.
|
void |
clear()
Clear any previous settings.
|
protected void |
clearLocal()
Clear local settings.
|
boolean |
isAutoAnswerUnconditionalSet()
Is the auto answer option set to unconditionally
answer all incoming calls.
|
boolean |
isAutoAnswerWithVideoSet()
Returns if the auto answer with video to video calls is activated.
|
protected void |
load()
Load values from account properties.
|
protected abstract boolean |
satisfyAutoAnswerConditions(Call call)
Checks if the call satisfy the auto answer conditions.
|
protected abstract void |
save()
Saves values to account properties.
|
void |
setAutoAnswerUnconditional()
Sets the auto answer option to unconditionally answer all incoming calls.
|
void |
setAutoAnswerWithVideo(boolean answerWithVideo)
Sets the auto answer with video to video calls.
|
protected final ProtocolProviderService protocolProvider
protected boolean answerUnconditional
protected boolean answerWithVideo
public AbstractOperationSetBasicAutoAnswer(ProtocolProviderService protocolProvider)
protocolProvider
- the parent Protocol Provider.protected void load()
protected abstract void save()
protected void clearLocal()
public void clear()
clear
in interface OperationSetBasicAutoAnswer
public boolean autoAnswer(Call call, boolean isVideoCall)
call
- The new incoming call to auto-answer if needed.isVideoCall
- Indicates if the remote peer which has created this
call wish to have a video call.protected void answerCall(Call call, boolean isVideoCall)
call
- The new incoming call to auto-answer if needed.isVideoCall
- Indicates if the remote peer which has created this
call wish to have a video call.protected abstract boolean satisfyAutoAnswerConditions(Call call)
call
- The new incoming call to auto-answer if needed.public void setAutoAnswerUnconditional()
setAutoAnswerUnconditional
in interface OperationSetBasicAutoAnswer
public boolean isAutoAnswerUnconditionalSet()
isAutoAnswerUnconditionalSet
in interface OperationSetBasicAutoAnswer
public void setAutoAnswerWithVideo(boolean answerWithVideo)
setAutoAnswerWithVideo
in interface OperationSetBasicAutoAnswer
answerWithVideo
- A boolean set to true to activate the auto answer
with video when receiving a video call. False otherwise.public boolean isAutoAnswerWithVideoSet()
isAutoAnswerWithVideoSet
in interface OperationSetBasicAutoAnswer
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.