Ctrl+K

StrawberrySurfaceView

Declaration

public class Strawberry.Android.Helpers.StrawberrySurfaceView

Inherits: Android.Views.SurfaceView

Implements: Android.Views.ISurfaceHolderCallback

Constructors

StrawberrySurfaceView

void StrawberrySurfaceView(Context context)

Parameters:

Name Type Description
context Android.Content.Context

StrawberrySurfaceView

void StrawberrySurfaceView(Context context, IAttributeSet attrs)

Parameters:

Name Type Description
context Android.Content.Context
attrs Android.Util.IAttributeSet

Methods

SurfaceChanged

void SurfaceChanged(ISurfaceHolder holder, Format format, int width, int height)

Parameters:

Name Type Description
holder Android.Views.ISurfaceHolder
format Android.Graphics.Format
width System.Int32
height System.Int32

SurfaceCreated

void SurfaceCreated(ISurfaceHolder holder)

Parameters:

Name Type Description
holder Android.Views.ISurfaceHolder

SurfaceDestroyed

void SurfaceDestroyed(ISurfaceHolder holder)

Parameters:

Name Type Description
holder Android.Views.ISurfaceHolder

Events

OnSurfaceDestroyed

event Action<ISurfaceHolder> OnSurfaceDestroyed

OnSurfaceCreated

event Action<ISurfaceHolder> OnSurfaceCreated

OnSurfaceChanged

event Action<ISurfaceHolder, Format, int, int> OnSurfaceChanged