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