callByteBufferMethod method

Future<NativeByte?> callByteBufferMethod(
  1. String methodName, {
  2. List? args,
  3. List<String>? assignedSignature,
  4. Thread thread = Thread.mainThread,
})

async call native method which return DirectByteBuffer

Implementation

Future<NativeByte?> callByteBufferMethod(String methodName,
    {List? args,
    List<String>? assignedSignature,
    Thread thread = Thread.mainThread}) async {
  return callMethod(methodName, 'Ljava/nio/ByteBuffer;',
          args: args, assignedSignature: assignedSignature, thread: thread)
      .then((value) => value);
}