adobe / aepsdk_flutter

Apache License 2.0
8 stars 11 forks source link

[Breaking change] Update dispatchEventWithResponseCallback API #94

Closed yangyansong-adbe closed 2 months ago

yangyansong-adbe commented 2 months ago
@Deprecated
public static void dispatchEventWithResponseCallback(
        @NonNull final Event event,
        @NonNull final AdobeCallbackWithError<Event> responseCallback) {
        // ...
}

The above API was removed in the Android SDK 3.0.0 and above. As an alternative, the following API was added to Android SDK.

public static void dispatchEventWithResponseCallback(
        @NonNull final Event event,
        final long timeoutMS,
        @NonNull final AdobeCallbackWithError<Event> responseCallback) {
        // ....
}

In this PR, the Dart code is updated to use the new Android API.