Common interface for Kanzi view types. More...
Public Member Functions | |
void | addListener (KanziViewListener listener) |
Adds state change listener for this view. More... | |
KanziViewAdapter | getAdapter () |
Gets the adapter of this view. More... | |
Domain | getDomain () |
Gets the Domain associated with this view. More... | |
String | getName () |
Gets the name of the view and underlying native view node. More... | |
Node2D | getRoot () |
Returns the root node of this view. More... | |
KanziRuntime | getRuntime () |
Gets the KanziRuntime associated with this view. More... | |
void | handleOrientationChange (int orientation) |
Applies device orientation changes to the contents of this view. More... | |
void | removeListener (KanziViewListener listener) |
Removes state change listener from this view. More... | |
void | setClearColor (ColorRGBA color) |
Configures the color used to clear the surface of the view before rendering its contents. More... | |
void | setKzbPathList (String[] kzbPaths) |
Configures the list of kzb files that are loaded when the view is attached. More... | |
void | setName (String name) |
Sets the name for the view and underlying native view node. More... | |
void | setRoot (Node2D node) |
Sets the root node of this view, used to manually set content to the view. More... | |
void | setStartupPrefabUrl (String url) |
Configures the startup prefab that is automatically loaded during initialization. More... | |
Common interface for Kanzi view types.
void addListener | ( | KanziViewListener | listener | ) |
Adds state change listener for this view.
listener | Listener to be called when events occur. |
Implemented in KanziSurfaceView, and KanziTextureView.
KanziViewAdapter getAdapter | ( | ) |
Gets the adapter of this view.
Implemented in KanziTextureView, and KanziSurfaceView.
Domain getDomain | ( | ) |
Gets the Domain associated with this view.
Implemented in KanziTextureView, and KanziSurfaceView.
String getName | ( | ) |
Gets the name of the view and underlying native view node.
Implemented in KanziTextureView, and KanziSurfaceView.
Node2D getRoot | ( | ) |
Returns the root node of this view.
Implemented in KanziSurfaceView, and KanziTextureView.
KanziRuntime getRuntime | ( | ) |
Gets the KanziRuntime associated with this view.
Implemented in KanziTextureView, and KanziSurfaceView.
void handleOrientationChange | ( | int | orientation | ) |
Applies device orientation changes to the contents of this view.
orientation | The orientation qualifier from onOrientationChanged(). |
Implemented in KanziSurfaceView, and KanziTextureView.
void removeListener | ( | KanziViewListener | listener | ) |
Removes state change listener from this view.
listener | Listener to remove. |
Implemented in KanziSurfaceView, and KanziTextureView.
void setClearColor | ( | ColorRGBA | color | ) |
Configures the color used to clear the surface of the view before rendering its contents.
Default value: Opaque black i.e. (0, 0, 0, 255).
color | Color used to clear the surface of the view. Use null to skip clearing. |
Implemented in KanziSurfaceView, and KanziTextureView.
void setKzbPathList | ( | String [] | kzbPaths | ) |
Configures the list of kzb files that are loaded when the view is attached.
kzbPaths | Array of kzb paths to load. |
Implemented in KanziSurfaceView, and KanziTextureView.
void setName | ( | String | name | ) |
Sets the name for the view and underlying native view node.
name | New name for the view. |
Implemented in KanziTextureView, and KanziSurfaceView.
void setRoot | ( | Node2D | node | ) |
Sets the root node of this view, used to manually set content to the view.
node | Node to be displayed in this view. |
Implemented in KanziSurfaceView, and KanziTextureView.
void setStartupPrefabUrl | ( | String | url | ) |
Configures the startup prefab that is automatically loaded during initialization.
url | Url of the prefab template to load. |
Implemented in KanziTextureView, and KanziSurfaceView.