Kanzi runtime infrastructure for an Android application. More...
Public Member Functions | |
| void | executeNativeGarbageCollection () |
| Executes the native garbage collection manually. More... | |
| Domain | getDomain () |
| Returns the Kanzi UI domain that was created for this runtime. More... | |
| void | loadKzb (String binaryFilename) throws FileNotFoundException |
| Loads a given Kanzi binary file. More... | |
| void | scheduleNativeGarbageCollection (long delayInMs) |
| Schedules automatic garbage collection of native objects to occur on given interval. More... | |
| void | stopNativeGarbageCollection () |
| Cancels automatic garbage collection of native objects started by scheduleNativeGarbageCollection(long delayInMs). | |
Static Public Member Functions | |
| static KanziRuntime | getInstance (Context context) |
| Retrieve the Kanzi runtime singleton for this application. More... | |
Kanzi runtime infrastructure for an Android application.
| void executeNativeGarbageCollection | ( | ) |
Executes the native garbage collection manually.
This operation can be set to be performed periodically by calling scheduleNativeGarbageCollection(long delayInMs).
| Domain getDomain | ( | ) |
Returns the Kanzi UI domain that was created for this runtime.
|
static |
Retrieve the Kanzi runtime singleton for this application.
| context | Android application context. |
| void loadKzb | ( | String | binaryFilename | ) | throws FileNotFoundException |
Loads a given Kanzi binary file.
| binaryFilename | File path to kzb file. |
| FileNotFoundException | Throws a FileNotFoundException when the Kanzi binary file can not be found. |
| InvalidKzbFileException | Throws a InvalidKzbFileException when the Kanzi binary file is invalid. |
| void scheduleNativeGarbageCollection | ( | long | delayInMs | ) |
Schedules automatic garbage collection of native objects to occur on given interval.
In case the automatic garbage collection is not desired, it must be called manually.
| delayInMs | Interval for garbage collection, in milliseconds. |