typingNotice method

Future<bool> typingNotice(
  1. bool typing
)

Activate typing notice for this room The typing notice remains active for 4s. It can be deactivate at any point by setting typing to false. If this method is called while the typing notice is active nothing will happen. This method can be called on every key stroke, since it will do nothing while typing is active.

Implementation

Future<bool> typingNotice(
  bool typing,
) {
  final tmp1 = typing;
  var tmp0 = 0;
  var tmp2 = 0;
  tmp0 = _box.borrow();
  tmp2 = tmp1 ? 1 : 0;
  final tmp3 = _api._convoTypingNotice(
    tmp0,
    tmp2,
  );
  final tmp5 = tmp3;
  final ffi.Pointer<ffi.Void> tmp5_0 = ffi.Pointer.fromAddress(tmp5);
  final tmp5_1 = _Box(_api, tmp5_0, "__Convo_typing_notice_future_drop");
  tmp5_1._finalizer = _api._registerFinalizer(tmp5_1);
  final tmp4 = _nativeFuture(tmp5_1, _api.__convoTypingNoticeFuturePoll);
  return tmp4;
}