Skip to content

Instantly share code, notes, and snippets.

@prime31
Last active June 20, 2023 03:04
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save prime31/10747997 to your computer and use it in GitHub Desktop.
Save prime31/10747997 to your computer and use it in GitHub Desktop.
This is a list of all the available methods for the prime[31] Unity Activity sharing system.
public static void onCreate( Bundle savedInstanceState )
public static void onActivityResult( int request, int response, Intent data )
public static void onRequestPermissionsResult( int requestCode, String[] permissions, int[] grantResults )
public static void onNewIntent( Intent intent )
public static void onStart()
public static void onStop()
public static void onDestroy()
public static void onRestart()
public static void onPause()
public static void onResume()
public static void onBackPressed()
public static void onSaveInstanceState( Bundle savedInstanceState )
public static void onRestoreInstanceState( Bundle savedInstanceState )
public static void onConfigurationChanged( Configuration newConfig )
public static void onWindowFocusChanged( boolean hasFocus )
public static void onKeyDown( int keyCode, KeyEvent event )
public static void onKeyUp( int keyCode, KeyEvent event )
@kennethljj
Copy link

Hi, I would like to implement onActivityResult but I am unable to make the method static. There will be an error, this static method cannot hide the instance method from UnityPlayerActivity. May I ask if there is a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment