Stay organized with collections
Save and categorize content based on your preferences.
SurfaceControlCallback
interface SurfaceControlCallback
Callback for observing the lifecycle of the surface control that manipulates the backing secure embedded UI surface.
Summary
Public methods |
abstract Unit |
Called when the backing surface is being created.
|
abstract Unit |
Called when the backing surface is being destroyed.
|
Public methods
onCreated
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
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 . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# InlineContentView.SurfaceControlCallback\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSurfaceControlCallback\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/widget/inline/InlineContentView.SurfaceControlCallback \"View this page in Java\") \n\n```\ninterface SurfaceControlCallback\n```\n\n|---------------------------------------------------------------------|\n| [android.widget.inline.InlineContentView.SurfaceControlCallback](#) |\n\nCallback for observing the lifecycle of the surface control that manipulates the backing secure embedded UI surface.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onCreated](#onCreated(android.view.SurfaceControl))`(`surfaceControl:` `[SurfaceControl](../../view/SurfaceControl.html#)`)` Called when the backing surface is being created. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onDestroyed](#onDestroyed(android.view.SurfaceControl))`(`surfaceControl:` `[SurfaceControl](../../view/SurfaceControl.html#)`)` Called when the backing surface is being destroyed. |\n\nPublic methods\n--------------\n\n### onCreated\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onCreated(surfaceControl: SurfaceControl): Unit\n```\n\nCalled when the backing surface is being created.\n\n| Parameters ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `surfaceControl` | [SurfaceControl](../../view/SurfaceControl.html#): The surface control to manipulate the surface. This value cannot be `null`. |\n\n### onDestroyed\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onDestroyed(surfaceControl: SurfaceControl): Unit\n```\n\nCalled when the backing surface is being destroyed.\n\n| Parameters ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `surfaceControl` | [SurfaceControl](../../view/SurfaceControl.html#): The surface control to manipulate the surface. This value cannot be `null`. |"]]