Initializes the Context class in its constructor (if it is not already initialized) and deinitializes...
Definition: Context.h:89
Scope & operator=(const Scope &)=delete
The deleted assignment operator.
~Scope()
Invokes deinitialized callbacks of the Context class.
Scope(const Scope &)=delete
The deleted copy constructor.
Scope()
Creates the Scope instance.
Used only for the Android environment to correctly initialize the NetworkAndroid class.
Definition: Context.h:51
static void addInitializeCallbacks(InitializedCallback initCallback, DeinitializedCallback deinitCalback)
Registers functions that are called when the context is initialized and destroyed.
std::function< void()> InitializedCallback
Called when the Context object is initialized.
Definition: Context.h:60
std::function< void()> DeinitializedCallback
Called when the Context object is deinitialized.
Definition: Context.h:69
Context()=delete
The deleted default constructor.