Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updateProposition support with completion in aepsdk-optimize-android #705

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,20 @@ Completion callback passed to `updatePropositions` supports network timeout and

Android

Coming Soon
<Tabs query="platform=android&api=update-propositions-withError"/>

iOS

<Tabs query="platform=ios&api=update-propositions-withError"/>

## Public classes

| Type | Android | (AEP 5.x) Swift | (AEP 5.x) Objective-C |
| :--- |:----------------| :--- | :--- |
| class | `DecisionScope` | `DecisionScope` | `AEPDecisionScope` |
| class | `Proposition` | `OptimizeProposition` | `AEPOptimizeProposition` |
| class | `Offer` | `Offer` | `AEPOffer` |
| class | Coming Soon | `AEPOptimizeError` | `AEPOptimizeError` |
| Type | Android | (AEP 5.x) Swift | (AEP 5.x) Objective-C |
| :--- |:---------------------| :--- | :--- |
| class | `DecisionScope` | `DecisionScope` | `AEPDecisionScope` |
| class | `Proposition` | `OptimizeProposition` | `AEPOptimizeProposition` |
| class | `Offer` | `Offer` | `AEPOffer` |
| class | `AEPOptimizeError` | `AEPOptimizeError` | `AEPOptimizeError` |

### DecisionScope

Expand Down Expand Up @@ -199,7 +199,7 @@ This class represents the error details returned by the Edge Network while fetch

Android

**Coming Soon**
<Tabs query="platform=android&api=optimizeerror"/>

iOS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public static void updatePropositions(final List<DecisionScope> decisionScopes,
* _decisionScopes_ is a list of decision scopes for which propositions need updating.
* _xdm_ is a map containing additional xdm formatted data to be attached to the Experience Event.
* _data_ is a map containing additional freeform data to be attached to the Experience Event.
* _callback_ is a optional completion handler invoked at the completion of the edge request with map of successful decision scopes to propositions and errors, if any.
* _callback_ is an optional completion handler that is invoked at the completion of the edge request. `call` method is invoked with propositions map of type `Map<DecisionScope, OptimizeProposition>`. If the callback is an instance of `AdobeCallbackWithOptimizeError`, and if the operation times out or an error occurs in retrieving propositions, the `fail` method is invoked with the appropriate [AdobeError](../../../home/base/mobile-core/tabs/api-reference.md#adobeerror). _Note:_ In certain cases, both the success and failure callbacks may be triggered. To handle these cases, ensure that your implementation checks for both successful propositions and errors within the callback, as both may be present simultaneously.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit - Make the second sentence "The call method is invoked..."


#### Example

Expand Down
Loading