mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
added new java wrapped for linphone_call_asked_to_autoanswer().
This commit is contained in:
parent
6a9b199af6
commit
a570c27e17
3 changed files with 18 additions and 0 deletions
|
|
@ -5522,6 +5522,12 @@ extern "C" jobject Java_org_linphone_core_LinphoneCallImpl_getConference(JNIEnv
|
|||
return NULL;
|
||||
}
|
||||
|
||||
extern "C" jboolean Java_org_linphone_core_LinphoneCallImpl_askedToAutoAnswer(JNIEnv* env,jobject thiz,jlong ptr) {
|
||||
LinphoneCall *call = (LinphoneCall *) ptr;
|
||||
return (jboolean)linphone_call_asked_to_autoanswer(call);
|
||||
}
|
||||
|
||||
|
||||
extern "C" jfloat Java_org_linphone_core_LinphoneCallImpl_getPlayVolume(JNIEnv* env, jobject thiz, jlong ptr) {
|
||||
LinphoneCall *call = (LinphoneCall *) ptr;
|
||||
return (jfloat)linphone_call_get_play_volume(call);
|
||||
|
|
|
|||
|
|
@ -393,4 +393,10 @@ public interface LinphoneCall {
|
|||
* Set the callbacks associated with the LinphoneCall.
|
||||
*/
|
||||
void setListener(LinphoneCall.LinphoneCallListener listener);
|
||||
|
||||
/**
|
||||
* Indicates if remote party requested automatic answering to be performed.
|
||||
* This is an indication - the application remains responsible for answering the call.
|
||||
**/
|
||||
boolean askedToAutoAnswer();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -272,4 +272,10 @@ class LinphoneCallImpl implements LinphoneCall {
|
|||
}
|
||||
}
|
||||
|
||||
private native boolean askedToAutoAnswer(long nativePtr);
|
||||
@Override
|
||||
public boolean askedToAutoAnswer(){
|
||||
return askedToAutoAnswer(nativePtr);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue