using System; using Unity.UIWidgets.async; using Unity.UIWidgets.foundation; using Unity.UIWidgets.ui; namespace Unity.UIWidgets.services { public delegate Future MessageHandler(byte[] message); public interface BinaryMessenger { Future handlePlatformMessage(string channel, byte[] data, PlatformMessageResponseCallback callback); Future send(string channel, byte[] message); void setMessageHandler(string channel, MessageHandler handler); } }