non private and non static methods can be annotated with
OnActivityResult
Example:
@OnActivityResult(requestCode = 1)
void onResult(final int resultCode, final Intent intent) {
// Do something
}
Various parameters are supported:
- none
- int
- Intent
- int, Intent
- Intent, int
Where int parameters will get the resultCode and Intent parameters will get the Intent.
Note: Each annotated method shall only have one int and / or Intent variable.
In addition to that other parameter annotations are supported like: