getMaximumWriteLength method

  1. @override
Future<int> getMaximumWriteLength(
  1. String deviceId, {
  2. bool withoutResponse = true,
})
override

实现 FlutterBluetoothPluginPlatform.getMaximumWriteLength

参数、默认值、平台差异和推荐值见平台接口文档。

Implementation

@override
Future<int> getMaximumWriteLength(
  String deviceId, {
  bool withoutResponse = true,
}) async {
  return await methodChannel.invokeMethod<int>(
        'getMaximumWriteLength',
        <String, dynamic>{
          'deviceId': deviceId,
          'withoutResponse': withoutResponse,
        },
      ) ??
      0;
}