Package org.lwjgl.openvr
Class VRNotifications
- java.lang.Object
-
- org.lwjgl.openvr.VRNotifications
-
public class VRNotifications extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
nVRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, long pchText, int style, long pImage, long pNotificationId)
Unsafe version of:CreateNotification
static int
VRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, java.lang.CharSequence pchText, int style, NotificationBitmap pImage, java.nio.IntBuffer pNotificationId)
Create a notification and enqueue it to be shown to the user.static int
VRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, java.nio.ByteBuffer pchText, int style, NotificationBitmap pImage, java.nio.IntBuffer pNotificationId)
Create a notification and enqueue it to be shown to the user.static int
VRNotifications_RemoveNotification(int notificationId)
Destroy a notification, hiding it first if it currently shown to the user.
-
-
-
Method Detail
-
nVRNotifications_CreateNotification
public static int nVRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, long pchText, int style, long pImage, long pNotificationId)
Unsafe version of:CreateNotification
-
VRNotifications_CreateNotification
public static int VRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, java.nio.ByteBuffer pchText, int style, @Nullable NotificationBitmap pImage, java.nio.IntBuffer pNotificationId) public static int VRNotifications_CreateNotification(long ulOverlayHandle, long ulUserValue, int type, java.lang.CharSequence pchText, int style, @Nullable NotificationBitmap pImage, java.nio.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 beNULL
, in which case the specified overlay's icon will be used instead.- Parameters:
type
- one of:VR.EVRNotificationType_Transient
VR.EVRNotificationType_Persistent
VR.EVRNotificationType_Transient_SystemWithUserValue
style
- one of:VR.EVRNotificationStyle_None
VR.EVRNotificationStyle_Application
VR.EVRNotificationStyle_Contact_Disabled
VR.EVRNotificationStyle_Contact_Enabled
VR.EVRNotificationStyle_Contact_Active
-
VRNotifications_RemoveNotification
public static int VRNotifications_RemoveNotification(int notificationId)
Destroy a notification, hiding it first if it currently shown to the user.
-
-