Skip to content

Instantly share code, notes, and snippets.

@PanosJee
Created December 18, 2012 18:12
Show Gist options
  • Save PanosJee/4330479 to your computer and use it in GitHub Desktop.
Save PanosJee/4330479 to your computer and use it in GitHub Desktop.
Execute a method before app crash
/* Set Last Action */
public App()
{
// Global handler for uncaught exceptions.
BugSenseHandler.Instance.Init(this, "YOUR_API_KEY");
BugSenseHandler.SetLastBreath(MyMethod);
// ...do more stuff...
}
private void MyMethod()
{
//do stuff here, ex. save state etc ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment