Android Guides | Samples

Android.Views.Surface Class

Handle onto a raw buffer that is being managed by the screen compositor.

See Also: Surface

Syntax

[Android.Runtime.Register("android/view/Surface", DoNotGenerateAcw=true)]
public class Surface : Object, IParcelable, IDisposable

Remarks

Handle onto a raw buffer that is being managed by the screen compositor.

[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.Surface are listed below.

See Also: Object

Public Constructors

Create Surface from a SurfaceTexture.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
GpuInt32 (40).
const
HardwareInt32 (16).
const
HiddenInt32 (4).
const
NonPremultipliedInt32 (256).
const
PushBuffersInt32 (512).
const
SecureInt32 (128).
const
SuraceFrozenInt32 (2).
const
SurfaceBlurFreezeInt32 (16).
const
SurfaceDitherInt32 (4).
const
SurfaceFrozenInt32 (2).
const
SurfaceHiddenInt32 (1).

Public Properties

[read-only]
static
CreatorIParcelableCreator.
[read-only]
IsValidBoolean. Returns true if this object holds a valid surface.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Freeze()
Hide()
LockCanvas(Rect) : Canvas
Gets a Canvas for drawing into this surface.
ReadFromParcel(Parcel)
Release()
Release the local reference to the server-side surface.
SetAlpha(Single)
SetFlags(Int32, Int32)
SetFreezeTint(Int32)
SetLayer(Int32)
SetMatrix(Single, Single, Single, Single)
static
SetOrientation(Int32, SurfaceOrientation)
SetPosition(Int32, Int32)
SetSize(Int32, Int32)
SetTransparentRegionHint(Region)
Show()
Unfreeze()
UnlockCanvas(Canvas)
UnlockCanvasAndPost(Canvas)
Posts the new contents of the Canvas to the surface and releases the Canvas.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.