callByteBufferMethod method
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);
}