connectSpotAndGetData method

void connectSpotAndGetData(
  1. {MessageHandler onReceive,
  2. MessageHandler onHeartBeatReceive}
)

Implementation

void connectSpotAndGetData(
    {MessageHandler onReceive, MessageHandler onHeartBeatReceive}) async {
  _onReceive = onReceive;
  _onHeartBeatReceive = onHeartBeatReceive;
  _channel.setMethodCallHandler(_handleMethod);
  _channel.invokeMethod('connectSpotAndGetData');
}