Class AndroidWindowsSystem
Android Windows System.
Namespace: Evergine.Android
Assembly: Evergine.Android.dll
Syntax
public class AndroidWindowsSystem : WindowsSystem, IGetNativePointers, IFileSystemProvider
Constructors
AndroidWindowsSystem(Context)
Initializes a new instance of the AndroidWindowsSystem class.
Declaration
public AndroidWindowsSystem(Context context)
Parameters
Type | Name | Description |
---|---|---|
Context | context | Android context. |
Properties
AvailablePointerKeys
Gets a list of all available keys to obtain native pointers.
Declaration
public override IEnumerable<string> AvailablePointerKeys { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Overrides
FileSystem
Gets the file system.
Declaration
public IFileSystem FileSystem { get; }
Property Value
Type | Description |
---|---|
IFileSystem |
Methods
CreateLoopThread(Action, Action)
Creates a looping thread.
Declaration
protected override void CreateLoopThread(Action loadAction, Action renderCallback)
Parameters
Type | Name | Description |
---|---|---|
Action | loadAction | The loading action. |
Action | renderCallback | The rendering callback action. |
Overrides
CreateSurface(bool)
Create a surface and select run graphics backend in UI Thread or not.
Declaration
public Surface CreateSurface(bool runInUIThread = true)
Parameters
Type | Name | Description |
---|---|---|
bool | runInUIThread | Run in UI Thread or independent thread. |
Returns
Type | Description |
---|---|
Surface | Surface created. |
CreateSurface(object)
Creates a surface.
Declaration
public override Surface CreateSurface(object nativeSurface)
Parameters
Type | Name | Description |
---|---|---|
object | nativeSurface | The native surface control. |
Returns
Type | Description |
---|---|
Surface | A surface instance. |
Overrides
CreateSurface(uint, uint)
Creates a surface.
Declaration
public override Surface CreateSurface(uint width, uint height)
Parameters
Type | Name | Description |
---|---|---|
uint | width | The width of the surface. |
uint | height | The height of the surface. |
Returns
Type | Description |
---|---|
Surface | A surface instance. |
Overrides
CreateWindow(string, uint, uint, bool)
Creates a window.
Declaration
public override Window CreateWindow(string title, uint width, uint height, bool visible)
Parameters
Type | Name | Description |
---|---|---|
string | title | Window title. |
uint | width | Window width. |
uint | height | Window height. |
bool | visible | Window visibility. |
Returns
Type | Description |
---|---|
Window | Window instance. |
Overrides
GetNativePointer(string, out nint)
Obtains a native pointer for this graphics context using the given key.
Declaration
public override bool GetNativePointer(string pointerKey, out nint nativePointer)
Parameters
Type | Name | Description |
---|---|---|
string | pointerKey | The pointer key. |
nint | nativePointer | The native pointer. |
Returns
Type | Description |
---|---|
bool | True if there is an available pointer with this key. |