/// </summary>
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public PinchGestureDetector() : this(Interop.PinchGesture.PinchGestureDetector_New(), true)
+ public PinchGestureDetector() : this(Interop.PinchGesture.PinchGestureDetectorNew(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <param name="handle">A reference to the copied handle</param>
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public PinchGestureDetector(PinchGestureDetector handle) : this(Interop.PinchGesture.new_PinchGestureDetector__SWIG_1(PinchGestureDetector.getCPtr(handle)), true)
+ public PinchGestureDetector(PinchGestureDetector handle) : this(Interop.PinchGesture.NewPinchGestureDetector(PinchGestureDetector.getCPtr(handle)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal PinchGestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.PinchGesture.PinchGestureDetector_SWIGUpcast(cPtr), cMemoryOwn)
+ internal PinchGestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.PinchGesture.PinchGestureDetectorUpcast(cPtr), cMemoryOwn)
{
}
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void DetectedCallbackType(IntPtr actor, IntPtr pinchGesture);
private DetectedCallbackType _detectedCallback;
+ private PinchGestureDetectedSignal detectedSignal;
/// <summary>
/// This signal is emitted when the specified pinch is detected on the attached view.
if (_detectedEventHandler == null)
{
_detectedCallback = OnPinchGestureDetected;
- DetectedSignal().Connect(_detectedCallback);
+ detectedSignal = DetectedSignal();
+ detectedSignal.Connect(_detectedCallback);
}
_detectedEventHandler += value;
{
_detectedEventHandler -= value;
- if (_detectedEventHandler == null && DetectedSignal().Empty() == false)
+ if (_detectedEventHandler == null && detectedSignal?.Empty() == false)
{
- DetectedSignal().Disconnect(_detectedCallback);
+ detectedSignal.Disconnect(_detectedCallback);
+ detectedSignal.Dispose();
+ detectedSignal = null;
}
}
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PinchGestureDetector obj)
{
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
}
internal PinchGestureDetector Assign(PinchGestureDetector rhs)
{
- PinchGestureDetector ret = new PinchGestureDetector(Interop.PinchGesture.PinchGestureDetector_Assign(swigCPtr, PinchGestureDetector.getCPtr(rhs)), false);
+ PinchGestureDetector ret = new PinchGestureDetector(Interop.PinchGesture.PinchGestureDetectorAssign(SwigCPtr, PinchGestureDetector.getCPtr(rhs)), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal PinchGestureDetectedSignal DetectedSignal()
{
- PinchGestureDetectedSignal ret = new PinchGestureDetectedSignal(Interop.PinchGesture.PinchGestureDetector_DetectedSignal(swigCPtr), false);
+ PinchGestureDetectedSignal ret = new PinchGestureDetectedSignal(Interop.PinchGesture.PinchGestureDetectorDetectedSignal(SwigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
{
if (_detectedCallback != null)
{
- DetectedSignal().Disconnect(_detectedCallback);
+ detectedSignal?.Disconnect(_detectedCallback);
+ detectedSignal?.Dispose();
}
- Interop.PinchGesture.delete_PinchGestureDetector(swigCPtr);
+ Interop.PinchGesture.DeletePinchGestureDetector(swigCPtr);
}
private void OnPinchGestureDetected(IntPtr actor, IntPtr pinchGesture)