SKSurfaceView Class
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.
An implementation of SurfaceView that uses the dedicated surface for displaying a hardware-accelerated SKSurface.
public class SKSurfaceView : Android.Views.SurfaceView, Android.Views.ISurfaceHolderCallback, IDisposable, Java.Interop.IJavaPeerable
- Inheritance
-
SKSurfaceView
- Implements
Constructors
| Name | Description |
|---|---|
| SKSurfaceView(Context, IAttributeSet, Int32) |
Initializes a new instance of the SKSurfaceView class with the specified XML attributes and style. |
| SKSurfaceView(Context, IAttributeSet) |
Initializes a new instance of the SKSurfaceView class with the specified XML attributes. |
| SKSurfaceView(Context) |
Initializes a new instance of the SKSurfaceView class. |
Properties
| Name | Description |
|---|---|
| CanvasSize |
Gets the current canvas size. |
Methods
| Name | Description |
|---|---|
| Dispose(Boolean) |
Releases the unmanaged resources used by the SKSurfaceView and optionally releases the managed resources. |
| LockSurface() |
Start editing the pixels in the surface. The returned SKLockedSurface can be used to get the surface for drawing into the surface's bitmap. |
| SurfaceChanged(ISurfaceHolder, Format, Int32, Int32) |
This is called immediately after any structural changes (format or size) have been made to the surface. |
| SurfaceCreated(ISurfaceHolder) |
Called immediately after the surface is first created. |
| SurfaceDestroyed(ISurfaceHolder) |
Called immediately before a surface is being destroyed. |
| UnlockSurfaceAndPost(SKLockedSurface) |
Finish editing pixels in the surface. After this call, the surface's current pixels will be shown on the screen, but its content is lost. |