Skip to content

LiteFX::App::onBackendStop

Sets a callback that is called, if a backend is stopped.

Synopsis

Declared in <litefx/app.hpp>

template<typename TBackend>
requires meta::implements<TBackend, IBackend>
void onBackendStop(std::function<void(TBackend*)> const& callback);

Description

Different to the backendStopped event, this event can be strongly typed at compile time, thus different callbacks can be provided per backend type without requiring to differentiate them at run-time.

Template Parameters

NameDescription
TBackendThe type of the backend.

Parameters

NameDescription
callbackThe function to call during backend shutdown.

See Also

onBackendStart

backendStopped