Added in API level 30

SurfaceControlCallback

interface SurfaceControlCallback
android.widget.inline.InlineContentView.SurfaceControlCallback

Callback for observing the lifecycle of the surface control that manipulates the backing secure embedded UI surface.

Summary

Public methods
abstract Unit
onCreated(surfaceControl: SurfaceControl)

Called when the backing surface is being created.

abstract Unit
onDestroyed(surfaceControl: SurfaceControl)

Called when the backing surface is being destroyed.

Public methods

onCreated

Added in API level 30
abstract fun onCreated(surfaceControl: SurfaceControl): Unit

Called when the backing surface is being created.

Parameters
surfaceControl SurfaceControl: The surface control to manipulate the surface. This value cannot be null.

onDestroyed

Added in API level 30
abstract fun onDestroyed(surfaceControl: SurfaceControl): Unit

Called when the backing surface is being destroyed.

Parameters
surfaceControl SurfaceControl: The surface control to manipulate the surface. This value cannot be null.