getIsRemote method

bool getIsRemote()

Implementation

bool getIsRemote() {
  final pIsRemote = calloc<Int32>();

  try {
    bindings.phidgetGetIsRemote(_internalHandle!, pIsRemote);
    return pIsRemote.value == 1;
  } catch (e) {
    throw PhidgetException(
        "An error occurred checking if phidget is remote $e");
  } finally {
    calloc.free(pIsRemote);
  }
}