ISurfaceHolderCallback.SurfaceCreated(ISurfaceHolder) Method

Definition

This is called immediately after the surface is first created.

[Android.Runtime.Register("surfaceCreated", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceCreated_Landroid_view_SurfaceHolder_Handler:Android.Views.ISurfaceHolderCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SurfaceCreated (Android.Views.ISurfaceHolder holder);
[<Android.Runtime.Register("surfaceCreated", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceCreated_Landroid_view_SurfaceHolder_Handler:Android.Views.ISurfaceHolderCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SurfaceCreated : Android.Views.ISurfaceHolder -> unit

Parameters

holder
ISurfaceHolder

The SurfaceHolder whose surface is being created.

Attributes

Remarks

This is called immediately after the surface is first created. Implementations of this should start up whatever rendering code they desire. Note that only one thread can ever draw into a Surface, so you should not draw into the Surface here if your normal rendering will be in another thread.

Java documentation for android.view.SurfaceHolder.Callback.surfaceCreated(android.view.SurfaceHolder).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to