Functions - Initialization¶
Functions¶
is_platform_initialized¶
is_platform_initialized()
Returns: A bool that is true if the platform is already initialized and false otherwise.
initialize_android¶
initialize_android(app_id : String, options : Dictionary)
Requests the Oculus Platform initialization synchronously. Keep in mind that this function will block the main loop until this function returns.
Returns: A bool that is true if the platform was initialized correctly or false otherwise.
Options (optional):
| Key | Value type | Description |
|---|---|---|
| disable_p2p_networking | bool | Disables/enables the initialization of the WebRTC networking stack, only used for VoIP & Networking (both deprecated). |
| enable_cowatching | bool | Disables/enables the initialization of the cowatching stack. |
initialize_android_async¶
initialize_android_async(app_id : String)
Requests the Oculus Platform initialization asynchronously. This is the preferred way of initializing the platform.
Returns: A GDOculusPlatformPromise that will contain a true bool as a response if fulfilled. An error message will be available if rejected/couldn't initialize.