@Retention(value=CLASS)
@Target(value=PARAMETER)
public @interface ExtraInt
OnActivityResult annotated method can be annotated to get an int extra of the Intent
@OnActivityResult(requestCode = 1)
void onResult(@ExtraInt final int extraInt) {
// Do something
}
name() or the same as the parameter namedefaultValue() you can also use the Extra annotation| Modifier and Type | Optional Element and Description |
|---|---|
int |
defaultValue |
java.lang.String |
name |