Table of Contents

Class XuiActivity

Namespace
Xui.Runtime.Android.Actual
Assembly
Xui.Runtime.Android.dll
public class XuiActivity : Android.App.Activity, IWindow, Choreographer.IFrameCallback
Inheritance
XuiActivity
Implements
IFrameCallback

Fields

Context

protected AndroidDrawingContext Context

Field Value

AndroidDrawingContext

root

protected XuiRoot? root

Field Value

XuiRoot

ui

protected XuiUI? ui

Field Value

XuiUI

Properties

Abstract

public IWindow? Abstract { get; }

Property Value

IWindow

Instance

public static XuiActivity? Instance { get; }

Property Value

XuiActivity

RequireKeyboard

Gets or sets whether the window currently requires keyboard input focus. Platforms may use this to show or hide on-screen keyboards.

public bool RequireKeyboard { get; set; }

Property Value

bool

Title

Gets or sets the window title, where supported by the platform (e.g., desktop).

public string Title { get; set; }

Property Value

string

Methods

DoFrame(long)

public void DoFrame(long frameTimeNanos)

Parameters

frameTimeNanos long

Invalidate()

Requests a redraw of the window surface. The platform should trigger a paint or render callback as soon as possible.

public void Invalidate()

OnCreate(Bundle?)

protected override void OnCreate(Bundle? savedInstanceState)

Parameters

savedInstanceState Bundle?

OnTouchEvent(MotionEvent?)

public override bool OnTouchEvent(MotionEvent? e)

Parameters

e MotionEvent?

Returns

bool

Show()

Displays the window to the user. This may include making it visible, entering the main loop, or attaching it to the application's view hierarchy, depending on the platform.

public void Show()