diff --git a/ReactiveProperty.sln b/ReactiveProperty.sln index cd3dc9d8..339401df 100644 --- a/ReactiveProperty.sln +++ b/ReactiveProperty.sln @@ -64,17 +64,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "csharp6", "csharp6", "{6624 Snippet\csharp6\ReadOnlyReactivePropertySlim.snippet = Snippet\csharp6\ReadOnlyReactivePropertySlim.snippet EndProjectSection EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveProperty.Platform.iOS", "Source\ReactiveProperty.Platform.iOS\ReactiveProperty.Platform.iOS.csproj", "{A54AE997-6255-4000-A4CE-3F8D6D8F0026}" - ProjectSection(ProjectDependencies) = postProject - {157F0F88-34AC-4C49-971F-7027AAC757AE} = {157F0F88-34AC-4C49-971F-7027AAC757AE} - EndProjectSection -EndProject Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ReactiveProperty.Platform.Shared", "Source\ReactiveProperty.Platform.Shared\ReactiveProperty.Platform.Shared.shproj", "{523E5506-24DF-44CA-83CC-6AA02454F150}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveProperty.NETStandard", "Source\ReactiveProperty.NETStandard\ReactiveProperty.NETStandard.csproj", "{157F0F88-34AC-4C49-971F-7027AAC757AE}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveProperty.Platform.Android", "Source\ReactiveProperty.Platform.Android\ReactiveProperty.Platform.Android.csproj", "{BF2E72F9-149B-4687-ABCD-7B949430FFDE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveProperty.Platform.WPF", "Source\ReactiveProperty.Platform.WPF\ReactiveProperty.Platform.WPF.csproj", "{75521693-A60A-4042-AE39-9FDAA14902BA}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveProperty.Core", "Source\ReactiveProperty.Core\ReactiveProperty.Core.csproj", "{74DCF7CF-5639-4BEC-9064-C39EDC26C1DE}" @@ -87,7 +80,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveProperty.Platform.B EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveProperty.Blazor.Tests", "Test\ReactiveProperty.Blazor.Tests\ReactiveProperty.Blazor.Tests.csproj", "{3E78E840-14B6-407F-80D6-F6F25C5A979B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveProperty.WPF.ManualTests", "Test\ReactiveProperty.WPF.ManualTests\ReactiveProperty.WPF.ManualTests.csproj", "{98617635-19E9-4C15-8F24-01C214F9A4EB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveProperty.WPF.ManualTests", "Test\ReactiveProperty.WPF.ManualTests\ReactiveProperty.WPF.ManualTests.csproj", "{98617635-19E9-4C15-8F24-01C214F9A4EB}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -108,36 +101,6 @@ Global Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|ARM.ActiveCfg = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|ARM.Build.0 = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|x64.ActiveCfg = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|x64.Build.0 = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|x86.ActiveCfg = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Debug|x86.Build.0 = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|Any CPU.ActiveCfg = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|Any CPU.Build.0 = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|ARM.ActiveCfg = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|ARM.Build.0 = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|Mixed Platforms.ActiveCfg = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|Mixed Platforms.Build.0 = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|x64.ActiveCfg = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|x64.Build.0 = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|x86.ActiveCfg = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Documentation|x86.Build.0 = Debug|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|Any CPU.Build.0 = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|ARM.ActiveCfg = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|ARM.Build.0 = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|x64.ActiveCfg = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|x64.Build.0 = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|x86.ActiveCfg = Release|Any CPU - {A54AE997-6255-4000-A4CE-3F8D6D8F0026}.Release|x86.Build.0 = Release|Any CPU {157F0F88-34AC-4C49-971F-7027AAC757AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {157F0F88-34AC-4C49-971F-7027AAC757AE}.Debug|Any CPU.Build.0 = Debug|Any CPU {157F0F88-34AC-4C49-971F-7027AAC757AE}.Debug|ARM.ActiveCfg = Debug|Any CPU @@ -168,36 +131,6 @@ Global {157F0F88-34AC-4C49-971F-7027AAC757AE}.Release|x64.Build.0 = Release|Any CPU {157F0F88-34AC-4C49-971F-7027AAC757AE}.Release|x86.ActiveCfg = Release|Any CPU {157F0F88-34AC-4C49-971F-7027AAC757AE}.Release|x86.Build.0 = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|ARM.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|ARM.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|x64.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|x64.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|x86.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Debug|x86.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|Any CPU.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|Any CPU.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|ARM.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|ARM.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|Mixed Platforms.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|Mixed Platforms.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|x64.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|x64.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|x86.ActiveCfg = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Documentation|x86.Build.0 = Debug|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|Any CPU.Build.0 = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|ARM.ActiveCfg = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|ARM.Build.0 = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|x64.ActiveCfg = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|x64.Build.0 = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|x86.ActiveCfg = Release|Any CPU - {BF2E72F9-149B-4687-ABCD-7B949430FFDE}.Release|x86.Build.0 = Release|Any CPU {75521693-A60A-4042-AE39-9FDAA14902BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {75521693-A60A-4042-AE39-9FDAA14902BA}.Debug|Any CPU.Build.0 = Debug|Any CPU {75521693-A60A-4042-AE39-9FDAA14902BA}.Debug|ARM.ActiveCfg = Debug|Any CPU @@ -415,10 +348,8 @@ Global GlobalSection(NestedProjects) = preSolution {B087D3DF-7BED-4296-8A2F-CCE3324CC45B} = {9F7EFC36-593F-4521-B678-41B00A6642B1} {66249041-95E4-4DAE-AC93-3475EBE60AF0} = {9F7EFC36-593F-4521-B678-41B00A6642B1} - {A54AE997-6255-4000-A4CE-3F8D6D8F0026} = {592AA479-AD7F-476B-AEF8-2B0268EA3BD8} {523E5506-24DF-44CA-83CC-6AA02454F150} = {592AA479-AD7F-476B-AEF8-2B0268EA3BD8} {157F0F88-34AC-4C49-971F-7027AAC757AE} = {592AA479-AD7F-476B-AEF8-2B0268EA3BD8} - {BF2E72F9-149B-4687-ABCD-7B949430FFDE} = {592AA479-AD7F-476B-AEF8-2B0268EA3BD8} {75521693-A60A-4042-AE39-9FDAA14902BA} = {592AA479-AD7F-476B-AEF8-2B0268EA3BD8} {74DCF7CF-5639-4BEC-9064-C39EDC26C1DE} = {592AA479-AD7F-476B-AEF8-2B0268EA3BD8} {30D6C298-9EE3-4185-AEAF-18EC93B0C087} = {6B13388E-F781-4F55-AF8B-2E991EA59DB8} @@ -428,9 +359,9 @@ Global {98617635-19E9-4C15-8F24-01C214F9A4EB} = {6B13388E-F781-4F55-AF8B-2E991EA59DB8} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution - BuildVersion_AssemblyInfoFilename = Source\NET40\Properties\CommonAssemblyInfo.cs - BuildVersion_UseGlobalSettings = True SolutionGuid = {5AC43AC2-86FE-46EF-B243-5C8E75EAB89B} + BuildVersion_UseGlobalSettings = True + BuildVersion_AssemblyInfoFilename = Source\NET40\Properties\CommonAssemblyInfo.cs EndGlobalSection GlobalSection(SharedMSBuildProjectFiles) = preSolution Source\ReactiveProperty.Platform.Shared\ReactiveProperty.Platform.Shared.projitems*{523e5506-24df-44ca-83cc-6aa02454f150}*SharedItemsImports = 13 diff --git a/Source/ReactiveProperty.Core/ReactiveProperty.Core.csproj b/Source/ReactiveProperty.Core/ReactiveProperty.Core.csproj index 86c743a6..55ebc38c 100644 --- a/Source/ReactiveProperty.Core/ReactiveProperty.Core.csproj +++ b/Source/ReactiveProperty.Core/ReactiveProperty.Core.csproj @@ -2,7 +2,7 @@ ReactiveProperty.Core - netstandard2.0;net6.0;net7.0;net8.0;net472 + netstandard2.0;net6.0;net8.0;net472 ReactiveProperty.Core true key.snk diff --git a/Source/ReactiveProperty.NETStandard/ReactiveProperty.NETStandard.csproj b/Source/ReactiveProperty.NETStandard/ReactiveProperty.NETStandard.csproj index 9f47d0b6..5cc276d7 100644 --- a/Source/ReactiveProperty.NETStandard/ReactiveProperty.NETStandard.csproj +++ b/Source/ReactiveProperty.NETStandard/ReactiveProperty.NETStandard.csproj @@ -2,7 +2,7 @@ ReactiveProperty - netstandard2.0;net6.0;net7.0;net8.0;net472 + netstandard2.0;net6.0;net8.0;net472 ReactiveProperty true key.snk @@ -11,7 +11,7 @@ - + diff --git a/Source/ReactiveProperty.Platform.Android/BindingSupportExtensions.cs b/Source/ReactiveProperty.Platform.Android/BindingSupportExtensions.cs deleted file mode 100644 index a85ec347..00000000 --- a/Source/ReactiveProperty.Platform.Android/BindingSupportExtensions.cs +++ /dev/null @@ -1,132 +0,0 @@ -using System; -using System.Linq.Expressions; -using System.Reactive; -using System.Reactive.Disposables; -using System.Reactive.Linq; -using Android.Views; -using Reactive.Bindings.Extensions; -using Reactive.Bindings.Internal; - -namespace Reactive.Bindings; - -/// -/// Binding Support Extensions -/// -public static class BindingSupportExtensions -{ - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBinding( - this TView self, - Expression> propertySelector, - IReactiveProperty source, Func> updateSourceTrigger = null) - where TView : View - { - var d = new CompositeDisposable(); - - var isUpdating = false; - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null) - { - var getter = AccessorCache.LookupGet(propertySelector, out propertyName); - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }).AddTo(d); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Data binding token - public static IDisposable SetBinding( - this TView self, - Expression> propertySelector, - IReadOnlyReactiveProperty source) - where TView : View - { - var d = new CompositeDisposable(); - - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - return d; - } - - /// - /// Command binding method. - /// - /// Command type. - /// IObservable - /// Command - /// Command binding token - public static IDisposable SetCommand(this IObservable self, ReactiveCommand command) => - self - .Where(_ => command.CanExecute()) - .Subscribe(x => command.Execute(x)); - - /// - /// Command binding method. - /// - /// IObservable type - /// IObservable - /// Command - /// Command binding token - public static IDisposable SetCommand(this IObservable self, ReactiveCommand command) => - self - .Where(_ => command.CanExecute()) - .Subscribe(x => command.Execute()); - - /// - /// Command binding method. - /// - /// Command type. - /// IObservable - /// Command - /// Command binding token - public static IDisposable SetCommand(this IObservable self, AsyncReactiveCommand command) => - self - .Where(_ => command.CanExecute()) - .Subscribe(x => command.Execute(x)); - - /// - /// Command binding method. - /// - /// IObservable type - /// IObservable - /// Command - /// Command binding token - public static IDisposable SetCommand(this IObservable self, AsyncReactiveCommand command) => - self - .Where(_ => command.CanExecute()) - .Subscribe(x => command.Execute()); -} diff --git a/Source/ReactiveProperty.Platform.Android/Extensions/ViewEventExtensions.cs b/Source/ReactiveProperty.Platform.Android/Extensions/ViewEventExtensions.cs deleted file mode 100644 index ed49a383..00000000 --- a/Source/ReactiveProperty.Platform.Android/Extensions/ViewEventExtensions.cs +++ /dev/null @@ -1,11945 +0,0 @@ -using System; -using System.Reactive.Linq; - -namespace Reactive.Bindings.Extensions; -#pragma warning disable CA1422 -#pragma warning disable CS0618 - -public static class ViewEventExtensions -{ - public static IObservable KeyAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.InputMethodServices.KeyboardView.KeyEventArgs>( - h => (s, e) => h(e), - h => self.Key += h, - h => self.Key -= h); - } - - public static IObservable PressAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.InputMethodServices.KeyboardView.PressEventArgs>( - h => (s, e) => h(e), - h => self.Press += h, - h => self.Press -= h); - } - - public static IObservable ReleaseAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.InputMethodServices.KeyboardView.ReleaseEventArgs>( - h => (s, e) => h(e), - h => self.Release += h, - h => self.Release -= h); - } - - public static IObservable TextAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.InputMethodServices.KeyboardView.TextEventArgs>( - h => (s, e) => h(e), - h => self.Text += h, - h => self.Text -= h); - } - - public static IObservable SwipeDownEventAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.SwipeDownEvent += h, - h => self.SwipeDownEvent -= h); - } - - public static IObservable SwipeLeftEventAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.SwipeLeftEvent += h, - h => self.SwipeLeftEvent -= h); - } - - public static IObservable SwipeRightEventAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.SwipeRightEvent += h, - h => self.SwipeRightEvent -= h); - } - - public static IObservable SwipeUpEventAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.SwipeUpEvent += h, - h => self.SwipeUpEvent -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.InputMethodServices.KeyboardView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Opengl.GLSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Views.View self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Views.View self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ScrollAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.ScrollEventArgs>( - h => (s, e) => h(e), - h => self.Scroll += h, - h => self.Scroll -= h); - } - - public static IObservable ScrollStateChangedAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.ScrollStateChangedEventArgs>( - h => (s, e) => h(e), - h => self.ScrollStateChanged += h, - h => self.ScrollStateChanged -= h); - } - - public static IObservable RecyclerAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.RecyclerEventArgs>( - h => (s, e) => h(e), - h => self.Recycler += h, - h => self.Recycler -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.AbsListView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.AdapterView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.AdapterViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable DismissAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Dismiss += h, - h => self.Dismiss -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.AutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.DatePicker self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable NextClickAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.NextClick += h, - h => self.NextClick -= h); - } - - public static IObservable PreviousClickAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.PreviousClick += h, - h => self.PreviousClick -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.MediaController self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.TextView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable BreadCrumbClickAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.App.FragmentBreadCrumbs.BreadCrumbClickEventArgs>( - h => (s, e) => h(e), - h => self.BreadCrumbClick += h, - h => self.BreadCrumbClick -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.App.FragmentBreadCrumbs self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ExtendedSettingsClickAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ExtendedSettingsClick += h, - h => self.ExtendedSettingsClick -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.App.MediaRouteButton self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Appwidget.AppWidgetHostView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable GestureEventAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Gestures.GestureOverlayView.GestureEventArgs>( - h => (s, e) => h(e), - h => self.GestureEvent += h, - h => self.GestureEvent -= h); - } - - public static IObservable GestureCancelledAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Gestures.GestureOverlayView.GestureCancelledEventArgs>( - h => (s, e) => h(e), - h => self.GestureCancelled += h, - h => self.GestureCancelled -= h); - } - - public static IObservable GestureEndedAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Gestures.GestureOverlayView.GestureEndedEventArgs>( - h => (s, e) => h(e), - h => self.GestureEnded += h, - h => self.GestureEnded -= h); - } - - public static IObservable GestureStartedAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Gestures.GestureOverlayView.GestureStartedEventArgs>( - h => (s, e) => h(e), - h => self.GestureStarted += h, - h => self.GestureStarted -= h); - } - - public static IObservable GesturePerformedAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Gestures.GestureOverlayView.GesturePerformedEventArgs>( - h => (s, e) => h(e), - h => self.GesturePerformed += h, - h => self.GesturePerformed -= h); - } - - public static IObservable GesturingEndedAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Gestures.GestureOverlayView.GesturingEndedEventArgs>( - h => (s, e) => h(e), - h => self.GesturingEnded += h, - h => self.GesturingEnded -= h); - } - - public static IObservable GesturingStartedAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Gestures.GestureOverlayView.GesturingStartedEventArgs>( - h => (s, e) => h(e), - h => self.GesturingStarted += h, - h => self.GesturingStarted -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Gestures.GestureOverlayView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.InputMethodServices.ExtractEditText self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable UnhandledInputEventAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Media.TV.TvView.UnhandledInputEventEventArgs>( - h => (s, e) => h(e), - h => self.UnhandledInputEvent += h, - h => self.UnhandledInputEvent -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Media.TV.TvView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Renderscripts.RSSurfaceView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable SurfaceTextureAvailableAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.TextureView.SurfaceTextureAvailableEventArgs>( - h => (s, e) => h(e), - h => self.SurfaceTextureAvailable += h, - h => self.SurfaceTextureAvailable -= h); - } - - public static IObservable SurfaceTextureDestroyedAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.TextureView.SurfaceTextureDestroyedEventArgs>( - h => (s, e) => h(e), - h => self.SurfaceTextureDestroyed += h, - h => self.SurfaceTextureDestroyed -= h); - } - - public static IObservable SurfaceTextureSizeChangedAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.TextureView.SurfaceTextureSizeChangedEventArgs>( - h => (s, e) => h(e), - h => self.SurfaceTextureSizeChanged += h, - h => self.SurfaceTextureSizeChanged -= h); - } - - public static IObservable SurfaceTextureUpdatedAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.TextureView.SurfaceTextureUpdatedEventArgs>( - h => (s, e) => h(e), - h => self.SurfaceTextureUpdated += h, - h => self.SurfaceTextureUpdated -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Renderscripts.RSTextureView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Views.SurfaceView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable SurfaceTextureAvailableAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.TextureView.SurfaceTextureAvailableEventArgs>( - h => (s, e) => h(e), - h => self.SurfaceTextureAvailable += h, - h => self.SurfaceTextureAvailable -= h); - } - - public static IObservable SurfaceTextureDestroyedAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.TextureView.SurfaceTextureDestroyedEventArgs>( - h => (s, e) => h(e), - h => self.SurfaceTextureDestroyed += h, - h => self.SurfaceTextureDestroyed -= h); - } - - public static IObservable SurfaceTextureSizeChangedAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.TextureView.SurfaceTextureSizeChangedEventArgs>( - h => (s, e) => h(e), - h => self.SurfaceTextureSizeChanged += h, - h => self.SurfaceTextureSizeChanged -= h); - } - - public static IObservable SurfaceTextureUpdatedAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.TextureView.SurfaceTextureUpdatedEventArgs>( - h => (s, e) => h(e), - h => self.SurfaceTextureUpdated += h, - h => self.SurfaceTextureUpdated -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Views.TextureView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Views.ViewGroup self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable InflateEventAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.ViewStub.InflateEventArgs>( - h => (s, e) => h(e), - h => self.InflateEvent += h, - h => self.InflateEvent -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Views.ViewStub self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable DownloadAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Webkit.DownloadEventArgs>( - h => (s, e) => h(e), - h => self.Download += h, - h => self.Download -= h); - } - - public static IObservable FindAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Webkit.WebView.FindEventArgs>( - h => (s, e) => h(e), - h => self.Find += h, - h => self.Find -= h); - } - - public static IObservable PictureAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Webkit.WebView.PictureEventArgs>( - h => (s, e) => h(e), - h => self.Picture += h, - h => self.Picture -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Webkit.WebView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.AbsSeekBar self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.AbsSpinner self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.AbsoluteLayout self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable MenuItemClickAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Widget.ActionMenuView.MenuItemClickEventArgs>( - h => (s, e) => h(e), - h => self.MenuItemClick += h, - h => self.MenuItemClick -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ActionMenuView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.AdapterViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.AnalogClock self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.Button self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable DateChangeAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Widget.CalendarView.DateChangeEventArgs>( - h => (s, e) => h(e), - h => self.DateChange += h, - h => self.DateChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.CalendarView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable CheckedChangeAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Widget.CompoundButton.CheckedChangeEventArgs>( - h => (s, e) => h(e), - h => self.CheckedChange += h, - h => self.CheckedChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.CheckBox self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.CheckedTextView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChronometerTickAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ChronometerTick += h, - h => self.ChronometerTick -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.Chronometer self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable CheckedChangeAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Widget.CompoundButton.CheckedChangeEventArgs>( - h => (s, e) => h(e), - h => self.CheckedChange += h, - h => self.CheckedChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.CompoundButton self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.DialerFilter self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.DigitalClock self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.EditText self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildClickAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.ExpandableListView.ChildClickEventArgs>( - h => (s, e) => h(e), - h => self.ChildClick += h, - h => self.ChildClick -= h); - } - - public static IObservable GroupClickAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.ExpandableListView.GroupClickEventArgs>( - h => (s, e) => h(e), - h => self.GroupClick += h, - h => self.GroupClick -= h); - } - - public static IObservable GroupCollapseAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.ExpandableListView.GroupCollapseEventArgs>( - h => (s, e) => h(e), - h => self.GroupCollapse += h, - h => self.GroupCollapse -= h); - } - - public static IObservable GroupExpandAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.ExpandableListView.GroupExpandEventArgs>( - h => (s, e) => h(e), - h => self.GroupExpand += h, - h => self.GroupExpand -= h); - } - - public static IObservable ScrollAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.ScrollEventArgs>( - h => (s, e) => h(e), - h => self.Scroll += h, - h => self.Scroll -= h); - } - - public static IObservable ScrollStateChangedAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.ScrollStateChangedEventArgs>( - h => (s, e) => h(e), - h => self.ScrollStateChanged += h, - h => self.ScrollStateChanged -= h); - } - - public static IObservable RecyclerAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.RecyclerEventArgs>( - h => (s, e) => h(e), - h => self.Recycler += h, - h => self.Recycler -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ExpandableListView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.FrameLayout self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.Gallery self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.GridLayout self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ScrollAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.ScrollEventArgs>( - h => (s, e) => h(e), - h => self.Scroll += h, - h => self.Scroll -= h); - } - - public static IObservable ScrollStateChangedAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.ScrollStateChangedEventArgs>( - h => (s, e) => h(e), - h => self.ScrollStateChanged += h, - h => self.ScrollStateChanged -= h); - } - - public static IObservable RecyclerAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.RecyclerEventArgs>( - h => (s, e) => h(e), - h => self.Recycler += h, - h => self.Recycler -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.GridView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.HorizontalScrollView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ImageButton self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ImageSwitcher self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ImageView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.LinearLayout self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ScrollAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.ScrollEventArgs>( - h => (s, e) => h(e), - h => self.Scroll += h, - h => self.Scroll -= h); - } - - public static IObservable ScrollStateChangedAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.ScrollStateChangedEventArgs>( - h => (s, e) => h(e), - h => self.ScrollStateChanged += h, - h => self.ScrollStateChanged -= h); - } - - public static IObservable RecyclerAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Widget.AbsListView.RecyclerEventArgs>( - h => (s, e) => h(e), - h => self.Recycler += h, - h => self.Recycler -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ListView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable DismissAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Dismiss += h, - h => self.Dismiss -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.MultiAutoCompleteTextView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ScrollAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Widget.NumberPicker.ScrollEventArgs>( - h => (s, e) => h(e), - h => self.Scroll += h, - h => self.Scroll -= h); - } - - public static IObservable ValueChangedAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Widget.NumberPicker.ValueChangeEventArgs>( - h => (s, e) => h(e), - h => self.ValueChanged += h, - h => self.ValueChanged -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.NumberPicker self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ProgressBar self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.QuickContactBadge self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable CheckedChangeAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Widget.CompoundButton.CheckedChangeEventArgs>( - h => (s, e) => h(e), - h => self.CheckedChange += h, - h => self.CheckedChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.RadioButton self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable CheckedChangeAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Widget.RadioGroup.CheckedChangeEventArgs>( - h => (s, e) => h(e), - h => self.CheckedChange += h, - h => self.CheckedChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.RadioGroup self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable RatingBarChangeAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Widget.RatingBar.RatingBarChangeEventArgs>( - h => (s, e) => h(e), - h => self.RatingBarChange += h, - h => self.RatingBarChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.RatingBar self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.RelativeLayout self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ScrollView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable CloseAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Widget.SearchView.CloseEventArgs>( - h => (s, e) => h(e), - h => self.Close += h, - h => self.Close -= h); - } - - public static IObservable QueryTextFocusChangeAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.QueryTextFocusChange += h, - h => self.QueryTextFocusChange -= h); - } - - public static IObservable QueryTextChangeAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Widget.SearchView.QueryTextChangeEventArgs>( - h => (s, e) => h(e), - h => self.QueryTextChange += h, - h => self.QueryTextChange -= h); - } - - public static IObservable QueryTextSubmitAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Widget.SearchView.QueryTextSubmitEventArgs>( - h => (s, e) => h(e), - h => self.QueryTextSubmit += h, - h => self.QueryTextSubmit -= h); - } - - public static IObservable SearchClickAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.SearchClick += h, - h => self.SearchClick -= h); - } - - public static IObservable SuggestionClickAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Widget.SearchView.SuggestionClickEventArgs>( - h => (s, e) => h(e), - h => self.SuggestionClick += h, - h => self.SuggestionClick -= h); - } - - public static IObservable SuggestionSelectAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Widget.SearchView.SuggestionSelectEventArgs>( - h => (s, e) => h(e), - h => self.SuggestionSelect += h, - h => self.SuggestionSelect -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.SearchView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ProgressChangedAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Widget.SeekBar.ProgressChangedEventArgs>( - h => (s, e) => h(e), - h => self.ProgressChanged += h, - h => self.ProgressChanged -= h); - } - - public static IObservable StartTrackingTouchAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Widget.SeekBar.StartTrackingTouchEventArgs>( - h => (s, e) => h(e), - h => self.StartTrackingTouch += h, - h => self.StartTrackingTouch -= h); - } - - public static IObservable StopTrackingTouchAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Widget.SeekBar.StopTrackingTouchEventArgs>( - h => (s, e) => h(e), - h => self.StopTrackingTouch += h, - h => self.StopTrackingTouch -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.SeekBar self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable DrawerCloseAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.DrawerClose += h, - h => self.DrawerClose -= h); - } - - public static IObservable DrawerOpenAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.DrawerOpen += h, - h => self.DrawerOpen -= h); - } - - public static IObservable ScrollEndedAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ScrollEnded += h, - h => self.ScrollEnded -= h); - } - - public static IObservable ScrollStartedAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ScrollStarted += h, - h => self.ScrollStarted -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.SlidingDrawer self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.Space self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.Spinner self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ItemSelectionClearedAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ItemSelectionCleared += h, - h => self.ItemSelectionCleared -= h); - } - - public static IObservable ItemClickAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemClick += h, - h => self.ItemClick -= h); - } - - public static IObservable ItemLongClickAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemLongClickEventArgs>( - h => (s, e) => h(e), - h => self.ItemLongClick += h, - h => self.ItemLongClick -= h); - } - - public static IObservable ItemSelectedAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.ItemSelectedEventArgs>( - h => (s, e) => h(e), - h => self.ItemSelected += h, - h => self.ItemSelected -= h); - } - - public static IObservable NothingSelectedAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Widget.AdapterView.NothingSelectedEventArgs>( - h => (s, e) => h(e), - h => self.NothingSelected += h, - h => self.NothingSelected -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.StackView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable CheckedChangeAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Widget.CompoundButton.CheckedChangeEventArgs>( - h => (s, e) => h(e), - h => self.CheckedChange += h, - h => self.CheckedChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.Switch self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable TabChangedAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Widget.TabHost.TabChangeEventArgs>( - h => (s, e) => h(e), - h => self.TabChanged += h, - h => self.TabChanged -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.TabHost self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.TabWidget self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.TableLayout self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.TableRow self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.TextClock self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.TextSwitcher self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable TimeChangedAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Widget.TimePicker.TimeChangedEventArgs>( - h => (s, e) => h(e), - h => self.TimeChanged += h, - h => self.TimeChanged -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.TimePicker self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable CheckedChangeAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Widget.CompoundButton.CheckedChangeEventArgs>( - h => (s, e) => h(e), - h => self.CheckedChange += h, - h => self.CheckedChange -= h); - } - - public static IObservable AfterTextChangedAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Text.AfterTextChangedEventArgs>( - h => (s, e) => h(e), - h => self.AfterTextChanged += h, - h => self.AfterTextChanged -= h); - } - - public static IObservable BeforeTextChangedAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.BeforeTextChanged += h, - h => self.BeforeTextChanged -= h); - } - - public static IObservable TextChangedAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Text.TextChangedEventArgs>( - h => (s, e) => h(e), - h => self.TextChanged += h, - h => self.TextChanged -= h); - } - - public static IObservable EditorActionAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Widget.TextView.EditorActionEventArgs>( - h => (s, e) => h(e), - h => self.EditorAction += h, - h => self.EditorAction -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ToggleButton self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable NavigationOnClickAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.NavigationOnClick += h, - h => self.NavigationOnClick -= h); - } - - public static IObservable MenuItemClickAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Widget.Toolbar.MenuItemClickEventArgs>( - h => (s, e) => h(e), - h => self.MenuItemClick += h, - h => self.MenuItemClick -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.Toolbar self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.TwoLineListItem self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable CompletionAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Completion += h, - h => self.Completion -= h); - } - - public static IObservable ErrorAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Media.MediaPlayer.ErrorEventArgs>( - h => (s, e) => h(e), - h => self.Error += h, - h => self.Error -= h); - } - - public static IObservable InfoAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Media.MediaPlayer.InfoEventArgs>( - h => (s, e) => h(e), - h => self.Info += h, - h => self.Info -= h); - } - - public static IObservable PreparedAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Prepared += h, - h => self.Prepared -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.VideoView self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ViewAnimator self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ViewFlipper self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ViewSwitcher self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ZoomButton self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } - - public static IObservable ZoomInClickAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ZoomInClick += h, - h => self.ZoomInClick -= h); - } - - public static IObservable ZoomOutClickAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.ZoomOutClick += h, - h => self.ZoomOutClick -= h); - } - - public static IObservable ChildViewAddedAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewAddedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewAdded += h, - h => self.ChildViewAdded -= h); - } - - public static IObservable ChildViewRemovedAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.ViewGroup.ChildViewRemovedEventArgs>( - h => (s, e) => h(e), - h => self.ChildViewRemoved += h, - h => self.ChildViewRemoved -= h); - } - - public static IObservable AnimationEndAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationEndEventArgs>( - h => (s, e) => h(e), - h => self.AnimationEnd += h, - h => self.AnimationEnd -= h); - } - - public static IObservable AnimationRepeatAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationRepeatEventArgs>( - h => (s, e) => h(e), - h => self.AnimationRepeat += h, - h => self.AnimationRepeat -= h); - } - - public static IObservable AnimationStartAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.Animations.Animation.AnimationStartEventArgs>( - h => (s, e) => h(e), - h => self.AnimationStart += h, - h => self.AnimationStart -= h); - } - - public static IObservable ViewAttachedToWindowAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.ViewAttachedToWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewAttachedToWindow += h, - h => self.ViewAttachedToWindow -= h); - } - - public static IObservable ViewDetachedFromWindowAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.ViewDetachedFromWindowEventArgs>( - h => (s, e) => h(e), - h => self.ViewDetachedFromWindow += h, - h => self.ViewDetachedFromWindow -= h); - } - - public static IObservable LayoutChangeAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.LayoutChangeEventArgs>( - h => (s, e) => h(e), - h => self.LayoutChange += h, - h => self.LayoutChange -= h); - } - - public static IObservable ClickAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent( - h => (s, e) => h(e), - h => self.Click += h, - h => self.Click -= h); - } - - public static IObservable ContextMenuCreatedAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.CreateContextMenuEventArgs>( - h => (s, e) => h(e), - h => self.ContextMenuCreated += h, - h => self.ContextMenuCreated -= h); - } - - public static IObservable DragAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.DragEventArgs>( - h => (s, e) => h(e), - h => self.Drag += h, - h => self.Drag -= h); - } - - public static IObservable GenericMotionAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.GenericMotionEventArgs>( - h => (s, e) => h(e), - h => self.GenericMotion += h, - h => self.GenericMotion -= h); - } - - public static IObservable HoverAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.HoverEventArgs>( - h => (s, e) => h(e), - h => self.Hover += h, - h => self.Hover -= h); - } - - public static IObservable KeyPressAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.KeyEventArgs>( - h => (s, e) => h(e), - h => self.KeyPress += h, - h => self.KeyPress -= h); - } - - public static IObservable LongClickAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.LongClickEventArgs>( - h => (s, e) => h(e), - h => self.LongClick += h, - h => self.LongClick -= h); - } - - public static IObservable SystemUiVisibilityChangeAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.SystemUiVisibilityChangeEventArgs>( - h => (s, e) => h(e), - h => self.SystemUiVisibilityChange += h, - h => self.SystemUiVisibilityChange -= h); - } - - public static IObservable TouchAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.TouchEventArgs>( - h => (s, e) => h(e), - h => self.Touch += h, - h => self.Touch -= h); - } - - public static IObservable FocusChangeAsObservable(this Android.Widget.ZoomControls self) - { - return Observable.FromEvent, Android.Views.View.FocusChangeEventArgs>( - h => (s, e) => h(e), - h => self.FocusChange += h, - h => self.FocusChange -= h); - } -} diff --git a/Source/ReactiveProperty.Platform.Android/Internal/AccessorCache.cs b/Source/ReactiveProperty.Platform.Android/Internal/AccessorCache.cs deleted file mode 100644 index dd7ac49d..00000000 --- a/Source/ReactiveProperty.Platform.Android/Internal/AccessorCache.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Reflection; - -namespace Reactive.Bindings.Internal; - -internal static class AccessorCache -{ - private static readonly Dictionary getCache = new(); - private static readonly Dictionary setCache = new(); - - public static Func LookupGet(Expression> propertySelector, out string propertyName) - { - propertyName = ((MemberExpression)propertySelector.Body).Member.Name; - Delegate accessor; - - lock (getCache) - { - if (!getCache.TryGetValue(propertyName, out accessor)) - { - accessor = propertySelector.Compile(); - getCache.Add(propertyName, accessor); - } - } - - return (Func)accessor; - } - - public static Action LookupSet(Expression> propertySelector, out string propertyName) - { - propertyName = ((MemberExpression)propertySelector.Body).Member.Name; - Delegate accessor; - - lock (setCache) - { - if (!setCache.TryGetValue(propertyName, out accessor)) - { - accessor = CreateSetAccessor(propertySelector); - setCache.Add(propertyName, accessor); - } - } - - return (Action)accessor; - } - - private static Delegate CreateSetAccessor(Expression> propertySelector) - { - var propertyInfo = (PropertyInfo)((MemberExpression)propertySelector.Body).Member; - var selfParameter = Expression.Parameter(typeof(TType), "self"); - var valueParameter = Expression.Parameter(typeof(TProperty), "value"); - var body = Expression.Assign(Expression.Property(selfParameter, propertyInfo), valueParameter); - var lambda = Expression.Lambda>(body, selfParameter, valueParameter); - return lambda.Compile(); - } -} diff --git a/Source/ReactiveProperty.Platform.Android/ListAdapter.cs b/Source/ReactiveProperty.Platform.Android/ListAdapter.cs deleted file mode 100644 index 827c9f6b..00000000 --- a/Source/ReactiveProperty.Platform.Android/ListAdapter.cs +++ /dev/null @@ -1,96 +0,0 @@ -using System; -using System.Collections.Generic; -using Android.Views; -using Android.Widget; - -namespace Reactive.Bindings; - -/// -/// Generic IList Adapter -/// -/// -public class ListAdapter : BaseAdapter -{ - private IList List { get; } - - private Func CreateRowView { get; } - - private Action SetRowData { get; } - - private Func GetId { get; } - - /// - /// constructor - /// - /// source list - /// create view - /// set row data - /// get id - public ListAdapter(IList list, Func createRowView, Action setRowData, Func getId = null) - { - List = list ?? throw new ArgumentNullException(nameof(list)); - CreateRowView = createRowView ?? throw new ArgumentNullException(nameof(createRowView)); - SetRowData = setRowData ?? throw new ArgumentNullException(nameof(setRowData)); - GetId = getId ?? ((index, _) => index); - } - - /// - /// Gets the item with the specified position. - /// - /// The type. - /// The position. - /// - public override T this[int position] => List[position]; - - /// - /// To be added. - /// - /// To be added. - /// To be added. - public override int Count => List.Count; - - /// - /// To be added. - /// - /// To be added. - /// To be added. - /// To be added. - public override long GetItemId(int position) => GetId(position, this[position]); - - /// - /// To be added. - /// - /// To be added. - /// To be added. - /// To be added. - /// To be added. - /// To be added. - public override View GetView(int position, View convertView, ViewGroup parent) - { - if (convertView == null) - { - convertView = CreateRowView(position, this[position]); - } - - SetRowData(position, this[position], convertView); - return convertView; - } -} - -/// -/// List Extensions -/// -public static class ListExtensions -{ - /// - /// Convert IList to ListAdapter - /// - /// - /// IList - /// create view - /// fill row data - /// get id - /// ListAdapter - public static ListAdapter ToAdapter(this IList self, Func createRowView, Action setRowData, Func getId = null) => - new(self, createRowView, setRowData, getId); -} diff --git a/Source/ReactiveProperty.Platform.Android/ObservableCollectionAdapter.cs b/Source/ReactiveProperty.Platform.Android/ObservableCollectionAdapter.cs deleted file mode 100644 index 6b624b08..00000000 --- a/Source/ReactiveProperty.Platform.Android/ObservableCollectionAdapter.cs +++ /dev/null @@ -1,83 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Collections.Specialized; -using Android.Views; - -namespace Reactive.Bindings; - -/// -/// INotifyCollectionChanged ListAdapter -/// -/// -public class ObservableCollectionAdapter : ListAdapter, IDisposable -{ - private INotifyCollectionChanged List { get; } - - /// - /// constructor - /// - /// source list - /// create row view - /// set row data - /// get id - public ObservableCollectionAdapter(INotifyCollectionChanged list, Func createRowView, Action setRowData, Func getId = null) - : base(list as IList, createRowView, setRowData, getId) - { - if (!(list is IList)) { throw new ArgumentException(nameof(list)); } - List = list; - List.CollectionChanged += CollectionChanged; - } - - /// - /// To be added. - /// - /// To be added. - /// To be added. - protected override void Dispose(bool disposing) - { - base.Dispose(disposing); - if (disposing) - { - List.CollectionChanged -= CollectionChanged; - } - } - - private void CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) => NotifyDataSetChanged(); -} - -/// -/// Observable Collection Extensions -/// -public static class ObservableCollectionExtensions -{ - /// - /// Create ObservableCollectionAdapter from ObservableCollection - /// - /// - /// - /// - /// - /// - /// - public static ObservableCollectionAdapter ToAdapter(this ObservableCollection self, Func createRowView, Action setRowData, Func getId = null) => - new(self, createRowView, setRowData, getId); -} - -/// -/// ReadOnly Observable Collection Extensions -/// -public static class ReadOnlyObservableCollectionExtensions -{ - /// - /// Create ObservableCollectionAdapter from ReadOnlyObservableCollection - /// - /// - /// - /// - /// - /// - /// - public static ObservableCollectionAdapter ToAdapter(this ReadOnlyObservableCollection self, Func createRowView, Action setRowData, Func getId = null) => - new(self, createRowView, setRowData, getId); -} diff --git a/Source/ReactiveProperty.Platform.Android/ReactiveProperty.Platform.Android.csproj b/Source/ReactiveProperty.Platform.Android/ReactiveProperty.Platform.Android.csproj deleted file mode 100644 index bf137eb6..00000000 --- a/Source/ReactiveProperty.Platform.Android/ReactiveProperty.Platform.Android.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - net7.0-android;net8.0-android - ReactiveProperty.XamarinAndroid - ReactiveProperty.XamarinAndroid - true - key.snk - ReactiveProperty.XamarinAndroid provides many useful extension methods for .NET for Android that can be used with ReactiveProperty. - disable - - - - - - - - diff --git a/Source/ReactiveProperty.Platform.Android/key.snk b/Source/ReactiveProperty.Platform.Android/key.snk deleted file mode 100644 index 9f5bc066..00000000 Binary files a/Source/ReactiveProperty.Platform.Android/key.snk and /dev/null differ diff --git a/Source/ReactiveProperty.Platform.Blazor/ReactiveProperty.Platform.Blazor.csproj b/Source/ReactiveProperty.Platform.Blazor/ReactiveProperty.Platform.Blazor.csproj index 0ab12d4a..53f8431f 100644 --- a/Source/ReactiveProperty.Platform.Blazor/ReactiveProperty.Platform.Blazor.csproj +++ b/Source/ReactiveProperty.Platform.Blazor/ReactiveProperty.Platform.Blazor.csproj @@ -1,23 +1,16 @@ - net6.0;net7.0;net8.0 + net8.0 enable enable ReactiveProperty.Blazor - - - - - - - - - + + diff --git a/Source/ReactiveProperty.Platform.WPF/ReactiveProperty.Platform.WPF.csproj b/Source/ReactiveProperty.Platform.WPF/ReactiveProperty.Platform.WPF.csproj index 4b629964..e785b71a 100644 --- a/Source/ReactiveProperty.Platform.WPF/ReactiveProperty.Platform.WPF.csproj +++ b/Source/ReactiveProperty.Platform.WPF/ReactiveProperty.Platform.WPF.csproj @@ -1,7 +1,7 @@  - net6.0-windows;net7.0-windows;net8.0-windows;net472 + net6.0-windows;net8.0-windows;net472 ReactiveProperty.WPF true true @@ -10,7 +10,7 @@ - + diff --git a/Source/ReactiveProperty.Platform.iOS/BindingSupportExtensions.cs b/Source/ReactiveProperty.Platform.iOS/BindingSupportExtensions.cs deleted file mode 100644 index 40243641..00000000 --- a/Source/ReactiveProperty.Platform.iOS/BindingSupportExtensions.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Linq; -using System.Reactive.Linq; - -namespace Reactive.Bindings; - -/// -/// Binding Support Extensions -/// -public static class BindingSupportExtensions -{ - /// - /// Command binding method. - /// - /// Command type. - /// IObservable - /// Command - /// Command binding token - public static IDisposable SetCommand(this IObservable self, ReactiveCommand command) => - self - .Where(_ => command.CanExecute()) - .Subscribe(x => command.Execute(x)); - - /// - /// Command binding method. - /// - /// IObservable type - /// IObservable - /// Command - /// Command binding token - public static IDisposable SetCommand(this IObservable self, ReactiveCommand command) => - self - .Where(_ => command.CanExecute()) - .Subscribe(x => command.Execute()); -} diff --git a/Source/ReactiveProperty.Platform.iOS/IUICollectionViewDataSourceExtensions.cs b/Source/ReactiveProperty.Platform.iOS/IUICollectionViewDataSourceExtensions.cs deleted file mode 100644 index ee4777f9..00000000 --- a/Source/ReactiveProperty.Platform.iOS/IUICollectionViewDataSourceExtensions.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System; -using System.Linq; -using System.Linq.Expressions; -using System.Reactive; -using System.Reactive.Disposables; -using System.Reactive.Linq; -using Reactive.Bindings.Extensions; -using Reactive.Bindings.Internal; -using UIKit; - -namespace Reactive.Bindings; - -/// -/// IUI Collection View Data Source Extensions -/// -public static class IUICollectionViewDataSourceExtensions -{ - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingCollectionViewDataSource( - this TView self, - Expression> propertySelector, - ReactiveProperty source, Func> updateSourceTrigger = null) - where TView : IUICollectionViewDataSource - { - var d = new CompositeDisposable(); - - var isUpdating = false; - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null) - { - var getter = AccessorCache.LookupGet(propertySelector, out propertyName); - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }).AddTo(d); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Target value getter - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingCollectionViewDataSource( - this TView self, - Action setter, - Func getter, - ReactiveProperty source, - Func> updateSourceTrigger) - where TView : IUICollectionViewDataSource - { - var d = new CompositeDisposable(); - - var isUpdating = false; - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null && getter != null) - { - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingCollectionViewDataSource( - this TView self, - Action setter, - ReactiveProperty source) - where TView : IUICollectionViewDataSource - { - return SetBindingCollectionViewDataSource(self, setter, null, source, null); - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Data binding token - public static IDisposable SetBindingCollectionViewDataSource( - this TView self, - Expression> propertySelector, - ReadOnlyReactiveProperty source) - where TView : IUICollectionViewDataSource - { - var d = new CompositeDisposable(); - - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingCollectionViewDataSource( - this TView self, - Action setter, - ReadOnlyReactiveProperty source) - where TView : IUICollectionViewDataSource - { - var d = new CompositeDisposable(); - - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - - return d; - } -} diff --git a/Source/ReactiveProperty.Platform.iOS/IUITableViewDataSourceExtensions.cs b/Source/ReactiveProperty.Platform.iOS/IUITableViewDataSourceExtensions.cs deleted file mode 100644 index 2f68b646..00000000 --- a/Source/ReactiveProperty.Platform.iOS/IUITableViewDataSourceExtensions.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System; -using System.Linq; -using System.Linq.Expressions; -using System.Reactive; -using System.Reactive.Disposables; -using System.Reactive.Linq; -using Reactive.Bindings.Extensions; -using Reactive.Bindings.Internal; -using UIKit; - -namespace Reactive.Bindings; - -/// -/// IUI Table View Data Source Extensions -/// -public static class IUITableViewDataSourceExtensions -{ - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingTableViewDataSource( - this TView self, - Expression> propertySelector, - ReactiveProperty source, Func> updateSourceTrigger = null) - where TView : IUITableViewDataSource - { - var d = new CompositeDisposable(); - - var isUpdating = false; - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null) - { - var getter = AccessorCache.LookupGet(propertySelector, out propertyName); - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }).AddTo(d); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Target value getter - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingTableViewDataSource( - this TView self, - Action setter, - Func getter, - ReactiveProperty source, - Func> updateSourceTrigger) - where TView : IUITableViewDataSource - { - var d = new CompositeDisposable(); - - var isUpdating = false; - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null && getter != null) - { - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingTableViewDataSource( - this TView self, - Action setter, - ReactiveProperty source) - where TView : IUITableViewDataSource - { - return SetBindingTableViewDataSource(self, setter, null, source, null); - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Data binding token - public static IDisposable SetBindingTableViewDataSource( - this TView self, - Expression> propertySelector, - ReadOnlyReactiveProperty source) - where TView : IUITableViewDataSource - { - var d = new CompositeDisposable(); - - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingTableViewDataSource( - this TView self, - Action setter, - ReadOnlyReactiveProperty source) - where TView : IUITableViewDataSource - { - var d = new CompositeDisposable(); - - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - - return d; - } -} diff --git a/Source/ReactiveProperty.Platform.iOS/Internal/AccessorCache.cs b/Source/ReactiveProperty.Platform.iOS/Internal/AccessorCache.cs deleted file mode 100644 index dd7ac49d..00000000 --- a/Source/ReactiveProperty.Platform.iOS/Internal/AccessorCache.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Reflection; - -namespace Reactive.Bindings.Internal; - -internal static class AccessorCache -{ - private static readonly Dictionary getCache = new(); - private static readonly Dictionary setCache = new(); - - public static Func LookupGet(Expression> propertySelector, out string propertyName) - { - propertyName = ((MemberExpression)propertySelector.Body).Member.Name; - Delegate accessor; - - lock (getCache) - { - if (!getCache.TryGetValue(propertyName, out accessor)) - { - accessor = propertySelector.Compile(); - getCache.Add(propertyName, accessor); - } - } - - return (Func)accessor; - } - - public static Action LookupSet(Expression> propertySelector, out string propertyName) - { - propertyName = ((MemberExpression)propertySelector.Body).Member.Name; - Delegate accessor; - - lock (setCache) - { - if (!setCache.TryGetValue(propertyName, out accessor)) - { - accessor = CreateSetAccessor(propertySelector); - setCache.Add(propertyName, accessor); - } - } - - return (Action)accessor; - } - - private static Delegate CreateSetAccessor(Expression> propertySelector) - { - var propertyInfo = (PropertyInfo)((MemberExpression)propertySelector.Body).Member; - var selfParameter = Expression.Parameter(typeof(TType), "self"); - var valueParameter = Expression.Parameter(typeof(TProperty), "value"); - var body = Expression.Assign(Expression.Property(selfParameter, propertyInfo), valueParameter); - var lambda = Expression.Lambda>(body, selfParameter, valueParameter); - return lambda.Compile(); - } -} diff --git a/Source/ReactiveProperty.Platform.iOS/ReactiveProperty.Platform.iOS.csproj b/Source/ReactiveProperty.Platform.iOS/ReactiveProperty.Platform.iOS.csproj deleted file mode 100644 index 2b7be6e5..00000000 --- a/Source/ReactiveProperty.Platform.iOS/ReactiveProperty.Platform.iOS.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - net7.0-ios;net8.0-ios - ReactiveProperty.XamariniOS - ReactiveProperty.XamariniOS - true - key.snk - ReactiveProperty.XamariniOS provides many useful extension methods for .NET for iOS that can be used with ReactiveProperty. - disable - - - - - - - - diff --git a/Source/ReactiveProperty.Platform.iOS/UIBarItemExtensions.cs b/Source/ReactiveProperty.Platform.iOS/UIBarItemExtensions.cs deleted file mode 100644 index 4dfe04f0..00000000 --- a/Source/ReactiveProperty.Platform.iOS/UIBarItemExtensions.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System; -using System.Linq; -using System.Linq.Expressions; -using System.Reactive; -using System.Reactive.Disposables; -using System.Reactive.Linq; -using Reactive.Bindings.Extensions; -using Reactive.Bindings.Internal; -using UIKit; - -namespace Reactive.Bindings; - -/// -/// UI Bar Item Extensions -/// -public static class UIBarItemExtensions -{ - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingBarItem( - this TView self, - Expression> propertySelector, - ReactiveProperty source, Func> updateSourceTrigger = null) - where TView : UIBarItem - { - var d = new CompositeDisposable(); - - var isUpdating = false; - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null) - { - var getter = AccessorCache.LookupGet(propertySelector, out propertyName); - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }).AddTo(d); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Target value getter - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingBarItem( - this TView self, - Action setter, - Func getter, - ReactiveProperty source, - Func> updateSourceTrigger) - where TView : UIBarItem - { - var d = new CompositeDisposable(); - - var isUpdating = false; - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null && getter != null) - { - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingBarItem( - this TView self, - Action setter, - ReactiveProperty source) - where TView : UIBarItem - { - return SetBindingBarItem(self, setter, null, source, null); - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Data binding token - public static IDisposable SetBindingBarItem( - this TView self, - Expression> propertySelector, - ReadOnlyReactiveProperty source) - where TView : UIBarItem - { - var d = new CompositeDisposable(); - - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingBarItem( - this TView self, - Action setter, - ReadOnlyReactiveProperty source) - where TView : UIBarItem - { - var d = new CompositeDisposable(); - - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - - return d; - } -} diff --git a/Source/ReactiveProperty.Platform.iOS/UICollectionViewSourceExtensions.cs b/Source/ReactiveProperty.Platform.iOS/UICollectionViewSourceExtensions.cs deleted file mode 100644 index aa1cccb4..00000000 --- a/Source/ReactiveProperty.Platform.iOS/UICollectionViewSourceExtensions.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System; -using System.Linq; -using System.Linq.Expressions; -using System.Reactive; -using System.Reactive.Disposables; -using System.Reactive.Linq; -using Reactive.Bindings.Extensions; -using Reactive.Bindings.Internal; -using UIKit; - -namespace Reactive.Bindings; - -/// -/// UI Collection View Source Extensions -/// -public static class UICollectionViewSourceExtensions -{ - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingCollectionViewSource( - this TView self, - Expression> propertySelector, - ReactiveProperty source, Func> updateSourceTrigger = null) - where TView : UICollectionViewSource - { - var d = new CompositeDisposable(); - - var isUpdating = false; - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null) - { - var getter = AccessorCache.LookupGet(propertySelector, out propertyName); - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }).AddTo(d); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Target value getter - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingCollectionViewSource( - this TView self, - Action setter, - Func getter, - ReactiveProperty source, - Func> updateSourceTrigger) - where TView : UICollectionViewSource - { - var d = new CompositeDisposable(); - - var isUpdating = false; - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null && getter != null) - { - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingCollectionViewSource( - this TView self, - Action setter, - ReactiveProperty source) - where TView : UICollectionViewSource - { - return SetBindingCollectionViewSource(self, setter, null, source, null); - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Data binding token - public static IDisposable SetBindingCollectionViewSource( - this TView self, - Expression> propertySelector, - ReadOnlyReactiveProperty source) - where TView : UICollectionViewSource - { - var d = new CompositeDisposable(); - - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingCollectionViewSource( - this TView self, - Action setter, - ReadOnlyReactiveProperty source) - where TView : UICollectionViewSource - { - var d = new CompositeDisposable(); - - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - - return d; - } -} diff --git a/Source/ReactiveProperty.Platform.iOS/UIGestureRecognizerExtensions.cs b/Source/ReactiveProperty.Platform.iOS/UIGestureRecognizerExtensions.cs deleted file mode 100644 index 4163b5b2..00000000 --- a/Source/ReactiveProperty.Platform.iOS/UIGestureRecognizerExtensions.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System; -using System.Linq; -using System.Linq.Expressions; -using System.Reactive; -using System.Reactive.Disposables; -using System.Reactive.Linq; -using Reactive.Bindings.Extensions; -using Reactive.Bindings.Internal; -using UIKit; - -namespace Reactive.Bindings; - -/// -/// UI Gesture Recognizer Extensions -/// -public static class UIGestureRecognizerExtensions -{ - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingGestureRecognizer( - this TView self, - Expression> propertySelector, - ReactiveProperty source, Func> updateSourceTrigger = null) - where TView : UIGestureRecognizer - { - var d = new CompositeDisposable(); - - var isUpdating = false; - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null) - { - var getter = AccessorCache.LookupGet(propertySelector, out propertyName); - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }).AddTo(d); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Target value getter - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingGestureRecognizer( - this TView self, - Action setter, - Func getter, - ReactiveProperty source, - Func> updateSourceTrigger) - where TView : UIGestureRecognizer - { - var d = new CompositeDisposable(); - - var isUpdating = false; - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null && getter != null) - { - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingGestureRecognizer( - this TView self, - Action setter, - ReactiveProperty source) - where TView : UIGestureRecognizer - { - return SetBindingGestureRecognizer(self, setter, null, source, null); - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Data binding token - public static IDisposable SetBindingGestureRecognizer( - this TView self, - Expression> propertySelector, - ReadOnlyReactiveProperty source) - where TView : UIGestureRecognizer - { - var d = new CompositeDisposable(); - - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingGestureRecognizer( - this TView self, - Action setter, - ReadOnlyReactiveProperty source) - where TView : UIGestureRecognizer - { - var d = new CompositeDisposable(); - - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - - return d; - } -} diff --git a/Source/ReactiveProperty.Platform.iOS/UIResponderExtensions.cs b/Source/ReactiveProperty.Platform.iOS/UIResponderExtensions.cs deleted file mode 100644 index 8a17b3e9..00000000 --- a/Source/ReactiveProperty.Platform.iOS/UIResponderExtensions.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System; -using System.Linq; -using System.Linq.Expressions; -using System.Reactive; -using System.Reactive.Disposables; -using System.Reactive.Linq; -using Reactive.Bindings.Extensions; -using Reactive.Bindings.Internal; -using UIKit; - -namespace Reactive.Bindings; - -/// -/// UI Responder Extensions -/// -public static class UIResponderExtensions -{ - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBinding( - this TView self, - Expression> propertySelector, - ReactiveProperty source, Func> updateSourceTrigger = null) - where TView : UIResponder - { - var d = new CompositeDisposable(); - - var isUpdating = false; - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null) - { - var getter = AccessorCache.LookupGet(propertySelector, out propertyName); - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }).AddTo(d); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Target value getter - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBinding( - this TView self, - Action setter, - Func getter, - ReactiveProperty source, - Func> updateSourceTrigger) - where TView : UIResponder - { - var d = new CompositeDisposable(); - - var isUpdating = false; - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null && getter != null) - { - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBinding( - this TView self, - Action setter, - ReactiveProperty source) - where TView : UIResponder - { - return SetBinding(self, setter, null, source, null); - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Data binding token - public static IDisposable SetBinding( - this TView self, - Expression> propertySelector, - ReadOnlyReactiveProperty source) - where TView : UIResponder - { - var d = new CompositeDisposable(); - - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBinding( - this TView self, - Action setter, - ReadOnlyReactiveProperty source) - where TView : UIResponder - { - var d = new CompositeDisposable(); - - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - - return d; - } -} diff --git a/Source/ReactiveProperty.Platform.iOS/UITableViewSourceExtensions.cs b/Source/ReactiveProperty.Platform.iOS/UITableViewSourceExtensions.cs deleted file mode 100644 index 26da75f6..00000000 --- a/Source/ReactiveProperty.Platform.iOS/UITableViewSourceExtensions.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System; -using System.Linq; -using System.Linq.Expressions; -using System.Reactive; -using System.Reactive.Disposables; -using System.Reactive.Linq; -using Reactive.Bindings.Extensions; -using Reactive.Bindings.Internal; -using UIKit; - -namespace Reactive.Bindings; - -/// -/// UI Table View Source Extensions -/// -public static class UITableViewSourceExtensions -{ - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingTableViewSource( - this TView self, - Expression> propertySelector, - ReactiveProperty source, Func> updateSourceTrigger = null) - where TView : UITableViewSource - { - var d = new CompositeDisposable(); - - var isUpdating = false; - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null) - { - var getter = AccessorCache.LookupGet(propertySelector, out propertyName); - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }).AddTo(d); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Target value getter - /// Source property - /// Update source trigger - /// Data binding token - public static IDisposable SetBindingTableViewSource( - this TView self, - Action setter, - Func getter, - ReactiveProperty source, - Func> updateSourceTrigger) - where TView : UITableViewSource - { - var d = new CompositeDisposable(); - - var isUpdating = false; - source - .Where(_ => !isUpdating) - .Subscribe(x => setter(self, x)) - .AddTo(d); - if (updateSourceTrigger != null && getter != null) - { - updateSourceTrigger(self).Subscribe(_ => - { - isUpdating = true; - try - { - source.Value = getter(self); - } - finally - { - isUpdating = false; - } - }); - } - - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingTableViewSource( - this TView self, - Action setter, - ReactiveProperty source) - where TView : UITableViewSource - { - return SetBindingTableViewSource(self, setter, null, source, null); - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target property selector - /// Source property - /// Data binding token - public static IDisposable SetBindingTableViewSource( - this TView self, - Expression> propertySelector, - ReadOnlyReactiveProperty source) - where TView : UITableViewSource - { - var d = new CompositeDisposable(); - - var setter = AccessorCache.LookupSet(propertySelector, out var propertyName); - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - return d; - } - - /// - /// Data binding method. - /// - /// View type - /// Property type - /// View - /// Target value setter - /// Source property - /// Data binding token - public static IDisposable SetBindingTableViewSource( - this TView self, - Action setter, - ReadOnlyReactiveProperty source) - where TView : UITableViewSource - { - var d = new CompositeDisposable(); - - source - .Subscribe(x => setter(self, x)) - .AddTo(d); - - return d; - } -} diff --git a/Source/ReactiveProperty.Platform.iOS/key.snk b/Source/ReactiveProperty.Platform.iOS/key.snk deleted file mode 100644 index 9f5bc066..00000000 Binary files a/Source/ReactiveProperty.Platform.iOS/key.snk and /dev/null differ diff --git a/Test/ReactiveProperty.Blazor.Tests/ReactiveProperty.Blazor.Tests.csproj b/Test/ReactiveProperty.Blazor.Tests/ReactiveProperty.Blazor.Tests.csproj index e12be979..94891bd1 100644 --- a/Test/ReactiveProperty.Blazor.Tests/ReactiveProperty.Blazor.Tests.csproj +++ b/Test/ReactiveProperty.Blazor.Tests/ReactiveProperty.Blazor.Tests.csproj @@ -8,11 +8,11 @@ - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj b/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj index 34cd229e..0ce925eb 100644 --- a/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj +++ b/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj @@ -11,17 +11,17 @@ true - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - - + + + + diff --git a/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj b/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj index 307ffe1e..80939861 100644 --- a/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj +++ b/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj @@ -11,13 +11,13 @@ - + - - - - + + + +