Android.App.NativeActivity.SurfaceCreated Method
This is called immediately after the surface is first created.

Syntax

[Android.Runtime.Register("surfaceCreated", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceCreated_Landroid_view_SurfaceHolder_Handler")]
public virtual void SurfaceCreated (Android.Views.ISurfaceHolder holder)

Parameters

holder
The SurfaceHolder whose surface is being created.

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 Android.Views.Surface, so you should not draw into the Surface here if your normal rendering will be in another thread.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9