|
olp-cpp-sdk
1.23.1
|
Used only for the Android environment to correctly initialize the NetworkAndroid class.
More...
#include <Context.h>
Classes | |
| class | Scope |
Initializes the Context class in its constructor (if it is not already initialized) and deinitializes in its destructor (if there are no other Scope instances). More... | |
Public Types | |
| using | InitializedCallback = std::function< void()> |
Called when the Context object is initialized. More... | |
| using | DeinitializedCallback = std::function< void()> |
Called when the Context object is deinitialized. More... | |
Public Member Functions | |
| Context ()=delete | |
| The deleted default constructor. | |
Static Public Member Functions | |
| static void | addInitializeCallbacks (InitializedCallback initCallback, DeinitializedCallback deinitCalback) |
| Registers functions that are called when the context is initialized and destroyed. More... | |
Friends | |
| class | Context::Scope |
Used only for the Android environment to correctly initialize the NetworkAndroid class.
Initialize the Context class before you send network requests in the Android environment. To use the Context class, cerate the Scope object first.
| using olp::context::Context::DeinitializedCallback = std::function<void()> |
| using olp::context::Context::InitializedCallback = std::function<void()> |
|
static |
Registers functions that are called when the context is initialized and destroyed.
| initCallback | The InitializedCallback instance. |
| deinitCalback | The DeinitializedCallback instance. |