This annotation is intended to be used on methods to receive results from a
previously started activity using
Activity.startActivityForResult(Intent, int)
or the
generated IntentBuilder.startActivityForResult()
method of the
activity.
Some usage examples of @OnActivityResult annotation:
@OnActivityResult(REQUEST_CODE)
void onResult(int resultCode, Intent data) {
}
@OnActivityResult(REQUEST_CODE)
void onResult(int resultCode) {
}
@OnActivityResult(ANOTHER_REQUEST_CODE)
void onResult(Intent data) {
}
@OnActivityResult(ANOTHER_REQUEST_CODE)
void onResult() {
}