Ctrl+K

GameLauncher

Declaration

public class Strawberry.Android.GameLauncher

The game launcher for android platform. It represents the main activity.

Inherits: Android.App.Activity

Implements: Strawberry.IGameLauncher

Properties

GraphicsContext

IGraphicsContext GraphicsContext { get }

InputManager

IInputManager InputManager { get }

SoundManager

ISoundManager SoundManager { get }

Storage

IStorage Storage { get }

Methods

OnCreate protected override

void OnCreate(Bundle savedInstanceState)

Parameters:

Name Type Description
savedInstanceState Android.OS.Bundle

Initialize

void Initialize(int width, int height)

Parameters:

Name Type Description
width System.Int32
height System.Int32

OnPause protected override

void OnPause()

OnResume protected override

void OnResume()

Finish override

void Finish()

OnDestroy protected override

void OnDestroy()

Run

void Run()

OnTouchEvent override

bool OnTouchEvent(MotionEvent e)

Parameters:

Name Type Description
e Android.Views.MotionEvent

Events

Initialized

event Action Initialized

GameLoop

event Action GameLoop