internal static void on_location_update(IntPtr gcHandlePtr, IntPtr position) { var self = (CfxGetGeolocationCallback)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target; if (self == null || self.CallbacksDisabled) { return; } var e = new CfxGetGeolocationCallbackOnLocationUpdateEventArgs(position); self.m_OnLocationUpdate?.Invoke(self, e); e.m_isInvalid = true; }
internal static void on_location_update(IntPtr gcHandlePtr, IntPtr position) { var self = (CfxGetGeolocationCallback)System.Runtime.InteropServices.GCHandle.FromIntPtr(gcHandlePtr).Target; if (self == null) { return; } var e = new CfxGetGeolocationCallbackOnLocationUpdateEventArgs(position); var eventHandler = self.m_OnLocationUpdate; if (eventHandler != null) { eventHandler(self, e); } e.m_isInvalid = true; }