mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 20:18:09 +00:00
add Networkmanager class
This commit is contained in:
parent
dedf30d1e4
commit
b167fe09a9
2 changed files with 13 additions and 0 deletions
|
|
@ -123,6 +123,15 @@ public interface LinphoneCore {
|
|||
*/
|
||||
public List<LinphoneCallLog> getCallLogs();
|
||||
|
||||
/**
|
||||
* This method is called by the application to notify the Linphone core library when network is reachable.
|
||||
* Calling this method with true trigger Linphone to initiate a registration process for all proxy
|
||||
* configuration with parameter register set to enable.
|
||||
* This method disable the automatic registration mode. It means you must call this method after each network state changes
|
||||
* @param network state
|
||||
*
|
||||
*/
|
||||
public void setNetworkStateReachable(boolean isReachable);
|
||||
/**
|
||||
* destroy linphone core and free all underlying resources
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native long getCallLog(long nativePtr,int position);
|
||||
private native int getNumberOfCallLogs(long nativePtr);
|
||||
private native void delete(long nativePtr);
|
||||
private native void setNetworkStateReachable(long nativePtr,boolean isReachable);
|
||||
|
||||
|
||||
LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException {
|
||||
|
|
@ -155,4 +156,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
throw new RuntimeException("object already destroyed");
|
||||
}
|
||||
}
|
||||
public void setNetworkStateReachable(boolean isReachable) {
|
||||
setNetworkStateReachable(nativePtr,isReachable);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue