Пример #1
0
 public void Update(SurfaceObserver.SurfaceChangedDelegate onSurfaceChanged)
 {
     if (onSurfaceChanged == null)
     {
         throw new ArgumentNullException("onSurfaceChanged");
     }
     SurfaceObserver.Internal_Update(this.m_Observer, onSurfaceChanged);
 }
Пример #2
0
 private static void InvokeSurfaceChangedEvent(SurfaceObserver.SurfaceChangedDelegate onSurfaceChanged, int surfaceId, SurfaceChange changeType, Bounds bounds, long updateTime)
 {
     if (onSurfaceChanged != null)
     {
         SurfaceId surfaceId2;
         surfaceId2.handle = surfaceId;
         onSurfaceChanged(surfaceId2, changeType, bounds, DateTime.FromFileTime(updateTime));
     }
 }
Пример #3
0
 private static extern void Internal_Update(IntPtr observer, SurfaceObserver.SurfaceChangedDelegate onSurfaceChanged);