IOculusWrapper
An interface in Root.Township, Features.Meta.Platform.Oculus.
Wraps the Meta Quest platform SDK: user ID and proof, launch details, deep links and rich presence. Reached through InterfaceResolver.IOculusWrapper; only does anything on Quest.
- Listed in ATT, Features and other game namespaces
Methods
| Member | What it is |
|---|---|
void DeeplinkLogResult(string trackingId, PlatformLaunchResult launchResult) | Reports how handling a deep link launch went. |
Task<ulong> GetOculusId() | The player's Meta user ID. |
Task<string> GetOculusProof() | A proof token for the player, for signing in. |
Task<string> GetOculusUsername() | The player's Meta username. |
PlatformLaunchDetails GetPlatformAgnosticLaunchDetails() | How the app was launched, in a form not tied to Meta. |
PlatformLaunchType GetPlatformLaunchType() | The kind of launch, such as normal or from a deep link. |
Task<bool> GetProofSucceed() | Whether getting the proof token worked. |
int GetServerId() | The server ID from the launch details, for joining a server straight away. |
bool HasInputFocus() | Whether the app has input focus. False while the system menu is open over it. |
void Initialize() | Starts the platform SDK. |
void InitializeDeeplink(int serverId) | Sets up the destination for a server so friends can join through it. |
void OculusAppLifecycleSetLaunchIntentChangedNotificationCallback(Action callback) | Sets a callback for when the launch intent changes while running. |
void PlayerRichPresenceSetIsJoinable(bool isJoinable) | Sets whether others can join the player through rich presence. |
void RichPresenceClear() | Clears the player's rich presence. |
void RichPresenceSet() | Publishes the player's rich presence. |
void RichPresenceSetApiName(string newApiName) | Sets the destination API name used by rich presence. |
Used in
Members of other types that take, return or hold a IOculusWrapper: