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
Afficher le fichier Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Méthodes publiques

Свойство Type Description
AndroidContext Android.Content.Context

Méthodes publiques

Méthode 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)

Méthodes protégées

Méthode Description
CreateFrameBuffer ( ) : void
DestroyFrameBuffer ( ) : void
OnLoad ( EventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void
OnResize ( EventArgs e ) : void

Private Methods

Méthode Description
Setup ( Android context ) : void

Method Details

AndroidViewController() public méthode

public AndroidViewController ( Android context, Type rootClass ) : System
context Android
rootClass System.Type
Résultat System

CreateFrameBuffer() protected méthode

protected CreateFrameBuffer ( ) : void
Résultat void

DestroyFrameBuffer() protected méthode

protected DestroyFrameBuffer ( ) : void
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnRenderFrame() protected méthode

protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnTouchEvent() public méthode

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
Résultat bool

Property Details

AndroidContext public_oe static_oe property

public static Android.Content.Context AndroidContext
Résultat Android.Content.Context