Kanzi runtime infrastructure for an Android application. More...
Classes | |
class | Reference |
Manages the lifetime of the KanziRuntime in one process. 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 fileName) throws FileNotFoundException |
Loads a kzb file from the file system, if the file is not already loaded. 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 Reference | acquire (Context context) |
Acquire a Reference to the KanziRuntime. More... | |
Kanzi runtime infrastructure for an Android application.
|
static |
Acquire a Reference to the KanziRuntime.
If KanziRuntime is not already initialized, you initialize it when you call this function.
context | The Android context used by the Kanzi Runtime. Can be an Activity or an Application Context. |
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.
void loadKzb | ( | String | fileName | ) | throws FileNotFoundException |
Loads a kzb file from the file system, if the file is not already loaded.
To load additional kzb files with the same name, use ResourceManager#addKzbFile(String).
fileName | The name of the kzb file to load. |
InvalidKzbFileException | Throws an InvalidKzbFileException when the kzb file is invalid. |
FileNotFoundException | Throws a FileNotFoundException when the kzb file is not found. |
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. |