Stay organized with collections
Save and categorize content based on your preferences.
InlineContentView.SurfaceControlCallback
public
static
interface
InlineContentView.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
onCreated
public abstract void onCreated (SurfaceControl surfaceControl)
Called when the backing surface is being created.
Parameters |
surfaceControl |
SurfaceControl : The surface control to manipulate the surface.
This value cannot be null . |
onDestroyed
public abstract void onDestroyed (SurfaceControl surfaceControl)
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# InlineContentView.SurfaceControlCallback\n\nAdded in [API level 30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nInlineContentView.SurfaceControlCallback\n========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/widget/inline/InlineContentView.SurfaceControlCallback \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nInlineContentView.SurfaceControlCallback\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------------|\n| android.widget.inline.InlineContentView.SurfaceControlCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback for observing the lifecycle of the surface control that manipulates the backing\nsecure embedded UI surface.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onCreated](/reference/android/widget/inline/InlineContentView.SurfaceControlCallback#onCreated(android.view.SurfaceControl))`(`[SurfaceControl](/reference/android/view/SurfaceControl)` surfaceControl) ` Called when the backing surface is being created. |\n| ` abstract void` | ` `[onDestroyed](/reference/android/widget/inline/InlineContentView.SurfaceControlCallback#onDestroyed(android.view.SurfaceControl))`(`[SurfaceControl](/reference/android/view/SurfaceControl)` surfaceControl) ` Called when the backing surface is being destroyed. |\n\nPublic methods\n--------------\n\n### onCreated\n\nAdded in [API level 30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onCreated (SurfaceControl surfaceControl)\n```\n\nCalled when the backing surface is being created.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------|------------------------------------------------------------------------------------------------------|\n| `surfaceControl` | `SurfaceControl`: The surface control to manipulate the surface. This value cannot be `null`. \u003cbr /\u003e |\n\n### onDestroyed\n\nAdded in [API level 30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onDestroyed (SurfaceControl surfaceControl)\n```\n\nCalled when the backing surface is being destroyed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------|------------------------------------------------------------------------------------------------------|\n| `surfaceControl` | `SurfaceControl`: The surface control to manipulate the surface. This value cannot be `null`. \u003cbr /\u003e |"]]