/// <summary> /// Binding for <c>Title</c> property on <c>UIButton</c> /// </summary> /// <param name="rx"></param> /// <example> /// <code> /// button.Rx().Tap() /// .Subscribe(b => Console.WriteLine("Button tapped") /// .DisposedBy(disposable); /// </code> /// </example> /// <returns></returns> public static ControlEvent <UIButton> Tap(this Reactive <UIButton> rx) => rx.ControlEvent(UIControlEvent.TouchUpInside);
/// <summary> /// ControlEvent for UIRefreshControl -> ValueChanged /// </summary> /// <typeparam name="T"></typeparam> /// <param name="rx"></param> /// <returns></returns> /// <example> /// <code> /// refreshControl.Rx().Refresh() /// .Subscribe(r => Console.WriteLine("refresh control changed")) /// .DisposedBy(disposable); /// </code> /// </example> public static ControlEvent <T> Refresh <T>(this Reactive <T> rx) where T : UIRefreshControl => rx.ControlEvent(UIControlEvent.ValueChanged);