Top Constructors Methods
org.lwjgl.openvr

public Class VRNotifications

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nVRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, long pchText, int style, long pImage, long pNotificationId)

Unsafe version of: CreateNotification

public static int
public static int
public static int
VRNotifications_RemoveNotification(int notificationId)

Destroy a notification, hiding it first if it currently shown to the user.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

VRNotificationsback to summary
protected VRNotifications()

Method Detail

nVRNotifications_CreateNotificationback to summary
public static int nVRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, long pchText, int style, long pImage, long pNotificationId)

Unsafe version of: CreateNotification

VRNotifications_CreateNotificationback to summary
public static int VRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, ByteBuffer pchText, int style, NotificationBitmap pImage, IntBuffer pNotificationId)

Create a notification and enqueue it to be shown to the user.

An overlay handle is required to create a notification, as otherwise it would be impossible for a user to act on it. To create a two-line notification, use a line break ('\n') to split the text into two lines. The pImage argument may be NULL, in which case the specified overlay's icon will be used instead.

Parameters
type:int

one of:

VR#EVRNotificationType_TransientVR#EVRNotificationType_Persistent
VR#EVRNotificationType_Transient_SystemWithUserValue
style:int

one of:

VR#EVRNotificationStyle_NoneVR#EVRNotificationStyle_Application
VR#EVRNotificationStyle_Contact_DisabledVR#EVRNotificationStyle_Contact_Enabled
VR#EVRNotificationStyle_Contact_Active
Annotations
@NativeType:EVRNotificationError
VRNotifications_CreateNotificationback to summary
public static int VRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, CharSequence pchText, int style, NotificationBitmap pImage, IntBuffer pNotificationId)

Create a notification and enqueue it to be shown to the user.

An overlay handle is required to create a notification, as otherwise it would be impossible for a user to act on it. To create a two-line notification, use a line break ('\n') to split the text into two lines. The pImage argument may be NULL, in which case the specified overlay's icon will be used instead.

Parameters
type:int

one of:

VR#EVRNotificationType_TransientVR#EVRNotificationType_Persistent
VR#EVRNotificationType_Transient_SystemWithUserValue
style:int

one of:

VR#EVRNotificationStyle_NoneVR#EVRNotificationStyle_Application
VR#EVRNotificationStyle_Contact_DisabledVR#EVRNotificationStyle_Contact_Enabled
VR#EVRNotificationStyle_Contact_Active
Annotations
@NativeType:EVRNotificationError
VRNotifications_RemoveNotificationback to summary
public static int VRNotifications_RemoveNotification(int notificationId)

Destroy a notification, hiding it first if it currently shown to the user.

Annotations
@NativeType:EVRNotificationError