Represents the AppView2D or AppView3D Kanzi node. More...
Public Member Functions | |
void | onEmbeddedApplicationStarted () |
Notifies a corresponding AppView node that the application started. | |
void | onEmbeddedApplicationStopped () |
Notifies a corresponding AppView node that the running application stopped. | |
void | onFrameAvailable () |
Notifies a corresponding AppView node that a new frame is available. | |
Protected Member Functions | |
boolean | acquireDisplay (String virtualDisplayName) |
String | getAppName () |
Returns the embedded activity component name. | |
int | getTextureId () |
long | getVirtualDisplayDensity () |
long | getVirtualDisplayHeight () |
String | getVirtualDisplayName () |
long | getVirtualDisplayWidth () |
boolean | initializeDisplay (int virtualDisplayWidth, int virtualDisplayHeight, int virtualDisplayDensity) |
Initializes a virtual display backed by the given texture. | |
boolean | injectPointerEvents (int event, int pointerIndex, TouchPointInfoVector pointers) |
boolean | navigateBack () |
Performs back navigation inside the virtual display. | |
void | pauseApp () |
Pauses the embedded app. | |
void | releaseDisplay () |
Releases resources. | |
void | resumeApp () |
Resumes the embedded app. | |
boolean | startApp (String appName, boolean canExitApp) |
Starts the given app inside the virtual display. | |
boolean | updateDisplay (int newDisplayWidth, int newDisplayHeight, int newDisplayDensity) |
Updates the virtual display paramaters. | |
float[] | updateTextureContent () |
Updates pixels on an output texture. | |
Represents the AppView2D or AppView3D Kanzi node.
|
protected |
Returns the embedded activity component name.
AppViewController is in charge of running that component. Used in the native layer to make sure that the Kanzi.AppViewConcept.EmbeddedActivityComponentName property has a matching value.
|
protected |
Initializes a virtual display backed by the given texture.
virtualDisplayWidth | Virtual display width |
virtualDisplayHeight | Virtual display height |
virtualDisplayDensity | Virtual display density (dpi) |
|
protected |
Performs back navigation inside the virtual display.
It has the same effect as pressing the back button on an Android device.
void onEmbeddedApplicationStarted | ( | ) |
Notifies a corresponding AppView node that the application started.
When called, the AppView node starts displaying the associated external texture in the Kanzi UI scene.
void onEmbeddedApplicationStopped | ( | ) |
Notifies a corresponding AppView node that the running application stopped.
When called, the AppView node restores its original state. In this state, it renders nothing.
|
protected |
Releases resources.
Destroys the virtual display and stops the app running inside the AppView.
|
protected |
Starts the given app inside the virtual display.
appName | The app name. Formatted as "package.name/activity.name". See ComponentName.unflattenFromString() for details. |
canExitApp | True if it's allowed to exit the app via navigateBack() |
|
protected |
Updates the virtual display paramaters.
newDisplayWidth | The new virtual display width |
newDisplayHeight | The new virtual display height |
newDisplayDensity | The new virtual display density (dpi) |
|
protected |
Updates pixels on an output texture.