Skip to content

Annotate MethodChannel on Android with @UiThread #32623

@mehmetf

Description

@mehmetf

Today the methods on MethodChannel are the public API often used by plugin developers and advanced users. There is no indication that these methods are supposed to be called from the UI thread even though the mechanisms they rely on in FlutterJNI.java are marked as such.

Let's mark them as @UiThread such that this is less of a surprise for developers.

Tracked internally at: b/132204137

Metadata

Metadata

Labels

engineflutter/engine related. See also e: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions