Package org.lwjgl.openvr
Class VRApplications
java.lang.Object
org.lwjgl.openvr.VRApplications
Application management.
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
nVRApplications_AddApplicationManifest
(long pchApplicationManifestFullPath, boolean bTemporary) Unsafe version of:AddApplicationManifest
static boolean
nVRApplications_CancelApplicationLaunch
(long pchAppKey) Unsafe version of:CancelApplicationLaunch
static boolean
nVRApplications_GetApplicationAutoLaunch
(long pchAppKey) Unsafe version of:GetApplicationAutoLaunch
static int
nVRApplications_GetApplicationKeyByIndex
(int unApplicationIndex, long pchAppKeyBuffer, int unAppKeyBufferLen) Unsafe version of:GetApplicationKeyByIndex
static int
nVRApplications_GetApplicationKeyByProcessId
(int unProcessId, long pchAppKeyBuffer, int unAppKeyBufferLen) Unsafe version of:GetApplicationKeyByProcessId
static int
nVRApplications_GetApplicationLaunchArguments
(int unHandle, long pchArgs, int unArgs) Unsafe version of:GetApplicationLaunchArguments
static int
nVRApplications_GetApplicationProcessId
(long pchAppKey) Unsafe version of:GetApplicationProcessId
static boolean
nVRApplications_GetApplicationPropertyBool
(long pchAppKey, int eProperty, long peError) Unsafe version of:GetApplicationPropertyBool
static int
nVRApplications_GetApplicationPropertyString
(long pchAppKey, int eProperty, long pchPropertyValueBuffer, int unPropertyValueBufferLen, long peError) Unsafe version of:GetApplicationPropertyString
static long
nVRApplications_GetApplicationPropertyUint64
(long pchAppKey, int eProperty, long peError) Unsafe version of:GetApplicationPropertyUint64
static long
Unsafe version of:GetApplicationsErrorNameFromEnum
static int
nVRApplications_GetApplicationsThatSupportMimeType
(long pchMimeType, long pchAppKeysThatSupportBuffer, int unAppKeysThatSupportBuffer) Unsafe version of:GetApplicationsThatSupportMimeType
static boolean
nVRApplications_GetApplicationSupportedMimeTypes
(long pchAppKey, long pchMimeTypesBuffer, int unMimeTypesBuffer) Unsafe version of:GetApplicationSupportedMimeTypes
static boolean
nVRApplications_GetDefaultApplicationForMimeType
(long pchMimeType, long pchAppKeyBuffer, int unAppKeyBufferLen) Unsafe version of:GetDefaultApplicationForMimeType
static long
Unsafe version of:GetSceneApplicationStateNameFromEnum
static int
nVRApplications_GetStartingApplication
(long pchAppKeyBuffer, int unAppKeyBufferLen) Unsafe version of:GetStartingApplication
static int
nVRApplications_IdentifyApplication
(int unProcessId, long pchAppKey) Unsafe version of:IdentifyApplication
static boolean
nVRApplications_IsApplicationInstalled
(long pchAppKey) Unsafe version of:IsApplicationInstalled
static int
nVRApplications_LaunchApplication
(long pchAppKey) Unsafe version of:LaunchApplication
static int
nVRApplications_LaunchApplicationFromMimeType
(long pchMimeType, long pchArgs) Unsafe version of:LaunchApplicationFromMimeType
static int
nVRApplications_LaunchDashboardOverlay
(long pchAppKey) Unsafe version of:LaunchDashboardOverlay
static int
nVRApplications_LaunchInternalProcess
(long pchBinaryPath, long pchArguments, long pchWorkingDirectory) Unsafe version of:LaunchInternalProcess
static int
nVRApplications_LaunchTemplateApplication
(long pchTemplateAppKey, long pchNewAppKey, long pKeys, int unKeys) Unsafe version of:LaunchTemplateApplication
static int
nVRApplications_PerformApplicationPrelaunchCheck
(long pchAppKey) Unsafe version of:PerformApplicationPrelaunchCheck
static int
nVRApplications_RemoveApplicationManifest
(long pchApplicationManifestFullPath) Unsafe version of:RemoveApplicationManifest
static int
nVRApplications_SetApplicationAutoLaunch
(long pchAppKey, boolean bAutoLaunch) Unsafe version of:SetApplicationAutoLaunch
static int
nVRApplications_SetDefaultApplicationForMimeType
(long pchAppKey, long pchMimeType) Unsafe version of:SetDefaultApplicationForMimeType
static int
VRApplications_AddApplicationManifest
(CharSequence pchApplicationManifestFullPath, boolean bTemporary) Adds an application manifest to the list to load when building the list of installed applications.static int
VRApplications_AddApplicationManifest
(ByteBuffer pchApplicationManifestFullPath, boolean bTemporary) Adds an application manifest to the list to load when building the list of installed applications.static boolean
Cancel a pending launch for an application.static boolean
VRApplications_CancelApplicationLaunch
(ByteBuffer pchAppKey) Cancel a pending launch for an application.static boolean
Gets the application auto-launch flag.static boolean
Gets the application auto-launch flag.static int
Returns the number of applications available in the list.static int
VRApplications_GetApplicationKeyByIndex
(int unApplicationIndex, ByteBuffer pchAppKeyBuffer) Returns the key of the specified application.static int
VRApplications_GetApplicationKeyByProcessId
(int unProcessId, ByteBuffer pchAppKeyBuffer) Returns the key of the application for the specified Process Id.static String
VRApplications_GetApplicationLaunchArguments
(int unHandle, int unArgs) Get the args list from an app launch that had the process already running, you call this when you get aVR.EVREventType_VREvent_ApplicationMimeTypeLoad
.static int
VRApplications_GetApplicationLaunchArguments
(int unHandle, ByteBuffer pchArgs) Get the args list from an app launch that had the process already running, you call this when you get aVR.EVREventType_VREvent_ApplicationMimeTypeLoad
.static int
Returns the process ID for an application.static int
VRApplications_GetApplicationProcessId
(ByteBuffer pchAppKey) Returns the process ID for an application.static boolean
VRApplications_GetApplicationPropertyBool
(CharSequence pchAppKey, int eProperty, IntBuffer peError) Returns a bool value for an application property.static boolean
VRApplications_GetApplicationPropertyBool
(ByteBuffer pchAppKey, int eProperty, IntBuffer peError) Returns a bool value for an application property.static String
VRApplications_GetApplicationPropertyString
(CharSequence pchAppKey, int eProperty, int unPropertyValueBufferLen, IntBuffer peError) Returns a value for an application property.static int
VRApplications_GetApplicationPropertyString
(CharSequence pchAppKey, int eProperty, ByteBuffer pchPropertyValueBuffer, IntBuffer peError) Returns a value for an application property.static String
VRApplications_GetApplicationPropertyString
(CharSequence pchAppKey, int eProperty, IntBuffer peError) Returns a value for an application property.static int
VRApplications_GetApplicationPropertyString
(ByteBuffer pchAppKey, int eProperty, ByteBuffer pchPropertyValueBuffer, IntBuffer peError) Returns a value for an application property.static long
VRApplications_GetApplicationPropertyUint64
(CharSequence pchAppKey, int eProperty, IntBuffer peError) Returns a uint64 value for an application property.static long
VRApplications_GetApplicationPropertyUint64
(ByteBuffer pchAppKey, int eProperty, IntBuffer peError) Returns a uint64 value for an application property.static String
Returns a string for an applications error.static String
VRApplications_GetApplicationsThatSupportMimeType
(CharSequence pchMimeType, int unAppKeysThatSupportBuffer) Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string.static int
VRApplications_GetApplicationsThatSupportMimeType
(CharSequence pchMimeType, ByteBuffer pchAppKeysThatSupportBuffer) Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string.static int
VRApplications_GetApplicationsThatSupportMimeType
(ByteBuffer pchMimeType, ByteBuffer pchAppKeysThatSupportBuffer) Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string.static boolean
VRApplications_GetApplicationSupportedMimeTypes
(CharSequence pchAppKey, ByteBuffer pchMimeTypesBuffer) Get the list of supported mime types for this application, comma-delimited.static boolean
VRApplications_GetApplicationSupportedMimeTypes
(ByteBuffer pchAppKey, ByteBuffer pchMimeTypesBuffer) Get the list of supported mime types for this application, comma-delimited.static int
Returns the current scene process ID according to the application system.static boolean
VRApplications_GetDefaultApplicationForMimeType
(CharSequence pchMimeType, ByteBuffer pchAppKeyBuffer) Return the app key that will open this mime type.static boolean
VRApplications_GetDefaultApplicationForMimeType
(ByteBuffer pchMimeType, ByteBuffer pchAppKeyBuffer) Return the app key that will open this mime type.static int
Returns the application transition state.static String
Returns a string for an application transition state.static int
VRApplications_GetStartingApplication
(ByteBuffer pchAppKeyBuffer) Returns the app key for the application that is starting up.static int
VRApplications_IdentifyApplication
(int unProcessId, CharSequence pchAppKey) Identifies a running application.static int
VRApplications_IdentifyApplication
(int unProcessId, ByteBuffer pchAppKey) Identifies a running application.static boolean
Returns true if an application is installed.static boolean
VRApplications_IsApplicationInstalled
(ByteBuffer pchAppKey) Returns true if an application is installed.static int
VRApplications_LaunchApplication
(CharSequence pchAppKey) Launches the application.static int
VRApplications_LaunchApplication
(ByteBuffer pchAppKey) Launches the application.static int
VRApplications_LaunchApplicationFromMimeType
(CharSequence pchMimeType, CharSequence pchArgs) Launches the application currently associated with this mime type and passes it the option args, typically the filename or object name of the item being launched.static int
VRApplications_LaunchApplicationFromMimeType
(ByteBuffer pchMimeType, ByteBuffer pchArgs) Launches the application currently associated with this mime type and passes it the option args, typically the filename or object name of the item being launched.static int
Launches the dashboard overlay application if it is not already running.static int
VRApplications_LaunchDashboardOverlay
(ByteBuffer pchAppKey) Launches the dashboard overlay application if it is not already running.static int
VRApplications_LaunchInternalProcess
(CharSequence pchBinaryPath, CharSequence pchArguments, CharSequence pchWorkingDirectory) Starts a subprocess within the calling application.static int
VRApplications_LaunchInternalProcess
(ByteBuffer pchBinaryPath, ByteBuffer pchArguments, ByteBuffer pchWorkingDirectory) Starts a subprocess within the calling application.static int
VRApplications_LaunchTemplateApplication
(CharSequence pchTemplateAppKey, CharSequence pchNewAppKey, AppOverrideKeys.Buffer pKeys) Launches an instance of an application of type template, with its app key beingpchNewAppKey
(which must be unique) and optionally override sections from the manifest file viaAppOverrideKeys
.static int
VRApplications_LaunchTemplateApplication
(ByteBuffer pchTemplateAppKey, ByteBuffer pchNewAppKey, AppOverrideKeys.Buffer pKeys) Launches an instance of an application of type template, with its app key beingpchNewAppKey
(which must be unique) and optionally override sections from the manifest file viaAppOverrideKeys
.static int
Returns errors that would prevent the specified application from launching immediately.static int
Returns errors that would prevent the specified application from launching immediately.static int
VRApplications_RemoveApplicationManifest
(CharSequence pchApplicationManifestFullPath) Removes an application manifest from the list to load when building the list of installed applications.static int
VRApplications_RemoveApplicationManifest
(ByteBuffer pchApplicationManifestFullPath) Removes an application manifest from the list to load when building the list of installed applications.static int
VRApplications_SetApplicationAutoLaunch
(CharSequence pchAppKey, boolean bAutoLaunch) Sets the application auto-launch flag.static int
VRApplications_SetApplicationAutoLaunch
(ByteBuffer pchAppKey, boolean bAutoLaunch) Sets the application auto-launch flag.static int
VRApplications_SetDefaultApplicationForMimeType
(CharSequence pchAppKey, CharSequence pchMimeType) Adds this mime-type to the list of supported mime types for this application.static int
VRApplications_SetDefaultApplicationForMimeType
(ByteBuffer pchAppKey, ByteBuffer pchMimeType) Adds this mime-type to the list of supported mime types for this application.
-
Method Details
-
nVRApplications_AddApplicationManifest
public static int nVRApplications_AddApplicationManifest(long pchApplicationManifestFullPath, boolean bTemporary) Unsafe version of:AddApplicationManifest
-
VRApplications_AddApplicationManifest
public static int VRApplications_AddApplicationManifest(ByteBuffer pchApplicationManifestFullPath, boolean bTemporary) Adds an application manifest to the list to load when building the list of installed applications.Temporary manifests are not automatically loaded.
-
VRApplications_AddApplicationManifest
public static int VRApplications_AddApplicationManifest(CharSequence pchApplicationManifestFullPath, boolean bTemporary) Adds an application manifest to the list to load when building the list of installed applications.Temporary manifests are not automatically loaded.
-
nVRApplications_RemoveApplicationManifest
public static int nVRApplications_RemoveApplicationManifest(long pchApplicationManifestFullPath) Unsafe version of:RemoveApplicationManifest
-
VRApplications_RemoveApplicationManifest
public static int VRApplications_RemoveApplicationManifest(ByteBuffer pchApplicationManifestFullPath) Removes an application manifest from the list to load when building the list of installed applications. -
VRApplications_RemoveApplicationManifest
public static int VRApplications_RemoveApplicationManifest(CharSequence pchApplicationManifestFullPath) Removes an application manifest from the list to load when building the list of installed applications. -
nVRApplications_IsApplicationInstalled
public static boolean nVRApplications_IsApplicationInstalled(long pchAppKey) Unsafe version of:IsApplicationInstalled
-
VRApplications_IsApplicationInstalled
Returns true if an application is installed. -
VRApplications_IsApplicationInstalled
Returns true if an application is installed. -
VRApplications_GetApplicationCount
public static int VRApplications_GetApplicationCount()Returns the number of applications available in the list. -
nVRApplications_GetApplicationKeyByIndex
public static int nVRApplications_GetApplicationKeyByIndex(int unApplicationIndex, long pchAppKeyBuffer, int unAppKeyBufferLen) Unsafe version of:GetApplicationKeyByIndex
-
VRApplications_GetApplicationKeyByIndex
public static int VRApplications_GetApplicationKeyByIndex(int unApplicationIndex, @Nullable ByteBuffer pchAppKeyBuffer) Returns the key of the specified application. The index is at least 0 and is less than the return value ofGetApplicationCount
. The buffer should be at leastVR.k_unMaxApplicationKeyLength
in order to fit the key. -
nVRApplications_GetApplicationKeyByProcessId
public static int nVRApplications_GetApplicationKeyByProcessId(int unProcessId, long pchAppKeyBuffer, int unAppKeyBufferLen) Unsafe version of:GetApplicationKeyByProcessId
-
VRApplications_GetApplicationKeyByProcessId
public static int VRApplications_GetApplicationKeyByProcessId(int unProcessId, @Nullable ByteBuffer pchAppKeyBuffer) Returns the key of the application for the specified Process Id. The buffer should be at leastVR.k_unMaxApplicationKeyLength
in order to fit the key. -
nVRApplications_LaunchApplication
public static int nVRApplications_LaunchApplication(long pchAppKey) Unsafe version of:LaunchApplication
-
VRApplications_LaunchApplication
Launches the application. The existing scene application will exit and then the new application will start.This call is not valid for dashboard overlay applications.
-
VRApplications_LaunchApplication
Launches the application. The existing scene application will exit and then the new application will start.This call is not valid for dashboard overlay applications.
-
nVRApplications_LaunchTemplateApplication
public static int nVRApplications_LaunchTemplateApplication(long pchTemplateAppKey, long pchNewAppKey, long pKeys, int unKeys) Unsafe version of:LaunchTemplateApplication
-
VRApplications_LaunchTemplateApplication
public static int VRApplications_LaunchTemplateApplication(ByteBuffer pchTemplateAppKey, ByteBuffer pchNewAppKey, AppOverrideKeys.Buffer pKeys) Launches an instance of an application of type template, with its app key beingpchNewAppKey
(which must be unique) and optionally override sections from the manifest file viaAppOverrideKeys
. -
VRApplications_LaunchTemplateApplication
public static int VRApplications_LaunchTemplateApplication(CharSequence pchTemplateAppKey, CharSequence pchNewAppKey, AppOverrideKeys.Buffer pKeys) Launches an instance of an application of type template, with its app key beingpchNewAppKey
(which must be unique) and optionally override sections from the manifest file viaAppOverrideKeys
. -
nVRApplications_LaunchApplicationFromMimeType
public static int nVRApplications_LaunchApplicationFromMimeType(long pchMimeType, long pchArgs) Unsafe version of:LaunchApplicationFromMimeType
-
VRApplications_LaunchApplicationFromMimeType
public static int VRApplications_LaunchApplicationFromMimeType(ByteBuffer pchMimeType, ByteBuffer pchArgs) Launches the application currently associated with this mime type and passes it the option args, typically the filename or object name of the item being launched. -
VRApplications_LaunchApplicationFromMimeType
public static int VRApplications_LaunchApplicationFromMimeType(CharSequence pchMimeType, CharSequence pchArgs) Launches the application currently associated with this mime type and passes it the option args, typically the filename or object name of the item being launched. -
nVRApplications_LaunchDashboardOverlay
public static int nVRApplications_LaunchDashboardOverlay(long pchAppKey) Unsafe version of:LaunchDashboardOverlay
-
VRApplications_LaunchDashboardOverlay
Launches the dashboard overlay application if it is not already running. This call is only valid for dashboard overlay applications. -
VRApplications_LaunchDashboardOverlay
Launches the dashboard overlay application if it is not already running. This call is only valid for dashboard overlay applications. -
nVRApplications_CancelApplicationLaunch
public static boolean nVRApplications_CancelApplicationLaunch(long pchAppKey) Unsafe version of:CancelApplicationLaunch
-
VRApplications_CancelApplicationLaunch
Cancel a pending launch for an application. -
VRApplications_CancelApplicationLaunch
Cancel a pending launch for an application. -
nVRApplications_IdentifyApplication
public static int nVRApplications_IdentifyApplication(int unProcessId, long pchAppKey) Unsafe version of:IdentifyApplication
-
VRApplications_IdentifyApplication
Identifies a running application. OpenVR can't always tell which process started in response to a URL. This function allows a URL handler (or the process itself) to identify the app key for the now running application. Passing a process ID of 0 identifies the calling process. The application must be one that's known to the system via a call toAddApplicationManifest
. -
VRApplications_IdentifyApplication
Identifies a running application. OpenVR can't always tell which process started in response to a URL. This function allows a URL handler (or the process itself) to identify the app key for the now running application. Passing a process ID of 0 identifies the calling process. The application must be one that's known to the system via a call toAddApplicationManifest
. -
nVRApplications_GetApplicationProcessId
public static int nVRApplications_GetApplicationProcessId(long pchAppKey) Unsafe version of:GetApplicationProcessId
-
VRApplications_GetApplicationProcessId
Returns the process ID for an application. Return 0 if the application was not found or is not running. -
VRApplications_GetApplicationProcessId
Returns the process ID for an application. Return 0 if the application was not found or is not running. -
nVRApplications_GetApplicationsErrorNameFromEnum
public static long nVRApplications_GetApplicationsErrorNameFromEnum(int error) Unsafe version of:GetApplicationsErrorNameFromEnum
-
VRApplications_GetApplicationsErrorNameFromEnum
Returns a string for an applications error.- Parameters:
error
- one of:
-
nVRApplications_GetApplicationPropertyString
public static int nVRApplications_GetApplicationPropertyString(long pchAppKey, int eProperty, long pchPropertyValueBuffer, int unPropertyValueBufferLen, long peError) Unsafe version of:GetApplicationPropertyString
-
VRApplications_GetApplicationPropertyString
public static int VRApplications_GetApplicationPropertyString(ByteBuffer pchAppKey, int eProperty, @Nullable ByteBuffer pchPropertyValueBuffer, IntBuffer peError) Returns a value for an application property. The required buffer size to fit this value will be returned.- Parameters:
eProperty
- one of:
-
VRApplications_GetApplicationPropertyString
public static int VRApplications_GetApplicationPropertyString(CharSequence pchAppKey, int eProperty, @Nullable ByteBuffer pchPropertyValueBuffer, IntBuffer peError) Returns a value for an application property. The required buffer size to fit this value will be returned.- Parameters:
eProperty
- one of:
-
VRApplications_GetApplicationPropertyString
public static String VRApplications_GetApplicationPropertyString(CharSequence pchAppKey, int eProperty, int unPropertyValueBufferLen, IntBuffer peError) Returns a value for an application property. The required buffer size to fit this value will be returned.- Parameters:
eProperty
- one of:
-
VRApplications_GetApplicationPropertyString
public static String VRApplications_GetApplicationPropertyString(CharSequence pchAppKey, int eProperty, IntBuffer peError) Returns a value for an application property. The required buffer size to fit this value will be returned.- Parameters:
eProperty
- one of:
-
nVRApplications_GetApplicationPropertyBool
public static boolean nVRApplications_GetApplicationPropertyBool(long pchAppKey, int eProperty, long peError) Unsafe version of:GetApplicationPropertyBool
-
VRApplications_GetApplicationPropertyBool
public static boolean VRApplications_GetApplicationPropertyBool(ByteBuffer pchAppKey, int eProperty, IntBuffer peError) Returns a bool value for an application property. Returns false in all error cases.- Parameters:
eProperty
- one of:
-
VRApplications_GetApplicationPropertyBool
public static boolean VRApplications_GetApplicationPropertyBool(CharSequence pchAppKey, int eProperty, IntBuffer peError) Returns a bool value for an application property. Returns false in all error cases.- Parameters:
eProperty
- one of:
-
nVRApplications_GetApplicationPropertyUint64
public static long nVRApplications_GetApplicationPropertyUint64(long pchAppKey, int eProperty, long peError) Unsafe version of:GetApplicationPropertyUint64
-
VRApplications_GetApplicationPropertyUint64
public static long VRApplications_GetApplicationPropertyUint64(ByteBuffer pchAppKey, int eProperty, IntBuffer peError) Returns a uint64 value for an application property. Returns 0 in all error cases.- Parameters:
eProperty
- must be:VR.EVRApplicationProperty_VRApplicationProperty_LastLaunchTime_Uint64
-
VRApplications_GetApplicationPropertyUint64
public static long VRApplications_GetApplicationPropertyUint64(CharSequence pchAppKey, int eProperty, IntBuffer peError) Returns a uint64 value for an application property. Returns 0 in all error cases.- Parameters:
eProperty
- must be:VR.EVRApplicationProperty_VRApplicationProperty_LastLaunchTime_Uint64
-
nVRApplications_SetApplicationAutoLaunch
public static int nVRApplications_SetApplicationAutoLaunch(long pchAppKey, boolean bAutoLaunch) Unsafe version of:SetApplicationAutoLaunch
-
VRApplications_SetApplicationAutoLaunch
public static int VRApplications_SetApplicationAutoLaunch(ByteBuffer pchAppKey, boolean bAutoLaunch) Sets the application auto-launch flag. This is only valid for applications which return true forVR.EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool
. -
VRApplications_SetApplicationAutoLaunch
public static int VRApplications_SetApplicationAutoLaunch(CharSequence pchAppKey, boolean bAutoLaunch) Sets the application auto-launch flag. This is only valid for applications which return true forVR.EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool
. -
nVRApplications_GetApplicationAutoLaunch
public static boolean nVRApplications_GetApplicationAutoLaunch(long pchAppKey) Unsafe version of:GetApplicationAutoLaunch
-
VRApplications_GetApplicationAutoLaunch
Gets the application auto-launch flag. This is only valid for applications which return true forVR.EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool
. -
VRApplications_GetApplicationAutoLaunch
Gets the application auto-launch flag. This is only valid for applications which return true forVR.EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool
. -
nVRApplications_SetDefaultApplicationForMimeType
public static int nVRApplications_SetDefaultApplicationForMimeType(long pchAppKey, long pchMimeType) Unsafe version of:SetDefaultApplicationForMimeType
-
VRApplications_SetDefaultApplicationForMimeType
public static int VRApplications_SetDefaultApplicationForMimeType(ByteBuffer pchAppKey, ByteBuffer pchMimeType) Adds this mime-type to the list of supported mime types for this application. -
VRApplications_SetDefaultApplicationForMimeType
public static int VRApplications_SetDefaultApplicationForMimeType(CharSequence pchAppKey, CharSequence pchMimeType) Adds this mime-type to the list of supported mime types for this application. -
nVRApplications_GetDefaultApplicationForMimeType
public static boolean nVRApplications_GetDefaultApplicationForMimeType(long pchMimeType, long pchAppKeyBuffer, int unAppKeyBufferLen) Unsafe version of:GetDefaultApplicationForMimeType
-
VRApplications_GetDefaultApplicationForMimeType
public static boolean VRApplications_GetDefaultApplicationForMimeType(ByteBuffer pchMimeType, @Nullable ByteBuffer pchAppKeyBuffer) Return the app key that will open this mime type. -
VRApplications_GetDefaultApplicationForMimeType
public static boolean VRApplications_GetDefaultApplicationForMimeType(CharSequence pchMimeType, @Nullable ByteBuffer pchAppKeyBuffer) Return the app key that will open this mime type. -
nVRApplications_GetApplicationSupportedMimeTypes
public static boolean nVRApplications_GetApplicationSupportedMimeTypes(long pchAppKey, long pchMimeTypesBuffer, int unMimeTypesBuffer) Unsafe version of:GetApplicationSupportedMimeTypes
-
VRApplications_GetApplicationSupportedMimeTypes
public static boolean VRApplications_GetApplicationSupportedMimeTypes(ByteBuffer pchAppKey, @Nullable ByteBuffer pchMimeTypesBuffer) Get the list of supported mime types for this application, comma-delimited. -
VRApplications_GetApplicationSupportedMimeTypes
public static boolean VRApplications_GetApplicationSupportedMimeTypes(CharSequence pchAppKey, @Nullable ByteBuffer pchMimeTypesBuffer) Get the list of supported mime types for this application, comma-delimited. -
nVRApplications_GetApplicationsThatSupportMimeType
public static int nVRApplications_GetApplicationsThatSupportMimeType(long pchMimeType, long pchAppKeysThatSupportBuffer, int unAppKeysThatSupportBuffer) Unsafe version of:GetApplicationsThatSupportMimeType
-
VRApplications_GetApplicationsThatSupportMimeType
public static int VRApplications_GetApplicationsThatSupportMimeType(ByteBuffer pchMimeType, @Nullable ByteBuffer pchAppKeysThatSupportBuffer) Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string. -
VRApplications_GetApplicationsThatSupportMimeType
public static int VRApplications_GetApplicationsThatSupportMimeType(CharSequence pchMimeType, @Nullable ByteBuffer pchAppKeysThatSupportBuffer) Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string. -
VRApplications_GetApplicationsThatSupportMimeType
public static String VRApplications_GetApplicationsThatSupportMimeType(CharSequence pchMimeType, int unAppKeysThatSupportBuffer) Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string. -
nVRApplications_GetApplicationLaunchArguments
public static int nVRApplications_GetApplicationLaunchArguments(int unHandle, long pchArgs, int unArgs) Unsafe version of:GetApplicationLaunchArguments
-
VRApplications_GetApplicationLaunchArguments
public static int VRApplications_GetApplicationLaunchArguments(int unHandle, @Nullable ByteBuffer pchArgs) Get the args list from an app launch that had the process already running, you call this when you get aVR.EVREventType_VREvent_ApplicationMimeTypeLoad
. -
VRApplications_GetApplicationLaunchArguments
Get the args list from an app launch that had the process already running, you call this when you get aVR.EVREventType_VREvent_ApplicationMimeTypeLoad
. -
nVRApplications_GetStartingApplication
public static int nVRApplications_GetStartingApplication(long pchAppKeyBuffer, int unAppKeyBufferLen) Unsafe version of:GetStartingApplication
-
VRApplications_GetStartingApplication
Returns the app key for the application that is starting up. -
VRApplications_GetSceneApplicationState
public static int VRApplications_GetSceneApplicationState()Returns the application transition state. -
nVRApplications_PerformApplicationPrelaunchCheck
public static int nVRApplications_PerformApplicationPrelaunchCheck(long pchAppKey) Unsafe version of:PerformApplicationPrelaunchCheck
-
VRApplications_PerformApplicationPrelaunchCheck
Returns errors that would prevent the specified application from launching immediately. Calling this function will cause the current scene application to quit, so only call it when you are actually about to launch something else.What the caller should do about these failures depends on the failure:
VR.EVRApplicationError_VRApplicationError_OldApplicationQuitting
- An existing application has been told to quit. Wait for aVR.EVREventType_VREvent_ProcessQuit
and try again.VR.EVRApplicationError_VRApplicationError_ApplicationAlreadyStarting
- This application is already starting. This is a permanent failure.VR.EVRApplicationError_VRApplicationError_LaunchInProgress
- A different application is already starting. This is a permanent failure.VR.EVRApplicationError_VRApplicationError_None
- Go ahead and launch. Everything is clear.
-
VRApplications_PerformApplicationPrelaunchCheck
Returns errors that would prevent the specified application from launching immediately. Calling this function will cause the current scene application to quit, so only call it when you are actually about to launch something else.What the caller should do about these failures depends on the failure:
VR.EVRApplicationError_VRApplicationError_OldApplicationQuitting
- An existing application has been told to quit. Wait for aVR.EVREventType_VREvent_ProcessQuit
and try again.VR.EVRApplicationError_VRApplicationError_ApplicationAlreadyStarting
- This application is already starting. This is a permanent failure.VR.EVRApplicationError_VRApplicationError_LaunchInProgress
- A different application is already starting. This is a permanent failure.VR.EVRApplicationError_VRApplicationError_None
- Go ahead and launch. Everything is clear.
-
nVRApplications_GetSceneApplicationStateNameFromEnum
public static long nVRApplications_GetSceneApplicationStateNameFromEnum(int state) Unsafe version of:GetSceneApplicationStateNameFromEnum
-
VRApplications_GetSceneApplicationStateNameFromEnum
Returns a string for an application transition state. -
nVRApplications_LaunchInternalProcess
public static int nVRApplications_LaunchInternalProcess(long pchBinaryPath, long pchArguments, long pchWorkingDirectory) Unsafe version of:LaunchInternalProcess
-
VRApplications_LaunchInternalProcess
public static int VRApplications_LaunchInternalProcess(ByteBuffer pchBinaryPath, ByteBuffer pchArguments, ByteBuffer pchWorkingDirectory) Starts a subprocess within the calling application. This suppresses all application transition UI and automatically identifies the new executable as part of the same application. On success the calling process should exit immediately. If working directory isNULL
or "" the directory portion of the binary path will be the working directory. -
VRApplications_LaunchInternalProcess
public static int VRApplications_LaunchInternalProcess(CharSequence pchBinaryPath, CharSequence pchArguments, CharSequence pchWorkingDirectory) Starts a subprocess within the calling application. This suppresses all application transition UI and automatically identifies the new executable as part of the same application. On success the calling process should exit immediately. If working directory isNULL
or "" the directory portion of the binary path will be the working directory. -
VRApplications_GetCurrentSceneProcessId
public static int VRApplications_GetCurrentSceneProcessId()Returns the current scene process ID according to the application system. A scene process will get scene focus once it starts rendering, but it will appear here once it callsVR_Init
with the Scene application type.
-