@Retention(value=CLASS)
@Target(value=PARAMETER)
public @interface IntentData
OnActivityResult annotated method can be annotated to get the android.content.Intent#getData() of the intent
@OnActivityResult(requestCode = 1)
void onResult(final int resultCode, @IntentData final Uri uri) {
// Do something
}
android.content.Intent for non null first and then try to get the intent data.android.content.Intent for non null first and then check that the intent data is also not null.