Class AndroidSurfaceView
This class represent a native android surface view.
Implements
Inherited Members
Namespace: Evergine.Android
Assembly: Evergine.Android.dll
Syntax
public class AndroidSurfaceView : SurfaceView, Drawable.ICallback, IAccessibilityEventSource, KeyEvent.ICallback, ISurfaceHolderCallback, IJavaObject, IJavaPeerable
Constructors
AndroidSurfaceView(Context)
Initializes a new instance of the AndroidSurfaceView class.
Declaration
public AndroidSurfaceView(Context context)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The android native context. |
Fields
LoadAction
Gets or sets Load action.
Declaration
public Action LoadAction
Field Value
Type | Description |
---|---|
Action |
RenderAction
Gets or sets Render action.
Declaration
public Action RenderAction
Field Value
Type | Description |
---|---|
Action |
SurfaceDestroy
The surface destroy delegate.
Declaration
public Action SurfaceDestroy
Field Value
Type | Description |
---|---|
Action |
SurfaceInfo
The surface info with contains the native pointers.
Declaration
public SurfaceInfo SurfaceInfo
Field Value
Type | Description |
---|---|
SurfaceInfo |
SurfaceInfoChange
The surface info delegate.
Declaration
public Action SurfaceInfoChange
Field Value
Type | Description |
---|---|
Action |
SurfaceInitialized
The surface created delegate.
Declaration
public Action SurfaceInitialized
Field Value
Type | Description |
---|---|
Action |
SurfaceSizeChange
The surface size delegate.
Declaration
public Action SurfaceSizeChange
Field Value
Type | Description |
---|---|
Action |
Properties
KeyboardDispatcher
Gets the Android keyboard dispatcher.
Declaration
public AndroidKeyboardDispatcher KeyboardDispatcher { get; }
Property Value
Type | Description |
---|---|
AndroidKeyboardDispatcher |
MouseDispatcher
Gets the Android mouse dispatcher.
Declaration
public AndroidMouseDispatcher MouseDispatcher { get; }
Property Value
Type | Description |
---|---|
AndroidMouseDispatcher |
RunInUIThread
Gets a value indicating whether graphics backend run in UI Thread.
Declaration
public bool RunInUIThread { get; }
Property Value
Type | Description |
---|---|
bool |
TouchDispatcher
Gets the Android touch dispatcher.
Declaration
public AndroidTouchDispatcher TouchDispatcher { get; }
Property Value
Type | Description |
---|---|
AndroidTouchDispatcher |
Methods
Destroy()
Disable the render loop.
Declaration
public void Destroy()
Pause()
Pause the application.
Declaration
public void Pause()
Resume()
Resume the application.
Declaration
public void Resume()
SurfaceChanged(ISurfaceHolder, Format, int, int)
When the surface size change.
Declaration
public void SurfaceChanged(ISurfaceHolder holder, Format format, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
ISurfaceHolder | holder | The native surface holder. |
Format | format | The new android graphics format. |
int | width | The new width size. |
int | height | The new height size. |
SurfaceCreated(ISurfaceHolder)
When the surface is created.
Declaration
public void SurfaceCreated(ISurfaceHolder holder)
Parameters
Type | Name | Description |
---|---|---|
ISurfaceHolder | holder | The native surface holder. |
SurfaceDestroyed(ISurfaceHolder)
When android surface is destroyed.
Declaration
public void SurfaceDestroyed(ISurfaceHolder holder)
Parameters
Type | Name | Description |
---|---|---|
ISurfaceHolder | holder | The native surface holder. |