Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

[[ Bug 22950 ]] Starting Activities and Handling Results #7458

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

montegoulding
Copy link
Member

A new handler has been added to facilitate starting activities by Intent and
handling results. The StartActivityForResult handler registers a listener to
handle the onActivityResult method of the engine activity and when handled
calls a callback handler with the request code, result code and Intent object.

@montegoulding montegoulding added this to the 9.7.0-dp-1 milestone Oct 21, 2020
@montegoulding montegoulding self-assigned this Oct 21, 2020
This patch implements an `OnActivityResultListener` interface so it is possible to
handle `onActivityResult` for a particular result code.

This implementation should be icnsidered temporary until bug 19920 (EngineAPI class)
is implemented at which point `OnActivityResultListener` would likely become an
interface of `EngineAPI` rather than `LiveCodeActivity`.
This patch adds new handler to facilitate starting activities by Intent and
handling results. The `StartActivityForResult` handler registers a listener to
handle the `onActivityResult` method of the engine activity and when handled
calls a callback handler with the request code, result code and Intent object.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant