/// <summary> /// Adds a property notification to this object. /// </summary> /// <param name="property">The name of the property.</param> /// <param name="condition">The notification will be triggered when this condition is satisfied.</param> /// <returns>A handle to the newly created PropertyNotification.</returns> /// <since_tizen> 4 </since_tizen> public PropertyNotification AddPropertyNotification(string property, PropertyCondition condition) { PropertyNotification ret = new PropertyNotification(NDalicPINVOKE.Handle_AddPropertyNotification__SWIG_0(swigCPtr, PropertyHelper.GetPropertyFromString(this, property).propertyIndex, PropertyCondition.getCPtr(condition)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal PropertyNotification AddPropertyNotification(int index, int componentIndex, PropertyCondition condition) { PropertyNotification ret = new PropertyNotification(NDalicPINVOKE.Handle_AddPropertyNotification__SWIG_1(swigCPtr, index, componentIndex, PropertyCondition.getCPtr(condition)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Adds a property notification to this object. /// </summary> /// <param name="property">The name of the property.</param> /// <param name="condition">The notification will be triggered when this condition is satisfied.</param> /// <returns>A handle to the newly created PropertyNotification.</returns> /// <since_tizen> 4 </since_tizen> public PropertyNotification AddPropertyNotification(string property, PropertyCondition condition) { Property properties = PropertyHelper.GetPropertyFromString(this, property); PropertyNotification ret = new PropertyNotification(Interop.Handle.AddPropertyNotification(swigCPtr, properties.propertyIndex, PropertyCondition.getCPtr(condition)), true); properties.Dispose(); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }