Class XuiActivity
public class XuiActivity : Activity, IComponentCallbacks2, IComponentCallbacks, KeyEvent.ICallback, LayoutInflater.IFactory2, LayoutInflater.IFactory, View.IOnCreateContextMenuListener, Window.ICallback, IWindow, IServiceProvider, Choreographer.IFrameCallback, IJavaObject, IJavaPeerable, IDisposable
- Inheritance
-
XuiActivity
- Implements
- Inherited Members
- Extension Methods
Fields
Context
protected AndroidDrawingContext Context
Field Value
root
protected XuiRoot? root
Field Value
ui
protected XuiUI? ui
Field Value
Properties
Abstract
Gets the abstract window immediately upstream of this actual window. Together with Actual, this forms the bidirectional composed-window chain.
public IWindow? Abstract { get; }
Property Value
Instance
public static XuiActivity? Instance { get; }
Property Value
NextServiceProvider
The service provider reached after this actual window. Middleware uses this exclusively for its forward service chain; it must never use its abstract event receiver as a service fallback.
public IServiceProvider NextServiceProvider { get; }
Property Value
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
Title
Gets or sets the window title, where supported by the platform (e.g., desktop).
public string Title { get; set; }
Property Value
Methods
DoFrame(long)
public void DoFrame(long frameTimeNanos)
Parameters
frameTimeNanoslong
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?)
Called when the activity is starting.
protected override void OnCreate(Bundle? savedInstanceState)
Parameters
savedInstanceStateBundleIf the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in
#onSaveInstanceState. <b>Note: Otherwise it is null.</b>
Remarks
Called when the activity is starting. This is where most initialization
should go: calling #setContentView(int) to inflate the
activity's UI, using #findViewById to programmatically interact
with widgets in the UI, calling
#managedQuery(android.net.Uri , String[], String, String[], String) to retrieve
cursors for data being displayed, etc.
You can call #finish from within this function, in
which case onDestroy() will be immediately called after #onCreate without any of the
rest of the activity lifecycle (#onStart, #onResume, #onPause, etc.)
executing.
<em>Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.</em>
.
android.app.Activity.onCreate(android.os.Bundle)
Portions of this page are modifications based on work created and shared by the
OnTouchEvent(MotionEvent?)
Called when a touch screen event was not handled by any of the views inside of the activity.
public override bool OnTouchEvent(MotionEvent? e)
Parameters
eMotionEventThe touch screen event being processed.
Returns
- bool
Return true if you have consumed the event, false if you haven't.
Remarks
Called when a touch screen event was not handled by any of the views inside of the activity. This is most useful to process touch events that happen outside of your window bounds, where there is no view to receive it.
.
android.app.Activity.onTouchEvent(android.view.MotionEvent)
Portions of this page are modifications based on work created and shared by the
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()