Edit

SKSurfaceView Constructors

Definition

Overloads

Name Description
SKSurfaceView(Context)

Initializes a new instance of the SKSurfaceView class.

SKSurfaceView(Context, IAttributeSet)

Initializes a new instance of the SKSurfaceView class with the specified XML attributes.

SKSurfaceView(Context, IAttributeSet, Int32)

Initializes a new instance of the SKSurfaceView class with the specified XML attributes and style.

SKSurfaceView(Context)

Initializes a new instance of the SKSurfaceView class.

public SKSurfaceView(Android.Content.Context context);

Parameters

context
Context

The Context the view is running in, through which it can access the current theme, resources, etc.

Remarks

Use this constructor when creating the view programmatically from code.

Applies to

SKSurfaceView(Context, IAttributeSet)

Initializes a new instance of the SKSurfaceView class with the specified XML attributes.

public SKSurfaceView(Android.Content.Context context, Android.Util.IAttributeSet attrs);

Parameters

context
Context

The Context the view is running in, through which it can access the current theme, resources, etc.

attrs
IAttributeSet

The attributes of the XML tag that is inflating the view.

Remarks

This constructor is called when inflating the view from an Android XML layout file.

Applies to

SKSurfaceView(Context, IAttributeSet, Int32)

Initializes a new instance of the SKSurfaceView class with the specified XML attributes and style.

public SKSurfaceView(Android.Content.Context context, Android.Util.IAttributeSet attrs, int defStyle);

Parameters

context
Context

The Context the view is running in, through which it can access the current theme, resources, etc.

attrs
IAttributeSet

The attributes of the XML tag that is inflating the view.

defStyle
Int32

An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.

Remarks

This constructor is called when inflating the view from an Android XML layout file and applying a class-specific base style from a theme attribute.

Applies to