8 #ifndef META_OCEAN_PLATFORM_META_QUEST_PLATFORMSDK_MANAGER_H
9 #define META_OCEAN_PLATFORM_META_QUEST_PLATFORMSDK_MANAGER_H
17 #include <OVR_Platform.h>
38 class OCEAN_PLATFORM_META_QUEST_PLATFORMSDK_EXPORT
Manager :
53 ET_NOT_YET_KNOWN = 0u,
65 typedef std::unordered_map<ovrRequest, ResponseCallback>
RequestMap;
87 bool initialize(jobject activityObject, JNIEnv* jniEnv,
const std::string& appId);
101 inline bool isInitialized()
const;
108 inline uint64_t userId(std::string* accessToken =
nullptr)
const;
186 bool initializationPending_ =
false;
189 bool isInitialized_ =
false;
198 unsigned int subscriptionIdCounter_ = 1u;
210 ovrID userId_ = ovrID(0);
231 static_assert(
sizeof(ovrID) ==
sizeof(uint64_t),
"Invalid data type!");
235 if (accessToken !=
nullptr)
This class implements a recursive lock object.
Definition: Lock.h:31
This class implements a scoped lock object for recursive lock objects.
Definition: Lock.h:135
This class implements a subscription object which can be used unique subscriptions to e....
Definition: ScopedSubscription.h:28
This template class is the base class for all singleton objects.
Definition: Singleton.h:71
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15