This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
shell/platform/android/io/flutter/plugin/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -173,8 +173,10 @@ public interface MethodCallHandler {
173173 * <p>Any uncaught exception thrown by this method will be caught by the channel implementation
174174 * and logged, and an error result will be sent back to Flutter.
175175 *
176- * <p>The handler is called on the platform thread (Android main thread). For more details see
177- * <a href="https://github.com/flutter/engine/wiki/Threading-in-the-Flutter-Engine">Threading in
176+ * <p>The handler is called on the platform thread (Android main thread) by default, or
177+ * otherwise on the thread specified by the {@link BinaryMessenger.TaskQueue} provided to the
178+ * associated {@link MethodChannel} when it was created. See also <a
179+ * href="https://github.com/flutter/flutter/wiki/The-Engine-architecture#threading">Threading in
178180 * the Flutter Engine</a>.
179181 *
180182 * @param call A {@link MethodCall}.
@@ -190,10 +192,7 @@ public interface MethodCallHandler {
190192 * Flutter methods provide implementations of this interface for handling results received from
191193 * Flutter.
192194 *
193- * <p>All methods of this class must be called on the platform thread (Android main thread). For
194- * more details see <a
195- * href="https://github.com/flutter/engine/wiki/Threading-in-the-Flutter-Engine">Threading in the
196- * Flutter Engine</a>.
195+ * <p>All methods of this class can be invoked on any thread.
197196 */
198197 public interface Result {
199198 /**
You can’t perform that action at this time.
0 commit comments