Commit a570c27e authored by Simon Morlat's avatar Simon Morlat

added new java wrapped for linphone_call_asked_to_autoanswer().

parent 6a9b199a
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment