public void Update(SurfaceChangedDelegate onSurfaceChanged) { if (m_Observer != k_InvalidObserverId) { Internal_Update(m_Observer, onSurfaceChanged); } }
public void Update(SurfaceChangedDelegate onSurfaceChanged) { if (onSurfaceChanged == null) { throw new ArgumentNullException("onSurfaceChanged"); } Internal_Update(this.m_Observer, onSurfaceChanged); }
private static void InvokeSurfaceChangedEvent(SurfaceChangedDelegate onSurfaceChanged, int surfaceId, SurfaceChange changeType, Bounds bounds, long updateTime) { if (onSurfaceChanged != null) { SurfaceId id; id.handle = surfaceId; onSurfaceChanged(id, changeType, bounds, DateTime.FromFileTime(updateTime)); } }
extern private static void Internal_Update(IntPtr observer, SurfaceChangedDelegate onSurfaceChanged);
private static extern void Internal_Update(int id, [NotNull] SurfaceChangedDelegate onSurfaceChanged);
private static extern void Internal_Update(IntPtr observer, SurfaceChangedDelegate onSurfaceChanged);
public extern void Update([NotNull] SurfaceChangedDelegate onSurfaceChanged);