Android Guides | Samples

Android.Views.ISurfaceHolderCallback

A client may implement this interface to receive information about changes to the surface.

See Also: ISurfaceHolderCallback

Syntax

[Android.Runtime.Register("android/view/SurfaceHolder$Callback", "", "Android.Views.ISurfaceHolderCallbackInvoker")]
public interface ISurfaceHolderCallback : IJavaObject, IDisposable

Remarks

A client may implement this interface to receive information about changes to the surface. When used with a SurfaceView, the Surface being held is only available between calls to ISurfaceHolderCallback.SurfaceCreated(ISurfaceHolder) and ISurfaceHolderCallback.SurfaceDestroyed(ISurfaceHolder). The Callback is set with ISurfaceHolder.AddCallback(ISurfaceHolderCallback) method.

[Android Documentation]

Requirements

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

The members of Android.Views.ISurfaceHolderCallback are listed below.

Public Methods

SurfaceChanged(ISurfaceHolder, Format, Int32, Int32)
This is called immediately after any structural changes (format or size) have been made to the surface.
SurfaceCreated(ISurfaceHolder)
This is called immediately after the surface is first created.
SurfaceDestroyed(ISurfaceHolder)
This is called immediately before a surface is being destroyed.