From 8de3c46804ee211e8c95d6b9da5a2187d6ae804c Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Tue, 2 Aug 2022 06:43:04 +0800 Subject: [PATCH] Javadoc for background platform chnanels (flutter/engine#34774) --- .../io/flutter/plugin/common/MethodChannel.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/MethodChannel.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/MethodChannel.java index c13f82d2be..9949167a7c 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/MethodChannel.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/MethodChannel.java @@ -173,8 +173,10 @@ public class MethodChannel { *

Any uncaught exception thrown by this method will be caught by the channel implementation * and logged, and an error result will be sent back to Flutter. * - *

The handler is called on the platform thread (Android main thread). For more details see - * Threading in + *

The handler is called on the platform thread (Android main thread) by default, or + * otherwise on the thread specified by the {@link BinaryMessenger.TaskQueue} provided to the + * associated {@link MethodChannel} when it was created. See also Threading in * the Flutter Engine. * * @param call A {@link MethodCall}. @@ -190,10 +192,7 @@ public class MethodChannel { * Flutter methods provide implementations of this interface for handling results received from * Flutter. * - *

All methods of this class must be called on the platform thread (Android main thread). For - * more details see Threading in the - * Flutter Engine. + *

All methods of this class can be invoked on any thread. */ public interface Result { /**