td_set_log_fatal_error_callback method

int td_set_log_fatal_error_callback(
  1. Pointer<NativeFunction<td_log_fatal_error_callback_ptr>> callback
)

Sets the callback that will be called when a fatal error happens. None of the TDLib methods can be called from the callback. The TDLib will crash as soon as callback returns. By default the callback is not set.

\deprecated Use td_set_log_message_callback instead. \paramin callback Callback that will be called when a fatal error happens. Pass NULL to remove the callback.

Implementation

int td_set_log_fatal_error_callback(
  ffi.Pointer<ffi.NativeFunction<td_log_fatal_error_callback_ptr>> callback,
) {
  return _td_set_log_fatal_error_callback(
    callback,
  );
}