07-21-2023, 06:10 PM
How would you pass info from Flutter back to Android/Native code if needed to interact with a specific API / hardware component?
Are there any Event Channels that can send info the other way or something similar to a callback?
1. The [platform_channel][1] documentation points out "method calls can also be sent in the reverse direction, with the platform acting as client to methods implemented in Dart. A concrete example of this is the [quick_actions plugin][2]." I don't see how the native side is receiving a message from Flutter in this instance.
2. It looks like a [BasicMessageChannel][3]’s send() method can be used to send "the specified message to the platform plugins on this channel". Can anyone provide a simple implementation example of this?
[1]:
Are there any Event Channels that can send info the other way or something similar to a callback?
1. The [platform_channel][1] documentation points out "method calls can also be sent in the reverse direction, with the platform acting as client to methods implemented in Dart. A concrete example of this is the [quick_actions plugin][2]." I don't see how the native side is receiving a message from Flutter in this instance.
2. It looks like a [BasicMessageChannel][3]’s send() method can be used to send "the specified message to the platform plugins on this channel". Can anyone provide a simple implementation example of this?
[1]:
[To see links please register here]
[2]:[To see links please register here]
[3]:[To see links please register here]