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