NativeActivity.SurfaceCreated(ISurfaceHolder) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This is called immediately after the surface is first created.
[Android.Runtime.Register("surfaceCreated", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceCreated_Landroid_view_SurfaceHolder_Handler")]
public virtual void SurfaceCreated(Android.Views.ISurfaceHolder? holder);
[<Android.Runtime.Register("surfaceCreated", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceCreated_Landroid_view_SurfaceHolder_Handler")>]
abstract member SurfaceCreated : Android.Views.ISurfaceHolder -> unit
override this.SurfaceCreated : Android.Views.ISurfaceHolder -> unit
Parameters
- holder
- ISurfaceHolder
SurfaceHolder: The SurfaceHolder whose surface is being created. This value cannot be null.
Implements
- 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.
Android reference for android.app.NativeActivity.surfaceCreated.
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.