Package org.lwjgl.openvr
Class VRApplications
- java.lang.Object
-
- org.lwjgl.openvr.VRApplications
-
public class VRApplications extends java.lang.ObjectApplication management.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnVRApplications_AddApplicationManifest(long pchApplicationManifestFullPath, boolean bTemporary)Unsafe version of:AddApplicationManifeststatic booleannVRApplications_CancelApplicationLaunch(long pchAppKey)Unsafe version of:CancelApplicationLaunchstatic booleannVRApplications_GetApplicationAutoLaunch(long pchAppKey)Unsafe version of:GetApplicationAutoLaunchstatic intnVRApplications_GetApplicationKeyByIndex(int unApplicationIndex, long pchAppKeyBuffer, int unAppKeyBufferLen)Unsafe version of:GetApplicationKeyByIndexstatic intnVRApplications_GetApplicationKeyByProcessId(int unProcessId, long pchAppKeyBuffer, int unAppKeyBufferLen)Unsafe version of:GetApplicationKeyByProcessIdstatic intnVRApplications_GetApplicationLaunchArguments(int unHandle, long pchArgs, int unArgs)Unsafe version of:GetApplicationLaunchArgumentsstatic intnVRApplications_GetApplicationProcessId(long pchAppKey)Unsafe version of:GetApplicationProcessIdstatic booleannVRApplications_GetApplicationPropertyBool(long pchAppKey, int eProperty, long peError)Unsafe version of:GetApplicationPropertyBoolstatic intnVRApplications_GetApplicationPropertyString(long pchAppKey, int eProperty, long pchPropertyValueBuffer, int unPropertyValueBufferLen, long peError)Unsafe version of:GetApplicationPropertyStringstatic longnVRApplications_GetApplicationPropertyUint64(long pchAppKey, int eProperty, long peError)Unsafe version of:GetApplicationPropertyUint64static longnVRApplications_GetApplicationsErrorNameFromEnum(int error)Unsafe version of:GetApplicationsErrorNameFromEnumstatic intnVRApplications_GetApplicationsThatSupportMimeType(long pchMimeType, long pchAppKeysThatSupportBuffer, int unAppKeysThatSupportBuffer)Unsafe version of:GetApplicationsThatSupportMimeTypestatic longnVRApplications_GetApplicationsTransitionStateNameFromEnum(int state)Unsafe version of:GetApplicationsTransitionStateNameFromEnumstatic booleannVRApplications_GetApplicationSupportedMimeTypes(long pchAppKey, long pchMimeTypesBuffer, int unMimeTypesBuffer)Unsafe version of:GetApplicationSupportedMimeTypesstatic booleannVRApplications_GetDefaultApplicationForMimeType(long pchMimeType, long pchAppKeyBuffer, int unAppKeyBufferLen)Unsafe version of:GetDefaultApplicationForMimeTypestatic intnVRApplications_GetStartingApplication(long pchAppKeyBuffer, int unAppKeyBufferLen)Unsafe version of:GetStartingApplicationstatic intnVRApplications_IdentifyApplication(int unProcessId, long pchAppKey)Unsafe version of:IdentifyApplicationstatic booleannVRApplications_IsApplicationInstalled(long pchAppKey)Unsafe version of:IsApplicationInstalledstatic intnVRApplications_LaunchApplication(long pchAppKey)Unsafe version of:LaunchApplicationstatic intnVRApplications_LaunchApplicationFromMimeType(long pchMimeType, long pchArgs)Unsafe version of:LaunchApplicationFromMimeTypestatic intnVRApplications_LaunchDashboardOverlay(long pchAppKey)Unsafe version of:LaunchDashboardOverlaystatic intnVRApplications_LaunchInternalProcess(long pchBinaryPath, long pchArguments, long pchWorkingDirectory)Unsafe version of:LaunchInternalProcessstatic intnVRApplications_LaunchTemplateApplication(long pchTemplateAppKey, long pchNewAppKey, long pKeys, int unKeys)Unsafe version of:LaunchTemplateApplicationstatic intnVRApplications_PerformApplicationPrelaunchCheck(long pchAppKey)Unsafe version of:PerformApplicationPrelaunchCheckstatic intnVRApplications_RemoveApplicationManifest(long pchApplicationManifestFullPath)Unsafe version of:RemoveApplicationManifeststatic intnVRApplications_SetApplicationAutoLaunch(long pchAppKey, boolean bAutoLaunch)Unsafe version of:SetApplicationAutoLaunchstatic intnVRApplications_SetDefaultApplicationForMimeType(long pchAppKey, long pchMimeType)Unsafe version of:SetDefaultApplicationForMimeTypestatic intVRApplications_AddApplicationManifest(java.lang.CharSequence pchApplicationManifestFullPath, boolean bTemporary)Adds an application manifest to the list to load when building the list of installed applications.static intVRApplications_AddApplicationManifest(java.nio.ByteBuffer pchApplicationManifestFullPath, boolean bTemporary)Adds an application manifest to the list to load when building the list of installed applications.static booleanVRApplications_CancelApplicationLaunch(java.lang.CharSequence pchAppKey)Cancel a pending launch for an application.static booleanVRApplications_CancelApplicationLaunch(java.nio.ByteBuffer pchAppKey)Cancel a pending launch for an application.static booleanVRApplications_GetApplicationAutoLaunch(java.lang.CharSequence pchAppKey)Gets the application auto-launch flag.static booleanVRApplications_GetApplicationAutoLaunch(java.nio.ByteBuffer pchAppKey)Gets the application auto-launch flag.static intVRApplications_GetApplicationCount()Returns the number of applications available in the list.static intVRApplications_GetApplicationKeyByIndex(int unApplicationIndex, java.nio.ByteBuffer pchAppKeyBuffer)Returns the key of the specified application.static intVRApplications_GetApplicationKeyByProcessId(int unProcessId, java.nio.ByteBuffer pchAppKeyBuffer)Returns the key of the application for the specified Process Id.static java.lang.StringVRApplications_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 intVRApplications_GetApplicationLaunchArguments(int unHandle, java.nio.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 intVRApplications_GetApplicationProcessId(java.lang.CharSequence pchAppKey)Returns the process ID for an application.static intVRApplications_GetApplicationProcessId(java.nio.ByteBuffer pchAppKey)Returns the process ID for an application.static booleanVRApplications_GetApplicationPropertyBool(java.lang.CharSequence pchAppKey, int eProperty, java.nio.IntBuffer peError)Returns a bool value for an application property.static booleanVRApplications_GetApplicationPropertyBool(java.nio.ByteBuffer pchAppKey, int eProperty, java.nio.IntBuffer peError)Returns a bool value for an application property.static java.lang.StringVRApplications_GetApplicationPropertyString(java.lang.CharSequence pchAppKey, int eProperty, int unPropertyValueBufferLen, java.nio.IntBuffer peError)Returns a value for an application property.static intVRApplications_GetApplicationPropertyString(java.lang.CharSequence pchAppKey, int eProperty, java.nio.ByteBuffer pchPropertyValueBuffer, java.nio.IntBuffer peError)Returns a value for an application property.static java.lang.StringVRApplications_GetApplicationPropertyString(java.lang.CharSequence pchAppKey, int eProperty, java.nio.IntBuffer peError)Returns a value for an application property.static intVRApplications_GetApplicationPropertyString(java.nio.ByteBuffer pchAppKey, int eProperty, java.nio.ByteBuffer pchPropertyValueBuffer, java.nio.IntBuffer peError)Returns a value for an application property.static longVRApplications_GetApplicationPropertyUint64(java.lang.CharSequence pchAppKey, int eProperty, java.nio.IntBuffer peError)Returns a uint64 value for an application property.static longVRApplications_GetApplicationPropertyUint64(java.nio.ByteBuffer pchAppKey, int eProperty, java.nio.IntBuffer peError)Returns a uint64 value for an application property.static java.lang.StringVRApplications_GetApplicationsErrorNameFromEnum(int error)Returns a string for an applications error.static java.lang.StringVRApplications_GetApplicationsThatSupportMimeType(java.lang.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 intVRApplications_GetApplicationsThatSupportMimeType(java.lang.CharSequence pchMimeType, java.nio.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 intVRApplications_GetApplicationsThatSupportMimeType(java.nio.ByteBuffer pchMimeType, java.nio.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 java.lang.StringVRApplications_GetApplicationsTransitionStateNameFromEnum(int state)Returns a string for an application transition state.static booleanVRApplications_GetApplicationSupportedMimeTypes(java.lang.CharSequence pchAppKey, java.nio.ByteBuffer pchMimeTypesBuffer)Get the list of supported mime types for this application, comma-delimited.static booleanVRApplications_GetApplicationSupportedMimeTypes(java.nio.ByteBuffer pchAppKey, java.nio.ByteBuffer pchMimeTypesBuffer)Get the list of supported mime types for this application, comma-delimited.static intVRApplications_GetCurrentSceneProcessId()Returns the current scene process ID according to the application system.static booleanVRApplications_GetDefaultApplicationForMimeType(java.lang.CharSequence pchMimeType, java.nio.ByteBuffer pchAppKeyBuffer)Return the app key that will open this mime type.static booleanVRApplications_GetDefaultApplicationForMimeType(java.nio.ByteBuffer pchMimeType, java.nio.ByteBuffer pchAppKeyBuffer)Return the app key that will open this mime type.static intVRApplications_GetStartingApplication(java.nio.ByteBuffer pchAppKeyBuffer)Returns the app key for the application that is starting up.static intVRApplications_GetTransitionState()Returns the application transition state.static intVRApplications_IdentifyApplication(int unProcessId, java.lang.CharSequence pchAppKey)Identifies a running application.static intVRApplications_IdentifyApplication(int unProcessId, java.nio.ByteBuffer pchAppKey)Identifies a running application.static booleanVRApplications_IsApplicationInstalled(java.lang.CharSequence pchAppKey)Returns true if an application is installed.static booleanVRApplications_IsApplicationInstalled(java.nio.ByteBuffer pchAppKey)Returns true if an application is installed.static booleanVRApplications_IsQuitUserPromptRequested()Returns true if the outgoing scene app has requested a save prompt before exiting.static intVRApplications_LaunchApplication(java.lang.CharSequence pchAppKey)Launches the application.static intVRApplications_LaunchApplication(java.nio.ByteBuffer pchAppKey)Launches the application.static intVRApplications_LaunchApplicationFromMimeType(java.lang.CharSequence pchMimeType, java.lang.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 intVRApplications_LaunchApplicationFromMimeType(java.nio.ByteBuffer pchMimeType, java.nio.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 intVRApplications_LaunchDashboardOverlay(java.lang.CharSequence pchAppKey)Launches the dashboard overlay application if it is not already running.static intVRApplications_LaunchDashboardOverlay(java.nio.ByteBuffer pchAppKey)Launches the dashboard overlay application if it is not already running.static intVRApplications_LaunchInternalProcess(java.lang.CharSequence pchBinaryPath, java.lang.CharSequence pchArguments, java.lang.CharSequence pchWorkingDirectory)Starts a subprocess within the calling application.static intVRApplications_LaunchInternalProcess(java.nio.ByteBuffer pchBinaryPath, java.nio.ByteBuffer pchArguments, java.nio.ByteBuffer pchWorkingDirectory)Starts a subprocess within the calling application.static intVRApplications_LaunchTemplateApplication(java.lang.CharSequence pchTemplateAppKey, java.lang.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 intVRApplications_LaunchTemplateApplication(java.nio.ByteBuffer pchTemplateAppKey, java.nio.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 intVRApplications_PerformApplicationPrelaunchCheck(java.lang.CharSequence pchAppKey)Returns errors that would prevent the specified application from launching immediately.static intVRApplications_PerformApplicationPrelaunchCheck(java.nio.ByteBuffer pchAppKey)Returns errors that would prevent the specified application from launching immediately.static intVRApplications_RemoveApplicationManifest(java.lang.CharSequence pchApplicationManifestFullPath)Removes an application manifest from the list to load when building the list of installed applications.static intVRApplications_RemoveApplicationManifest(java.nio.ByteBuffer pchApplicationManifestFullPath)Removes an application manifest from the list to load when building the list of installed applications.static intVRApplications_SetApplicationAutoLaunch(java.lang.CharSequence pchAppKey, boolean bAutoLaunch)Sets the application auto-launch flag.static intVRApplications_SetApplicationAutoLaunch(java.nio.ByteBuffer pchAppKey, boolean bAutoLaunch)Sets the application auto-launch flag.static intVRApplications_SetDefaultApplicationForMimeType(java.lang.CharSequence pchAppKey, java.lang.CharSequence pchMimeType)Adds this mime-type to the list of supported mime types for this application.static intVRApplications_SetDefaultApplicationForMimeType(java.nio.ByteBuffer pchAppKey, java.nio.ByteBuffer pchMimeType)Adds this mime-type to the list of supported mime types for this application.
-
-
-
Method Detail
-
nVRApplications_AddApplicationManifest
public static int nVRApplications_AddApplicationManifest(long pchApplicationManifestFullPath, boolean bTemporary)Unsafe version of:AddApplicationManifest
-
VRApplications_AddApplicationManifest
public static int VRApplications_AddApplicationManifest(java.nio.ByteBuffer pchApplicationManifestFullPath, boolean bTemporary) public static int VRApplications_AddApplicationManifest(java.lang.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(java.nio.ByteBuffer pchApplicationManifestFullPath) public static int VRApplications_RemoveApplicationManifest(java.lang.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
public static boolean VRApplications_IsApplicationInstalled(java.nio.ByteBuffer pchAppKey) public static boolean VRApplications_IsApplicationInstalled(java.lang.CharSequence pchAppKey)
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 java.nio.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_unMaxApplicationKeyLengthin 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 java.nio.ByteBuffer pchAppKeyBuffer)Returns the key of the application for the specified Process Id. The buffer should be at leastVR.k_unMaxApplicationKeyLengthin order to fit the key.
-
nVRApplications_LaunchApplication
public static int nVRApplications_LaunchApplication(long pchAppKey)
Unsafe version of:LaunchApplication
-
VRApplications_LaunchApplication
public static int VRApplications_LaunchApplication(java.nio.ByteBuffer pchAppKey) public static int VRApplications_LaunchApplication(java.lang.CharSequence pchAppKey)
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(java.nio.ByteBuffer pchTemplateAppKey, java.nio.ByteBuffer pchNewAppKey, AppOverrideKeys.Buffer pKeys) public static int VRApplications_LaunchTemplateApplication(java.lang.CharSequence pchTemplateAppKey, java.lang.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(java.nio.ByteBuffer pchMimeType, java.nio.ByteBuffer pchArgs) public static int VRApplications_LaunchApplicationFromMimeType(java.lang.CharSequence pchMimeType, java.lang.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
public static int VRApplications_LaunchDashboardOverlay(java.nio.ByteBuffer pchAppKey) public static int VRApplications_LaunchDashboardOverlay(java.lang.CharSequence pchAppKey)
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
public static boolean VRApplications_CancelApplicationLaunch(java.nio.ByteBuffer pchAppKey) public static boolean VRApplications_CancelApplicationLaunch(java.lang.CharSequence pchAppKey)
Cancel a pending launch for an application.
-
nVRApplications_IdentifyApplication
public static int nVRApplications_IdentifyApplication(int unProcessId, long pchAppKey)Unsafe version of:IdentifyApplication
-
VRApplications_IdentifyApplication
public static int VRApplications_IdentifyApplication(int unProcessId, java.nio.ByteBuffer pchAppKey) public static int VRApplications_IdentifyApplication(int unProcessId, java.lang.CharSequence pchAppKey)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
public static int VRApplications_GetApplicationProcessId(java.nio.ByteBuffer pchAppKey) public static int VRApplications_GetApplicationProcessId(java.lang.CharSequence pchAppKey)
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
@Nullable public static java.lang.String VRApplications_GetApplicationsErrorNameFromEnum(int error)
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(java.nio.ByteBuffer pchAppKey, int eProperty, @Nullable java.nio.ByteBuffer pchPropertyValueBuffer, java.nio.IntBuffer peError) public static int VRApplications_GetApplicationPropertyString(java.lang.CharSequence pchAppKey, int eProperty, @Nullable java.nio.ByteBuffer pchPropertyValueBuffer, java.nio.IntBuffer peError) public static java.lang.String VRApplications_GetApplicationPropertyString(java.lang.CharSequence pchAppKey, int eProperty, int unPropertyValueBufferLen, java.nio.IntBuffer peError) public static java.lang.String VRApplications_GetApplicationPropertyString(java.lang.CharSequence pchAppKey, int eProperty, java.nio.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(java.nio.ByteBuffer pchAppKey, int eProperty, java.nio.IntBuffer peError) public static boolean VRApplications_GetApplicationPropertyBool(java.lang.CharSequence pchAppKey, int eProperty, java.nio.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(java.nio.ByteBuffer pchAppKey, int eProperty, java.nio.IntBuffer peError) public static long VRApplications_GetApplicationPropertyUint64(java.lang.CharSequence pchAppKey, int eProperty, java.nio.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(java.nio.ByteBuffer pchAppKey, boolean bAutoLaunch) public static int VRApplications_SetApplicationAutoLaunch(java.lang.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
public static boolean VRApplications_GetApplicationAutoLaunch(java.nio.ByteBuffer pchAppKey) public static boolean VRApplications_GetApplicationAutoLaunch(java.lang.CharSequence pchAppKey)
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(java.nio.ByteBuffer pchAppKey, java.nio.ByteBuffer pchMimeType) public static int VRApplications_SetDefaultApplicationForMimeType(java.lang.CharSequence pchAppKey, java.lang.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(java.nio.ByteBuffer pchMimeType, @Nullable java.nio.ByteBuffer pchAppKeyBuffer) public static boolean VRApplications_GetDefaultApplicationForMimeType(java.lang.CharSequence pchMimeType, @Nullable java.nio.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(java.nio.ByteBuffer pchAppKey, @Nullable java.nio.ByteBuffer pchMimeTypesBuffer) public static boolean VRApplications_GetApplicationSupportedMimeTypes(java.lang.CharSequence pchAppKey, @Nullable java.nio.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(java.nio.ByteBuffer pchMimeType, @Nullable java.nio.ByteBuffer pchAppKeysThatSupportBuffer) public static int VRApplications_GetApplicationsThatSupportMimeType(java.lang.CharSequence pchMimeType, @Nullable java.nio.ByteBuffer pchAppKeysThatSupportBuffer) public static java.lang.String VRApplications_GetApplicationsThatSupportMimeType(java.lang.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 java.nio.ByteBuffer pchArgs) public static java.lang.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.
-
nVRApplications_GetStartingApplication
public static int nVRApplications_GetStartingApplication(long pchAppKeyBuffer, int unAppKeyBufferLen)Unsafe version of:GetStartingApplication
-
VRApplications_GetStartingApplication
public static int VRApplications_GetStartingApplication(java.nio.ByteBuffer pchAppKeyBuffer)
Returns the app key for the application that is starting up.
-
VRApplications_GetTransitionState
public static int VRApplications_GetTransitionState()
Returns the application transition state.
-
nVRApplications_PerformApplicationPrelaunchCheck
public static int nVRApplications_PerformApplicationPrelaunchCheck(long pchAppKey)
Unsafe version of:PerformApplicationPrelaunchCheck
-
VRApplications_PerformApplicationPrelaunchCheck
public static int VRApplications_PerformApplicationPrelaunchCheck(java.nio.ByteBuffer pchAppKey) public static int VRApplications_PerformApplicationPrelaunchCheck(java.lang.CharSequence pchAppKey)
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_ProcessQuitand 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_GetApplicationsTransitionStateNameFromEnum
public static long nVRApplications_GetApplicationsTransitionStateNameFromEnum(int state)
Unsafe version of:GetApplicationsTransitionStateNameFromEnum
-
VRApplications_GetApplicationsTransitionStateNameFromEnum
@Nullable public static java.lang.String VRApplications_GetApplicationsTransitionStateNameFromEnum(int state)
Returns a string for an application transition state.- Parameters:
state- one of:
-
VRApplications_IsQuitUserPromptRequested
public static boolean VRApplications_IsQuitUserPromptRequested()
Returns true if the outgoing scene app has requested a save prompt before exiting.
-
nVRApplications_LaunchInternalProcess
public static int nVRApplications_LaunchInternalProcess(long pchBinaryPath, long pchArguments, long pchWorkingDirectory)Unsafe version of:LaunchInternalProcess
-
VRApplications_LaunchInternalProcess
public static int VRApplications_LaunchInternalProcess(java.nio.ByteBuffer pchBinaryPath, java.nio.ByteBuffer pchArguments, java.nio.ByteBuffer pchWorkingDirectory) public static int VRApplications_LaunchInternalProcess(java.lang.CharSequence pchBinaryPath, java.lang.CharSequence pchArguments, java.lang.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 isNULLor "" 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_Initwith the Scene application type.
-
-