public abstract class

ForgeEventListener

extends Object
java.lang.Object
   ↳ io.trigger.forge.android.core.ForgeEventListener

Class Overview

Plugin event listeners should extend this class, and implement any methods they wish to handle events from.

Summary

Public Methods
Object getSystemService(String name)
Called when a system service is requested.
void onActivityResult(int requestCode, int resultCode, Intent data)
Called when an receives an intent result.
void onApplicationCreate()
Called when an app is created.
void onConfigurationChanged(Configuration newConfig)
Called when the device configuration changes, this included events like screen orientation change.
Boolean onContextItemSelected(MenuItem item)
void onContextMenuClosed(Menu menu)
void onCreate(Bundle savedInstanceState)
Called when the activity is initially created.
void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
void onDestroy()
Called when an app is destroyed.
Boolean onKeyDown(int keyCode, KeyEvent event)
Called on key press event.
Boolean onKeyLongPress(int keyCode, KeyEvent event)
Boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event)
Boolean onKeyUp(int keyCode, KeyEvent event)
void onLowMemory()
void onNewIntent(Intent intent)
Called when an intent is received.
void onPostCreate(Bundle savedInstanceState)
Called after an app is created.
void onRestart()
Called when an app is restarted.
Boolean onSearchRequested()
void onStart()
Called when an app is started.
void onStop()
Called when an app is stopped.
Boolean onTouchEvent(MotionEvent event)
Boolean onTrackballEvent(MotionEvent event)
void onUserInteraction()
void onWindowAttributesChanged(WindowManager.LayoutParams params)
void onWindowFocusChanged(boolean hasFocus)
Protected Methods
void onPause()
void onPostResume()
void onReloadUpdateApply()
Called when a reload update is started.
void onRestoreInstanceState(Bundle savedInstanceState)
void onResume()
void onSaveInstanceState(Bundle outState)
void onUserLeaveHint()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Object getSystemService (String name)

Called when a system service is requested. See android.add.Application#getSystemService.

public void onActivityResult (int requestCode, int resultCode, Intent data)

Called when an receives an intent result. See onActivityResult(int, int, Intent).

public void onApplicationCreate ()

Called when an app is created. See onCreate().

public void onConfigurationChanged (Configuration newConfig)

Called when the device configuration changes, this included events like screen orientation change. See onConfigurationChanged(Configuration).

public Boolean onContextItemSelected (MenuItem item)

public void onContextMenuClosed (Menu menu)

public void onCreate (Bundle savedInstanceState)

Called when the activity is initially created. See onCreate(Bundle).

public void onCreateContextMenu (ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)

public void onDestroy ()

Called when an app is destroyed. See onDestroy().

public Boolean onKeyDown (int keyCode, KeyEvent event)

Called on key press event. See onKeyDown(int, KeyEvent). If your plugin does not handle this event you must return null, otherwise other modules will not be given an opportunity to handle the event.

public Boolean onKeyLongPress (int keyCode, KeyEvent event)

public Boolean onKeyMultiple (int keyCode, int repeatCount, KeyEvent event)

public Boolean onKeyUp (int keyCode, KeyEvent event)

public void onLowMemory ()

public void onNewIntent (Intent intent)

Called when an intent is received. See onNewIntent(Intent).

public void onPostCreate (Bundle savedInstanceState)

Called after an app is created. See onPostCreate(Bundle).

public void onRestart ()

Called when an app is restarted. See onRestart().

public Boolean onSearchRequested ()

public void onStart ()

Called when an app is started. See onStart().

public void onStop ()

Called when an app is stopped. See onStop().

public Boolean onTouchEvent (MotionEvent event)

public Boolean onTrackballEvent (MotionEvent event)

public void onUserInteraction ()

public void onWindowAttributesChanged (WindowManager.LayoutParams params)

public void onWindowFocusChanged (boolean hasFocus)

Protected Methods

protected void onPause ()

protected void onPostResume ()

protected void onReloadUpdateApply ()

Called when a reload update is started.

protected void onRestoreInstanceState (Bundle savedInstanceState)

protected void onResume ()

protected void onSaveInstanceState (Bundle outState)

protected void onUserLeaveHint ()