Example #1
0
 public void SetUpdateCallback(ULUpdateCallback callback, IntPtr userData = default)
 {
     if (callback is not null)
     {
         if (updateHandle.IsAllocated)
         {
             updateHandle.Free();
         }
         updateHandle = GCHandle.Alloc(callback, GCHandleType.Normal);
         AppCoreMethods.ulAppSetUpdateCallback(Ptr, callback, userData);
     }
     else
     {
         if (updateHandle.IsAllocated)
         {
             updateHandle.Free();
         }
         AppCoreMethods.ulAppSetUpdateCallback(Ptr, null, userData);
     }
 }
Example #2
0
 public static extern void ulAppSetUpdateCallback(IntPtr app, ULUpdateCallback callback, IntPtr user_data);