Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

@OnActivityResult to process Intent extras #796

Copy link
Copy link
@tobias-

Description

@tobias-
Issue body actions

When receiving a reply back via @OnActivityResult it would be great if you could annotate the result with @Result or something similar and get the variables as the response. E.g.:

@OnActivityResult(OtherActivity.REQUEST_CODE)
void response(int resultCode, @Result(OtherActivity.ID) String id) {
...
}

This is an improvement on #28.

Another solution would be for the IntentBuilder to have get-methods for retrieving the value out of the intent with the correct type. E.g.:

@OnActivityResult(OtherActivity.REQUEST_CODE)
void response(int resultCode, Intent resultIntent) {
String id = OtherActivity_.IntentBuilder.create(resultIntent).getId();
}

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.