Kanzi  3.9.5
Android framework API
KanziViewListener Interface Reference

An interface to listen for state changes in a view associated with Kanzi. More...

Public Member Functions

default void onAttachedToWindow (View view, Domain domain)
 Called when the view is attached to a window. More...
 
default void onDetachedFromWindow (View view, Domain domain)
 Called when the view is detached from a window. More...
 
default void onStartupPrefabLoaded (View view, Domain domain)
 Called when the startup prefab is loaded and content is accessible. More...
 
default void onSurfaceChanged (View view, Domain domain)
 This is called immediately after any structural changes (format or size) have been made to the surface. More...
 
default void onSurfaceCreated (View view, Domain domain)
 Called when the view has an output surface. More...
 
default void onSurfaceDestroyed (View view, Domain domain)
 This is called immediately before a surface is being destroyed. More...
 

Detailed Description

An interface to listen for state changes in a view associated with Kanzi.

Member Function Documentation

◆ onAttachedToWindow()

default void onAttachedToWindow ( View  view,
Domain  domain 
)

Called when the view is attached to a window.

Parameters
viewView that was attached.
domainDomain associated with the view.

◆ onDetachedFromWindow()

default void onDetachedFromWindow ( View  view,
Domain  domain 
)

Called when the view is detached from a window.

Parameters
viewView that was detached.
domainDomain associated with the view.

◆ onStartupPrefabLoaded()

default void onStartupPrefabLoaded ( View  view,
Domain  domain 
)

Called when the startup prefab is loaded and content is accessible.

Parameters
viewView that owns the loaded prefab.
domainDomain associated with the view.

◆ onSurfaceChanged()

default void onSurfaceChanged ( View  view,
Domain  domain 
)

This is called immediately after any structural changes (format or size) have been made to the surface.

Parameters
viewView that owns the changed surface.
domainDomain associated with the view.

◆ onSurfaceCreated()

default void onSurfaceCreated ( View  view,
Domain  domain 
)

Called when the view has an output surface.

Parameters
viewView that owns the created surface.
domainDomain associated with the view.

◆ onSurfaceDestroyed()

default void onSurfaceDestroyed ( View  view,
Domain  domain 
)

This is called immediately before a surface is being destroyed.

Parameters
viewView that owns the destroyed surface.
domainDomain associated with the view.