registerNativeMethods static method

void registerNativeMethods({
  1. String? dynamicLibName,
})

Implementation

static void registerNativeMethods({String? dynamicLibName}) {
  if (isRegistered) {
    return;
  }
  isRegistered = true;
  if (dynamicLibName != null) {
    _dynamicLibName = dynamicLibName;
  }
  UnitRCLog.info("registerNativeMethods start");
  UnitRCCppBind.bind(createReceivePort());
  UnitRCLog.info("registerNativeMethods end");
  NotifyHelper.startTimer();
}