C# Class Sparrow.Core.AndroidViewController

The device-specific base class for a Sparrow project. Note that this class contains device specific functionality, so if you override a function its likely that you will need to define platform specific behaviour using //#ifdefs
Inheritance: AndroidGameView
Mostrar archivo Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Public Properties

Property Type Description
AndroidContext Android.Content.Context

Public Methods

Method Description
AndroidViewController ( Android context, Type rootClass ) : System
OnTouchEvent ( Android.Views.MotionEvent e ) : bool

This function handles touch events. It is responsible for maintaining the currently active touch events and dispatching events. For details see http://developer.android.com/reference/android/view/View.html#onTouchEvent(android.view.MotionEvent)

Protected Methods

Method Description
CreateFrameBuffer ( ) : void
DestroyFrameBuffer ( ) : void
OnLoad ( EventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void
OnResize ( EventArgs e ) : void

Private Methods

Method Description
Setup ( Android context ) : void

Method Details

AndroidViewController() public method

public AndroidViewController ( Android context, Type rootClass ) : System
context Android
rootClass System.Type
return System

CreateFrameBuffer() protected method

protected CreateFrameBuffer ( ) : void
return void

DestroyFrameBuffer() protected method

protected DestroyFrameBuffer ( ) : void
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnRenderFrame() protected method

protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

OnTouchEvent() public method

This function handles touch events. It is responsible for maintaining the currently active touch events and dispatching events. For details see http://developer.android.com/reference/android/view/View.html#onTouchEvent(android.view.MotionEvent)
public OnTouchEvent ( Android.Views.MotionEvent e ) : bool
e Android.Views.MotionEvent
return bool

Property Details

AndroidContext public_oe static_oe property

public static Android.Content.Context AndroidContext
return Android.Content.Context