Table of Contents

Class SurfaceHolder

Namespace
Android.View
Assembly
MASES.Netdroid.dll
public class SurfaceHolder : JVMBridgeBase<SurfaceHolder>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, ISurfaceHolder
Inheritance
SurfaceHolder
Implements
Extension Methods

Constructors

SurfaceHolder(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public SurfaceHolder(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

SURFACE_TYPE_GPU

[Obsolete("Deprecated in JVM")]
public static int SURFACE_TYPE_GPU { get; set; }

Property Value

int

SURFACE_TYPE_HARDWARE

[Obsolete("Deprecated in JVM")]
public static int SURFACE_TYPE_HARDWARE { get; set; }

Property Value

int

SURFACE_TYPE_NORMAL

[Obsolete("Deprecated in JVM")]
public static int SURFACE_TYPE_NORMAL { get; set; }

Property Value

int

SURFACE_TYPE_PUSH_BUFFERS

[Obsolete("Deprecated in JVM")]
public static int SURFACE_TYPE_PUSH_BUFFERS { get; set; }

Property Value

int

Methods

AddCallback(Callback)

public void AddCallback(SurfaceHolder.Callback arg0)

Parameters

arg0 SurfaceHolder.Callback

SurfaceHolder.Callback

GetSurface()

public Surface GetSurface()

Returns

Surface

Surface

GetSurfaceFrame()

public Rect GetSurfaceFrame()

Returns

Rect

Rect

IsCreating()

public bool IsCreating()

Returns

bool

bool

LockCanvas()

public Canvas LockCanvas()

Returns

Canvas

Canvas

LockCanvas(Rect)

public Canvas LockCanvas(Rect arg0)

Parameters

arg0 Rect

Rect

Returns

Canvas

Canvas

LockHardwareCanvas()

public Canvas LockHardwareCanvas()

Returns

Canvas

Canvas

RemoveCallback(Callback)

public void RemoveCallback(SurfaceHolder.Callback arg0)

Parameters

arg0 SurfaceHolder.Callback

SurfaceHolder.Callback

SetFixedSize(int, int)

public void SetFixedSize(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

SetFormat(int)

public void SetFormat(int arg0)

Parameters

arg0 int

int

SetKeepScreenOn(bool)

public void SetKeepScreenOn(bool arg0)

Parameters

arg0 bool

bool

SetSizeFromLayout()

public void SetSizeFromLayout()

SetType(int)

[Obsolete("Deprecated in JVM")]
public void SetType(int arg0)

Parameters

arg0 int

int

UnlockCanvasAndPost(Canvas)

public void UnlockCanvasAndPost(Canvas arg0)

Parameters

arg0 Canvas

Canvas