public class AndroidPlatform extends Python.Platform
Platform for Chaquopy on Android.
| Constructor and Description |
|---|
AndroidPlatform(Context context)
Uses the
Application context of the given context to initialize Python. |
| Modifier and Type | Method and Description |
|---|---|
Application |
getApplication()
Returns the Application context of the context which was passed to the contructor.
|
String |
getPath()
Returns the value to assign to
PYTHONPATH, or null to leave it unset. |
void |
onStart(Python py)
Called after Python is started.
|
public static String ABI
public AndroidPlatform(Context context)
Uses the Application context of the given context to initialize Python.
public Application getApplication()
Returns the Application context of the context which was passed to the contructor.
public String getPath()
Python.PlatformReturns the value to assign to PYTHONPATH, or null to leave it unset. The default implementation returns null.
getPath in class Python.Platformpublic void onStart(Python py)
Python.PlatformCalled after Python is started. The default implementation does nothing.
onStart in class Python.Platform