MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / CreateNotification

Method CreateNotification

headers/openvr_api.cs:4099–4106  ·  view source on GitHub ↗
(ulong ulOverlayHandle,ulong ulUserValue,EVRNotificationType type,string pchText,EVRNotificationStyle style,ref NotificationBitmap_t pImage,ref uint pNotificationId)

Source from the content-addressed store, hash-verified

4097 FnTable = (IVRNotifications)Marshal.PtrToStructure(pInterface, typeof(IVRNotifications));
4098 }
4099 public EVRNotificationError CreateNotification(ulong ulOverlayHandle,ulong ulUserValue,EVRNotificationType type,string pchText,EVRNotificationStyle style,ref NotificationBitmap_t pImage,ref uint pNotificationId)
4100 {
4101 IntPtr pchTextUtf8 = Utils.ToUtf8(pchText);
4102 pNotificationId = 0;
4103 EVRNotificationError result = FnTable.CreateNotification(ulOverlayHandle,ulUserValue,type,pchTextUtf8,style,ref pImage,ref pNotificationId);
4104 Marshal.FreeHGlobal(pchTextUtf8);
4105 return result;
4106 }
4107 public EVRNotificationError RemoveNotification(uint notificationId)
4108 {
4109 EVRNotificationError result = FnTable.RemoveNotification(notificationId);

Callers

nothing calls this directly

Calls 1

ToUtf8Method · 0.80

Tested by

no test coverage detected