attachNative method

void attachNative(
  1. NativePart part
)

Joins the native layer (Kotlin / Swift core hosted by the Flutter plugin) to this session: its capabilities, actions and app info go into hello, its commands are forwarded to it. Replaces a previous part.

Implementation

void attachNative(NativePart part) {
  if (_disposed) return;
  _native = part;
  _refreshHello();
  if (_connection.connected && _helloReleased) {
    _send(buildActionsUpdate(describeActions()));
  }
}