Skip to content

Commit 4450edd

Browse files
authored
Javadoc for background platform chnanels (flutter#34774)
1 parent 4063cfb commit 4450edd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

shell/platform/android/io/flutter/plugin/common/MethodChannel.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)