public class AndroidPlatformHelper
extends java.lang.Object
Constructor and Description |
---|
AndroidPlatformHelper(long nativePtr,
java.lang.Object ctx_obj,
boolean wifiOnly) |
Modifier and Type | Method and Description |
---|---|
void |
acquireCpuLock() |
void |
acquireMcastLock() |
void |
acquireWifiLock() |
static void |
copyAssetsFromPackage(android.content.Context ctx,
java.lang.String fromPath,
java.lang.String toPath) |
void |
copyEvenIfExists(int ressourceId,
java.lang.String target) |
void |
copyFromPackage(int ressourceId,
java.io.File target) |
void |
copyIfNotExist(int ressourceId,
java.lang.String target) |
java.lang.String |
getCachePath() |
static java.lang.String |
getConfigPath(android.content.Context context) |
static java.lang.String |
getDataPath(android.content.Context context) |
java.lang.String[] |
getDnsServers() |
static java.lang.String |
getDownloadPath(android.content.Context context) |
android.os.Handler |
getHandler() |
java.lang.String |
getNativeLibraryDir() |
java.lang.Object |
getPowerManager() |
boolean |
isInBackground() |
void |
onLinphoneCoreStart(boolean monitoringEnabled) |
void |
onLinphoneCoreStop() |
void |
onWifiOnlyEnabled(boolean enabled) |
void |
releaseCpuLock() |
void |
releaseMcastLock() |
void |
releaseWifiLock() |
void |
resizeVideoPreview(int width,
int height) |
void |
rotateVideoPreview() |
void |
setDozeModeEnabled(boolean b) |
void |
setVideoPreviewView(java.lang.Object view) |
void |
setVideoRenderingView(java.lang.Object view) |
void |
updateDnsServers(java.util.ArrayList<java.lang.String> dnsServers) |
void |
updateNetworkReachability() |
public AndroidPlatformHelper(long nativePtr, java.lang.Object ctx_obj, boolean wifiOnly)
public void onLinphoneCoreStart(boolean monitoringEnabled)
public void onLinphoneCoreStop()
public void onWifiOnlyEnabled(boolean enabled)
public java.lang.Object getPowerManager()
public java.lang.String[] getDnsServers()
public static java.lang.String getDataPath(android.content.Context context)
public static java.lang.String getConfigPath(android.content.Context context)
public java.lang.String getCachePath()
public static java.lang.String getDownloadPath(android.content.Context context)
public java.lang.String getNativeLibraryDir()
public void acquireWifiLock()
public void releaseWifiLock()
public void acquireMcastLock()
public void releaseMcastLock()
public void acquireCpuLock()
public void releaseCpuLock()
public void copyEvenIfExists(int ressourceId, java.lang.String target) throws java.io.IOException
java.io.IOException
public void copyIfNotExist(int ressourceId, java.lang.String target) throws java.io.IOException
java.io.IOException
public void copyFromPackage(int ressourceId, java.io.File target) throws java.io.IOException
java.io.IOException
public static void copyAssetsFromPackage(android.content.Context ctx, java.lang.String fromPath, java.lang.String toPath) throws java.io.IOException
java.io.IOException
public void setVideoPreviewView(java.lang.Object view)
public void setVideoRenderingView(java.lang.Object view)
public void rotateVideoPreview()
public void resizeVideoPreview(int width, int height)
public android.os.Handler getHandler()
public boolean isInBackground()
public void updateDnsServers(java.util.ArrayList<java.lang.String> dnsServers)
public void updateNetworkReachability()
public void setDozeModeEnabled(boolean b)