From 388e2c7eccab4338a456da5a5e37a6c72c88a58e Mon Sep 17 00:00:00 2001 From: Glenn <5834289+glennawatson@users.noreply.github.com> Date: Tue, 11 Jun 2019 17:12:41 +1000 Subject: [PATCH] Update to produce correct output for platform based generation. (#8) --- src/Pharmacist.Console/Program.cs | 2 +- src/Pharmacist.Core/AutoPlatform.cs | 15 - .../PlatformExtractors/NetFrameworkBase.cs | 2 +- .../Extractors/PlatformExtractors/UWP.cs | 1 + .../Generators/DelegateGenerator.cs | 42 +- .../Generation/RoslynHelpers.cs | 20 +- .../ObservablesForEventGenerator.cs | 5 +- .../Utilities/StackExtensions.cs | 69 + ...ts.EventBuilderProject.net472.approved.txt | 13 +- ...tBuilderProject.netcoreapp2.2.approved.txt | 13 +- .../Approved/Android.approved.txt | 3010 ++ .../Approved/Mac.approved.txt | 9437 ++++++ .../Approved/TVOS.approved.txt | 5690 ++++ .../Tizen.NET.API4.4.0.1.14152.approved.txt | 0 .../Approved/UWP.approved.txt | 24010 ++++++++++++++++ .../Approved/WPF.approved.txt | 4474 +++ .../Approved/Winforms.approved.txt | 7133 +++++ .../Xamarin.Essentials.1.1.0.approved.txt | 0 .../Xamarin.Forms.4.0.0.482894.approved.txt | 0 .../Approved/iOS.approved.txt | 11435 ++++++++ .../IntegrationTests/IntegrationTestHelper.cs | 84 +- .../PlatformsIntegrationTests.cs | 41 + src/Pharmacist.Tests/Pharmacist.Tests.csproj | 10 +- 23 files changed, 65424 insertions(+), 82 deletions(-) create mode 100644 src/Pharmacist.Core/Utilities/StackExtensions.cs create mode 100644 src/Pharmacist.Tests/IntegrationTests/Approved/Android.approved.txt create mode 100644 src/Pharmacist.Tests/IntegrationTests/Approved/Mac.approved.txt create mode 100644 src/Pharmacist.Tests/IntegrationTests/Approved/TVOS.approved.txt rename src/Pharmacist.Tests/IntegrationTests/{ => Approved}/Tizen.NET.API4.4.0.1.14152.approved.txt (100%) create mode 100644 src/Pharmacist.Tests/IntegrationTests/Approved/UWP.approved.txt create mode 100644 src/Pharmacist.Tests/IntegrationTests/Approved/WPF.approved.txt create mode 100644 src/Pharmacist.Tests/IntegrationTests/Approved/Winforms.approved.txt rename src/Pharmacist.Tests/IntegrationTests/{ => Approved}/Xamarin.Essentials.1.1.0.approved.txt (100%) rename src/Pharmacist.Tests/IntegrationTests/{ => Approved}/Xamarin.Forms.4.0.0.482894.approved.txt (100%) create mode 100644 src/Pharmacist.Tests/IntegrationTests/Approved/iOS.approved.txt create mode 100644 src/Pharmacist.Tests/IntegrationTests/PlatformsIntegrationTests.cs diff --git a/src/Pharmacist.Console/Program.cs b/src/Pharmacist.Console/Program.cs index 7f17164..42a741b 100644 --- a/src/Pharmacist.Console/Program.cs +++ b/src/Pharmacist.Console/Program.cs @@ -56,7 +56,7 @@ public static async Task Main(string[] args) referenceAssembliesLocation = await ReferenceLocator.GetReferenceLocation().ConfigureAwait(false); } - await ObservablesForEventGenerator.ExtractEventsFromPlatforms(options.OutputPath, options.OutputPrefix, referenceAssembliesLocation, options.Platforms).ConfigureAwait(false); + await ObservablesForEventGenerator.ExtractEventsFromPlatforms(options.OutputPath, options.OutputPrefix, ".cs", referenceAssembliesLocation, options.Platforms).ConfigureAwait(false); return ExitCode.Success; } diff --git a/src/Pharmacist.Core/AutoPlatform.cs b/src/Pharmacist.Core/AutoPlatform.cs index abfa778..f81240e 100644 --- a/src/Pharmacist.Core/AutoPlatform.cs +++ b/src/Pharmacist.Core/AutoPlatform.cs @@ -27,21 +27,11 @@ public enum AutoPlatform /// Mac, - /// - /// Tizen platform. - /// - Tizen4, - /// /// WPF platform. /// WPF, - /// - /// Xamarin Forms platform. - /// - XamForms, - /// /// UWP platform. /// @@ -56,10 +46,5 @@ public enum AutoPlatform /// TV OS platform. /// TVOS, - - /// - /// Xamarin Essentials platform. - /// - Essentials } } diff --git a/src/Pharmacist.Core/Extractors/PlatformExtractors/NetFrameworkBase.cs b/src/Pharmacist.Core/Extractors/PlatformExtractors/NetFrameworkBase.cs index 2a6cad9..75f40f6 100644 --- a/src/Pharmacist.Core/Extractors/PlatformExtractors/NetFrameworkBase.cs +++ b/src/Pharmacist.Core/Extractors/PlatformExtractors/NetFrameworkBase.cs @@ -22,7 +22,7 @@ namespace Pharmacist.Core.Extractors.PlatformExtractors /// internal abstract class NetFrameworkBase : BasePlatform { - private static readonly PackageIdentity ReferenceNuGet = new PackageIdentity("Microsoft.NETFramework.ReferenceAssemblies", new NuGetVersion("1.0.0-preview.2")); + private static readonly PackageIdentity ReferenceNuGet = new PackageIdentity("Microsoft.NETFramework.ReferenceAssemblies.net461", new NuGetVersion("1.0.0-preview.2")); private static readonly NuGetFramework ReferenceFramework = FrameworkConstants.CommonFrameworks.Net461; diff --git a/src/Pharmacist.Core/Extractors/PlatformExtractors/UWP.cs b/src/Pharmacist.Core/Extractors/PlatformExtractors/UWP.cs index d4f521a..6677a34 100644 --- a/src/Pharmacist.Core/Extractors/PlatformExtractors/UWP.cs +++ b/src/Pharmacist.Core/Extractors/PlatformExtractors/UWP.cs @@ -25,6 +25,7 @@ public override Task Extract(string referenceAssembliesLocation) } Assemblies = new[] { @"C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.17763.0\Windows.winmd" }; + SearchDirectories = new[] { @"C:\Windows\Microsoft.NET\Framework\v4.0.30319" }; return Task.CompletedTask; } diff --git a/src/Pharmacist.Core/Generation/Generators/DelegateGenerator.cs b/src/Pharmacist.Core/Generation/Generators/DelegateGenerator.cs index 4ef0c60..cdd6ef6 100644 --- a/src/Pharmacist.Core/Generation/Generators/DelegateGenerator.cs +++ b/src/Pharmacist.Core/Generation/Generators/DelegateGenerator.cs @@ -29,28 +29,42 @@ internal static class DelegateGenerator /// /// The declarations to add. /// An array of namespace declarations. - internal static IEnumerable Generate(IEnumerable<(ITypeDefinition typeDefinition, bool isAbstract, IEnumerable methods)> declarations) => declarations.GroupBy(x => x.typeDefinition.Namespace) - .Select(x => SyntaxFactory.NamespaceDeclaration(SyntaxFactory.IdentifierName(x.Key)).WithMembers(SyntaxFactory.List(GenerateClasses(x)))); + internal static IEnumerable Generate(IEnumerable<(ITypeDefinition typeDefinition, bool isAbstract, IEnumerable methods)> declarations) + { + foreach (var groupedDeclarations in declarations.GroupBy(x => x.typeDefinition.Namespace)) + { + var namespaceName = groupedDeclarations.Key; + var members = new List(); + + members.AddRange(groupedDeclarations.OrderBy(x => x.typeDefinition.Name).Select(x => GenerateClass(x.typeDefinition, x.isAbstract, x.methods))); + + if (members.Count > 0) + { + yield return SyntaxFactory + .NamespaceDeclaration(SyntaxFactory.IdentifierName(namespaceName)) + .WithMembers(SyntaxFactory.List(members)); + } + } + } /// /// Generates our helper classes with the observables. /// - /// Our class declarations along with the methods we want to generate the values for. + /// The type definition containing the information. + /// If the delegates are abstract. + /// The methods to generate delegate overloads for. /// The generated class declarations. - private static IEnumerable GenerateClasses(IEnumerable<(ITypeDefinition typeDefinition, bool isAbstract, IEnumerable methods)> declarations) + private static ClassDeclarationSyntax GenerateClass(ITypeDefinition typeDefinition, bool isAbstract, IEnumerable methods) { - foreach (var declaration in declarations) - { - var modifiers = declaration.typeDefinition.IsAbstract || declaration.isAbstract + var modifiers = typeDefinition.IsAbstract || isAbstract ? SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.PublicKeyword), SyntaxFactory.Token(SyntaxKind.AbstractKeyword), SyntaxFactory.Token(SyntaxKind.PartialKeyword)) : SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.PublicKeyword), SyntaxFactory.Token(SyntaxKind.PartialKeyword)); - yield return SyntaxFactory.ClassDeclaration(declaration.typeDefinition.Name + "Rx") + return SyntaxFactory.ClassDeclaration(typeDefinition.Name + "Rx") .WithModifiers(modifiers) - .WithMembers(SyntaxFactory.List(GenerateObservableMembers(declaration.methods))) - .WithBaseList(SyntaxFactory.BaseList(SyntaxFactory.SingletonSeparatedList(SyntaxFactory.SimpleBaseType(SyntaxFactory.IdentifierName(declaration.typeDefinition.GenerateFullGenericName()))))) - .WithLeadingTrivia(XmlSyntaxFactory.GenerateSummarySeeAlsoComment("Wraps delegates events from {0} into Observables.", declaration.typeDefinition.GenerateFullGenericName())) - .WithObsoleteAttribute(declaration.typeDefinition); - } + .WithMembers(SyntaxFactory.List(GenerateObservableMembers(methods))) + .WithBaseList(SyntaxFactory.BaseList(SyntaxFactory.SingletonSeparatedList(SyntaxFactory.SimpleBaseType(SyntaxFactory.IdentifierName(typeDefinition.GenerateFullGenericName()))))) + .WithLeadingTrivia(XmlSyntaxFactory.GenerateSummarySeeAlsoComment("Wraps delegates events from {0} into Observables.", typeDefinition.GenerateFullGenericName())) + .WithObsoleteAttribute(typeDefinition); } private static IEnumerable GenerateObservableMembers(IEnumerable methods) @@ -59,7 +73,7 @@ private static IEnumerable GenerateObservableMembers(IE var fieldDeclarations = new List(); var propertyDeclarations = new List(); - foreach (var method in methods) + foreach (var method in methods.OrderBy(y => y.Name)) { var observableName = "_" + char.ToLowerInvariant(method.Name[0]) + method.Name.Substring(1); methodDeclarations.Add(GenerateMethodDeclaration(observableName, method)); diff --git a/src/Pharmacist.Core/Generation/RoslynHelpers.cs b/src/Pharmacist.Core/Generation/RoslynHelpers.cs index d02111b..ee34763 100644 --- a/src/Pharmacist.Core/Generation/RoslynHelpers.cs +++ b/src/Pharmacist.Core/Generation/RoslynHelpers.cs @@ -40,14 +40,22 @@ public static EventBuilderCompiler GetCompilation(IEnumerable targetAsse { var modules = targetAssemblies.Select(x => new PEFile(x, PEStreamOptions.PrefetchMetadata)); + var searchStack = new Stack(searchDirectories.Select(x => new DirectoryInfo(x))); var foundDirectories = new HashSet(); - foreach (var searchDirectory in searchDirectories) + + while (searchStack.Count != 0) { - var directoryInfo = new DirectoryInfo(searchDirectory); - foundDirectories.UnionWith( - directoryInfo.EnumerateDirectories("*.*", SearchOption.AllDirectories) - .Where(x => x.EnumerateFiles().Any(file => file.FullName.EndsWith(".dll", StringComparison.InvariantCultureIgnoreCase) || file.FullName.EndsWith(".winmd", StringComparison.InvariantCultureIgnoreCase))) - .Select(x => x.FullName)); + var directoryInfo = searchStack.Pop(); + + if (directoryInfo.EnumerateFiles().Any(file => file.FullName.EndsWith(".dll", StringComparison.InvariantCultureIgnoreCase) || file.FullName.EndsWith(".winmd", StringComparison.InvariantCultureIgnoreCase))) + { + foundDirectories.Add(directoryInfo.FullName); + } + + foreach (var directory in directoryInfo.EnumerateDirectories()) + { + searchStack.Push(directory); + } } return new EventBuilderCompiler(modules, foundDirectories.ToList()); diff --git a/src/Pharmacist.Core/ObservablesForEventGenerator.cs b/src/Pharmacist.Core/ObservablesForEventGenerator.cs index 9c94eeb..9b3ada6 100644 --- a/src/Pharmacist.Core/ObservablesForEventGenerator.cs +++ b/src/Pharmacist.Core/ObservablesForEventGenerator.cs @@ -56,10 +56,11 @@ public static class ObservablesForEventGenerator /// /// The path where to output the files. /// The prefix to add to the start of the output file. + /// The suffix to add to the end of output file names. /// A directory path to where reference assemblies can be located. /// The platforms to generate for. /// A task to monitor the progress. - public static async Task ExtractEventsFromPlatforms(string outputPath, string prefix, string defaultReferenceAssemblyLocation, IEnumerable platforms) + public static async Task ExtractEventsFromPlatforms(string outputPath, string prefix, string suffix, string defaultReferenceAssemblyLocation, IEnumerable platforms) { foreach (var platform in platforms) { @@ -67,7 +68,7 @@ public static async Task ExtractEventsFromPlatforms(string outputPath, string pr var platformExtractor = _platformExtractors[platform]; await platformExtractor.Extract(defaultReferenceAssemblyLocation).ConfigureAwait(false); - using (var stream = new FileStream(Path.Combine(outputPath, prefix + ".cs"), FileMode.Create, FileAccess.Write)) + using (var stream = new FileStream(Path.Combine(outputPath, $"{prefix}{platform}{suffix}"), FileMode.Create, FileAccess.Write)) { await WriteHeader(stream).ConfigureAwait(false); await ExtractEventsFromAssemblies(stream, platformExtractor.Assemblies, platformExtractor.SearchDirectories).ConfigureAwait(false); diff --git a/src/Pharmacist.Core/Utilities/StackExtensions.cs b/src/Pharmacist.Core/Utilities/StackExtensions.cs new file mode 100644 index 0000000..f59bb05 --- /dev/null +++ b/src/Pharmacist.Core/Utilities/StackExtensions.cs @@ -0,0 +1,69 @@ +// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; +using System.Collections.Generic; +using System.Text; + +namespace Pharmacist.Core.Utilities +{ + /// + /// Extension methods for stack based operations. + /// + internal static class StackExtensions + { + public static void PushRange(this Stack stack, IEnumerable items) + { + foreach (var item in items) + { + stack.Push(item); + } + } + + public static int TryPopRange(this Stack stack, T[] items) + { + return TryPopRange(stack, items, 0, items.Length); + } + + public static int TryPopRange(this Stack stack, T[] items, int startIndex, int count) + { + if (items == null) + { + throw new ArgumentNullException(nameof(items)); + } + + if (count < 0) + { + throw new ArgumentOutOfRangeException(nameof(count), "The count must be greater than 0."); + } + + int length = items.Length; + if (startIndex >= length || startIndex < 0) + { + throw new ArgumentOutOfRangeException(nameof(startIndex), "The start index is out of range. It must between 0 and less than the length of the array."); + } + + if (length - count < startIndex) + { + // instead of (startIndex + count > items.Length) to prevent overflow + throw new ArgumentException("The start index is out of range. It must between 0 and less than the length of the array."); + } + + if (count == 0) + { + return 0; + } + + int nodesCount = stack.Count > count ? count : stack.Count; + + for (int i = startIndex; i < startIndex + nodesCount; i++) + { + items[i] = stack.Pop(); + } + + return nodesCount; + } + } +} diff --git a/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.net472.approved.txt b/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.net472.approved.txt index 01fda5d..439af79 100644 --- a/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.net472.approved.txt +++ b/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.net472.approved.txt @@ -8,20 +8,17 @@ namespace Pharmacist.Core Android = 0, iOS = 1, Mac = 2, - Tizen4 = 3, - WPF = 4, - XamForms = 5, - UWP = 6, - Winforms = 7, - TVOS = 8, - Essentials = 9, + WPF = 3, + UWP = 4, + Winforms = 5, + TVOS = 6, } public class static ObservablesForEventGenerator { public static System.Threading.Tasks.Task ExtractEventsFromAssemblies(System.IO.Stream outputStream, System.Collections.Generic.IEnumerable assemblyPaths, System.Collections.Generic.IEnumerable searchDirectories) { } public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.Stream outputStream, System.Collections.Generic.IReadOnlyCollection packages, System.Collections.Generic.IReadOnlyCollection frameworks) { } public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.Stream outputStream, System.Collections.Generic.IReadOnlyCollection packages, System.Collections.Generic.IReadOnlyCollection frameworks) { } - public static System.Threading.Tasks.Task ExtractEventsFromPlatforms(string outputPath, string prefix, string defaultReferenceAssemblyLocation, System.Collections.Generic.IEnumerable platforms) { } + public static System.Threading.Tasks.Task ExtractEventsFromPlatforms(string outputPath, string prefix, string suffix, string defaultReferenceAssemblyLocation, System.Collections.Generic.IEnumerable platforms) { } public static System.Threading.Tasks.Task WriteHeader(System.IO.Stream outputStream) { } public static System.Threading.Tasks.Task WriteHeader(System.IO.Stream outputStream, System.Collections.Generic.IReadOnlyCollection libraryRanges) { } } diff --git a/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.netcoreapp2.2.approved.txt b/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.netcoreapp2.2.approved.txt index 60d9502..879ef52 100644 --- a/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.netcoreapp2.2.approved.txt +++ b/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.netcoreapp2.2.approved.txt @@ -8,20 +8,17 @@ namespace Pharmacist.Core Android = 0, iOS = 1, Mac = 2, - Tizen4 = 3, - WPF = 4, - XamForms = 5, - UWP = 6, - Winforms = 7, - TVOS = 8, - Essentials = 9, + WPF = 3, + UWP = 4, + Winforms = 5, + TVOS = 6, } public class static ObservablesForEventGenerator { public static System.Threading.Tasks.Task ExtractEventsFromAssemblies(System.IO.Stream outputStream, System.Collections.Generic.IEnumerable assemblyPaths, System.Collections.Generic.IEnumerable searchDirectories) { } public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.Stream outputStream, System.Collections.Generic.IReadOnlyCollection packages, System.Collections.Generic.IReadOnlyCollection frameworks) { } public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.Stream outputStream, System.Collections.Generic.IReadOnlyCollection packages, System.Collections.Generic.IReadOnlyCollection frameworks) { } - public static System.Threading.Tasks.Task ExtractEventsFromPlatforms(string outputPath, string prefix, string defaultReferenceAssemblyLocation, System.Collections.Generic.IEnumerable platforms) { } + public static System.Threading.Tasks.Task ExtractEventsFromPlatforms(string outputPath, string prefix, string suffix, string defaultReferenceAssemblyLocation, System.Collections.Generic.IEnumerable platforms) { } public static System.Threading.Tasks.Task WriteHeader(System.IO.Stream outputStream) { } public static System.Threading.Tasks.Task WriteHeader(System.IO.Stream outputStream, System.Collections.Generic.IReadOnlyCollection libraryRanges) { } } diff --git a/src/Pharmacist.Tests/IntegrationTests/Approved/Android.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/Android.approved.txt new file mode 100644 index 0000000..34a6e8c --- /dev/null +++ b/src/Pharmacist.Tests/IntegrationTests/Approved/Android.approved.txt @@ -0,0 +1,3010 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using global::System; +using global::System.Reactive; +using global::System.Reactive.Linq; +using global::System.Reactive.Subjects; + +using global::Pharmacist.Common; + +namespace Android.AccessibilityServices +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SoftKeyboardControllerEvents Events(this global::Android.AccessibilityServices.AccessibilityService.SoftKeyboardController item) => new SoftKeyboardControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SoftKeyboardControllerEvents + { + private readonly global::Android.AccessibilityServices.AccessibilityService.SoftKeyboardController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SoftKeyboardControllerEvents(global::Android.AccessibilityServices.AccessibilityService.SoftKeyboardController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ShowModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.AccessibilityServices.AccessibilityService.SoftKeyboardController.ShowModeChangedEventArgs>(x => _data.ShowModeChanged += x, x => _data.ShowModeChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Accounts +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AccountManagerEvents Events(this global::Android.Accounts.AccountManager item) => new AccountManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AccountManagerEvents + { + private readonly global::Android.Accounts.AccountManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AccountManagerEvents(global::Android.Accounts.AccountManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AccountsUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Accounts.AccountsUpdateEventArgs>(x => _data.AccountsUpdated += x, x => _data.AccountsUpdated -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Animation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AnimatorEvents Events(this global::Android.Animation.Animator item) => new AnimatorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LayoutTransitionEvents Events(this global::Android.Animation.LayoutTransition item) => new LayoutTransitionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TimeAnimatorEvents Events(this global::Android.Animation.TimeAnimator item) => new TimeAnimatorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ValueAnimatorEvents Events(this global::Android.Animation.ValueAnimator item) => new ValueAnimatorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AnimatorEvents + { + private readonly global::Android.Animation.Animator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AnimatorEvents(global::Android.Animation.Animator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationCancel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnimationCancel += x, x => _data.AnimationCancel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationEnd => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnimationEnd += x, x => _data.AnimationEnd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationPause => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Animation.Animator.AnimationPauseEventArgs>(x => _data.AnimationPause += x, x => _data.AnimationPause -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationRepeat => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnimationRepeat += x, x => _data.AnimationRepeat -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationResume => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Animation.Animator.AnimationResumeEventArgs>(x => _data.AnimationResume += x, x => _data.AnimationResume -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationStart => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnimationStart += x, x => _data.AnimationStart -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LayoutTransitionEvents + { + private readonly global::Android.Animation.LayoutTransition _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LayoutTransitionEvents(global::Android.Animation.LayoutTransition data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndTransition => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Animation.LayoutTransition.EndTransitionEventArgs>(x => _data.EndTransition += x, x => _data.EndTransition -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StartTransition => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Animation.LayoutTransition.StartTransitionEventArgs>(x => _data.StartTransition += x, x => _data.StartTransition -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TimeAnimatorEvents + { + private readonly global::Android.Animation.TimeAnimator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TimeAnimatorEvents(global::Android.Animation.TimeAnimator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Time => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Animation.TimeAnimator.TimeEventArgs>(x => _data.Time += x, x => _data.Time -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ValueAnimatorEvents + { + private readonly global::Android.Animation.ValueAnimator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ValueAnimatorEvents(global::Android.Animation.ValueAnimator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Update => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Animation.ValueAnimator.AnimatorUpdateEventArgs>(x => _data.Update += x, x => _data.Update -= x).Select(x => x.EventArgs); + } +} + +namespace Android.App +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ActionBarEvents Events(this global::Android.App.ActionBar item) => new ActionBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BuilderEvents Events(this global::Android.App.AlertDialog.Builder item) => new BuilderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DatePickerDialogEvents Events(this global::Android.App.DatePickerDialog item) => new DatePickerDialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DialogEvents Events(this global::Android.App.Dialog item) => new DialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public static FragmentBreadCrumbsEvents Events(this global::Android.App.FragmentBreadCrumbs item) => new FragmentBreadCrumbsEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FragmentManagerEvents Events(this global::Android.App.FragmentManager item) => new FragmentManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaRouteActionProviderEvents Events(this global::Android.App.MediaRouteActionProvider item) => new MediaRouteActionProviderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaRouteButtonEvents Events(this global::Android.App.MediaRouteButton item) => new MediaRouteButtonEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SearchManagerEvents Events(this global::Android.App.SearchManager item) => new SearchManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public static TabEvents Events(this global::Android.App.ActionBar.Tab item) => new TabEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UiAutomationEvents Events(this global::Android.App.UiAutomation item) => new UiAutomationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ActionBarEvents + { + private readonly global::Android.App.ActionBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ActionBarEvents(global::Android.App.ActionBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuVisibility => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.App.ActionBar.MenuVisibilityEventArgs>(x => _data.MenuVisibility += x, x => _data.MenuVisibility -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BuilderEvents + { + private readonly global::Android.App.AlertDialog.Builder _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BuilderEvents(global::Android.App.AlertDialog.Builder data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.ItemSelectedEventArgs>(x => _data.ItemSelected += x, x => _data.ItemSelected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Use NothingSelected event instead", false)] + public global::System.IObservable ItemSelectionCleared => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemSelectionCleared += x, x => _data.ItemSelectionCleared -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NothingSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.NothingSelectedEventArgs>(x => _data.NothingSelected += x, x => _data.NothingSelected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DatePickerDialogEvents + { + private readonly global::Android.App.DatePickerDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DatePickerDialogEvents(global::Android.App.DatePickerDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DateSet => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.App.DatePickerDialog.DateSetEventArgs>(x => _data.DateSet += x, x => _data.DateSet -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DialogEvents + { + private readonly global::Android.App.Dialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DialogEvents(global::Android.App.Dialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CancelEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CancelEvent += x, x => _data.CancelEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DismissEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DismissEvent += x, x => _data.DismissEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Content.DialogKeyEventArgs>(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ShowEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ShowEvent += x, x => _data.ShowEvent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public class FragmentBreadCrumbsEvents + { + private readonly global::Android.App.FragmentBreadCrumbs _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FragmentBreadCrumbsEvents(global::Android.App.FragmentBreadCrumbs data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BreadCrumbClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.App.FragmentBreadCrumbs.BreadCrumbClickEventArgs>(x => _data.BreadCrumbClick += x, x => _data.BreadCrumbClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FragmentManagerEvents + { + private readonly global::Android.App.FragmentManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FragmentManagerEvents(global::Android.App.FragmentManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackStackChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackStackChanged += x, x => _data.BackStackChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaRouteActionProviderEvents + { + private readonly global::Android.App.MediaRouteActionProvider _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaRouteActionProviderEvents(global::Android.App.MediaRouteActionProvider data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ExtendedSettingsClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ExtendedSettingsClick += x, x => _data.ExtendedSettingsClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaRouteButtonEvents + { + private readonly global::Android.App.MediaRouteButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaRouteButtonEvents(global::Android.App.MediaRouteButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ExtendedSettingsClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ExtendedSettingsClick += x, x => _data.ExtendedSettingsClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SearchManagerEvents + { + private readonly global::Android.App.SearchManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SearchManagerEvents(global::Android.App.SearchManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Cancel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Cancel += x, x => _data.Cancel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Dismiss => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Dismiss += x, x => _data.Dismiss -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public class TabEvents + { + private readonly global::Android.App.ActionBar.Tab _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TabEvents(global::Android.App.ActionBar.Tab data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabReselected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.App.ActionBar.TabEventArgs>(x => _data.TabReselected += x, x => _data.TabReselected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.App.ActionBar.TabEventArgs>(x => _data.TabSelected += x, x => _data.TabSelected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabUnselected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.App.ActionBar.TabEventArgs>(x => _data.TabUnselected += x, x => _data.TabUnselected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UiAutomationEvents + { + private readonly global::Android.App.UiAutomation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UiAutomationEvents(global::Android.App.UiAutomation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AccessibilityEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.App.UiAutomation.AccessibilityEventEventArgs>(x => _data.AccessibilityEvent += x, x => _data.AccessibilityEvent -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Content +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ClipboardManagerEvents Events(this global::Android.Content.ClipboardManager item) => new ClipboardManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ClipboardManagerEvents + { + private readonly global::Android.Content.ClipboardManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ClipboardManagerEvents(global::Android.Content.ClipboardManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PrimaryClipChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PrimaryClipChanged += x, x => _data.PrimaryClipChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Drm +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DrmManagerClientEvents Events(this global::Android.Drm.DrmManagerClient item) => new DrmManagerClientEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DrmManagerClientEvents + { + private readonly global::Android.Drm.DrmManagerClient _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DrmManagerClientEvents(global::Android.Drm.DrmManagerClient data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Error => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Drm.DrmManagerClient.ErrorEventArgs>(x => _data.Error += x, x => _data.Error -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Event => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Drm.DrmManagerClient.EventEventArgs>(x => _data.Event += x, x => _data.Event -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Info => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Drm.DrmManagerClient.InfoEventArgs>(x => _data.Info += x, x => _data.Info -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Gestures +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GestureOverlayViewEvents Events(this global::Android.Gestures.GestureOverlayView item) => new GestureOverlayViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GestureOverlayViewEvents + { + private readonly global::Android.Gestures.GestureOverlayView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GestureOverlayViewEvents(global::Android.Gestures.GestureOverlayView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GestureCancelled => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Gestures.GestureOverlayView.GestureCancelledEventArgs>(x => _data.GestureCancelled += x, x => _data.GestureCancelled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GestureEnded => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Gestures.GestureOverlayView.GestureEndedEventArgs>(x => _data.GestureEnded += x, x => _data.GestureEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GestureEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Gestures.GestureOverlayView.GestureEventArgs>(x => _data.GestureEvent += x, x => _data.GestureEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GesturePerformed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Gestures.GestureOverlayView.GesturePerformedEventArgs>(x => _data.GesturePerformed += x, x => _data.GesturePerformed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GestureStarted => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Gestures.GestureOverlayView.GestureStartedEventArgs>(x => _data.GestureStarted += x, x => _data.GestureStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GesturingEnded => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Gestures.GestureOverlayView.GesturingEndedEventArgs>(x => _data.GesturingEnded += x, x => _data.GesturingEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GesturingStarted => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Gestures.GestureOverlayView.GesturingStartedEventArgs>(x => _data.GesturingStarted += x, x => _data.GesturingStarted -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Graphics +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SurfaceTextureEvents Events(this global::Android.Graphics.SurfaceTexture item) => new SurfaceTextureEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SurfaceTextureEvents + { + private readonly global::Android.Graphics.SurfaceTexture _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SurfaceTextureEvents(global::Android.Graphics.SurfaceTexture data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FrameAvailable => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Graphics.SurfaceTexture.FrameAvailableEventArgs>(x => _data.FrameAvailable += x, x => _data.FrameAvailable -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Hardware +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public static CameraEvents Events(this global::Android.Hardware.Camera item) => new CameraEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public class CameraEvents + { + private readonly global::Android.Hardware.Camera _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CameraEvents(global::Android.Hardware.Camera data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FaceDetection => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Hardware.Camera.FaceDetectionEventArgs>(x => _data.FaceDetection += x, x => _data.FaceDetection -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ZoomChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Hardware.Camera.ZoomChangeEventArgs>(x => _data.ZoomChange += x, x => _data.ZoomChange -= x).Select(x => x.EventArgs); + } +} + +namespace Android.InputMethodServices +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static KeyboardViewEvents Events(this global::Android.InputMethodServices.KeyboardView item) => new KeyboardViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class KeyboardViewEvents + { + private readonly global::Android.InputMethodServices.KeyboardView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public KeyboardViewEvents(global::Android.InputMethodServices.KeyboardView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Key => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.InputMethodServices.KeyboardView.KeyEventArgs>(x => _data.Key += x, x => _data.Key -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Press => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.InputMethodServices.KeyboardView.PressEventArgs>(x => _data.Press += x, x => _data.Press -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Release => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.InputMethodServices.KeyboardView.ReleaseEventArgs>(x => _data.Release += x, x => _data.Release -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SwipeDownEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SwipeDownEvent += x, x => _data.SwipeDownEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SwipeLeftEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SwipeLeftEvent += x, x => _data.SwipeLeftEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SwipeRightEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SwipeRightEvent += x, x => _data.SwipeRightEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SwipeUpEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SwipeUpEvent += x, x => _data.SwipeUpEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Text => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.InputMethodServices.KeyboardView.TextEventArgs>(x => _data.Text += x, x => _data.Text -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Media +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioRecordEvents Events(this global::Android.Media.AudioRecord item) => new AudioRecordEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioTrackEvents Events(this global::Android.Media.AudioTrack item) => new AudioTrackEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static JetPlayerEvents Events(this global::Android.Media.JetPlayer item) => new JetPlayerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaDrmEvents Events(this global::Android.Media.MediaDrm item) => new MediaDrmEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlayerEvents Events(this global::Android.Media.MediaPlayer item) => new MediaPlayerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaRecorderEvents Events(this global::Android.Media.MediaRecorder item) => new MediaRecorderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public static RemoteControlClientEvents Events(this global::Android.Media.RemoteControlClient item) => new RemoteControlClientEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SoundPoolEvents Events(this global::Android.Media.SoundPool item) => new SoundPoolEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioRecordEvents + { + private readonly global::Android.Media.AudioRecord _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioRecordEvents(global::Android.Media.AudioRecord data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MarkerReached => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.AudioRecord.MarkerReachedEventArgs>(x => _data.MarkerReached += x, x => _data.MarkerReached -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PeriodicNotification => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.AudioRecord.PeriodicNotificationEventArgs>(x => _data.PeriodicNotification += x, x => _data.PeriodicNotification -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioTrackEvents + { + private readonly global::Android.Media.AudioTrack _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioTrackEvents(global::Android.Media.AudioTrack data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MarkerReached => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.AudioTrack.MarkerReachedEventArgs>(x => _data.MarkerReached += x, x => _data.MarkerReached -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PeriodicNotification => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.AudioTrack.PeriodicNotificationEventArgs>(x => _data.PeriodicNotification += x, x => _data.PeriodicNotification -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class JetPlayerEvents + { + private readonly global::Android.Media.JetPlayer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public JetPlayerEvents(global::Android.Media.JetPlayer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable JetEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.JetPlayer.JetEventEventArgs>(x => _data.JetEvent += x, x => _data.JetEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable JetNumQueuedSegmentUpdate => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.JetPlayer.JetNumQueuedSegmentUpdateEventArgs>(x => _data.JetNumQueuedSegmentUpdate += x, x => _data.JetNumQueuedSegmentUpdate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable JetPauseUpdate => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.JetPlayer.JetPauseUpdateEventArgs>(x => _data.JetPauseUpdate += x, x => _data.JetPauseUpdate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable JetUserIdUpdate => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.JetPlayer.JetUserIdUpdateEventArgs>(x => _data.JetUserIdUpdate += x, x => _data.JetUserIdUpdate -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaDrmEvents + { + private readonly global::Android.Media.MediaDrm _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaDrmEvents(global::Android.Media.MediaDrm data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaDrmEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaDrm.MediaDrmEventArgs>(x => _data.MediaDrmEvent += x, x => _data.MediaDrmEvent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlayerEvents + { + private readonly global::Android.Media.MediaPlayer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlayerEvents(global::Android.Media.MediaPlayer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferingUpdate => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.BufferingUpdateEventArgs>(x => _data.BufferingUpdate += x, x => _data.BufferingUpdate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completion => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Completion += x, x => _data.Completion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrmInfoEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.DrmInfoEventArgs>(x => _data.DrmInfoEvent += x, x => _data.DrmInfoEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrmPrepared => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.DrmPreparedEventArgs>(x => _data.DrmPrepared += x, x => _data.DrmPrepared -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Error => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.ErrorEventArgs>(x => _data.Error += x, x => _data.Error -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Info => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.InfoEventArgs>(x => _data.Info += x, x => _data.Info -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Prepared => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Prepared += x, x => _data.Prepared -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SeekComplete => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SeekComplete += x, x => _data.SeekComplete -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TimedMetaDataAvailable => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.TimedMetaDataAvailableEventArgs>(x => _data.TimedMetaDataAvailable += x, x => _data.TimedMetaDataAvailable -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TimedText => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.TimedTextEventArgs>(x => _data.TimedText += x, x => _data.TimedText -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VideoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.VideoSizeChangedEventArgs>(x => _data.VideoSizeChanged += x, x => _data.VideoSizeChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaRecorderEvents + { + private readonly global::Android.Media.MediaRecorder _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaRecorderEvents(global::Android.Media.MediaRecorder data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Error => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaRecorder.ErrorEventArgs>(x => _data.Error += x, x => _data.Error -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Info => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaRecorder.InfoEventArgs>(x => _data.Info += x, x => _data.Info -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public class RemoteControlClientEvents + { + private readonly global::Android.Media.RemoteControlClient _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RemoteControlClientEvents(global::Android.Media.RemoteControlClient data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MetadataUpdate => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.RemoteControlClient.MetadataUpdateEventArgs>(x => _data.MetadataUpdate += x, x => _data.MetadataUpdate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PlaybackPositionUpdate => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.RemoteControlClient.PlaybackPositionUpdateEventArgs>(x => _data.PlaybackPositionUpdate += x, x => _data.PlaybackPositionUpdate -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SoundPoolEvents + { + private readonly global::Android.Media.SoundPool _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SoundPoolEvents(global::Android.Media.SoundPool data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadComplete => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.SoundPool.LoadCompleteEventArgs>(x => _data.LoadComplete += x, x => _data.LoadComplete -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Media.Audiofx +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioEffectEvents Events(this global::Android.Media.Audiofx.AudioEffect item) => new AudioEffectEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BassBoostEvents Events(this global::Android.Media.Audiofx.BassBoost item) => new BassBoostEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EnvironmentalReverbEvents Events(this global::Android.Media.Audiofx.EnvironmentalReverb item) => new EnvironmentalReverbEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EqualizerEvents Events(this global::Android.Media.Audiofx.Equalizer item) => new EqualizerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PresetReverbEvents Events(this global::Android.Media.Audiofx.PresetReverb item) => new PresetReverbEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VirtualizerEvents Events(this global::Android.Media.Audiofx.Virtualizer item) => new VirtualizerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioEffectEvents + { + private readonly global::Android.Media.Audiofx.AudioEffect _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioEffectEvents(global::Android.Media.Audiofx.AudioEffect data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ControlStatus => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.Audiofx.AudioEffect.ControlStatusChangeEventArgs>(x => _data.ControlStatus += x, x => _data.ControlStatus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EnableStatus => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.Audiofx.AudioEffect.EnableStatusChangeEventArgs>(x => _data.EnableStatus += x, x => _data.EnableStatus -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BassBoostEvents + { + private readonly global::Android.Media.Audiofx.BassBoost _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BassBoostEvents(global::Android.Media.Audiofx.BassBoost data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Parameter => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.Audiofx.BassBoost.ParameterChangeEventArgs>(x => _data.Parameter += x, x => _data.Parameter -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EnvironmentalReverbEvents + { + private readonly global::Android.Media.Audiofx.EnvironmentalReverb _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EnvironmentalReverbEvents(global::Android.Media.Audiofx.EnvironmentalReverb data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Parameter => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.Audiofx.EnvironmentalReverb.ParameterChangeEventArgs>(x => _data.Parameter += x, x => _data.Parameter -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EqualizerEvents + { + private readonly global::Android.Media.Audiofx.Equalizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EqualizerEvents(global::Android.Media.Audiofx.Equalizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Parameter => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.Audiofx.Equalizer.ParameterChangeEventArgs>(x => _data.Parameter += x, x => _data.Parameter -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PresetReverbEvents + { + private readonly global::Android.Media.Audiofx.PresetReverb _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PresetReverbEvents(global::Android.Media.Audiofx.PresetReverb data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Parameter => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.Audiofx.PresetReverb.ParameterChangeEventArgs>(x => _data.Parameter += x, x => _data.Parameter -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VirtualizerEvents + { + private readonly global::Android.Media.Audiofx.Virtualizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VirtualizerEvents(global::Android.Media.Audiofx.Virtualizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Parameter => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.Audiofx.Virtualizer.ParameterChangeEventArgs>(x => _data.Parameter += x, x => _data.Parameter -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Media.Effect +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EffectEvents Events(this global::Android.Media.Effect.Effect item) => new EffectEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EffectEvents + { + private readonly global::Android.Media.Effect.Effect _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EffectEvents(global::Android.Media.Effect.Effect data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Update => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.Effect.EffectUpdateEventArgs>(x => _data.Update += x, x => _data.Update -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Media.TV +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TvViewEvents Events(this global::Android.Media.TV.TvView item) => new TvViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TvViewEvents + { + private readonly global::Android.Media.TV.TvView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TvViewEvents(global::Android.Media.TV.TvView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UnhandledInputEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.TV.TvView.UnhandledInputEventEventArgs>(x => _data.UnhandledInputEvent += x, x => _data.UnhandledInputEvent -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Net +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ConnectivityManagerEvents Events(this global::Android.Net.ConnectivityManager item) => new ConnectivityManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ConnectivityManagerEvents + { + private readonly global::Android.Net.ConnectivityManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ConnectivityManagerEvents(global::Android.Net.ConnectivityManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DefaultNetworkActive => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DefaultNetworkActive += x, x => _data.DefaultNetworkActive -= x).Select(x => x.EventArgs); + } +} + +namespace Android.OS +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CancellationSignalEvents Events(this global::Android.OS.CancellationSignal item) => new CancellationSignalEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CancellationSignalEvents + { + private readonly global::Android.OS.CancellationSignal _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CancellationSignalEvents(global::Android.OS.CancellationSignal data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CancelEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CancelEvent += x, x => _data.CancelEvent -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Preferences +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PreferenceEvents Events(this global::Android.Preferences.Preference item) => new PreferenceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PreferenceEvents + { + private readonly global::Android.Preferences.Preference _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PreferenceEvents(global::Android.Preferences.Preference data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreferenceChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Preferences.Preference.PreferenceChangeEventArgs>(x => _data.PreferenceChange += x, x => _data.PreferenceChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreferenceClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Preferences.Preference.PreferenceClickEventArgs>(x => _data.PreferenceClick += x, x => _data.PreferenceClick -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Renderscripts +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AllocationEvents Events(this global::Android.Renderscripts.Allocation item) => new AllocationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AllocationEvents + { + private readonly global::Android.Renderscripts.Allocation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AllocationEvents(global::Android.Renderscripts.Allocation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferAvailable => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Renderscripts.Allocation.BufferAvailableEventArgs>(x => _data.BufferAvailable += x, x => _data.BufferAvailable -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Sax +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ElementEvents Events(this global::Android.Sax.Element item) => new ElementEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ElementEvents + { + private readonly global::Android.Sax.Element _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ElementEvents(global::Android.Sax.Element data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndElement => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EndElement += x, x => _data.EndElement -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndTextElement => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Sax.EndTextElementEventArgs>(x => _data.EndTextElement += x, x => _data.EndTextElement -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StartElement => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Sax.StartElementEventArgs>(x => _data.StartElement += x, x => _data.StartElement -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Speech +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpeechRecognizerEvents Events(this global::Android.Speech.SpeechRecognizer item) => new SpeechRecognizerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpeechRecognizerEvents + { + private readonly global::Android.Speech.SpeechRecognizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpeechRecognizerEvents(global::Android.Speech.SpeechRecognizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeginningOfSpeech => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeginningOfSpeech += x, x => _data.BeginningOfSpeech -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Speech.BufferReceivedEventArgs>(x => _data.BufferReceived += x, x => _data.BufferReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndOfSpeech => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EndOfSpeech += x, x => _data.EndOfSpeech -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Error => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Speech.ErrorEventArgs>(x => _data.Error += x, x => _data.Error -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Event => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Speech.EventEventArgs>(x => _data.Event += x, x => _data.Event -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PartialResults => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Speech.PartialResultsEventArgs>(x => _data.PartialResults += x, x => _data.PartialResults -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadyForSpeech => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Speech.ReadyForSpeechEventArgs>(x => _data.ReadyForSpeech += x, x => _data.ReadyForSpeech -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Results => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Speech.ResultsEventArgs>(x => _data.Results += x, x => _data.Results -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RmsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Speech.RmsChangedEventArgs>(x => _data.RmsChanged += x, x => _data.RmsChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Views +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ActionProviderEvents Events(this global::Android.Views.ActionProvider item) => new ActionProviderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GestureDetectorEvents Events(this global::Android.Views.GestureDetector item) => new GestureDetectorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TextureViewEvents Events(this global::Android.Views.TextureView item) => new TextureViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ViewEvents Events(this global::Android.Views.View item) => new ViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ViewGroupEvents Events(this global::Android.Views.ViewGroup item) => new ViewGroupEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ViewStubEvents Events(this global::Android.Views.ViewStub item) => new ViewStubEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ViewTreeObserverEvents Events(this global::Android.Views.ViewTreeObserver item) => new ViewTreeObserverEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WindowEvents Events(this global::Android.Views.Window item) => new WindowEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ActionProviderEvents + { + private readonly global::Android.Views.ActionProvider _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ActionProviderEvents(global::Android.Views.ActionProvider data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Visibility => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.ActionProvider.VisibilityEventArgs>(x => _data.Visibility += x, x => _data.Visibility -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GestureDetectorEvents + { + private readonly global::Android.Views.GestureDetector _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GestureDetectorEvents(global::Android.Views.GestureDetector data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.GestureDetector.ContextClickEventArgs>(x => _data.ContextClick += x, x => _data.ContextClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleTap => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.GestureDetector.DoubleTapEventArgs>(x => _data.DoubleTap += x, x => _data.DoubleTap -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleTapEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.GestureDetector.DoubleTapEventEventArgs>(x => _data.DoubleTapEvent += x, x => _data.DoubleTapEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SingleTapConfirmed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.GestureDetector.SingleTapConfirmedEventArgs>(x => _data.SingleTapConfirmed += x, x => _data.SingleTapConfirmed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TextureViewEvents + { + private readonly global::Android.Views.TextureView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TextureViewEvents(global::Android.Views.TextureView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SurfaceTextureAvailable => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.TextureView.SurfaceTextureAvailableEventArgs>(x => _data.SurfaceTextureAvailable += x, x => _data.SurfaceTextureAvailable -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SurfaceTextureDestroyed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.TextureView.SurfaceTextureDestroyedEventArgs>(x => _data.SurfaceTextureDestroyed += x, x => _data.SurfaceTextureDestroyed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SurfaceTextureSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.TextureView.SurfaceTextureSizeChangedEventArgs>(x => _data.SurfaceTextureSizeChanged += x, x => _data.SurfaceTextureSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SurfaceTextureUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.TextureView.SurfaceTextureUpdatedEventArgs>(x => _data.SurfaceTextureUpdated += x, x => _data.SurfaceTextureUpdated -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ViewEvents + { + private readonly global::Android.Views.View _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ViewEvents(global::Android.Views.View data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CapturedPointer => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.CapturedPointerEventArgs>(x => _data.CapturedPointer += x, x => _data.CapturedPointer -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.ContextClickEventArgs>(x => _data.ContextClick += x, x => _data.ContextClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuCreated => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.CreateContextMenuEventArgs>(x => _data.ContextMenuCreated += x, x => _data.ContextMenuCreated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Drag => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.DragEventArgs>(x => _data.Drag += x, x => _data.Drag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FocusChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.FocusChangeEventArgs>(x => _data.FocusChange += x, x => _data.FocusChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GenericMotion => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.GenericMotionEventArgs>(x => _data.GenericMotion += x, x => _data.GenericMotion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Hover => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.HoverEventArgs>(x => _data.Hover += x, x => _data.Hover -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.KeyEventArgs>(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LayoutChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.LayoutChangeEventArgs>(x => _data.LayoutChange += x, x => _data.LayoutChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LongClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.LongClickEventArgs>(x => _data.LongClick += x, x => _data.LongClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrollChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.ScrollChangeEventArgs>(x => _data.ScrollChange += x, x => _data.ScrollChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SystemUiVisibilityChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.SystemUiVisibilityChangeEventArgs>(x => _data.SystemUiVisibilityChange += x, x => _data.SystemUiVisibilityChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Touch => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.TouchEventArgs>(x => _data.Touch += x, x => _data.Touch -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ViewAttachedToWindow => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.ViewAttachedToWindowEventArgs>(x => _data.ViewAttachedToWindow += x, x => _data.ViewAttachedToWindow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ViewDetachedFromWindow => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.ViewDetachedFromWindowEventArgs>(x => _data.ViewDetachedFromWindow += x, x => _data.ViewDetachedFromWindow -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ViewGroupEvents + { + private readonly global::Android.Views.ViewGroup _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ViewGroupEvents(global::Android.Views.ViewGroup data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationEnd => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.Animations.Animation.AnimationEndEventArgs>(x => _data.AnimationEnd += x, x => _data.AnimationEnd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationRepeat => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.Animations.Animation.AnimationRepeatEventArgs>(x => _data.AnimationRepeat += x, x => _data.AnimationRepeat -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationStart => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.Animations.Animation.AnimationStartEventArgs>(x => _data.AnimationStart += x, x => _data.AnimationStart -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChildViewAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.ViewGroup.ChildViewAddedEventArgs>(x => _data.ChildViewAdded += x, x => _data.ChildViewAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChildViewRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.ViewGroup.ChildViewRemovedEventArgs>(x => _data.ChildViewRemoved += x, x => _data.ChildViewRemoved -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ViewStubEvents + { + private readonly global::Android.Views.ViewStub _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ViewStubEvents(global::Android.Views.ViewStub data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InflateEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.ViewStub.InflateEventArgs>(x => _data.InflateEvent += x, x => _data.InflateEvent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ViewTreeObserverEvents + { + private readonly global::Android.Views.ViewTreeObserver _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ViewTreeObserverEvents(global::Android.Views.ViewTreeObserver data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Draw => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Draw += x, x => _data.Draw -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GlobalFocusChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.ViewTreeObserver.GlobalFocusChangeEventArgs>(x => _data.GlobalFocusChange += x, x => _data.GlobalFocusChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GlobalLayout => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GlobalLayout += x, x => _data.GlobalLayout -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreDraw => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.ViewTreeObserver.PreDrawEventArgs>(x => _data.PreDraw += x, x => _data.PreDraw -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrollChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScrollChanged += x, x => _data.ScrollChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchModeChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.ViewTreeObserver.TouchModeChangeEventArgs>(x => _data.TouchModeChange += x, x => _data.TouchModeChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WindowAttached => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WindowAttached += x, x => _data.WindowAttached -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WindowDetached => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WindowDetached += x, x => _data.WindowDetached -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WindowFocusChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.ViewTreeObserver.WindowFocusChangeEventArgs>(x => _data.WindowFocusChange += x, x => _data.WindowFocusChange -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WindowEvents + { + private readonly global::Android.Views.Window _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WindowEvents(global::Android.Views.Window data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RestrictedCaptionArea => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.Window.RestrictedCaptionAreaChangedEventArgs>(x => _data.RestrictedCaptionArea += x, x => _data.RestrictedCaptionArea -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Views.Animations +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AnimationEvents Events(this global::Android.Views.Animations.Animation item) => new AnimationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AnimationEvents + { + private readonly global::Android.Views.Animations.Animation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AnimationEvents(global::Android.Views.Animations.Animation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationEnd => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.Animations.Animation.AnimationEndEventArgs>(x => _data.AnimationEnd += x, x => _data.AnimationEnd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationRepeat => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.Animations.Animation.AnimationRepeatEventArgs>(x => _data.AnimationRepeat += x, x => _data.AnimationRepeat -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationStart => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.Animations.Animation.AnimationStartEventArgs>(x => _data.AnimationStart += x, x => _data.AnimationStart -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Webkit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebViewEvents Events(this global::Android.Webkit.WebView item) => new WebViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebViewEvents + { + private readonly global::Android.Webkit.WebView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebViewEvents(global::Android.Webkit.WebView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Download => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Webkit.DownloadEventArgs>(x => _data.Download += x, x => _data.Download -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Find => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Webkit.WebView.FindEventArgs>(x => _data.Find += x, x => _data.Find -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Picture => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Webkit.WebView.PictureEventArgs>(x => _data.Picture += x, x => _data.Picture -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Widget +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AbsListViewEvents Events(this global::Android.Widget.AbsListView item) => new AbsListViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ActionMenuViewEvents Events(this global::Android.Widget.ActionMenuView item) => new ActionMenuViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AdapterViewEvents Events(this global::Android.Widget.AdapterView item) => new AdapterViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AutoCompleteTextViewEvents Events(this global::Android.Widget.AutoCompleteTextView item) => new AutoCompleteTextViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CalendarViewEvents Events(this global::Android.Widget.CalendarView item) => new CalendarViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ChronometerEvents Events(this global::Android.Widget.Chronometer item) => new ChronometerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CompoundButtonEvents Events(this global::Android.Widget.CompoundButton item) => new CompoundButtonEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DatePickerEvents Events(this global::Android.Widget.DatePicker item) => new DatePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ExpandableListViewEvents Events(this global::Android.Widget.ExpandableListView item) => new ExpandableListViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ListPopupWindowEvents Events(this global::Android.Widget.ListPopupWindow item) => new ListPopupWindowEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaControllerEvents Events(this global::Android.Widget.MediaController item) => new MediaControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NumberPickerEvents Events(this global::Android.Widget.NumberPicker item) => new NumberPickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PopupMenuEvents Events(this global::Android.Widget.PopupMenu item) => new PopupMenuEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PopupWindowEvents Events(this global::Android.Widget.PopupWindow item) => new PopupWindowEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RadioGroupEvents Events(this global::Android.Widget.RadioGroup item) => new RadioGroupEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RatingBarEvents Events(this global::Android.Widget.RatingBar item) => new RatingBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SearchViewEvents Events(this global::Android.Widget.SearchView item) => new SearchViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SeekBarEvents Events(this global::Android.Widget.SeekBar item) => new SeekBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ShareActionProviderEvents Events(this global::Android.Widget.ShareActionProvider item) => new ShareActionProviderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public static SlidingDrawerEvents Events(this global::Android.Widget.SlidingDrawer item) => new SlidingDrawerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TabHostEvents Events(this global::Android.Widget.TabHost item) => new TabHostEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TextViewEvents Events(this global::Android.Widget.TextView item) => new TextViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TimePickerEvents Events(this global::Android.Widget.TimePicker item) => new TimePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolbarEvents Events(this global::Android.Widget.Toolbar item) => new ToolbarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VideoViewEvents Events(this global::Android.Widget.VideoView item) => new VideoViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public static ZoomButtonsControllerEvents Events(this global::Android.Widget.ZoomButtonsController item) => new ZoomButtonsControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ZoomControlsEvents Events(this global::Android.Widget.ZoomControls item) => new ZoomControlsEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AbsListViewEvents + { + private readonly global::Android.Widget.AbsListView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AbsListViewEvents(global::Android.Widget.AbsListView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Recycler => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AbsListView.RecyclerEventArgs>(x => _data.Recycler += x, x => _data.Recycler -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AbsListView.ScrollEventArgs>(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrollStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AbsListView.ScrollStateChangedEventArgs>(x => _data.ScrollStateChanged += x, x => _data.ScrollStateChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ActionMenuViewEvents + { + private readonly global::Android.Widget.ActionMenuView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ActionMenuViewEvents(global::Android.Widget.ActionMenuView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuItemClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.ActionMenuView.MenuItemClickEventArgs>(x => _data.MenuItemClick += x, x => _data.MenuItemClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AdapterViewEvents + { + private readonly global::Android.Widget.AdapterView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AdapterViewEvents(global::Android.Widget.AdapterView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.ItemClickEventArgs>(x => _data.ItemClick += x, x => _data.ItemClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemLongClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.ItemLongClickEventArgs>(x => _data.ItemLongClick += x, x => _data.ItemLongClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.ItemSelectedEventArgs>(x => _data.ItemSelected += x, x => _data.ItemSelected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Use NothingSelected event instead", false)] + public global::System.IObservable ItemSelectionCleared => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemSelectionCleared += x, x => _data.ItemSelectionCleared -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NothingSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.NothingSelectedEventArgs>(x => _data.NothingSelected += x, x => _data.NothingSelected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AutoCompleteTextViewEvents + { + private readonly global::Android.Widget.AutoCompleteTextView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AutoCompleteTextViewEvents(global::Android.Widget.AutoCompleteTextView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Dismiss => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Dismiss += x, x => _data.Dismiss -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.ItemClickEventArgs>(x => _data.ItemClick += x, x => _data.ItemClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.ItemSelectedEventArgs>(x => _data.ItemSelected += x, x => _data.ItemSelected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Use NothingSelected event instead", false)] + public global::System.IObservable ItemSelectionCleared => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemSelectionCleared += x, x => _data.ItemSelectionCleared -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NothingSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.NothingSelectedEventArgs>(x => _data.NothingSelected += x, x => _data.NothingSelected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CalendarViewEvents + { + private readonly global::Android.Widget.CalendarView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CalendarViewEvents(global::Android.Widget.CalendarView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DateChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.CalendarView.DateChangeEventArgs>(x => _data.DateChange += x, x => _data.DateChange -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ChronometerEvents + { + private readonly global::Android.Widget.Chronometer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ChronometerEvents(global::Android.Widget.Chronometer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChronometerTick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ChronometerTick += x, x => _data.ChronometerTick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CompoundButtonEvents + { + private readonly global::Android.Widget.CompoundButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CompoundButtonEvents(global::Android.Widget.CompoundButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CheckedChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.CompoundButton.CheckedChangeEventArgs>(x => _data.CheckedChange += x, x => _data.CheckedChange -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DatePickerEvents + { + private readonly global::Android.Widget.DatePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DatePickerEvents(global::Android.Widget.DatePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.DatePicker.DateChangedEventArgs>(x => _data.DateChanged += x, x => _data.DateChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ExpandableListViewEvents + { + private readonly global::Android.Widget.ExpandableListView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ExpandableListViewEvents(global::Android.Widget.ExpandableListView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChildClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.ExpandableListView.ChildClickEventArgs>(x => _data.ChildClick += x, x => _data.ChildClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GroupClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.ExpandableListView.GroupClickEventArgs>(x => _data.GroupClick += x, x => _data.GroupClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GroupCollapse => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.ExpandableListView.GroupCollapseEventArgs>(x => _data.GroupCollapse += x, x => _data.GroupCollapse -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GroupExpand => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.ExpandableListView.GroupExpandEventArgs>(x => _data.GroupExpand += x, x => _data.GroupExpand -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ListPopupWindowEvents + { + private readonly global::Android.Widget.ListPopupWindow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ListPopupWindowEvents(global::Android.Widget.ListPopupWindow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DismissEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DismissEvent += x, x => _data.DismissEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.ItemClickEventArgs>(x => _data.ItemClick += x, x => _data.ItemClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.ItemSelectedEventArgs>(x => _data.ItemSelected += x, x => _data.ItemSelected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NothingSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.AdapterView.NothingSelectedEventArgs>(x => _data.NothingSelected += x, x => _data.NothingSelected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaControllerEvents + { + private readonly global::Android.Widget.MediaController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaControllerEvents(global::Android.Widget.MediaController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NextClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NextClick += x, x => _data.NextClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviousClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviousClick += x, x => _data.PreviousClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NumberPickerEvents + { + private readonly global::Android.Widget.NumberPicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NumberPickerEvents(global::Android.Widget.NumberPicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.NumberPicker.ScrollEventArgs>(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.NumberPicker.ValueChangeEventArgs>(x => _data.ValueChanged += x, x => _data.ValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PopupMenuEvents + { + private readonly global::Android.Widget.PopupMenu _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PopupMenuEvents(global::Android.Widget.PopupMenu data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DismissEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.PopupMenu.DismissEventArgs>(x => _data.DismissEvent += x, x => _data.DismissEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuItemClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.PopupMenu.MenuItemClickEventArgs>(x => _data.MenuItemClick += x, x => _data.MenuItemClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PopupWindowEvents + { + private readonly global::Android.Widget.PopupWindow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PopupWindowEvents(global::Android.Widget.PopupWindow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DismissEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DismissEvent += x, x => _data.DismissEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchIntercepted => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.TouchEventArgs>(x => _data.TouchIntercepted += x, x => _data.TouchIntercepted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RadioGroupEvents + { + private readonly global::Android.Widget.RadioGroup _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RadioGroupEvents(global::Android.Widget.RadioGroup data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CheckedChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.RadioGroup.CheckedChangeEventArgs>(x => _data.CheckedChange += x, x => _data.CheckedChange -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RatingBarEvents + { + private readonly global::Android.Widget.RatingBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RatingBarEvents(global::Android.Widget.RatingBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RatingBarChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.RatingBar.RatingBarChangeEventArgs>(x => _data.RatingBarChange += x, x => _data.RatingBarChange -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SearchViewEvents + { + private readonly global::Android.Widget.SearchView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SearchViewEvents(global::Android.Widget.SearchView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Close => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.SearchView.CloseEventArgs>(x => _data.Close += x, x => _data.Close -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryTextChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.SearchView.QueryTextChangeEventArgs>(x => _data.QueryTextChange += x, x => _data.QueryTextChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryTextFocusChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Views.View.FocusChangeEventArgs>(x => _data.QueryTextFocusChange += x, x => _data.QueryTextFocusChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryTextSubmit => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.SearchView.QueryTextSubmitEventArgs>(x => _data.QueryTextSubmit += x, x => _data.QueryTextSubmit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchClick += x, x => _data.SearchClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SuggestionClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.SearchView.SuggestionClickEventArgs>(x => _data.SuggestionClick += x, x => _data.SuggestionClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SuggestionSelect => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.SearchView.SuggestionSelectEventArgs>(x => _data.SuggestionSelect += x, x => _data.SuggestionSelect -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SeekBarEvents + { + private readonly global::Android.Widget.SeekBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SeekBarEvents(global::Android.Widget.SeekBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ProgressChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.SeekBar.ProgressChangedEventArgs>(x => _data.ProgressChanged += x, x => _data.ProgressChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StartTrackingTouch => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.SeekBar.StartTrackingTouchEventArgs>(x => _data.StartTrackingTouch += x, x => _data.StartTrackingTouch -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StopTrackingTouch => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.SeekBar.StopTrackingTouchEventArgs>(x => _data.StopTrackingTouch += x, x => _data.StopTrackingTouch -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ShareActionProviderEvents + { + private readonly global::Android.Widget.ShareActionProvider _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ShareActionProviderEvents(global::Android.Widget.ShareActionProvider data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ShareTargetSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.ShareActionProvider.ShareTargetSelectedEventArgs>(x => _data.ShareTargetSelected += x, x => _data.ShareTargetSelected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public class SlidingDrawerEvents + { + private readonly global::Android.Widget.SlidingDrawer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SlidingDrawerEvents(global::Android.Widget.SlidingDrawer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawerClose => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawerClose += x, x => _data.DrawerClose -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawerOpen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawerOpen += x, x => _data.DrawerOpen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrollEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScrollEnded += x, x => _data.ScrollEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrollStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScrollStarted += x, x => _data.ScrollStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TabHostEvents + { + private readonly global::Android.Widget.TabHost _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TabHostEvents(global::Android.Widget.TabHost data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.TabHost.TabChangeEventArgs>(x => _data.TabChanged += x, x => _data.TabChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TextViewEvents + { + private readonly global::Android.Widget.TextView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TextViewEvents(global::Android.Widget.TextView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AfterTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Text.AfterTextChangedEventArgs>(x => _data.AfterTextChanged += x, x => _data.AfterTextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeforeTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Text.TextChangedEventArgs>(x => _data.BeforeTextChanged += x, x => _data.BeforeTextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditorAction => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.TextView.EditorActionEventArgs>(x => _data.EditorAction += x, x => _data.EditorAction -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Text.TextChangedEventArgs>(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TimePickerEvents + { + private readonly global::Android.Widget.TimePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TimePickerEvents(global::Android.Widget.TimePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TimeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.TimePicker.TimeChangedEventArgs>(x => _data.TimeChanged += x, x => _data.TimeChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolbarEvents + { + private readonly global::Android.Widget.Toolbar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolbarEvents(global::Android.Widget.Toolbar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuItemClick => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.Toolbar.MenuItemClickEventArgs>(x => _data.MenuItemClick += x, x => _data.MenuItemClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationOnClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationOnClick += x, x => _data.NavigationOnClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VideoViewEvents + { + private readonly global::Android.Widget.VideoView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VideoViewEvents(global::Android.Widget.VideoView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completion => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Completion += x, x => _data.Completion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Error => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.ErrorEventArgs>(x => _data.Error += x, x => _data.Error -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Info => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Media.MediaPlayer.InfoEventArgs>(x => _data.Info += x, x => _data.Info -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Prepared => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Prepared += x, x => _data.Prepared -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + [global::System.ObsoleteAttribute("This class is obsoleted in this android platform", false)] + public class ZoomButtonsControllerEvents + { + private readonly global::Android.Widget.ZoomButtonsController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ZoomButtonsControllerEvents(global::Android.Widget.ZoomButtonsController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VisibilityChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.ZoomButtonsController.VisibilityChangedEventArgs>(x => _data.VisibilityChanged += x, x => _data.VisibilityChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Zoom => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Widget.ZoomButtonsController.ZoomEventArgs>(x => _data.Zoom += x, x => _data.Zoom -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ZoomControlsEvents + { + private readonly global::Android.Widget.ZoomControls _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ZoomControlsEvents(global::Android.Widget.ZoomControls data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ZoomInClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ZoomInClick += x, x => _data.ZoomInClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ZoomOutClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ZoomOutClick += x, x => _data.ZoomOutClick -= x).Select(x => x.EventArgs); + } +} + +namespace Javax.Xml.Transform +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TransformerEvents Events(this global::Javax.Xml.Transform.Transformer item) => new TransformerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TransformerFactoryEvents Events(this global::Javax.Xml.Transform.TransformerFactory item) => new TransformerFactoryEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TransformerEvents + { + private readonly global::Javax.Xml.Transform.Transformer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TransformerEvents(global::Javax.Xml.Transform.Transformer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Error => global::System.Reactive.Linq.Observable.FromEventPattern, global::Javax.Xml.Transform.ErrorEventArgs>(x => _data.Error += x, x => _data.Error -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FatalError => global::System.Reactive.Linq.Observable.FromEventPattern, global::Javax.Xml.Transform.FatalErrorEventArgs>(x => _data.FatalError += x, x => _data.FatalError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Warning => global::System.Reactive.Linq.Observable.FromEventPattern, global::Javax.Xml.Transform.WarningEventArgs>(x => _data.Warning += x, x => _data.Warning -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TransformerFactoryEvents + { + private readonly global::Javax.Xml.Transform.TransformerFactory _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TransformerFactoryEvents(global::Javax.Xml.Transform.TransformerFactory data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Error => global::System.Reactive.Linq.Observable.FromEventPattern, global::Javax.Xml.Transform.ErrorEventArgs>(x => _data.Error += x, x => _data.Error -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FatalError => global::System.Reactive.Linq.Observable.FromEventPattern, global::Javax.Xml.Transform.FatalErrorEventArgs>(x => _data.FatalError += x, x => _data.FatalError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Warning => global::System.Reactive.Linq.Observable.FromEventPattern, global::Javax.Xml.Transform.WarningEventArgs>(x => _data.Warning += x, x => _data.Warning -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Runtime +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AndroidEnvironmentUnhandledExceptionRaiser => global::System.Reactive.Linq.Observable.FromEventPattern, global::Android.Runtime.RaiseThrowableEventArgs>(x => global::Android.Runtime.AndroidEnvironment.UnhandledExceptionRaiser += x, x => global::Android.Runtime.AndroidEnvironment.UnhandledExceptionRaiser -= x).Select(x => x.EventArgs); + } +} + +namespace Android.Views +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class AccessibilityDelegateRx : global::Android.Views.View.AccessibilityDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityNodeInfo info, string extraDataKey, global::Android.OS.Bundle arguments)> _addExtraDataToAccessibilityNodeInfo = new Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityNodeInfo info, string extraDataKey, global::Android.OS.Bundle arguments)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e)> _onInitializeAccessibilityEvent = new Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityNodeInfo info)> _onInitializeAccessibilityNodeInfo = new Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityNodeInfo info)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e)> _onPopulateAccessibilityEvent = new Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.EventTypes eventType)> _sendAccessibilityEvent = new Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.EventTypes eventType)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e)> _sendAccessibilityEventUnchecked = new Pharmacist.Common.SingleAwaitSubject<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityNodeInfo info, string extraDataKey, global::Android.OS.Bundle arguments)> AddExtraDataToAccessibilityNodeInfoObs => _addExtraDataToAccessibilityNodeInfo; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e)> OnInitializeAccessibilityEventObs => _onInitializeAccessibilityEvent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityNodeInfo info)> OnInitializeAccessibilityNodeInfoObs => _onInitializeAccessibilityNodeInfo; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e)> OnPopulateAccessibilityEventObs => _onPopulateAccessibilityEvent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Android.Views.View host, global::Android.Views.Accessibility.EventTypes eventType)> SendAccessibilityEventObs => _sendAccessibilityEvent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e)> SendAccessibilityEventUncheckedObs => _sendAccessibilityEventUnchecked; + /// + public override void AddExtraDataToAccessibilityNodeInfo(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityNodeInfo info, string extraDataKey, global::Android.OS.Bundle arguments) => _addExtraDataToAccessibilityNodeInfo.OnNext((host, info, extraDataKey, arguments)); + /// + public override void OnInitializeAccessibilityEvent(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e) => _onInitializeAccessibilityEvent.OnNext((host, e)); + /// + public override void OnInitializeAccessibilityNodeInfo(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityNodeInfo info) => _onInitializeAccessibilityNodeInfo.OnNext((host, info)); + /// + public override void OnPopulateAccessibilityEvent(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e) => _onPopulateAccessibilityEvent.OnNext((host, e)); + /// + public override void SendAccessibilityEvent(global::Android.Views.View host, global::Android.Views.Accessibility.EventTypes eventType) => _sendAccessibilityEvent.OnNext((host, eventType)); + /// + public override void SendAccessibilityEventUnchecked(global::Android.Views.View host, global::Android.Views.Accessibility.AccessibilityEvent e) => _sendAccessibilityEventUnchecked.OnNext((host, e)); + } +} \ No newline at end of file diff --git a/src/Pharmacist.Tests/IntegrationTests/Approved/Mac.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/Mac.approved.txt new file mode 100644 index 0000000..9c04fc6 --- /dev/null +++ b/src/Pharmacist.Tests/IntegrationTests/Approved/Mac.approved.txt @@ -0,0 +1,9437 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using global::System; +using global::System.Reactive; +using global::System.Reactive.Linq; +using global::System.Reactive.Subjects; + +using global::Pharmacist.Common; + +namespace AppKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSActionCellEvents Events(this global::AppKit.NSActionCell item) => new NSActionCellEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSAnimationEvents Events(this global::AppKit.NSAnimation item) => new NSAnimationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSApplicationEvents Events(this global::AppKit.NSApplication item) => new NSApplicationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSBrowserEvents Events(this global::AppKit.NSBrowser item) => new NSBrowserEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSColorPickerTouchBarItemEvents Events(this global::AppKit.NSColorPickerTouchBarItem item) => new NSColorPickerTouchBarItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSComboBoxEvents Events(this global::AppKit.NSComboBox item) => new NSComboBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSControlEvents Events(this global::AppKit.NSControl item) => new NSControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSDatePickerEvents Events(this global::AppKit.NSDatePicker item) => new NSDatePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSDatePickerCellEvents Events(this global::AppKit.NSDatePickerCell item) => new NSDatePickerCellEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSDrawerEvents Events(this global::AppKit.NSDrawer item) => new NSDrawerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSImageEvents Events(this global::AppKit.NSImage item) => new NSImageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSMatrixEvents Events(this global::AppKit.NSMatrix item) => new NSMatrixEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSMenuItemEvents Events(this global::AppKit.NSMenuItem item) => new NSMenuItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSPageControllerEvents Events(this global::AppKit.NSPageController item) => new NSPageControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSPathCellEvents Events(this global::AppKit.NSPathCell item) => new NSPathCellEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSPathControlEvents Events(this global::AppKit.NSPathControl item) => new NSPathControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSRuleEditorEvents Events(this global::AppKit.NSRuleEditor item) => new NSRuleEditorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSSavePanelEvents Events(this global::AppKit.NSSavePanel item) => new NSSavePanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSSearchFieldEvents Events(this global::AppKit.NSSearchField item) => new NSSearchFieldEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSSharingServiceEvents Events(this global::AppKit.NSSharingService item) => new NSSharingServiceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSSharingServicePickerEvents Events(this global::AppKit.NSSharingServicePicker item) => new NSSharingServicePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSSliderTouchBarItemEvents Events(this global::AppKit.NSSliderTouchBarItem item) => new NSSliderTouchBarItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSSoundEvents Events(this global::AppKit.NSSound item) => new NSSoundEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSStatusItemEvents Events(this global::AppKit.NSStatusItem item) => new NSStatusItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSTableViewEvents Events(this global::AppKit.NSTableView item) => new NSTableViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSTabViewEvents Events(this global::AppKit.NSTabView item) => new NSTabViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSTextEvents Events(this global::AppKit.NSText item) => new NSTextEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSTextFieldEvents Events(this global::AppKit.NSTextField item) => new NSTextFieldEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSTextStorageEvents Events(this global::AppKit.NSTextStorage item) => new NSTextStorageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSTextViewEvents Events(this global::AppKit.NSTextView item) => new NSTextViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSToolbarEvents Events(this global::AppKit.NSToolbar item) => new NSToolbarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSToolbarItemEvents Events(this global::AppKit.NSToolbarItem item) => new NSToolbarItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSWindowEvents Events(this global::AppKit.NSWindow item) => new NSWindowEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSActionCellEvents + { + private readonly global::AppKit.NSActionCell _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSActionCellEvents(global::AppKit.NSActionCell data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSAnimationEvents + { + private readonly global::AppKit.NSAnimation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSAnimationEvents(global::AppKit.NSAnimation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationDidEnd => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnimationDidEnd += x, x => _data.AnimationDidEnd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationDidReachProgressMark => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSAnimationEventArgs>(x => _data.AnimationDidReachProgressMark += x, x => _data.AnimationDidReachProgressMark -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationDidStop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnimationDidStop += x, x => _data.AnimationDidStop -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSApplicationEvents + { + private readonly global::AppKit.NSApplication _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSApplicationEvents(global::AppKit.NSApplication data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecodedRestorableState => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSCoderEventArgs>(x => _data.DecodedRestorableState += x, x => _data.DecodedRestorableState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBecomeActive => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidBecomeActive += x, x => _data.DidBecomeActive -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishLaunching => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFinishLaunching += x, x => _data.DidFinishLaunching -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidHide => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidHide += x, x => _data.DidHide -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidResignActive => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidResignActive += x, x => _data.DidResignActive -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUnhide => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUnhide += x, x => _data.DidUnhide -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdate += x, x => _data.DidUpdate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FailedToContinueUserActivity => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSApplicationFailedEventArgs>(x => _data.FailedToContinueUserActivity += x, x => _data.FailedToContinueUserActivity -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FailedToRegisterForRemoteNotifications => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.FailedToRegisterForRemoteNotifications += x, x => _data.FailedToRegisterForRemoteNotifications -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OpenFiles => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSApplicationFilesEventArgs>(x => _data.OpenFiles += x, x => _data.OpenFiles -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OpenUrls => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSApplicationOpenUrlsEventArgs>(x => _data.OpenUrls += x, x => _data.OpenUrls -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Use the 'OrderFrontStandardAboutPanel2' on NSApplication.", false)] + public global::System.IObservable OrderFrontStandardAboutPanel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OrderFrontStandardAboutPanel += x, x => _data.OrderFrontStandardAboutPanel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Use the 'OrderFrontStandardAboutPanelWithOptions2' on NSApplication.", false)] + public global::System.IObservable OrderFrontStandardAboutPanelWithOptions => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OrderFrontStandardAboutPanelWithOptions += x, x => _data.OrderFrontStandardAboutPanelWithOptions -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceivedRemoteNotification => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSDictionaryEventArgs>(x => _data.ReceivedRemoteNotification += x, x => _data.ReceivedRemoteNotification -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegisteredForRemoteNotifications => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSDataEventArgs>(x => _data.RegisteredForRemoteNotifications += x, x => _data.RegisteredForRemoteNotifications -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Use the 'RegisterServicesMenu2' on NSApplication.", false)] + public global::System.IObservable RegisterServicesMenu => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSApplicationRegisterEventArgs>(x => _data.RegisterServicesMenu += x, x => _data.RegisterServicesMenu -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScreenParametersChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScreenParametersChanged += x, x => _data.ScreenParametersChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedUserActivity => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSApplicationUpdatedUserActivityEventArgs>(x => _data.UpdatedUserActivity += x, x => _data.UpdatedUserActivity -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UserDidAcceptCloudKitShare => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSApplicationUserAcceptedCloudKitShareEventArgs>(x => _data.UserDidAcceptCloudKitShare += x, x => _data.UserDidAcceptCloudKitShare -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillBecomeActive => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillBecomeActive += x, x => _data.WillBecomeActive -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEncodeRestorableState => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSCoderEventArgs>(x => _data.WillEncodeRestorableState += x, x => _data.WillEncodeRestorableState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillFinishLaunching => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillFinishLaunching += x, x => _data.WillFinishLaunching -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillHide => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillHide += x, x => _data.WillHide -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillResignActive => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillResignActive += x, x => _data.WillResignActive -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillTerminate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillTerminate += x, x => _data.WillTerminate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillUnhide => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillUnhide += x, x => _data.WillUnhide -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillUpdate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillUpdate += x, x => _data.WillUpdate -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSBrowserEvents + { + private readonly global::AppKit.NSBrowser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSBrowserEvents(global::AppKit.NSBrowser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSColorPickerTouchBarItemEvents + { + private readonly global::AppKit.NSColorPickerTouchBarItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSColorPickerTouchBarItemEvents(global::AppKit.NSColorPickerTouchBarItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSComboBoxEvents + { + private readonly global::AppKit.NSComboBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSComboBoxEvents(global::AppKit.NSComboBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionIsChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionIsChanging += x, x => _data.SelectionIsChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillDismiss => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillDismiss += x, x => _data.WillDismiss -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPopUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillPopUp += x, x => _data.WillPopUp -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSControlEvents + { + private readonly global::AppKit.NSControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSControlEvents(global::AppKit.NSControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSDatePickerEvents + { + private readonly global::AppKit.NSDatePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSDatePickerEvents(global::AppKit.NSDatePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValidateProposedDateValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSDatePickerValidatorEventArgs>(x => _data.ValidateProposedDateValue += x, x => _data.ValidateProposedDateValue -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSDatePickerCellEvents + { + private readonly global::AppKit.NSDatePickerCell _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSDatePickerCellEvents(global::AppKit.NSDatePickerCell data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValidateProposedDateValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSDatePickerValidatorEventArgs>(x => _data.ValidateProposedDateValue += x, x => _data.ValidateProposedDateValue -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSDrawerEvents + { + private readonly global::AppKit.NSDrawer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSDrawerEvents(global::AppKit.NSDrawer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawerDidClose => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawerDidClose += x, x => _data.DrawerDidClose -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawerDidOpen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawerDidOpen += x, x => _data.DrawerDidOpen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawerWillClose => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawerWillClose += x, x => _data.DrawerWillClose -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawerWillOpen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawerWillOpen += x, x => _data.DrawerWillOpen -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSImageEvents + { + private readonly global::AppKit.NSImage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSImageEvents(global::AppKit.NSImage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidLoadPartOfRepresentation => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSImagePartialEventArgs>(x => _data.DidLoadPartOfRepresentation += x, x => _data.DidLoadPartOfRepresentation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidLoadRepresentation => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSImageLoadRepresentationEventArgs>(x => _data.DidLoadRepresentation += x, x => _data.DidLoadRepresentation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidLoadRepresentationHeader => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSImageLoadEventArgs>(x => _data.DidLoadRepresentationHeader += x, x => _data.DidLoadRepresentationHeader -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillLoadRepresentation => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSImageLoadEventArgs>(x => _data.WillLoadRepresentation += x, x => _data.WillLoadRepresentation -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSMatrixEvents + { + private readonly global::AppKit.NSMatrix _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSMatrixEvents(global::AppKit.NSMatrix data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSMenuItemEvents + { + private readonly global::AppKit.NSMenuItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSMenuItemEvents(global::AppKit.NSMenuItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSPageControllerEvents + { + private readonly global::AppKit.NSPageController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSPageControllerEvents(global::AppKit.NSPageController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndLiveTransition => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidEndLiveTransition += x, x => _data.DidEndLiveTransition -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidTransition => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSPageControllerTransitionEventArgs>(x => _data.DidTransition += x, x => _data.DidTransition -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PrepareViewController => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSPageControllerPrepareViewControllerEventArgs>(x => _data.PrepareViewController += x, x => _data.PrepareViewController -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartLiveTransition => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartLiveTransition += x, x => _data.WillStartLiveTransition -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSPathCellEvents + { + private readonly global::AppKit.NSPathCell _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSPathCellEvents(global::AppKit.NSPathCell data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillDisplayOpenPanel => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSPathCellDisplayPanelEventArgs>(x => _data.WillDisplayOpenPanel += x, x => _data.WillDisplayOpenPanel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPopupMenu => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSPathCellMenuEventArgs>(x => _data.WillPopupMenu += x, x => _data.WillPopupMenu -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSPathControlEvents + { + private readonly global::AppKit.NSPathControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSPathControlEvents(global::AppKit.NSPathControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSRuleEditorEvents + { + private readonly global::AppKit.NSRuleEditor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSRuleEditorEvents(global::AppKit.NSRuleEditor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Changed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Changed += x, x => _data.Changed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingBegan => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingBegan += x, x => _data.EditingBegan -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingEnded += x, x => _data.EditingEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowsDidChange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowsDidChange += x, x => _data.RowsDidChange -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSSavePanelEvents + { + private readonly global::AppKit.NSSavePanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSSavePanelEvents(global::AppKit.NSSavePanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeToDirectory => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSOpenSavePanelUrlEventArgs>(x => _data.DidChangeToDirectory += x, x => _data.DidChangeToDirectory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DirectoryDidChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSOpenSaveFilenameEventArgs>(x => _data.DirectoryDidChange += x, x => _data.DirectoryDidChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionDidChange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionDidChange += x, x => _data.SelectionDidChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillExpand => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSOpenSaveExpandingEventArgs>(x => _data.WillExpand += x, x => _data.WillExpand -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSSearchFieldEvents + { + private readonly global::AppKit.NSSearchField _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSSearchFieldEvents(global::AppKit.NSSearchField data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchingEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchingEnded += x, x => _data.SearchingEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchingStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchingStarted += x, x => _data.SearchingStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSSharingServiceEvents + { + private readonly global::AppKit.NSSharingService _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSSharingServiceEvents(global::AppKit.NSSharingService data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailToShareItems => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSSharingServiceDidFailToShareItemsEventArgs>(x => _data.DidFailToShareItems += x, x => _data.DidFailToShareItems -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidShareItems => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSSharingServiceItemsEventArgs>(x => _data.DidShareItems += x, x => _data.DidShareItems -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillShareItems => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSSharingServiceItemsEventArgs>(x => _data.WillShareItems += x, x => _data.WillShareItems -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSSharingServicePickerEvents + { + private readonly global::AppKit.NSSharingServicePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSSharingServicePickerEvents(global::AppKit.NSSharingServicePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChooseSharingService => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSSharingServicePickerDidChooseSharingServiceEventArgs>(x => _data.DidChooseSharingService += x, x => _data.DidChooseSharingService -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSSliderTouchBarItemEvents + { + private readonly global::AppKit.NSSliderTouchBarItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSSliderTouchBarItemEvents(global::AppKit.NSSliderTouchBarItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSSoundEvents + { + private readonly global::AppKit.NSSound _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSSoundEvents(global::AppKit.NSSound data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishPlaying => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSSoundFinishedEventArgs>(x => _data.DidFinishPlaying += x, x => _data.DidFinishPlaying -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSStatusItemEvents + { + private readonly global::AppKit.NSStatusItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSStatusItemEvents(global::AppKit.NSStatusItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSTableViewEvents + { + private readonly global::AppKit.NSTableView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSTableViewEvents(global::AppKit.NSTableView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnDidMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnDidMove += x, x => _data.ColumnDidMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnDidResize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnDidResize += x, x => _data.ColumnDidResize -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddRowView => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTableViewRowEventArgs>(x => _data.DidAddRowView += x, x => _data.DidAddRowView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidClickTableColumn => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTableViewTableEventArgs>(x => _data.DidClickTableColumn += x, x => _data.DidClickTableColumn -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDragTableColumn => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTableViewTableEventArgs>(x => _data.DidDragTableColumn += x, x => _data.DidDragTableColumn -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveRowView => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTableViewRowEventArgs>(x => _data.DidRemoveRowView += x, x => _data.DidRemoveRowView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDownInHeaderOfTableColumn => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTableViewTableEventArgs>(x => _data.MouseDownInHeaderOfTableColumn += x, x => _data.MouseDownInHeaderOfTableColumn -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionDidChange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionDidChange += x, x => _data.SelectionDidChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionIsChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionIsChanging += x, x => _data.SelectionIsChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillDisplayCell => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTableViewCellEventArgs>(x => _data.WillDisplayCell += x, x => _data.WillDisplayCell -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSTabViewEvents + { + private readonly global::AppKit.NSTabView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSTabViewEvents(global::AppKit.NSTabView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelect => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTabViewItemEventArgs>(x => _data.DidSelect += x, x => _data.DidSelect -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NumberOfItemsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NumberOfItemsChanged += x, x => _data.NumberOfItemsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillSelect => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTabViewItemEventArgs>(x => _data.WillSelect += x, x => _data.WillSelect -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSTextEvents + { + private readonly global::AppKit.NSText _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSTextEvents(global::AppKit.NSText data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextDidBeginEditing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextDidBeginEditing += x, x => _data.TextDidBeginEditing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextDidChange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextDidChange += x, x => _data.TextDidChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextDidEndEditing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextDidEndEditing += x, x => _data.TextDidEndEditing -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSTextFieldEvents + { + private readonly global::AppKit.NSTextField _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSTextFieldEvents(global::AppKit.NSTextField data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Changed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Changed += x, x => _data.Changed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailToValidatePartialString => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSControlTextErrorEventArgs>(x => _data.DidFailToValidatePartialString += x, x => _data.DidFailToValidatePartialString -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingBegan => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingBegan += x, x => _data.EditingBegan -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingEnded += x, x => _data.EditingEnded -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSTextStorageEvents + { + private readonly global::AppKit.NSTextStorage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSTextStorageEvents(global::AppKit.NSTextStorage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidProcessEditing => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTextStorageEventArgs>(x => _data.DidProcessEditing += x, x => _data.DidProcessEditing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextStorageDidProcessEditing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextStorageDidProcessEditing += x, x => _data.TextStorageDidProcessEditing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextStorageWillProcessEditing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextStorageWillProcessEditing += x, x => _data.TextStorageWillProcessEditing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillProcessEditing => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTextStorageEventArgs>(x => _data.WillProcessEditing += x, x => _data.WillProcessEditing -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSTextViewEvents + { + private readonly global::AppKit.NSTextView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSTextViewEvents(global::AppKit.NSTextView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellClicked => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTextViewClickedEventArgs>(x => _data.CellClicked += x, x => _data.CellClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellDoubleClicked => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTextViewDoubleClickEventArgs>(x => _data.CellDoubleClicked += x, x => _data.CellDoubleClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeSelection => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeSelection += x, x => _data.DidChangeSelection -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeTypingAttributes => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeTypingAttributes += x, x => _data.DidChangeTypingAttributes -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DraggedCell => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSTextViewDraggedCellEventArgs>(x => _data.DraggedCell += x, x => _data.DraggedCell -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSToolbarEvents + { + private readonly global::AppKit.NSToolbar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSToolbarEvents(global::AppKit.NSToolbar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidRemoveItem += x, x => _data.DidRemoveItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillAddItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillAddItem += x, x => _data.WillAddItem -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSToolbarItemEvents + { + private readonly global::AppKit.NSToolbarItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSToolbarItemEvents(global::AppKit.NSToolbarItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSWindowEvents + { + private readonly global::AppKit.NSWindow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSWindowEvents(global::AppKit.NSWindow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBecomeKey => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidBecomeKey += x, x => _data.DidBecomeKey -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBecomeMain => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidBecomeMain += x, x => _data.DidBecomeMain -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeBackingProperties => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeBackingProperties += x, x => _data.DidChangeBackingProperties -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeScreen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeScreen += x, x => _data.DidChangeScreen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeScreenProfile => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeScreenProfile += x, x => _data.DidChangeScreenProfile -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDecodeRestorableState => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSWindowCoderEventArgs>(x => _data.DidDecodeRestorableState += x, x => _data.DidDecodeRestorableState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDeminiaturize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidDeminiaturize += x, x => _data.DidDeminiaturize -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndLiveResize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidEndLiveResize += x, x => _data.DidEndLiveResize -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndSheet => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidEndSheet += x, x => _data.DidEndSheet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEnterFullScreen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidEnterFullScreen += x, x => _data.DidEnterFullScreen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEnterVersionBrowser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidEnterVersionBrowser += x, x => _data.DidEnterVersionBrowser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidExitFullScreen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidExitFullScreen += x, x => _data.DidExitFullScreen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidExitVersionBrowser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidExitVersionBrowser += x, x => _data.DidExitVersionBrowser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidExpose => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidExpose += x, x => _data.DidExpose -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailToEnterFullScreen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFailToEnterFullScreen += x, x => _data.DidFailToEnterFullScreen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailToExitFullScreen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFailToExitFullScreen += x, x => _data.DidFailToExitFullScreen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidMiniaturize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidMiniaturize += x, x => _data.DidMiniaturize -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidMove += x, x => _data.DidMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidResignKey => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidResignKey += x, x => _data.DidResignKey -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidResignMain => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidResignMain += x, x => _data.DidResignMain -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidResize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidResize += x, x => _data.DidResize -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdate += x, x => _data.DidUpdate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StartCustomAnimationToEnterFullScreen => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSWindowDurationEventArgs>(x => _data.StartCustomAnimationToEnterFullScreen += x, x => _data.StartCustomAnimationToEnterFullScreen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StartCustomAnimationToExitFullScreen => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSWindowDurationEventArgs>(x => _data.StartCustomAnimationToExitFullScreen += x, x => _data.StartCustomAnimationToExitFullScreen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillBeginSheet => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillBeginSheet += x, x => _data.WillBeginSheet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillClose => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillClose += x, x => _data.WillClose -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEncodeRestorableState => global::System.Reactive.Linq.Observable.FromEventPattern, global::AppKit.NSWindowCoderEventArgs>(x => _data.WillEncodeRestorableState += x, x => _data.WillEncodeRestorableState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEnterFullScreen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillEnterFullScreen += x, x => _data.WillEnterFullScreen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEnterVersionBrowser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillEnterVersionBrowser += x, x => _data.WillEnterVersionBrowser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillExitFullScreen => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillExitFullScreen += x, x => _data.WillExitFullScreen -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillExitVersionBrowser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillExitVersionBrowser += x, x => _data.WillExitVersionBrowser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillMiniaturize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillMiniaturize += x, x => _data.WillMiniaturize -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillMove += x, x => _data.WillMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartLiveResize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartLiveResize += x, x => _data.WillStartLiveResize -= x).Select(x => x.EventArgs); + } +} + +namespace AudioToolbox +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioConverterEvents Events(this global::AudioToolbox.AudioConverter item) => new AudioConverterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InputAudioQueueEvents Events(this global::AudioToolbox.InputAudioQueue item) => new InputAudioQueueEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static OutputAudioQueueEvents Events(this global::AudioToolbox.OutputAudioQueue item) => new OutputAudioQueueEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioConverterEvents + { + private readonly global::AudioToolbox.AudioConverter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioConverterEvents(global::AudioToolbox.AudioConverter data) + { + _data = data; + } + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InputAudioQueueEvents + { + private readonly global::AudioToolbox.InputAudioQueue _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InputAudioQueueEvents(global::AudioToolbox.InputAudioQueue data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InputCompleted => global::System.Reactive.Linq.Observable.FromEventPattern, global::AudioToolbox.InputCompletedEventArgs>(x => _data.InputCompleted += x, x => _data.InputCompleted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class OutputAudioQueueEvents + { + private readonly global::AudioToolbox.OutputAudioQueue _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public OutputAudioQueueEvents(global::AudioToolbox.OutputAudioQueue data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferCompleted => global::System.Reactive.Linq.Observable.FromEventPattern, global::AudioToolbox.BufferCompletedEventArgs>(x => _data.BufferCompleted += x, x => _data.BufferCompleted -= x).Select(x => x.EventArgs); + } +} + +namespace AVFoundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AVAudioPlayerEvents Events(this global::AVFoundation.AVAudioPlayer item) => new AVAudioPlayerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AVAudioRecorderEvents Events(this global::AVFoundation.AVAudioRecorder item) => new AVAudioRecorderEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AVAudioPlayerEvents + { + private readonly global::AVFoundation.AVAudioPlayer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AVAudioPlayerEvents(global::AVFoundation.AVAudioPlayer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeginInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeginInterruption += x, x => _data.BeginInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecoderError => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVErrorEventArgs>(x => _data.DecoderError += x, x => _data.DecoderError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EndInterruption += x, x => _data.EndInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FinishedPlaying => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVStatusEventArgs>(x => _data.FinishedPlaying += x, x => _data.FinishedPlaying -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AVAudioRecorderEvents + { + private readonly global::AVFoundation.AVAudioRecorder _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AVAudioRecorderEvents(global::AVFoundation.AVAudioRecorder data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeginInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeginInterruption += x, x => _data.BeginInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EncoderError => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVErrorEventArgs>(x => _data.EncoderError += x, x => _data.EncoderError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EndInterruption += x, x => _data.EndInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FinishedRecording => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVStatusEventArgs>(x => _data.FinishedRecording += x, x => _data.FinishedRecording -= x).Select(x => x.EventArgs); + } +} + +namespace CoreAnimation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CAAnimationEvents Events(this global::CoreAnimation.CAAnimation item) => new CAAnimationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CAAnimationEvents + { + private readonly global::CoreAnimation.CAAnimation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CAAnimationEvents(global::CoreAnimation.CAAnimation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnimationStarted += x, x => _data.AnimationStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationStopped => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreAnimation.CAAnimationStateEventArgs>(x => _data.AnimationStopped += x, x => _data.AnimationStopped -= x).Select(x => x.EventArgs); + } +} + +namespace CoreBluetooth +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CBCentralManagerEvents Events(this global::CoreBluetooth.CBCentralManager item) => new CBCentralManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CBPeripheralEvents Events(this global::CoreBluetooth.CBPeripheral item) => new CBPeripheralEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CBPeripheralManagerEvents Events(this global::CoreBluetooth.CBPeripheralManager item) => new CBPeripheralManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CBCentralManagerEvents + { + private readonly global::CoreBluetooth.CBCentralManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CBCentralManagerEvents(global::CoreBluetooth.CBCentralManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ConnectedPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralEventArgs>(x => _data.ConnectedPeripheral += x, x => _data.ConnectedPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisconnectedPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralErrorEventArgs>(x => _data.DisconnectedPeripheral += x, x => _data.DisconnectedPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBDiscoveredPeripheralEventArgs>(x => _data.DiscoveredPeripheral += x, x => _data.DiscoveredPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FailedToConnectPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralErrorEventArgs>(x => _data.FailedToConnectPeripheral += x, x => _data.FailedToConnectPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RetrievedConnectedPeripherals => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralsEventArgs>(x => _data.RetrievedConnectedPeripherals += x, x => _data.RetrievedConnectedPeripherals -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RetrievedPeripherals => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralsEventArgs>(x => _data.RetrievedPeripherals += x, x => _data.RetrievedPeripherals -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedState => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UpdatedState += x, x => _data.UpdatedState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillRestoreState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBWillRestoreEventArgs>(x => _data.WillRestoreState += x, x => _data.WillRestoreState -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CBPeripheralEvents + { + private readonly global::CoreBluetooth.CBPeripheral _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CBPeripheralEvents(global::CoreBluetooth.CBPeripheral data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidOpenL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralOpenL2CapChannelEventArgs>(x => _data.DidOpenL2CapChannel += x, x => _data.DidOpenL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredCharacteristic => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBServiceEventArgs>(x => _data.DiscoveredCharacteristic += x, x => _data.DiscoveredCharacteristic -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredDescriptor => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.DiscoveredDescriptor += x, x => _data.DiscoveredDescriptor -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredIncludedService => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBServiceEventArgs>(x => _data.DiscoveredIncludedService += x, x => _data.DiscoveredIncludedService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredService => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.DiscoveredService += x, x => _data.DiscoveredService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InvalidatedService => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.InvalidatedService += x, x => _data.InvalidatedService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsReadyToSendWriteWithoutResponse => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsReadyToSendWriteWithoutResponse += x, x => _data.IsReadyToSendWriteWithoutResponse -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ModifiedServices => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralServicesEventArgs>(x => _data.ModifiedServices += x, x => _data.ModifiedServices -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RssiRead => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBRssiEventArgs>(x => _data.RssiRead += x, x => _data.RssiRead -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RssiUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.RssiUpdated += x, x => _data.RssiUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedCharacterteristicValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.UpdatedCharacterteristicValue += x, x => _data.UpdatedCharacterteristicValue -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedName => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UpdatedName += x, x => _data.UpdatedName -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedNotificationState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.UpdatedNotificationState += x, x => _data.UpdatedNotificationState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBDescriptorEventArgs>(x => _data.UpdatedValue += x, x => _data.UpdatedValue -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WroteCharacteristicValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.WroteCharacteristicValue += x, x => _data.WroteCharacteristicValue -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WroteDescriptorValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBDescriptorEventArgs>(x => _data.WroteDescriptorValue += x, x => _data.WroteDescriptorValue -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CBPeripheralManagerEvents + { + private readonly global::CoreBluetooth.CBPeripheralManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CBPeripheralManagerEvents(global::CoreBluetooth.CBPeripheralManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AdvertisingStarted => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.AdvertisingStarted += x, x => _data.AdvertisingStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CharacteristicSubscribed => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerSubscriptionEventArgs>(x => _data.CharacteristicSubscribed += x, x => _data.CharacteristicSubscribed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CharacteristicUnsubscribed => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerSubscriptionEventArgs>(x => _data.CharacteristicUnsubscribed += x, x => _data.CharacteristicUnsubscribed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidOpenL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerOpenL2CapChannelEventArgs>(x => _data.DidOpenL2CapChannel += x, x => _data.DidOpenL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPublishL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerL2CapChannelOperationEventArgs>(x => _data.DidPublishL2CapChannel += x, x => _data.DidPublishL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUnpublishL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerL2CapChannelOperationEventArgs>(x => _data.DidUnpublishL2CapChannel += x, x => _data.DidUnpublishL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadRequestReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBATTRequestEventArgs>(x => _data.ReadRequestReceived += x, x => _data.ReadRequestReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadyToUpdateSubscribers => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReadyToUpdateSubscribers += x, x => _data.ReadyToUpdateSubscribers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ServiceAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerServiceEventArgs>(x => _data.ServiceAdded += x, x => _data.ServiceAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StateUpdated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StateUpdated += x, x => _data.StateUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillRestoreState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBWillRestoreEventArgs>(x => _data.WillRestoreState += x, x => _data.WillRestoreState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WriteRequestsReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBATTRequestsEventArgs>(x => _data.WriteRequestsReceived += x, x => _data.WriteRequestsReceived -= x).Select(x => x.EventArgs); + } +} + +namespace CoreFoundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CFSocketEvents Events(this global::CoreFoundation.CFSocket item) => new CFSocketEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CFStreamEvents Events(this global::CoreFoundation.CFStream item) => new CFStreamEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CFSocketEvents + { + private readonly global::CoreFoundation.CFSocket _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CFSocketEvents(global::CoreFoundation.CFSocket data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AcceptEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketAcceptEventArgs>(x => _data.AcceptEvent += x, x => _data.AcceptEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ConnectEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketConnectEventArgs>(x => _data.ConnectEvent += x, x => _data.ConnectEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketDataEventArgs>(x => _data.DataEvent += x, x => _data.DataEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketReadEventArgs>(x => _data.ReadEvent += x, x => _data.ReadEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WriteEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketWriteEventArgs>(x => _data.WriteEvent += x, x => _data.WriteEvent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CFStreamEvents + { + private readonly global::CoreFoundation.CFStream _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CFStreamEvents(global::CoreFoundation.CFStream data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CanAcceptBytesEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.CanAcceptBytesEvent += x, x => _data.CanAcceptBytesEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ClosedEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.ClosedEvent += x, x => _data.ClosedEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ErrorEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.ErrorEvent += x, x => _data.ErrorEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HasBytesAvailableEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.HasBytesAvailableEvent += x, x => _data.HasBytesAvailableEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OpenCompletedEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.OpenCompletedEvent += x, x => _data.OpenCompletedEvent -= x).Select(x => x.EventArgs); + } +} + +namespace CoreLocation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CLLocationManagerEvents Events(this global::CoreLocation.CLLocationManager item) => new CLLocationManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CLLocationManagerEvents + { + private readonly global::CoreLocation.CLLocationManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CLLocationManagerEvents(global::CoreLocation.CLLocationManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AuthorizationChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLAuthorizationChangedEventArgs>(x => _data.AuthorizationChanged += x, x => _data.AuthorizationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DeferredUpdatesFinished => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.DeferredUpdatesFinished += x, x => _data.DeferredUpdatesFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDetermineState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionStateDeterminedEventArgs>(x => _data.DidDetermineState += x, x => _data.DidDetermineState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidStartMonitoringForRegion => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionEventArgs>(x => _data.DidStartMonitoringForRegion += x, x => _data.DidStartMonitoringForRegion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Failed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.Failed += x, x => _data.Failed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationsUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLLocationsUpdatedEventArgs>(x => _data.LocationsUpdated += x, x => _data.LocationsUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationUpdatesPaused => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationUpdatesPaused += x, x => _data.LocationUpdatesPaused -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationUpdatesResumed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationUpdatesResumed += x, x => _data.LocationUpdatesResumed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MonitoringFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionErrorEventArgs>(x => _data.MonitoringFailed += x, x => _data.MonitoringFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionEntered => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionEventArgs>(x => _data.RegionEntered += x, x => _data.RegionEntered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionLeft => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionEventArgs>(x => _data.RegionLeft += x, x => _data.RegionLeft -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedLocation => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLLocationUpdatedEventArgs>(x => _data.UpdatedLocation += x, x => _data.UpdatedLocation -= x).Select(x => x.EventArgs); + } +} + +namespace CoreMidi +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MidiClientEvents Events(this global::CoreMidi.MidiClient item) => new MidiClientEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MidiEndpointEvents Events(this global::CoreMidi.MidiEndpoint item) => new MidiEndpointEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MidiPortEvents Events(this global::CoreMidi.MidiPort item) => new MidiPortEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MidiClientEvents + { + private readonly global::CoreMidi.MidiClient _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MidiClientEvents(global::CoreMidi.MidiClient data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IOError => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.IOErrorEventArgs>(x => _data.IOError += x, x => _data.IOError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ObjectAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.ObjectAddedOrRemovedEventArgs>(x => _data.ObjectAdded += x, x => _data.ObjectAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ObjectRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.ObjectAddedOrRemovedEventArgs>(x => _data.ObjectRemoved += x, x => _data.ObjectRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.ObjectPropertyChangedEventArgs>(x => _data.PropertyChanged += x, x => _data.PropertyChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SerialPortOwnerChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SerialPortOwnerChanged += x, x => _data.SerialPortOwnerChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SetupChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SetupChanged += x, x => _data.SetupChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ThruConnectionsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ThruConnectionsChanged += x, x => _data.ThruConnectionsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MidiEndpointEvents + { + private readonly global::CoreMidi.MidiEndpoint _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MidiEndpointEvents(global::CoreMidi.MidiEndpoint data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MessageReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.MidiPacketsEventArgs>(x => _data.MessageReceived += x, x => _data.MessageReceived -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MidiPortEvents + { + private readonly global::CoreMidi.MidiPort _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MidiPortEvents(global::CoreMidi.MidiPort data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MessageReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.MidiPacketsEventArgs>(x => _data.MessageReceived += x, x => _data.MessageReceived -= x).Select(x => x.EventArgs); + } +} + +namespace CoreServices +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FSEventStreamEvents Events(this global::CoreServices.FSEventStream item) => new FSEventStreamEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FSEventStreamEvents + { + private readonly global::CoreServices.FSEventStream _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FSEventStreamEvents(global::CoreServices.FSEventStream data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Events => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Events += x, x => _data.Events -= x).Select(x => x.EventArgs); + } +} + +namespace ExternalAccessory +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EAAccessoryEvents Events(this global::ExternalAccessory.EAAccessory item) => new EAAccessoryEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EAAccessoryEvents + { + private readonly global::ExternalAccessory.EAAccessory _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EAAccessoryEvents(global::ExternalAccessory.EAAccessory data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Disconnected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Disconnected += x, x => _data.Disconnected -= x).Select(x => x.EventArgs); + } +} + +namespace Foundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSCacheEvents Events(this global::Foundation.NSCache item) => new NSCacheEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSKeyedArchiverEvents Events(this global::Foundation.NSKeyedArchiver item) => new NSKeyedArchiverEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSKeyedUnarchiverEvents Events(this global::Foundation.NSKeyedUnarchiver item) => new NSKeyedUnarchiverEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSNetServiceEvents Events(this global::Foundation.NSNetService item) => new NSNetServiceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSNetServiceBrowserEvents Events(this global::Foundation.NSNetServiceBrowser item) => new NSNetServiceBrowserEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSStreamEvents Events(this global::Foundation.NSStream item) => new NSStreamEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSUserNotificationCenterEvents Events(this global::Foundation.NSUserNotificationCenter item) => new NSUserNotificationCenterEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSCacheEvents + { + private readonly global::Foundation.NSCache _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSCacheEvents(global::Foundation.NSCache data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEvictObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSObjectEventArgs>(x => _data.WillEvictObject += x, x => _data.WillEvictObject -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSKeyedArchiverEvents + { + private readonly global::Foundation.NSKeyedArchiver _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSKeyedArchiverEvents(global::Foundation.NSKeyedArchiver data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EncodedObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSObjectEventArgs>(x => _data.EncodedObject += x, x => _data.EncodedObject -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finishing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finishing += x, x => _data.Finishing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReplacingObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSArchiveReplaceEventArgs>(x => _data.ReplacingObject += x, x => _data.ReplacingObject -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSKeyedUnarchiverEvents + { + private readonly global::Foundation.NSKeyedUnarchiver _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSKeyedUnarchiverEvents(global::Foundation.NSKeyedUnarchiver data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finishing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finishing += x, x => _data.Finishing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReplacingObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSArchiveReplaceEventArgs>(x => _data.ReplacingObject += x, x => _data.ReplacingObject -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSNetServiceEvents + { + private readonly global::Foundation.NSNetService _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSNetServiceEvents(global::Foundation.NSNetService data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AddressResolved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AddressResolved += x, x => _data.AddressResolved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAcceptConnection => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceConnectionEventArgs>(x => _data.DidAcceptConnection += x, x => _data.DidAcceptConnection -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Published => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Published += x, x => _data.Published -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PublishFailure => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceErrorEventArgs>(x => _data.PublishFailure += x, x => _data.PublishFailure -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ResolveFailure => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceErrorEventArgs>(x => _data.ResolveFailure += x, x => _data.ResolveFailure -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Stopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Stopped += x, x => _data.Stopped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedTxtRecordData => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceDataEventArgs>(x => _data.UpdatedTxtRecordData += x, x => _data.UpdatedTxtRecordData -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPublish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillPublish += x, x => _data.WillPublish -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillResolve => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillResolve += x, x => _data.WillResolve -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSNetServiceBrowserEvents + { + private readonly global::Foundation.NSNetServiceBrowser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSNetServiceBrowserEvents(global::Foundation.NSNetServiceBrowser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DomainRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetDomainEventArgs>(x => _data.DomainRemoved += x, x => _data.DomainRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FoundDomain => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetDomainEventArgs>(x => _data.FoundDomain += x, x => _data.FoundDomain -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FoundService => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceEventArgs>(x => _data.FoundService += x, x => _data.FoundService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NotSearched => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceErrorEventArgs>(x => _data.NotSearched += x, x => _data.NotSearched -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchStarted += x, x => _data.SearchStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchStopped += x, x => _data.SearchStopped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ServiceRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceEventArgs>(x => _data.ServiceRemoved += x, x => _data.ServiceRemoved -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSStreamEvents + { + private readonly global::Foundation.NSStream _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSStreamEvents(global::Foundation.NSStream data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSStreamEventArgs>(x => _data.OnEvent += x, x => _data.OnEvent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSUserNotificationCenterEvents + { + private readonly global::Foundation.NSUserNotificationCenter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSUserNotificationCenterEvents(global::Foundation.NSUserNotificationCenter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidActivateNotification => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.UNCDidActivateNotificationEventArgs>(x => _data.DidActivateNotification += x, x => _data.DidActivateNotification -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDeliverNotification => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.UNCDidDeliverNotificationEventArgs>(x => _data.DidDeliverNotification += x, x => _data.DidDeliverNotification -= x).Select(x => x.EventArgs); + } +} + +namespace GameKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKAchievementViewControllerEvents Events(this global::GameKit.GKAchievementViewController item) => new GKAchievementViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKChallengeEventHandlerEvents Events(this global::GameKit.GKChallengeEventHandler item) => new GKChallengeEventHandlerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKFriendRequestComposeViewControllerEvents Events(this global::GameKit.GKFriendRequestComposeViewController item) => new GKFriendRequestComposeViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKGameCenterViewControllerEvents Events(this global::GameKit.GKGameCenterViewController item) => new GKGameCenterViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKLeaderboardViewControllerEvents Events(this global::GameKit.GKLeaderboardViewController item) => new GKLeaderboardViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKMatchEvents Events(this global::GameKit.GKMatch item) => new GKMatchEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKMatchmakerViewControllerEvents Events(this global::GameKit.GKMatchmakerViewController item) => new GKMatchmakerViewControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKAchievementViewControllerEvents + { + private readonly global::GameKit.GKAchievementViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKAchievementViewControllerEvents(global::GameKit.GKAchievementViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFinish += x, x => _data.DidFinish -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKChallengeEventHandlerEvents + { + private readonly global::GameKit.GKChallengeEventHandler _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKChallengeEventHandlerEvents(global::GameKit.GKChallengeEventHandler data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocalPlayerCompletedChallenge => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocalPlayerCompletedChallenge += x, x => _data.LocalPlayerCompletedChallenge -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocalPlayerReceivedChallenge => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocalPlayerReceivedChallenge += x, x => _data.LocalPlayerReceivedChallenge -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocalPlayerSelectedChallenge => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocalPlayerSelectedChallenge += x, x => _data.LocalPlayerSelectedChallenge -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RemotePlayerCompletedChallenge => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RemotePlayerCompletedChallenge += x, x => _data.RemotePlayerCompletedChallenge -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKFriendRequestComposeViewControllerEvents + { + private readonly global::GameKit.GKFriendRequestComposeViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKFriendRequestComposeViewControllerEvents(global::GameKit.GKFriendRequestComposeViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFinish += x, x => _data.DidFinish -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKGameCenterViewControllerEvents + { + private readonly global::GameKit.GKGameCenterViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKGameCenterViewControllerEvents(global::GameKit.GKGameCenterViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKLeaderboardViewControllerEvents + { + private readonly global::GameKit.GKLeaderboardViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKLeaderboardViewControllerEvents(global::GameKit.GKLeaderboardViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFinish += x, x => _data.DidFinish -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKMatchEvents + { + private readonly global::GameKit.GKMatch _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKMatchEvents(global::GameKit.GKMatch data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("It will never be called.", false)] + public global::System.IObservable ConnectionFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKPlayerErrorEventArgs>(x => _data.ConnectionFailed += x, x => _data.ConnectionFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKDataEventArgs>(x => _data.DataReceived += x, x => _data.DataReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataReceivedForRecipient => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKDataReceivedForRecipientEventArgs>(x => _data.DataReceivedForRecipient += x, x => _data.DataReceivedForRecipient -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataReceivedFromPlayer => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchReceivedDataFromRemotePlayerEventArgs>(x => _data.DataReceivedFromPlayer += x, x => _data.DataReceivedFromPlayer -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Failed => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKErrorEventArgs>(x => _data.Failed += x, x => _data.Failed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKStateEventArgs>(x => _data.StateChanged += x, x => _data.StateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StateChangedForPlayer => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchConnectionChangedEventArgs>(x => _data.StateChangedForPlayer += x, x => _data.StateChangedForPlayer -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKMatchmakerViewControllerEvents + { + private readonly global::GameKit.GKMatchmakerViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKMatchmakerViewControllerEvents(global::GameKit.GKMatchmakerViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailWithError => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKErrorEventArgs>(x => _data.DidFailWithError += x, x => _data.DidFailWithError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindHostedPlayers => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchmakingPlayersEventArgs>(x => _data.DidFindHostedPlayers += x, x => _data.DidFindHostedPlayers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindMatch => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchEventArgs>(x => _data.DidFindMatch += x, x => _data.DidFindMatch -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindPlayers => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKPlayersEventArgs>(x => _data.DidFindPlayers += x, x => _data.DidFindPlayers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HostedPlayerDidAccept => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchmakingPlayerEventArgs>(x => _data.HostedPlayerDidAccept += x, x => _data.HostedPlayerDidAccept -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceivedAcceptFromHostedPlayer => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKPlayerEventArgs>(x => _data.ReceivedAcceptFromHostedPlayer += x, x => _data.ReceivedAcceptFromHostedPlayer -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WasCancelled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WasCancelled += x, x => _data.WasCancelled -= x).Select(x => x.EventArgs); + } +} + +namespace ImageKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IKCameraDeviceViewEvents Events(this global::ImageKit.IKCameraDeviceView item) => new IKCameraDeviceViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IKDeviceBrowserViewEvents Events(this global::ImageKit.IKDeviceBrowserView item) => new IKDeviceBrowserViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IKImageBrowserViewEvents Events(this global::ImageKit.IKImageBrowserView item) => new IKImageBrowserViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IKScannerDeviceViewEvents Events(this global::ImageKit.IKScannerDeviceView item) => new IKScannerDeviceViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IKCameraDeviceViewEvents + { + private readonly global::ImageKit.IKCameraDeviceView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IKCameraDeviceViewEvents(global::ImageKit.IKCameraDeviceView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDownloadFile => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKCameraDeviceViewICCameraFileNSUrlNSDataNSErrorEventArgs>(x => _data.DidDownloadFile += x, x => _data.DidDownloadFile -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEncounterError => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKCameraDeviceViewNSErrorEventArgs>(x => _data.DidEncounterError += x, x => _data.DidEncounterError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionDidChange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionDidChange += x, x => _data.SelectionDidChange -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IKDeviceBrowserViewEvents + { + private readonly global::ImageKit.IKDeviceBrowserView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IKDeviceBrowserViewEvents(global::ImageKit.IKDeviceBrowserView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEncounterError => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKDeviceBrowserViewNSErrorEventArgs>(x => _data.DidEncounterError += x, x => _data.DidEncounterError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionDidChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKDeviceBrowserViewICDeviceEventArgs>(x => _data.SelectionDidChange += x, x => _data.SelectionDidChange -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IKImageBrowserViewEvents + { + private readonly global::ImageKit.IKImageBrowserView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IKImageBrowserViewEvents(global::ImageKit.IKImageBrowserView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundWasRightClicked => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKImageBrowserViewEventEventArgs>(x => _data.BackgroundWasRightClicked += x, x => _data.BackgroundWasRightClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellWasDoubleClicked => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKImageBrowserViewIndexEventArgs>(x => _data.CellWasDoubleClicked += x, x => _data.CellWasDoubleClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellWasRightClicked => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKImageBrowserViewIndexEventEventArgs>(x => _data.CellWasRightClicked += x, x => _data.CellWasRightClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionDidChange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionDidChange += x, x => _data.SelectionDidChange -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IKScannerDeviceViewEvents + { + private readonly global::ImageKit.IKScannerDeviceView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IKScannerDeviceViewEvents(global::ImageKit.IKScannerDeviceView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEncounterError => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKScannerDeviceViewErrorEventArgs>(x => _data.DidEncounterError += x, x => _data.DidEncounterError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidScan => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKScannerDeviceViewScanEventArgs>(x => _data.DidScan += x, x => _data.DidScan -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidScanToBandData => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKScannerDeviceViewScanBandDataEventArgs>(x => _data.DidScanToBandData += x, x => _data.DidScanToBandData -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidScanToUrl => global::System.Reactive.Linq.Observable.FromEventPattern, global::ImageKit.IKScannerDeviceViewScanUrlEventArgs>(x => _data.DidScanToUrl += x, x => _data.DidScanToUrl -= x).Select(x => x.EventArgs); + } +} + +namespace MapKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MKMapViewEvents Events(this global::MapKit.MKMapView item) => new MKMapViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MKMapViewEvents + { + private readonly global::MapKit.MKMapView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MKMapViewEvents(global::MapKit.MKMapView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChangedDragState => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewDragStateEventArgs>(x => _data.ChangedDragState += x, x => _data.ChangedDragState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddAnnotationViews => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewAnnotationEventArgs>(x => _data.DidAddAnnotationViews += x, x => _data.DidAddAnnotationViews -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddOverlayRenderers => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKDidAddOverlayRenderersEventArgs>(x => _data.DidAddOverlayRenderers += x, x => _data.DidAddOverlayRenderers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeVisibleRegion => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeVisibleRegion += x, x => _data.DidChangeVisibleRegion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDeselectAnnotationView => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKAnnotationViewEventArgs>(x => _data.DidDeselectAnnotationView += x, x => _data.DidDeselectAnnotationView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailToLocateUser => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.DidFailToLocateUser += x, x => _data.DidFailToLocateUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishRenderingMap => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKDidFinishRenderingMapEventArgs>(x => _data.DidFinishRenderingMap += x, x => _data.DidFinishRenderingMap -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectAnnotationView => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKAnnotationViewEventArgs>(x => _data.DidSelectAnnotationView += x, x => _data.DidSelectAnnotationView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidStopLocatingUser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidStopLocatingUser += x, x => _data.DidStopLocatingUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateUserLocation => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKUserLocationEventArgs>(x => _data.DidUpdateUserLocation += x, x => _data.DidUpdateUserLocation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadingMapFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.LoadingMapFailed += x, x => _data.LoadingMapFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MapLoaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MapLoaded += x, x => _data.MapLoaded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewChangeEventArgs>(x => _data.RegionChanged += x, x => _data.RegionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionWillChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewChangeEventArgs>(x => _data.RegionWillChange += x, x => _data.RegionWillChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartLoadingMap => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartLoadingMap += x, x => _data.WillStartLoadingMap -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartLocatingUser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartLocatingUser += x, x => _data.WillStartLocatingUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartRenderingMap => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartRenderingMap += x, x => _data.WillStartRenderingMap -= x).Select(x => x.EventArgs); + } +} + +namespace NotificationCenter +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NCWidgetListViewControllerEvents Events(this global::NotificationCenter.NCWidgetListViewController item) => new NCWidgetListViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NCWidgetSearchViewControllerEvents Events(this global::NotificationCenter.NCWidgetSearchViewController item) => new NCWidgetSearchViewControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NCWidgetListViewControllerEvents + { + private readonly global::NotificationCenter.NCWidgetListViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NCWidgetListViewControllerEvents(global::NotificationCenter.NCWidgetListViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveRow => global::System.Reactive.Linq.Observable.FromEventPattern, global::NotificationCenter.NCWidgetListViewControllerDidRemoveRowEventArgs>(x => _data.DidRemoveRow += x, x => _data.DidRemoveRow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidReorderRow => global::System.Reactive.Linq.Observable.FromEventPattern, global::NotificationCenter.NCWidgetListViewControllerDidReorderEventArgs>(x => _data.DidReorderRow += x, x => _data.DidReorderRow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformAddAction => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PerformAddAction += x, x => _data.PerformAddAction -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NCWidgetSearchViewControllerEvents + { + private readonly global::NotificationCenter.NCWidgetSearchViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NCWidgetSearchViewControllerEvents(global::NotificationCenter.NCWidgetSearchViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ResultSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::NotificationCenter.NSWidgetSearchResultSelectedEventArgs>(x => _data.ResultSelected += x, x => _data.ResultSelected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchForTearm => global::System.Reactive.Linq.Observable.FromEventPattern, global::NotificationCenter.NSWidgetSearchForTermEventArgs>(x => _data.SearchForTearm += x, x => _data.SearchForTearm -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TermCleared => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TermCleared += x, x => _data.TermCleared -= x).Select(x => x.EventArgs); + } +} + +namespace PdfKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PdfDocumentEvents Events(this global::PdfKit.PdfDocument item) => new PdfDocumentEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PdfViewEvents Events(this global::PdfKit.PdfView item) => new PdfViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PdfDocumentEvents + { + private readonly global::PdfKit.PdfDocument _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PdfDocumentEvents(global::PdfKit.PdfDocument data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBeginDocumentFind => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidBeginDocumentFind += x, x => _data.DidBeginDocumentFind -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidMatchString => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidMatchString += x, x => _data.DidMatchString -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUnlock => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUnlock += x, x => _data.DidUnlock -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FindFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FindFinished += x, x => _data.FindFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MatchFound => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MatchFound += x, x => _data.MatchFound -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PageFindFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PageFindFinished += x, x => _data.PageFindFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PageFindStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PageFindStarted += x, x => _data.PageFindStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PdfViewEvents + { + private readonly global::PdfKit.PdfView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PdfViewEvents(global::PdfKit.PdfView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OpenPdf => global::System.Reactive.Linq.Observable.FromEventPattern, global::PdfKit.PdfViewActionEventArgs>(x => _data.OpenPdf += x, x => _data.OpenPdf -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformFind => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PerformFind += x, x => _data.PerformFind -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformGoToPage => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PerformGoToPage += x, x => _data.PerformGoToPage -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformPrint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PerformPrint += x, x => _data.PerformPrint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillClickOnLink => global::System.Reactive.Linq.Observable.FromEventPattern, global::PdfKit.PdfViewUrlEventArgs>(x => _data.WillClickOnLink += x, x => _data.WillClickOnLink -= x).Select(x => x.EventArgs); + } +} + +namespace QTKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static QTCaptureDecompressedVideoOutputEvents Events(this global::QTKit.QTCaptureDecompressedVideoOutput item) => new QTCaptureDecompressedVideoOutputEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static QTCaptureFileOutputEvents Events(this global::QTKit.QTCaptureFileOutput item) => new QTCaptureFileOutputEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class QTCaptureDecompressedVideoOutputEvents + { + private readonly global::QTKit.QTCaptureDecompressedVideoOutput _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public QTCaptureDecompressedVideoOutputEvents(global::QTKit.QTCaptureDecompressedVideoOutput data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDropVideoFrame => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureVideoDroppedEventArgs>(x => _data.DidDropVideoFrame += x, x => _data.DidDropVideoFrame -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidOutputVideoFrame => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureVideoFrameEventArgs>(x => _data.DidOutputVideoFrame += x, x => _data.DidOutputVideoFrame -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class QTCaptureFileOutputEvents + { + private readonly global::QTKit.QTCaptureFileOutput _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public QTCaptureFileOutputEvents(global::QTKit.QTCaptureFileOutput data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishRecording => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureFileErrorEventArgs>(x => _data.DidFinishRecording += x, x => _data.DidFinishRecording -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidOutputSampleBuffer => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureFileSampleEventArgs>(x => _data.DidOutputSampleBuffer += x, x => _data.DidOutputSampleBuffer -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPauseRecording => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureFileUrlEventArgs>(x => _data.DidPauseRecording += x, x => _data.DidPauseRecording -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidResumeRecording => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureFileUrlEventArgs>(x => _data.DidResumeRecording += x, x => _data.DidResumeRecording -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidStartRecording => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureFileUrlEventArgs>(x => _data.DidStartRecording += x, x => _data.DidStartRecording -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MustChangeOutputFile => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureFileErrorEventArgs>(x => _data.MustChangeOutputFile += x, x => _data.MustChangeOutputFile -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillFinishRecording => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureFileErrorEventArgs>(x => _data.WillFinishRecording += x, x => _data.WillFinishRecording -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartRecording => global::System.Reactive.Linq.Observable.FromEventPattern, global::QTKit.QTCaptureFileUrlEventArgs>(x => _data.WillStartRecording += x, x => _data.WillStartRecording -= x).Select(x => x.EventArgs); + } +} + +namespace SceneKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SCNPhysicsWorldEvents Events(this global::SceneKit.SCNPhysicsWorld item) => new SCNPhysicsWorldEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SCNPhysicsWorldEvents + { + private readonly global::SceneKit.SCNPhysicsWorld _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SCNPhysicsWorldEvents(global::SceneKit.SCNPhysicsWorld data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBeginContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::SceneKit.SCNPhysicsContactEventArgs>(x => _data.DidBeginContact += x, x => _data.DidBeginContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::SceneKit.SCNPhysicsContactEventArgs>(x => _data.DidEndContact += x, x => _data.DidEndContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::SceneKit.SCNPhysicsContactEventArgs>(x => _data.DidUpdateContact += x, x => _data.DidUpdateContact -= x).Select(x => x.EventArgs); + } +} + +namespace SpriteKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKPhysicsWorldEvents Events(this global::SpriteKit.SKPhysicsWorld item) => new SKPhysicsWorldEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKPhysicsWorldEvents + { + private readonly global::SpriteKit.SKPhysicsWorld _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKPhysicsWorldEvents(global::SpriteKit.SKPhysicsWorld data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBeginContact => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidBeginContact += x, x => _data.DidBeginContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndContact => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidEndContact += x, x => _data.DidEndContact -= x).Select(x => x.EventArgs); + } +} + +namespace StoreKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKProductsRequestEvents Events(this global::StoreKit.SKProductsRequest item) => new SKProductsRequestEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKRequestEvents Events(this global::StoreKit.SKRequest item) => new SKRequestEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKProductsRequestEvents + { + private readonly global::StoreKit.SKProductsRequest _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKProductsRequestEvents(global::StoreKit.SKProductsRequest data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceivedResponse => global::System.Reactive.Linq.Observable.FromEventPattern, global::StoreKit.SKProductsRequestResponseEventArgs>(x => _data.ReceivedResponse += x, x => _data.ReceivedResponse -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKRequestEvents + { + private readonly global::StoreKit.SKRequest _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKRequestEvents(global::StoreKit.SKRequest data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RequestFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::StoreKit.SKRequestErrorEventArgs>(x => _data.RequestFailed += x, x => _data.RequestFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RequestFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RequestFinished += x, x => _data.RequestFinished -= x).Select(x => x.EventArgs); + } +} + +namespace WebKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebViewEvents Events(this global::WebKit.WebView item) => new WebViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebViewEvents + { + private readonly global::WebKit.WebView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebViewEvents(global::WebKit.WebView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CanceledClientRedirect => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameEventArgs>(x => _data.CanceledClientRedirect += x, x => _data.CanceledClientRedirect -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChangedLocationWithinPage => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameEventArgs>(x => _data.ChangedLocationWithinPage += x, x => _data.ChangedLocationWithinPage -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ClearedWindowObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameScriptFrameEventArgs>(x => _data.ClearedWindowObject += x, x => _data.ClearedWindowObject -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CommitedLoad => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameEventArgs>(x => _data.CommitedLoad += x, x => _data.CommitedLoad -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecidePolicyForMimeType => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebMimeTypePolicyEventArgs>(x => _data.DecidePolicyForMimeType += x, x => _data.DecidePolicyForMimeType -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecidePolicyForNavigation => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebNavigationPolicyEventArgs>(x => _data.DecidePolicyForNavigation += x, x => _data.DecidePolicyForNavigation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecidePolicyForNewWindow => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebNewWindowPolicyEventArgs>(x => _data.DecidePolicyForNewWindow += x, x => _data.DecidePolicyForNewWindow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidCreateJavaScriptContext => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameJavaScriptContextEventArgs>(x => _data.DidCreateJavaScriptContext += x, x => _data.DidCreateJavaScriptContext -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FailedLoadWithError => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameErrorEventArgs>(x => _data.FailedLoadWithError += x, x => _data.FailedLoadWithError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FailedProvisionalLoad => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameErrorEventArgs>(x => _data.FailedProvisionalLoad += x, x => _data.FailedProvisionalLoad -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FinishedLoad => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameEventArgs>(x => _data.FinishedLoad += x, x => _data.FinishedLoad -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnCancelledAuthenticationChallenge => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebResourceCancelledChallengeEventArgs>(x => _data.OnCancelledAuthenticationChallenge += x, x => _data.OnCancelledAuthenticationChallenge -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnFailedLoading => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebResourceErrorEventArgs>(x => _data.OnFailedLoading += x, x => _data.OnFailedLoading -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnFinishedLoading => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebResourceCompletedEventArgs>(x => _data.OnFinishedLoading += x, x => _data.OnFinishedLoading -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnPlugInFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebResourcePluginErrorEventArgs>(x => _data.OnPlugInFailed += x, x => _data.OnPlugInFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnReceivedAuthenticationChallenge => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebResourceAuthenticationChallengeEventArgs>(x => _data.OnReceivedAuthenticationChallenge += x, x => _data.OnReceivedAuthenticationChallenge -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnReceivedContentLength => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebResourceReceivedContentLengthEventArgs>(x => _data.OnReceivedContentLength += x, x => _data.OnReceivedContentLength -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnReceivedResponse => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebResourceReceivedResponseEventArgs>(x => _data.OnReceivedResponse += x, x => _data.OnReceivedResponse -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceivedIcon => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameImageEventArgs>(x => _data.ReceivedIcon += x, x => _data.ReceivedIcon -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceivedServerRedirectForProvisionalLoad => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameEventArgs>(x => _data.ReceivedServerRedirectForProvisionalLoad += x, x => _data.ReceivedServerRedirectForProvisionalLoad -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceivedTitle => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameTitleEventArgs>(x => _data.ReceivedTitle += x, x => _data.ReceivedTitle -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StartedProvisionalLoad => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameEventArgs>(x => _data.StartedProvisionalLoad += x, x => _data.StartedProvisionalLoad -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIClose => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UIClose += x, x => _data.UIClose -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIDrawFooterInRect => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewFooterEventArgs>(x => _data.UIDrawFooterInRect += x, x => _data.UIDrawFooterInRect -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIDrawHeaderInRect => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewHeaderEventArgs>(x => _data.UIDrawHeaderInRect += x, x => _data.UIDrawHeaderInRect -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UIFocus += x, x => _data.UIFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIMakeFirstResponder => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewResponderEventArgs>(x => _data.UIMakeFirstResponder += x, x => _data.UIMakeFirstResponder -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIMouseDidMoveOverElement => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewMouseMovedEventArgs>(x => _data.UIMouseDidMoveOverElement += x, x => _data.UIMouseDidMoveOverElement -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIPrintFrameView => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewPrintEventArgs>(x => _data.UIPrintFrameView += x, x => _data.UIPrintFrameView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIRunJavaScriptAlertPanel => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewJavaScriptEventArgs>(x => _data.UIRunJavaScriptAlertPanel += x, x => _data.UIRunJavaScriptAlertPanel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIRunJavaScriptAlertPanelMessage => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewJavaScriptFrameEventArgs>(x => _data.UIRunJavaScriptAlertPanelMessage += x, x => _data.UIRunJavaScriptAlertPanelMessage -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIRunModal => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UIRunModal += x, x => _data.UIRunModal -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIRunOpenPanelForFileButton => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewRunOpenPanelEventArgs>(x => _data.UIRunOpenPanelForFileButton += x, x => _data.UIRunOpenPanelForFileButton -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UISetContentRect => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewContentEventArgs>(x => _data.UISetContentRect += x, x => _data.UISetContentRect -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UISetFrame => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewFrameEventArgs>(x => _data.UISetFrame += x, x => _data.UISetFrame -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UISetResizable => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewResizableEventArgs>(x => _data.UISetResizable += x, x => _data.UISetResizable -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UISetStatusBarVisible => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewStatusBarEventArgs>(x => _data.UISetStatusBarVisible += x, x => _data.UISetStatusBarVisible -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UISetStatusText => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewStatusTextEventArgs>(x => _data.UISetStatusText += x, x => _data.UISetStatusText -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UISetToolbarsVisible => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewToolBarsEventArgs>(x => _data.UISetToolbarsVisible += x, x => _data.UISetToolbarsVisible -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIShow => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UIShow += x, x => _data.UIShow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIUnfocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UIUnfocus += x, x => _data.UIUnfocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIWillPerformDragDestination => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewDragEventArgs>(x => _data.UIWillPerformDragDestination += x, x => _data.UIWillPerformDragDestination -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UIWillPerformDragSource => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebViewPerformDragEventArgs>(x => _data.UIWillPerformDragSource += x, x => _data.UIWillPerformDragSource -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UnableToImplementPolicy => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFailureToImplementPolicyEventArgs>(x => _data.UnableToImplementPolicy += x, x => _data.UnableToImplementPolicy -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillCloseFrame => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameEventArgs>(x => _data.WillCloseFrame += x, x => _data.WillCloseFrame -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPerformClientRedirect => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameClientRedirectEventArgs>(x => _data.WillPerformClientRedirect += x, x => _data.WillPerformClientRedirect -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WindowScriptObjectAvailable => global::System.Reactive.Linq.Observable.FromEventPattern, global::WebKit.WebFrameScriptObjectEventArgs>(x => _data.WindowScriptObjectAvailable += x, x => _data.WindowScriptObjectAvailable -= x).Select(x => x.EventArgs); + } +} + +namespace ObjCRuntime +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RuntimeAssemblyRegistration => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::ObjCRuntime.Runtime.AssemblyRegistration += x, x => global::ObjCRuntime.Runtime.AssemblyRegistration -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RuntimeMarshalManagedException => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::ObjCRuntime.Runtime.MarshalManagedException += x, x => global::ObjCRuntime.Runtime.MarshalManagedException -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RuntimeMarshalObjectiveCException => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::ObjCRuntime.Runtime.MarshalObjectiveCException += x, x => global::ObjCRuntime.Runtime.MarshalObjectiveCException -= x).Select(x => x.EventArgs); + } +} + +namespace AppKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSAnimationDelegateRx : global::AppKit.NSAnimationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _animationDidEnd = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSAnimation animation, float progress)> _animationDidReachProgressMark = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSAnimation animation, float progress)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _animationDidStop = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AnimationDidEndObs => _animationDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSAnimation animation, float progress)> AnimationDidReachProgressMarkObs => _animationDidReachProgressMark; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AnimationDidStopObs => _animationDidStop; + /// + public override void AnimationDidEnd(global::AppKit.NSAnimation animation) => _animationDidEnd.OnNext(animation); + /// + public override void AnimationDidReachProgressMark(global::AppKit.NSAnimation animation, float progress) => _animationDidReachProgressMark.OnNext((animation, progress)); + /// + public override void AnimationDidStop(global::AppKit.NSAnimation animation) => _animationDidStop.OnNext(animation); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSApplicationDelegateRx : global::AppKit.NSApplicationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication app, global::Foundation.NSCoder state)> _decodedRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication app, global::Foundation.NSCoder state)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeActive = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishLaunching = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didHide = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didResignActive = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUnhide = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, string userActivityType, global::Foundation.NSError error)> _failedToContinueUserActivity = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, string userActivityType, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSError error)> _failedToRegisterForRemoteNotifications = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication sender, global::System.String[] filenames)> _openFiles = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication sender, global::System.String[] filenames)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSUrl[] urls)> _openUrls = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSUrl[] urls)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _orderFrontStandardAboutPanel = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _orderFrontStandardAboutPanelWithOptions = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSDictionary userInfo)> _receivedRemoteNotification = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSDictionary userInfo)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSData deviceToken)> _registeredForRemoteNotifications = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSData deviceToken)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::System.String[] sendTypes, global::System.String[] returnTypes)> _registerServicesMenu = new Pharmacist.Common.SingleAwaitSubject<(global::System.String[] sendTypes, global::System.String[] returnTypes)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _screenParametersChanged = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSUserActivity userActivity)> _updatedUserActivity = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::Foundation.NSUserActivity userActivity)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::CloudKit.CKShareMetadata metadata)> _userDidAcceptCloudKitShare = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication application, global::CloudKit.CKShareMetadata metadata)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willBecomeActive = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication app, global::Foundation.NSCoder encoder)> _willEncodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSApplication app, global::Foundation.NSCoder encoder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willFinishLaunching = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willHide = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willResignActive = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willTerminate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willUnhide = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willUpdate = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication app, global::Foundation.NSCoder state)> DecodedRestorableStateObs => _decodedRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeActiveObs => _didBecomeActive; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishLaunchingObs => _didFinishLaunching; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidHideObs => _didHide; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidResignActiveObs => _didResignActive; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUnhideObs => _didUnhide; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateObs => _didUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication application, string userActivityType, global::Foundation.NSError error)> FailedToContinueUserActivityObs => _failedToContinueUserActivity; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication application, global::Foundation.NSError error)> FailedToRegisterForRemoteNotificationsObs => _failedToRegisterForRemoteNotifications; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication sender, global::System.String[] filenames)> OpenFilesObs => _openFiles; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication application, global::Foundation.NSUrl[] urls)> OpenUrlsObs => _openUrls; + /// + /// Gets an observable which signals when the method is invoked. + /// + [global::System.ObsoleteAttribute("Use the 'OrderFrontStandardAboutPanel2' on NSApplication.", false)] + public global::System.IObservable OrderFrontStandardAboutPanelObs => _orderFrontStandardAboutPanel; + /// + /// Gets an observable which signals when the method is invoked. + /// + [global::System.ObsoleteAttribute("Use the 'OrderFrontStandardAboutPanelWithOptions2' on NSApplication.", false)] + public global::System.IObservable OrderFrontStandardAboutPanelWithOptionsObs => _orderFrontStandardAboutPanelWithOptions; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication application, global::Foundation.NSDictionary userInfo)> ReceivedRemoteNotificationObs => _receivedRemoteNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication application, global::Foundation.NSData deviceToken)> RegisteredForRemoteNotificationsObs => _registeredForRemoteNotifications; + /// + /// Gets an observable which signals when the method is invoked. + /// + [global::System.ObsoleteAttribute("Use the 'RegisterServicesMenu2' on NSApplication.", false)] + public global::System.IObservable<(global::System.String[] sendTypes, global::System.String[] returnTypes)> RegisterServicesMenuObs => _registerServicesMenu; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScreenParametersChangedObs => _screenParametersChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication application, global::Foundation.NSUserActivity userActivity)> UpdatedUserActivityObs => _updatedUserActivity; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication application, global::CloudKit.CKShareMetadata metadata)> UserDidAcceptCloudKitShareObs => _userDidAcceptCloudKitShare; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillBecomeActiveObs => _willBecomeActive; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSApplication app, global::Foundation.NSCoder encoder)> WillEncodeRestorableStateObs => _willEncodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillFinishLaunchingObs => _willFinishLaunching; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillHideObs => _willHide; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillResignActiveObs => _willResignActive; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillTerminateObs => _willTerminate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillUnhideObs => _willUnhide; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillUpdateObs => _willUpdate; + /// + public override void DecodedRestorableState(global::AppKit.NSApplication app, global::Foundation.NSCoder state) => _decodedRestorableState.OnNext((app, state)); + /// + public override void DidBecomeActive(global::Foundation.NSNotification notification) => _didBecomeActive.OnNext(notification); + /// + public override void DidFinishLaunching(global::Foundation.NSNotification notification) => _didFinishLaunching.OnNext(notification); + /// + public override void DidHide(global::Foundation.NSNotification notification) => _didHide.OnNext(notification); + /// + public override void DidResignActive(global::Foundation.NSNotification notification) => _didResignActive.OnNext(notification); + /// + public override void DidUnhide(global::Foundation.NSNotification notification) => _didUnhide.OnNext(notification); + /// + public override void DidUpdate(global::Foundation.NSNotification notification) => _didUpdate.OnNext(notification); + /// + public override void FailedToContinueUserActivity(global::AppKit.NSApplication application, string userActivityType, global::Foundation.NSError error) => _failedToContinueUserActivity.OnNext((application, userActivityType, error)); + /// + public override void FailedToRegisterForRemoteNotifications(global::AppKit.NSApplication application, global::Foundation.NSError error) => _failedToRegisterForRemoteNotifications.OnNext((application, error)); + /// + public override void OpenFiles(global::AppKit.NSApplication sender, global::System.String[] filenames) => _openFiles.OnNext((sender, filenames)); + /// + public override void OpenUrls(global::AppKit.NSApplication application, global::Foundation.NSUrl[] urls) => _openUrls.OnNext((application, urls)); + /// + [global::System.ObsoleteAttribute("Use the 'OrderFrontStandardAboutPanel2' on NSApplication.", false)] + public override void OrderFrontStandardAboutPanel(global::Foundation.NSObject sender) => _orderFrontStandardAboutPanel.OnNext(sender); + /// + [global::System.ObsoleteAttribute("Use the 'OrderFrontStandardAboutPanelWithOptions2' on NSApplication.", false)] + public override void OrderFrontStandardAboutPanelWithOptions(global::Foundation.NSDictionary optionsDictionary) => _orderFrontStandardAboutPanelWithOptions.OnNext(optionsDictionary); + /// + public override void ReceivedRemoteNotification(global::AppKit.NSApplication application, global::Foundation.NSDictionary userInfo) => _receivedRemoteNotification.OnNext((application, userInfo)); + /// + public override void RegisteredForRemoteNotifications(global::AppKit.NSApplication application, global::Foundation.NSData deviceToken) => _registeredForRemoteNotifications.OnNext((application, deviceToken)); + /// + [global::System.ObsoleteAttribute("Use the 'RegisterServicesMenu2' on NSApplication.", false)] + public override void RegisterServicesMenu(global::System.String[] sendTypes, global::System.String[] returnTypes) => _registerServicesMenu.OnNext((sendTypes, returnTypes)); + /// + public override void ScreenParametersChanged(global::Foundation.NSNotification notification) => _screenParametersChanged.OnNext(notification); + /// + public override void UpdatedUserActivity(global::AppKit.NSApplication application, global::Foundation.NSUserActivity userActivity) => _updatedUserActivity.OnNext((application, userActivity)); + /// + public override void UserDidAcceptCloudKitShare(global::AppKit.NSApplication application, global::CloudKit.CKShareMetadata metadata) => _userDidAcceptCloudKitShare.OnNext((application, metadata)); + /// + public override void WillBecomeActive(global::Foundation.NSNotification notification) => _willBecomeActive.OnNext(notification); + /// + public override void WillEncodeRestorableState(global::AppKit.NSApplication app, global::Foundation.NSCoder encoder) => _willEncodeRestorableState.OnNext((app, encoder)); + /// + public override void WillFinishLaunching(global::Foundation.NSNotification notification) => _willFinishLaunching.OnNext(notification); + /// + public override void WillHide(global::Foundation.NSNotification notification) => _willHide.OnNext(notification); + /// + public override void WillResignActive(global::Foundation.NSNotification notification) => _willResignActive.OnNext(notification); + /// + public override void WillTerminate(global::Foundation.NSNotification notification) => _willTerminate.OnNext(notification); + /// + public override void WillUnhide(global::Foundation.NSNotification notification) => _willUnhide.OnNext(notification); + /// + public override void WillUpdate(global::Foundation.NSNotification notification) => _willUpdate.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSBrowserDelegateRx : global::AppKit.NSBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _columnConfigurationDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSBrowser sender, global::System.nint column, global::AppKit.NSMatrix matrix)> _createRowsForColumn = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSBrowser sender, global::System.nint column, global::AppKit.NSMatrix matrix)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSBrowser browser, global::System.nint oldLastColumn, global::System.nint toColumn)> _didChangeLastColumn = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSBrowser browser, global::System.nint oldLastColumn, global::System.nint toColumn)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didScroll = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSBrowser browser, global::Foundation.NSObject obj, global::Foundation.NSObject item)> _setObjectValue = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSBrowser browser, global::Foundation.NSObject obj, global::Foundation.NSObject item)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSBrowser sender, global::Foundation.NSObject cell, global::System.nint row, global::System.nint column)> _willDisplayCell = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSBrowser sender, global::Foundation.NSObject cell, global::System.nint row, global::System.nint column)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willScroll = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ColumnConfigurationDidChangeObs => _columnConfigurationDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSBrowser sender, global::System.nint column, global::AppKit.NSMatrix matrix)> CreateRowsForColumnObs => _createRowsForColumn; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSBrowser browser, global::System.nint oldLastColumn, global::System.nint toColumn)> DidChangeLastColumnObs => _didChangeLastColumn; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidScrollObs => _didScroll; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSBrowser browser, global::Foundation.NSObject obj, global::Foundation.NSObject item)> SetObjectValueObs => _setObjectValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSBrowser sender, global::Foundation.NSObject cell, global::System.nint row, global::System.nint column)> WillDisplayCellObs => _willDisplayCell; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillScrollObs => _willScroll; + /// + public override void ColumnConfigurationDidChange(global::Foundation.NSNotification notification) => _columnConfigurationDidChange.OnNext(notification); + /// + public override void CreateRowsForColumn(global::AppKit.NSBrowser sender, global::System.nint column, global::AppKit.NSMatrix matrix) => _createRowsForColumn.OnNext((sender, column, matrix)); + /// + public override void DidChangeLastColumn(global::AppKit.NSBrowser browser, global::System.nint oldLastColumn, global::System.nint toColumn) => _didChangeLastColumn.OnNext((browser, oldLastColumn, toColumn)); + /// + public override void DidScroll(global::AppKit.NSBrowser sender) => _didScroll.OnNext(sender); + /// + public override void SetObjectValue(global::AppKit.NSBrowser browser, global::Foundation.NSObject obj, global::Foundation.NSObject item) => _setObjectValue.OnNext((browser, obj, item)); + /// + public override void WillDisplayCell(global::AppKit.NSBrowser sender, global::Foundation.NSObject cell, global::System.nint row, global::System.nint column) => _willDisplayCell.OnNext((sender, cell, row, column)); + /// + public override void WillScroll(global::AppKit.NSBrowser sender) => _willScroll.OnNext(sender); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSCandidateListTouchBarItemDelegateRx : global::AppKit.NSCandidateListTouchBarItemDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint index)> _beginSelectingCandidate = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint index)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCandidateListTouchBarItem anItem, bool isVisible)> _changedCandidateListVisibility = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCandidateListTouchBarItem anItem, bool isVisible)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint previousIndex, global::System.nint index)> _changeSelectionFromCandidate = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint previousIndex, global::System.nint index)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint index)> _endSelectingCandidate = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint index)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint index)> BeginSelectingCandidateObs => _beginSelectingCandidate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCandidateListTouchBarItem anItem, bool isVisible)> ChangedCandidateListVisibilityObs => _changedCandidateListVisibility; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint previousIndex, global::System.nint index)> ChangeSelectionFromCandidateObs => _changeSelectionFromCandidate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint index)> EndSelectingCandidateObs => _endSelectingCandidate; + /// + public override void BeginSelectingCandidate(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint index) => _beginSelectingCandidate.OnNext((anItem, index)); + /// + public override void ChangedCandidateListVisibility(global::AppKit.NSCandidateListTouchBarItem anItem, bool isVisible) => _changedCandidateListVisibility.OnNext((anItem, isVisible)); + /// + public override void ChangeSelectionFromCandidate(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint previousIndex, global::System.nint index) => _changeSelectionFromCandidate.OnNext((anItem, previousIndex, index)); + /// + public override void EndSelectingCandidate(global::AppKit.NSCandidateListTouchBarItem anItem, global::System.nint index) => _endSelectingCandidate.OnNext((anItem, index)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSCloudSharingServiceDelegateRx : global::AppKit.NSCloudSharingServiceDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items, global::Foundation.NSError error)> _completed = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::CloudKit.CKShare share)> _saved = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::CloudKit.CKShare share)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::CloudKit.CKShare share)> _stopped = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::CloudKit.CKShare share)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items, global::Foundation.NSError error)> CompletedObs => _completed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSharingService sharingService, global::CloudKit.CKShare share)> SavedObs => _saved; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSharingService sharingService, global::CloudKit.CKShare share)> StoppedObs => _stopped; + /// + public override void Completed(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items, global::Foundation.NSError error) => _completed.OnNext((sharingService, items, error)); + /// + public override void Saved(global::AppKit.NSSharingService sharingService, global::CloudKit.CKShare share) => _saved.OnNext((sharingService, share)); + /// + public override void Stopped(global::AppKit.NSSharingService sharingService, global::CloudKit.CKShare share) => _stopped.OnNext((sharingService, share)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSCollectionViewDelegateRx : global::AppKit.NSCollectionViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSCollectionViewItem item, global::Foundation.NSIndexPath indexPath)> _displayingItemEnded = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSCollectionViewItem item, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSView view, string elementKind, global::Foundation.NSIndexPath indexPath)> _displayingSupplementaryViewEnded = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSView view, string elementKind, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingSession draggingSession, global::CoreGraphics.CGPoint screenPoint, global::AppKit.NSDragOperation dragOperation)> _draggingSessionEnded = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingSession draggingSession, global::CoreGraphics.CGPoint screenPoint, global::AppKit.NSDragOperation dragOperation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingSession session, global::CoreGraphics.CGPoint screenPoint, global::Foundation.NSSet indexPaths)> _draggingSessionWillBegin = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingSession session, global::CoreGraphics.CGPoint screenPoint, global::Foundation.NSSet indexPaths)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths, global::AppKit.NSCollectionViewItemHighlightState highlightState)> _itemsChanged = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths, global::AppKit.NSCollectionViewItemHighlightState highlightState)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths)> _itemsDeselected = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths)> _itemsSelected = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingInfo draggingInfo)> _updateDraggingItemsForDrag = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingInfo draggingInfo)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSCollectionViewItem item, global::Foundation.NSIndexPath indexPath)> _willDisplayItem = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSCollectionViewItem item, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath)> _willDisplaySupplementaryView = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSCollectionViewItem item, global::Foundation.NSIndexPath indexPath)> DisplayingItemEndedObs => _displayingItemEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSView view, string elementKind, global::Foundation.NSIndexPath indexPath)> DisplayingSupplementaryViewEndedObs => _displayingSupplementaryViewEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingSession draggingSession, global::CoreGraphics.CGPoint screenPoint, global::AppKit.NSDragOperation dragOperation)> DraggingSessionEndedObs => _draggingSessionEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingSession session, global::CoreGraphics.CGPoint screenPoint, global::Foundation.NSSet indexPaths)> DraggingSessionWillBeginObs => _draggingSessionWillBegin; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths, global::AppKit.NSCollectionViewItemHighlightState highlightState)> ItemsChangedObs => _itemsChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths)> ItemsDeselectedObs => _itemsDeselected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths)> ItemsSelectedObs => _itemsSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingInfo draggingInfo)> UpdateDraggingItemsForDragObs => _updateDraggingItemsForDrag; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSCollectionViewItem item, global::Foundation.NSIndexPath indexPath)> WillDisplayItemObs => _willDisplayItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSCollectionView collectionView, global::AppKit.NSView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath)> WillDisplaySupplementaryViewObs => _willDisplaySupplementaryView; + /// + public override void DisplayingItemEnded(global::AppKit.NSCollectionView collectionView, global::AppKit.NSCollectionViewItem item, global::Foundation.NSIndexPath indexPath) => _displayingItemEnded.OnNext((collectionView, item, indexPath)); + /// + public override void DisplayingSupplementaryViewEnded(global::AppKit.NSCollectionView collectionView, global::AppKit.NSView view, string elementKind, global::Foundation.NSIndexPath indexPath) => _displayingSupplementaryViewEnded.OnNext((collectionView, view, elementKind, indexPath)); + /// + public override void DraggingSessionEnded(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingSession draggingSession, global::CoreGraphics.CGPoint screenPoint, global::AppKit.NSDragOperation dragOperation) => _draggingSessionEnded.OnNext((collectionView, draggingSession, screenPoint, dragOperation)); + /// + public override void DraggingSessionWillBegin(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingSession session, global::CoreGraphics.CGPoint screenPoint, global::Foundation.NSSet indexPaths) => _draggingSessionWillBegin.OnNext((collectionView, session, screenPoint, indexPaths)); + /// + public override void ItemsChanged(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths, global::AppKit.NSCollectionViewItemHighlightState highlightState) => _itemsChanged.OnNext((collectionView, indexPaths, highlightState)); + /// + public override void ItemsDeselected(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths) => _itemsDeselected.OnNext((collectionView, indexPaths)); + /// + public override void ItemsSelected(global::AppKit.NSCollectionView collectionView, global::Foundation.NSSet indexPaths) => _itemsSelected.OnNext((collectionView, indexPaths)); + /// + public override void UpdateDraggingItemsForDrag(global::AppKit.NSCollectionView collectionView, global::AppKit.NSDraggingInfo draggingInfo) => _updateDraggingItemsForDrag.OnNext((collectionView, draggingInfo)); + /// + public override void WillDisplayItem(global::AppKit.NSCollectionView collectionView, global::AppKit.NSCollectionViewItem item, global::Foundation.NSIndexPath indexPath) => _willDisplayItem.OnNext((collectionView, item, indexPath)); + /// + public override void WillDisplaySupplementaryView(global::AppKit.NSCollectionView collectionView, global::AppKit.NSView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath) => _willDisplaySupplementaryView.OnNext((collectionView, view, elementKind, indexPath)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSComboBoxDelegateRx : global::AppKit.NSComboBoxDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _selectionChanged = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionIsChanging = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDismiss = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPopUp = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionChangedObs => _selectionChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionIsChangingObs => _selectionIsChanging; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDismissObs => _willDismiss; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPopUpObs => _willPopUp; + /// + public override void SelectionChanged(global::Foundation.NSNotification notification) => _selectionChanged.OnNext(notification); + /// + public override void SelectionIsChanging(global::Foundation.NSNotification notification) => _selectionIsChanging.OnNext(notification); + /// + public override void WillDismiss(global::Foundation.NSNotification notification) => _willDismiss.OnNext(notification); + /// + public override void WillPopUp(global::Foundation.NSNotification notification) => _willPopUp.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSControlTextEditingDelegateRx : global::AppKit.NSControlTextEditingDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _controlTextDidBeginEditing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _controlTextDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _controlTextDidEndEditing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSControl control, string str, string error)> _didFailToValidatePartialString = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSControl control, string str, string error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ControlTextDidBeginEditingObs => _controlTextDidBeginEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ControlTextDidChangeObs => _controlTextDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ControlTextDidEndEditingObs => _controlTextDidEndEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSControl control, string str, string error)> DidFailToValidatePartialStringObs => _didFailToValidatePartialString; + /// + public override void ControlTextDidBeginEditing(global::Foundation.NSNotification obj) => _controlTextDidBeginEditing.OnNext(obj); + /// + public override void ControlTextDidChange(global::Foundation.NSNotification obj) => _controlTextDidChange.OnNext(obj); + /// + public override void ControlTextDidEndEditing(global::Foundation.NSNotification obj) => _controlTextDidEndEditing.OnNext(obj); + /// + public override void DidFailToValidatePartialString(global::AppKit.NSControl control, string str, string error) => _didFailToValidatePartialString.OnNext((control, str, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSDrawerDelegateRx : global::AppKit.NSDrawerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _drawerDidClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _drawerDidOpen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _drawerWillClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _drawerWillOpen = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DrawerDidCloseObs => _drawerDidClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DrawerDidOpenObs => _drawerDidOpen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DrawerWillCloseObs => _drawerWillClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DrawerWillOpenObs => _drawerWillOpen; + /// + public override void DrawerDidClose(global::Foundation.NSNotification notification) => _drawerDidClose.OnNext(notification); + /// + public override void DrawerDidOpen(global::Foundation.NSNotification notification) => _drawerDidOpen.OnNext(notification); + /// + public override void DrawerWillClose(global::Foundation.NSNotification notification) => _drawerWillClose.OnNext(notification); + /// + public override void DrawerWillOpen(global::Foundation.NSNotification notification) => _drawerWillOpen.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSFilePromiseProviderDelegateRx : global::AppKit.NSFilePromiseProviderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSFilePromiseProvider filePromiseProvider, global::Foundation.NSUrl url, global::System.Action completionHandler)> _writePromiseToUrl = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSFilePromiseProvider filePromiseProvider, global::Foundation.NSUrl url, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSFilePromiseProvider filePromiseProvider, global::Foundation.NSUrl url, global::System.Action completionHandler)> WritePromiseToUrlObs => _writePromiseToUrl; + /// + public override void WritePromiseToUrl(global::AppKit.NSFilePromiseProvider filePromiseProvider, global::Foundation.NSUrl url, global::System.Action completionHandler) => _writePromiseToUrl.OnNext((filePromiseProvider, url, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSImageDelegateRx : global::AppKit.NSImageDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep, global::System.nint rows)> _didLoadPartOfRepresentation = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep, global::System.nint rows)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep, global::AppKit.NSImageLoadStatus status)> _didLoadRepresentation = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep, global::AppKit.NSImageLoadStatus status)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep)> _didLoadRepresentationHeader = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep)> _willLoadRepresentation = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep, global::System.nint rows)> DidLoadPartOfRepresentationObs => _didLoadPartOfRepresentation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep, global::AppKit.NSImageLoadStatus status)> DidLoadRepresentationObs => _didLoadRepresentation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep)> DidLoadRepresentationHeaderObs => _didLoadRepresentationHeader; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSImage image, global::AppKit.NSImageRep rep)> WillLoadRepresentationObs => _willLoadRepresentation; + /// + public override void DidLoadPartOfRepresentation(global::AppKit.NSImage image, global::AppKit.NSImageRep rep, global::System.nint rows) => _didLoadPartOfRepresentation.OnNext((image, rep, rows)); + /// + public override void DidLoadRepresentation(global::AppKit.NSImage image, global::AppKit.NSImageRep rep, global::AppKit.NSImageLoadStatus status) => _didLoadRepresentation.OnNext((image, rep, status)); + /// + public override void DidLoadRepresentationHeader(global::AppKit.NSImage image, global::AppKit.NSImageRep rep) => _didLoadRepresentationHeader.OnNext((image, rep)); + /// + public override void WillLoadRepresentation(global::AppKit.NSImage image, global::AppKit.NSImageRep rep) => _willLoadRepresentation.OnNext((image, rep)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSLayoutManagerDelegateRx : global::AppKit.NSLayoutManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSLayoutManager layoutManager, global::AppKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize)> _didChangeGeometry = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSLayoutManager layoutManager, global::AppKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSLayoutManager layoutManager, global::AppKit.NSTextContainer textContainer, bool layoutFinishedFlag)> _layoutCompleted = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSLayoutManager layoutManager, global::AppKit.NSTextContainer textContainer, bool layoutFinishedFlag)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _layoutInvalidated = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSLayoutManager layoutManager, global::AppKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize)> DidChangeGeometryObs => _didChangeGeometry; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSLayoutManager layoutManager, global::AppKit.NSTextContainer textContainer, bool layoutFinishedFlag)> LayoutCompletedObs => _layoutCompleted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LayoutInvalidatedObs => _layoutInvalidated; + /// + public override void DidChangeGeometry(global::AppKit.NSLayoutManager layoutManager, global::AppKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize) => _didChangeGeometry.OnNext((layoutManager, textContainer, oldSize)); + /// + public override void LayoutCompleted(global::AppKit.NSLayoutManager layoutManager, global::AppKit.NSTextContainer textContainer, bool layoutFinishedFlag) => _layoutCompleted.OnNext((layoutManager, textContainer, layoutFinishedFlag)); + /// + public override void LayoutInvalidated(global::AppKit.NSLayoutManager sender) => _layoutInvalidated.OnNext(sender); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSMatrixDelegateRx : global::AppKit.NSMatrixDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _controlTextDidBeginEditing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _controlTextDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _controlTextDidEndEditing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSControl control, string str, string error)> _didFailToValidatePartialString = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSControl control, string str, string error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ControlTextDidBeginEditingObs => _controlTextDidBeginEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ControlTextDidChangeObs => _controlTextDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ControlTextDidEndEditingObs => _controlTextDidEndEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSControl control, string str, string error)> DidFailToValidatePartialStringObs => _didFailToValidatePartialString; + /// + public override void ControlTextDidBeginEditing(global::Foundation.NSNotification obj) => _controlTextDidBeginEditing.OnNext(obj); + /// + public override void ControlTextDidChange(global::Foundation.NSNotification obj) => _controlTextDidChange.OnNext(obj); + /// + public override void ControlTextDidEndEditing(global::Foundation.NSNotification obj) => _controlTextDidEndEditing.OnNext(obj); + /// + public override void DidFailToValidatePartialString(global::AppKit.NSControl control, string str, string error) => _didFailToValidatePartialString.OnNext((control, str, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSMenuDelegateRx : global::AppKit.NSMenuDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _menuDidClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSMenu menu, global::AppKit.NSMenuItem item)> _menuWillHighlightItem = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSMenu menu, global::AppKit.NSMenuItem item)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _menuWillOpen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _needsUpdate = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MenuDidCloseObs => _menuDidClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSMenu menu, global::AppKit.NSMenuItem item)> MenuWillHighlightItemObs => _menuWillHighlightItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MenuWillOpenObs => _menuWillOpen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable NeedsUpdateObs => _needsUpdate; + /// + public override void MenuDidClose(global::AppKit.NSMenu menu) => _menuDidClose.OnNext(menu); + /// + public override void MenuWillHighlightItem(global::AppKit.NSMenu menu, global::AppKit.NSMenuItem item) => _menuWillHighlightItem.OnNext((menu, item)); + /// + public override void MenuWillOpen(global::AppKit.NSMenu menu) => _menuWillOpen.OnNext(menu); + /// + public override void NeedsUpdate(global::AppKit.NSMenu menu) => _needsUpdate.OnNext(menu); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSOpenSavePanelDelegateRx : global::AppKit.NSOpenSavePanelDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSavePanel panel, global::Foundation.NSUrl newDirectoryUrl)> _didChangeToDirectory = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSavePanel panel, global::Foundation.NSUrl newDirectoryUrl)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSavePanel panel, string path)> _directoryDidChange = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSavePanel panel, string path)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSavePanel panel, bool expanding)> _willExpand = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSavePanel panel, bool expanding)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSavePanel panel, global::Foundation.NSUrl newDirectoryUrl)> DidChangeToDirectoryObs => _didChangeToDirectory; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSavePanel panel, string path)> DirectoryDidChangeObs => _directoryDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionDidChangeObs => _selectionDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSavePanel panel, bool expanding)> WillExpandObs => _willExpand; + /// + public override void DidChangeToDirectory(global::AppKit.NSSavePanel panel, global::Foundation.NSUrl newDirectoryUrl) => _didChangeToDirectory.OnNext((panel, newDirectoryUrl)); + /// + public override void DirectoryDidChange(global::AppKit.NSSavePanel panel, string path) => _directoryDidChange.OnNext((panel, path)); + /// + public override void SelectionDidChange(global::AppKit.NSSavePanel panel) => _selectionDidChange.OnNext(panel); + /// + public override void WillExpand(global::AppKit.NSSavePanel panel, bool expanding) => _willExpand.OnNext((panel, expanding)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSOutlineViewDelegateRx : global::AppKit.NSOutlineViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _columnDidMove = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _columnDidResize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableRowView rowView, global::System.nint row)> _didAddRowView = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableRowView rowView, global::System.nint row)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn)> _didClickTableColumn = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn)> _didDragTableColumn = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableRowView rowView, global::System.nint row)> _didRemoveRowView = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableRowView rowView, global::System.nint row)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _itemDidCollapse = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _itemDidExpand = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _itemWillCollapse = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _itemWillExpand = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn)> _mouseDown = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionIsChanging = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::Foundation.NSObject item)> _willDisplayCell = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::Foundation.NSObject item)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::Foundation.NSObject item)> _willDisplayOutlineCell = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSOutlineView outlineView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::Foundation.NSObject item)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ColumnDidMoveObs => _columnDidMove; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ColumnDidResizeObs => _columnDidResize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableRowView rowView, global::System.nint row)> DidAddRowViewObs => _didAddRowView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn)> DidClickTableColumnObs => _didClickTableColumn; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn)> DidDragTableColumnObs => _didDragTableColumn; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableRowView rowView, global::System.nint row)> DidRemoveRowViewObs => _didRemoveRowView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ItemDidCollapseObs => _itemDidCollapse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ItemDidExpandObs => _itemDidExpand; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ItemWillCollapseObs => _itemWillCollapse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ItemWillExpandObs => _itemWillExpand; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn)> MouseDownObs => _mouseDown; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionDidChangeObs => _selectionDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionIsChangingObs => _selectionIsChanging; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSOutlineView outlineView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::Foundation.NSObject item)> WillDisplayCellObs => _willDisplayCell; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSOutlineView outlineView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::Foundation.NSObject item)> WillDisplayOutlineCellObs => _willDisplayOutlineCell; + /// + public override void ColumnDidMove(global::Foundation.NSNotification notification) => _columnDidMove.OnNext(notification); + /// + public override void ColumnDidResize(global::Foundation.NSNotification notification) => _columnDidResize.OnNext(notification); + /// + public override void DidAddRowView(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableRowView rowView, global::System.nint row) => _didAddRowView.OnNext((outlineView, rowView, row)); + /// + public override void DidClickTableColumn(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn) => _didClickTableColumn.OnNext((outlineView, tableColumn)); + /// + public override void DidDragTableColumn(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn) => _didDragTableColumn.OnNext((outlineView, tableColumn)); + /// + public override void DidRemoveRowView(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableRowView rowView, global::System.nint row) => _didRemoveRowView.OnNext((outlineView, rowView, row)); + /// + public override void ItemDidCollapse(global::Foundation.NSNotification notification) => _itemDidCollapse.OnNext(notification); + /// + public override void ItemDidExpand(global::Foundation.NSNotification notification) => _itemDidExpand.OnNext(notification); + /// + public override void ItemWillCollapse(global::Foundation.NSNotification notification) => _itemWillCollapse.OnNext(notification); + /// + public override void ItemWillExpand(global::Foundation.NSNotification notification) => _itemWillExpand.OnNext(notification); + /// + public override void MouseDown(global::AppKit.NSOutlineView outlineView, global::AppKit.NSTableColumn tableColumn) => _mouseDown.OnNext((outlineView, tableColumn)); + /// + public override void SelectionDidChange(global::Foundation.NSNotification notification) => _selectionDidChange.OnNext(notification); + /// + public override void SelectionIsChanging(global::Foundation.NSNotification notification) => _selectionIsChanging.OnNext(notification); + /// + public override void WillDisplayCell(global::AppKit.NSOutlineView outlineView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::Foundation.NSObject item) => _willDisplayCell.OnNext((outlineView, cell, tableColumn, item)); + /// + public override void WillDisplayOutlineCell(global::AppKit.NSOutlineView outlineView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::Foundation.NSObject item) => _willDisplayOutlineCell.OnNext((outlineView, cell, tableColumn, item)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSPageControllerDelegateRx : global::AppKit.NSPageControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didEndLiveTransition = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPageController pageController, global::Foundation.NSObject targetObject)> _didTransition = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPageController pageController, global::Foundation.NSObject targetObject)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPageController pageController, global::AppKit.NSViewController viewController, global::Foundation.NSObject targetObject)> _prepareViewController = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPageController pageController, global::AppKit.NSViewController viewController, global::Foundation.NSObject targetObject)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartLiveTransition = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndLiveTransitionObs => _didEndLiveTransition; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSPageController pageController, global::Foundation.NSObject targetObject)> DidTransitionObs => _didTransition; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSPageController pageController, global::AppKit.NSViewController viewController, global::Foundation.NSObject targetObject)> PrepareViewControllerObs => _prepareViewController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartLiveTransitionObs => _willStartLiveTransition; + /// + public override void DidEndLiveTransition(global::AppKit.NSPageController pageController) => _didEndLiveTransition.OnNext(pageController); + /// + public override void DidTransition(global::AppKit.NSPageController pageController, global::Foundation.NSObject targetObject) => _didTransition.OnNext((pageController, targetObject)); + /// + public override void PrepareViewController(global::AppKit.NSPageController pageController, global::AppKit.NSViewController viewController, global::Foundation.NSObject targetObject) => _prepareViewController.OnNext((pageController, viewController, targetObject)); + /// + public override void WillStartLiveTransition(global::AppKit.NSPageController pageController) => _willStartLiveTransition.OnNext(pageController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSPathCellDelegateRx : global::AppKit.NSPathCellDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPathCell pathCell, global::AppKit.NSOpenPanel openPanel)> _willDisplayOpenPanel = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPathCell pathCell, global::AppKit.NSOpenPanel openPanel)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPathCell pathCell, global::AppKit.NSMenu menu)> _willPopupMenu = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPathCell pathCell, global::AppKit.NSMenu menu)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSPathCell pathCell, global::AppKit.NSOpenPanel openPanel)> WillDisplayOpenPanelObs => _willDisplayOpenPanel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSPathCell pathCell, global::AppKit.NSMenu menu)> WillPopupMenuObs => _willPopupMenu; + /// + public override void WillDisplayOpenPanel(global::AppKit.NSPathCell pathCell, global::AppKit.NSOpenPanel openPanel) => _willDisplayOpenPanel.OnNext((pathCell, openPanel)); + /// + public override void WillPopupMenu(global::AppKit.NSPathCell pathCell, global::AppKit.NSMenu menu) => _willPopupMenu.OnNext((pathCell, menu)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSPathControlDelegateRx : global::AppKit.NSPathControlDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPathControl pathControl, global::AppKit.NSOpenPanel openPanel)> _willDisplayOpenPanel = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPathControl pathControl, global::AppKit.NSOpenPanel openPanel)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPathControl pathControl, global::AppKit.NSMenu menu)> _willPopUpMenu = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSPathControl pathControl, global::AppKit.NSMenu menu)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSPathControl pathControl, global::AppKit.NSOpenPanel openPanel)> WillDisplayOpenPanelObs => _willDisplayOpenPanel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSPathControl pathControl, global::AppKit.NSMenu menu)> WillPopUpMenuObs => _willPopUpMenu; + /// + public override void WillDisplayOpenPanel(global::AppKit.NSPathControl pathControl, global::AppKit.NSOpenPanel openPanel) => _willDisplayOpenPanel.OnNext((pathControl, openPanel)); + /// + public override void WillPopUpMenu(global::AppKit.NSPathControl pathControl, global::AppKit.NSMenu menu) => _willPopUpMenu.OnNext((pathControl, menu)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSPopoverDelegateRx : global::AppKit.NSPopoverDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didDetach = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didShow = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willShow = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCloseObs => _didClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDetachObs => _didDetach; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidShowObs => _didShow; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillCloseObs => _willClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillShowObs => _willShow; + /// + public override void DidClose(global::Foundation.NSNotification notification) => _didClose.OnNext(notification); + /// + public override void DidDetach(global::AppKit.NSPopover popover) => _didDetach.OnNext(popover); + /// + public override void DidShow(global::Foundation.NSNotification notification) => _didShow.OnNext(notification); + /// + public override void WillClose(global::Foundation.NSNotification notification) => _willClose.OnNext(notification); + /// + public override void WillShow(global::Foundation.NSNotification notification) => _willShow.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSRuleEditorDelegateRx : global::AppKit.NSRuleEditorDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _changed = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingBegan = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _rowsDidChange = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ChangedObs => _changed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingBeganObs => _editingBegan; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingEndedObs => _editingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable RowsDidChangeObs => _rowsDidChange; + /// + public override void Changed(global::Foundation.NSNotification notification) => _changed.OnNext(notification); + /// + public override void EditingBegan(global::Foundation.NSNotification notification) => _editingBegan.OnNext(notification); + /// + public override void EditingEnded(global::Foundation.NSNotification notification) => _editingEnded.OnNext(notification); + /// + public override void RowsDidChange(global::Foundation.NSNotification notification) => _rowsDidChange.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSScrubberDelegateRx : global::AppKit.NSScrubberDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBeginInteracting = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didCancelInteracting = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::Foundation.NSRange visibleRange)> _didChangeVisible = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::Foundation.NSRange visibleRange)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishInteracting = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::System.nint highlightedIndex)> _didHighlightItem = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::System.nint highlightedIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::System.nint selectedIndex)> _didSelectItem = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::System.nint selectedIndex)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginInteractingObs => _didBeginInteracting; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCancelInteractingObs => _didCancelInteracting; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSScrubber scrubber, global::Foundation.NSRange visibleRange)> DidChangeVisibleObs => _didChangeVisible; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishInteractingObs => _didFinishInteracting; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSScrubber scrubber, global::System.nint highlightedIndex)> DidHighlightItemObs => _didHighlightItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSScrubber scrubber, global::System.nint selectedIndex)> DidSelectItemObs => _didSelectItem; + /// + public override void DidBeginInteracting(global::AppKit.NSScrubber scrubber) => _didBeginInteracting.OnNext(scrubber); + /// + public override void DidCancelInteracting(global::AppKit.NSScrubber scrubber) => _didCancelInteracting.OnNext(scrubber); + /// + public override void DidChangeVisible(global::AppKit.NSScrubber scrubber, global::Foundation.NSRange visibleRange) => _didChangeVisible.OnNext((scrubber, visibleRange)); + /// + public override void DidFinishInteracting(global::AppKit.NSScrubber scrubber) => _didFinishInteracting.OnNext(scrubber); + /// + public override void DidHighlightItem(global::AppKit.NSScrubber scrubber, global::System.nint highlightedIndex) => _didHighlightItem.OnNext((scrubber, highlightedIndex)); + /// + public override void DidSelectItem(global::AppKit.NSScrubber scrubber, global::System.nint selectedIndex) => _didSelectItem.OnNext((scrubber, selectedIndex)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSScrubberFlowLayoutDelegateRx : global::AppKit.NSScrubberFlowLayoutDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBeginInteracting = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didCancelInteracting = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::Foundation.NSRange visibleRange)> _didChangeVisible = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::Foundation.NSRange visibleRange)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishInteracting = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::System.nint highlightedIndex)> _didHighlightItem = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::System.nint highlightedIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::System.nint selectedIndex)> _didSelectItem = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSScrubber scrubber, global::System.nint selectedIndex)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginInteractingObs => _didBeginInteracting; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCancelInteractingObs => _didCancelInteracting; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSScrubber scrubber, global::Foundation.NSRange visibleRange)> DidChangeVisibleObs => _didChangeVisible; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishInteractingObs => _didFinishInteracting; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSScrubber scrubber, global::System.nint highlightedIndex)> DidHighlightItemObs => _didHighlightItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSScrubber scrubber, global::System.nint selectedIndex)> DidSelectItemObs => _didSelectItem; + /// + public override void DidBeginInteracting(global::AppKit.NSScrubber scrubber) => _didBeginInteracting.OnNext(scrubber); + /// + public override void DidCancelInteracting(global::AppKit.NSScrubber scrubber) => _didCancelInteracting.OnNext(scrubber); + /// + public override void DidChangeVisible(global::AppKit.NSScrubber scrubber, global::Foundation.NSRange visibleRange) => _didChangeVisible.OnNext((scrubber, visibleRange)); + /// + public override void DidFinishInteracting(global::AppKit.NSScrubber scrubber) => _didFinishInteracting.OnNext(scrubber); + /// + public override void DidHighlightItem(global::AppKit.NSScrubber scrubber, global::System.nint highlightedIndex) => _didHighlightItem.OnNext((scrubber, highlightedIndex)); + /// + public override void DidSelectItem(global::AppKit.NSScrubber scrubber, global::System.nint selectedIndex) => _didSelectItem.OnNext((scrubber, selectedIndex)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSSearchFieldDelegateRx : global::AppKit.NSSearchFieldDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _changed = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSControl control, string str, string error)> _didFailToValidatePartialString = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSControl control, string str, string error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingBegan = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchingEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchingStarted = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ChangedObs => _changed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSControl control, string str, string error)> DidFailToValidatePartialStringObs => _didFailToValidatePartialString; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingBeganObs => _editingBegan; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingEndedObs => _editingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchingEndedObs => _searchingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchingStartedObs => _searchingStarted; + /// + public override void Changed(global::Foundation.NSNotification notification) => _changed.OnNext(notification); + /// + public override void DidFailToValidatePartialString(global::AppKit.NSControl control, string str, string error) => _didFailToValidatePartialString.OnNext((control, str, error)); + /// + public override void EditingBegan(global::Foundation.NSNotification notification) => _editingBegan.OnNext(notification); + /// + public override void EditingEnded(global::Foundation.NSNotification notification) => _editingEnded.OnNext(notification); + /// + public override void SearchingEnded(global::AppKit.NSSearchField sender) => _searchingEnded.OnNext(sender); + /// + public override void SearchingStarted(global::AppKit.NSSearchField sender) => _searchingStarted.OnNext(sender); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSSharingServiceDelegateRx : global::AppKit.NSSharingServiceDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items, global::Foundation.NSError error)> _didFailToShareItems = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items)> _didShareItems = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items)> _willShareItems = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items, global::Foundation.NSError error)> DidFailToShareItemsObs => _didFailToShareItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items)> DidShareItemsObs => _didShareItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items)> WillShareItemsObs => _willShareItems; + /// + public override void DidFailToShareItems(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items, global::Foundation.NSError error) => _didFailToShareItems.OnNext((sharingService, items, error)); + /// + public override void DidShareItems(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items) => _didShareItems.OnNext((sharingService, items)); + /// + public override void WillShareItems(global::AppKit.NSSharingService sharingService, global::Foundation.NSObject[] items) => _willShareItems.OnNext((sharingService, items)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSSharingServicePickerDelegateRx : global::AppKit.NSSharingServicePickerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingServicePicker sharingServicePicker, global::AppKit.NSSharingService service)> _didChooseSharingService = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingServicePicker sharingServicePicker, global::AppKit.NSSharingService service)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSharingServicePicker sharingServicePicker, global::AppKit.NSSharingService service)> DidChooseSharingServiceObs => _didChooseSharingService; + /// + public override void DidChooseSharingService(global::AppKit.NSSharingServicePicker sharingServicePicker, global::AppKit.NSSharingService service) => _didChooseSharingService.OnNext((sharingServicePicker, service)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSSharingServicePickerTouchBarItemDelegateRx : global::AppKit.NSSharingServicePickerTouchBarItemDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingServicePicker sharingServicePicker, global::AppKit.NSSharingService service)> _didChooseSharingService = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSharingServicePicker sharingServicePicker, global::AppKit.NSSharingService service)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSharingServicePicker sharingServicePicker, global::AppKit.NSSharingService service)> DidChooseSharingServiceObs => _didChooseSharingService; + /// + public override void DidChooseSharingService(global::AppKit.NSSharingServicePicker sharingServicePicker, global::AppKit.NSSharingService service) => _didChooseSharingService.OnNext((sharingServicePicker, service)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSSoundDelegateRx : global::AppKit.NSSoundDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSound sound, bool finished)> _didFinishPlaying = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSound sound, bool finished)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSound sound, bool finished)> DidFinishPlayingObs => _didFinishPlaying; + /// + public override void DidFinishPlaying(global::AppKit.NSSound sound, bool finished) => _didFinishPlaying.OnNext((sound, finished)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSSpeechRecognizerDelegateRx : global::AppKit.NSSpeechRecognizerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechRecognizer sender, string command)> _didRecognizeCommand = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechRecognizer sender, string command)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSpeechRecognizer sender, string command)> DidRecognizeCommandObs => _didRecognizeCommand; + /// + public override void DidRecognizeCommand(global::AppKit.NSSpeechRecognizer sender, string command) => _didRecognizeCommand.OnNext((sender, command)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSSpeechSynthesizerDelegateRx : global::AppKit.NSSpeechSynthesizerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, global::System.nuint characterIndex, string theString, string message)> _didEncounterError = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, global::System.nuint characterIndex, string theString, string message)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, string message)> _didEncounterSyncMessage = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, string message)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, bool finishedSpeaking)> _didFinishSpeaking = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, bool finishedSpeaking)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, short phonemeOpcode)> _willSpeakPhoneme = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, short phonemeOpcode)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, global::Foundation.NSRange wordCharacterRange, string ofString)> _willSpeakWord = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSpeechSynthesizer sender, global::Foundation.NSRange wordCharacterRange, string ofString)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSpeechSynthesizer sender, global::System.nuint characterIndex, string theString, string message)> DidEncounterErrorObs => _didEncounterError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSpeechSynthesizer sender, string message)> DidEncounterSyncMessageObs => _didEncounterSyncMessage; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSpeechSynthesizer sender, bool finishedSpeaking)> DidFinishSpeakingObs => _didFinishSpeaking; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSpeechSynthesizer sender, short phonemeOpcode)> WillSpeakPhonemeObs => _willSpeakPhoneme; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSpeechSynthesizer sender, global::Foundation.NSRange wordCharacterRange, string ofString)> WillSpeakWordObs => _willSpeakWord; + /// + public override void DidEncounterError(global::AppKit.NSSpeechSynthesizer sender, global::System.nuint characterIndex, string theString, string message) => _didEncounterError.OnNext((sender, characterIndex, theString, message)); + /// + public override void DidEncounterSyncMessage(global::AppKit.NSSpeechSynthesizer sender, string message) => _didEncounterSyncMessage.OnNext((sender, message)); + /// + public override void DidFinishSpeaking(global::AppKit.NSSpeechSynthesizer sender, bool finishedSpeaking) => _didFinishSpeaking.OnNext((sender, finishedSpeaking)); + /// + public override void WillSpeakPhoneme(global::AppKit.NSSpeechSynthesizer sender, short phonemeOpcode) => _willSpeakPhoneme.OnNext((sender, phonemeOpcode)); + /// + public override void WillSpeakWord(global::AppKit.NSSpeechSynthesizer sender, global::Foundation.NSRange wordCharacterRange, string ofString) => _willSpeakWord.OnNext((sender, wordCharacterRange, ofString)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSSplitViewDelegateRx : global::AppKit.NSSplitViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didResizeSubviews = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSplitView splitView, global::CoreGraphics.CGSize oldSize)> _resize = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSSplitView splitView, global::CoreGraphics.CGSize oldSize)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _splitViewWillResizeSubviews = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidResizeSubviewsObs => _didResizeSubviews; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSSplitView splitView, global::CoreGraphics.CGSize oldSize)> ResizeObs => _resize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SplitViewWillResizeSubviewsObs => _splitViewWillResizeSubviews; + /// + public override void DidResizeSubviews(global::Foundation.NSNotification notification) => _didResizeSubviews.OnNext(notification); + /// + public override void Resize(global::AppKit.NSSplitView splitView, global::CoreGraphics.CGSize oldSize) => _resize.OnNext((splitView, oldSize)); + /// + public override void SplitViewWillResizeSubviews(global::Foundation.NSNotification notification) => _splitViewWillResizeSubviews.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSStackViewDelegateRx : global::AppKit.NSStackViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSStackView stackView, global::AppKit.NSView[] views)> _didReattachViews = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSStackView stackView, global::AppKit.NSView[] views)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSStackView stackView, global::AppKit.NSView[] views)> _willDetachViews = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSStackView stackView, global::AppKit.NSView[] views)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSStackView stackView, global::AppKit.NSView[] views)> DidReattachViewsObs => _didReattachViews; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSStackView stackView, global::AppKit.NSView[] views)> WillDetachViewsObs => _willDetachViews; + /// + public override void DidReattachViews(global::AppKit.NSStackView stackView, global::AppKit.NSView[] views) => _didReattachViews.OnNext((stackView, views)); + /// + public override void WillDetachViews(global::AppKit.NSStackView stackView, global::AppKit.NSView[] views) => _willDetachViews.OnNext((stackView, views)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSTableViewDelegateRx : global::AppKit.NSTableViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _columnDidMove = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _columnDidResize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableRowView rowView, global::System.nint row)> _didAddRowView = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableRowView rowView, global::System.nint row)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn)> _didClickTableColumn = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn)> _didDragTableColumn = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableRowView rowView, global::System.nint row)> _didRemoveRowView = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableRowView rowView, global::System.nint row)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn)> _mouseDownInHeaderOfTableColumn = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionIsChanging = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::System.nint row)> _willDisplayCell = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTableView tableView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::System.nint row)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ColumnDidMoveObs => _columnDidMove; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ColumnDidResizeObs => _columnDidResize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTableView tableView, global::AppKit.NSTableRowView rowView, global::System.nint row)> DidAddRowViewObs => _didAddRowView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn)> DidClickTableColumnObs => _didClickTableColumn; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn)> DidDragTableColumnObs => _didDragTableColumn; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTableView tableView, global::AppKit.NSTableRowView rowView, global::System.nint row)> DidRemoveRowViewObs => _didRemoveRowView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn)> MouseDownInHeaderOfTableColumnObs => _mouseDownInHeaderOfTableColumn; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionDidChangeObs => _selectionDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionIsChangingObs => _selectionIsChanging; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTableView tableView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::System.nint row)> WillDisplayCellObs => _willDisplayCell; + /// + public override void ColumnDidMove(global::Foundation.NSNotification notification) => _columnDidMove.OnNext(notification); + /// + public override void ColumnDidResize(global::Foundation.NSNotification notification) => _columnDidResize.OnNext(notification); + /// + public override void DidAddRowView(global::AppKit.NSTableView tableView, global::AppKit.NSTableRowView rowView, global::System.nint row) => _didAddRowView.OnNext((tableView, rowView, row)); + /// + public override void DidClickTableColumn(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn) => _didClickTableColumn.OnNext((tableView, tableColumn)); + /// + public override void DidDragTableColumn(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn) => _didDragTableColumn.OnNext((tableView, tableColumn)); + /// + public override void DidRemoveRowView(global::AppKit.NSTableView tableView, global::AppKit.NSTableRowView rowView, global::System.nint row) => _didRemoveRowView.OnNext((tableView, rowView, row)); + /// + public override void MouseDownInHeaderOfTableColumn(global::AppKit.NSTableView tableView, global::AppKit.NSTableColumn tableColumn) => _mouseDownInHeaderOfTableColumn.OnNext((tableView, tableColumn)); + /// + public override void SelectionDidChange(global::Foundation.NSNotification notification) => _selectionDidChange.OnNext(notification); + /// + public override void SelectionIsChanging(global::Foundation.NSNotification notification) => _selectionIsChanging.OnNext(notification); + /// + public override void WillDisplayCell(global::AppKit.NSTableView tableView, global::Foundation.NSObject cell, global::AppKit.NSTableColumn tableColumn, global::System.nint row) => _willDisplayCell.OnNext((tableView, cell, tableColumn, row)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSTabViewDelegateRx : global::AppKit.NSTabViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTabView tabView, global::AppKit.NSTabViewItem item)> _didSelect = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTabView tabView, global::AppKit.NSTabViewItem item)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _numberOfItemsChanged = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTabView tabView, global::AppKit.NSTabViewItem item)> _willSelect = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTabView tabView, global::AppKit.NSTabViewItem item)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTabView tabView, global::AppKit.NSTabViewItem item)> DidSelectObs => _didSelect; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable NumberOfItemsChangedObs => _numberOfItemsChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTabView tabView, global::AppKit.NSTabViewItem item)> WillSelectObs => _willSelect; + /// + public override void DidSelect(global::AppKit.NSTabView tabView, global::AppKit.NSTabViewItem item) => _didSelect.OnNext((tabView, item)); + /// + public override void NumberOfItemsChanged(global::AppKit.NSTabView tabView) => _numberOfItemsChanged.OnNext(tabView); + /// + public override void WillSelect(global::AppKit.NSTabView tabView, global::AppKit.NSTabViewItem item) => _willSelect.OnNext((tabView, item)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSTextDelegateRx : global::AppKit.NSTextDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _textDidBeginEditing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _textDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _textDidEndEditing = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TextDidBeginEditingObs => _textDidBeginEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TextDidChangeObs => _textDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TextDidEndEditingObs => _textDidEndEditing; + /// + public override void TextDidBeginEditing(global::Foundation.NSNotification notification) => _textDidBeginEditing.OnNext(notification); + /// + public override void TextDidChange(global::Foundation.NSNotification notification) => _textDidChange.OnNext(notification); + /// + public override void TextDidEndEditing(global::Foundation.NSNotification notification) => _textDidEndEditing.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSTextFieldDelegateRx : global::AppKit.NSTextFieldDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _changed = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSControl control, string str, string error)> _didFailToValidatePartialString = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSControl control, string str, string error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingBegan = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingEnded = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ChangedObs => _changed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSControl control, string str, string error)> DidFailToValidatePartialStringObs => _didFailToValidatePartialString; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingBeganObs => _editingBegan; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingEndedObs => _editingEnded; + /// + public override void Changed(global::Foundation.NSNotification notification) => _changed.OnNext(notification); + /// + public override void DidFailToValidatePartialString(global::AppKit.NSControl control, string str, string error) => _didFailToValidatePartialString.OnNext((control, str, error)); + /// + public override void EditingBegan(global::Foundation.NSNotification notification) => _editingBegan.OnNext(notification); + /// + public override void EditingEnded(global::Foundation.NSNotification notification) => _editingEnded.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSTextStorageDelegateRx : global::AppKit.NSTextStorageDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextStorage textStorage, global::AppKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> _didProcessEditing = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextStorage textStorage, global::AppKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _textStorageDidProcessEditing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _textStorageWillProcessEditing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextStorage textStorage, global::AppKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> _willProcessEditing = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextStorage textStorage, global::AppKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTextStorage textStorage, global::AppKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> DidProcessEditingObs => _didProcessEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TextStorageDidProcessEditingObs => _textStorageDidProcessEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TextStorageWillProcessEditingObs => _textStorageWillProcessEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTextStorage textStorage, global::AppKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> WillProcessEditingObs => _willProcessEditing; + /// + public override void DidProcessEditing(global::AppKit.NSTextStorage textStorage, global::AppKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta) => _didProcessEditing.OnNext((textStorage, editedMask, editedRange, delta)); + /// + public override void TextStorageDidProcessEditing(global::Foundation.NSNotification notification) => _textStorageDidProcessEditing.OnNext(notification); + /// + public override void TextStorageWillProcessEditing(global::Foundation.NSNotification notification) => _textStorageWillProcessEditing.OnNext(notification); + /// + public override void WillProcessEditing(global::AppKit.NSTextStorage textStorage, global::AppKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta) => _willProcessEditing.OnNext((textStorage, editedMask, editedRange, delta)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSTextViewDelegateRx : global::AppKit.NSTextViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextView textView, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect cellFrame, global::System.nuint charIndex)> _cellClicked = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextView textView, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect cellFrame, global::System.nuint charIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextView textView, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect cellFrame, global::System.nuint charIndex)> _cellDoubleClicked = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextView textView, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect cellFrame, global::System.nuint charIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeSelection = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeTypingAttributes = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextView view, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect rect, global::AppKit.NSEvent theevent)> _draggedCell = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSTextView view, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect rect, global::AppKit.NSEvent theevent)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTextView textView, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect cellFrame, global::System.nuint charIndex)> CellClickedObs => _cellClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTextView textView, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect cellFrame, global::System.nuint charIndex)> CellDoubleClickedObs => _cellDoubleClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeSelectionObs => _didChangeSelection; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeTypingAttributesObs => _didChangeTypingAttributes; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSTextView view, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect rect, global::AppKit.NSEvent theevent)> DraggedCellObs => _draggedCell; + /// + public override void CellClicked(global::AppKit.NSTextView textView, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect cellFrame, global::System.nuint charIndex) => _cellClicked.OnNext((textView, cell, cellFrame, charIndex)); + /// + public override void CellDoubleClicked(global::AppKit.NSTextView textView, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect cellFrame, global::System.nuint charIndex) => _cellDoubleClicked.OnNext((textView, cell, cellFrame, charIndex)); + /// + public override void DidChangeSelection(global::Foundation.NSNotification notification) => _didChangeSelection.OnNext(notification); + /// + public override void DidChangeTypingAttributes(global::Foundation.NSNotification notification) => _didChangeTypingAttributes.OnNext(notification); + /// + public override void DraggedCell(global::AppKit.NSTextView view, global::AppKit.NSTextAttachmentCell cell, global::CoreGraphics.CGRect rect, global::AppKit.NSEvent theevent) => _draggedCell.OnNext((view, cell, rect, theevent)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSToolbarDelegateRx : global::AppKit.NSToolbarDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didRemoveItem = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willAddItem = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidRemoveItemObs => _didRemoveItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillAddItemObs => _willAddItem; + /// + public override void DidRemoveItem(global::Foundation.NSNotification notification) => _didRemoveItem.OnNext(notification); + /// + public override void WillAddItem(global::Foundation.NSNotification notification) => _willAddItem.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSWindowDelegateRx : global::AppKit.NSWindowDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeKey = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeMain = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeBackingProperties = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeScreenProfile = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)> _didDecodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didDeminiaturize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndLiveResize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndSheet = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEnterFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEnterVersionBrowser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didExitFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didExitVersionBrowser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didExpose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFailToEnterFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFailToExitFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didMiniaturize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didMove = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didResignKey = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didResignMain = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didResize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, double duration)> _startCustomAnimationToEnterFullScreen = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, double duration)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, double duration)> _startCustomAnimationToExitFullScreen = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, double duration)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willBeginSheet = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)> _willEncodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willEnterFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willEnterVersionBrowser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willExitFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willExitVersionBrowser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willMiniaturize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willMove = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartLiveResize = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeKeyObs => _didBecomeKey; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeMainObs => _didBecomeMain; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeBackingPropertiesObs => _didChangeBackingProperties; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeScreenObs => _didChangeScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeScreenProfileObs => _didChangeScreenProfile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)> DidDecodeRestorableStateObs => _didDecodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDeminiaturizeObs => _didDeminiaturize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndLiveResizeObs => _didEndLiveResize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndSheetObs => _didEndSheet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEnterFullScreenObs => _didEnterFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEnterVersionBrowserObs => _didEnterVersionBrowser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidExitFullScreenObs => _didExitFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidExitVersionBrowserObs => _didExitVersionBrowser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidExposeObs => _didExpose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFailToEnterFullScreenObs => _didFailToEnterFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFailToExitFullScreenObs => _didFailToExitFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidMiniaturizeObs => _didMiniaturize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidMoveObs => _didMove; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidResignKeyObs => _didResignKey; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidResignMainObs => _didResignMain; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidResizeObs => _didResize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateObs => _didUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSWindow window, double duration)> StartCustomAnimationToEnterFullScreenObs => _startCustomAnimationToEnterFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSWindow window, double duration)> StartCustomAnimationToExitFullScreenObs => _startCustomAnimationToExitFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillBeginSheetObs => _willBeginSheet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillCloseObs => _willClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)> WillEncodeRestorableStateObs => _willEncodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillEnterFullScreenObs => _willEnterFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillEnterVersionBrowserObs => _willEnterVersionBrowser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillExitFullScreenObs => _willExitFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillExitVersionBrowserObs => _willExitVersionBrowser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillMiniaturizeObs => _willMiniaturize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillMoveObs => _willMove; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartLiveResizeObs => _willStartLiveResize; + /// + public override void DidBecomeKey(global::Foundation.NSNotification notification) => _didBecomeKey.OnNext(notification); + /// + public override void DidBecomeMain(global::Foundation.NSNotification notification) => _didBecomeMain.OnNext(notification); + /// + public override void DidChangeBackingProperties(global::Foundation.NSNotification notification) => _didChangeBackingProperties.OnNext(notification); + /// + public override void DidChangeScreen(global::Foundation.NSNotification notification) => _didChangeScreen.OnNext(notification); + /// + public override void DidChangeScreenProfile(global::Foundation.NSNotification notification) => _didChangeScreenProfile.OnNext(notification); + /// + public override void DidDecodeRestorableState(global::AppKit.NSWindow window, global::Foundation.NSCoder coder) => _didDecodeRestorableState.OnNext((window, coder)); + /// + public override void DidDeminiaturize(global::Foundation.NSNotification notification) => _didDeminiaturize.OnNext(notification); + /// + public override void DidEndLiveResize(global::Foundation.NSNotification notification) => _didEndLiveResize.OnNext(notification); + /// + public override void DidEndSheet(global::Foundation.NSNotification notification) => _didEndSheet.OnNext(notification); + /// + public override void DidEnterFullScreen(global::Foundation.NSNotification notification) => _didEnterFullScreen.OnNext(notification); + /// + public override void DidEnterVersionBrowser(global::Foundation.NSNotification notification) => _didEnterVersionBrowser.OnNext(notification); + /// + public override void DidExitFullScreen(global::Foundation.NSNotification notification) => _didExitFullScreen.OnNext(notification); + /// + public override void DidExitVersionBrowser(global::Foundation.NSNotification notification) => _didExitVersionBrowser.OnNext(notification); + /// + public override void DidExpose(global::Foundation.NSNotification notification) => _didExpose.OnNext(notification); + /// + public override void DidFailToEnterFullScreen(global::AppKit.NSWindow window) => _didFailToEnterFullScreen.OnNext(window); + /// + public override void DidFailToExitFullScreen(global::AppKit.NSWindow window) => _didFailToExitFullScreen.OnNext(window); + /// + public override void DidMiniaturize(global::Foundation.NSNotification notification) => _didMiniaturize.OnNext(notification); + /// + public override void DidMove(global::Foundation.NSNotification notification) => _didMove.OnNext(notification); + /// + public override void DidResignKey(global::Foundation.NSNotification notification) => _didResignKey.OnNext(notification); + /// + public override void DidResignMain(global::Foundation.NSNotification notification) => _didResignMain.OnNext(notification); + /// + public override void DidResize(global::Foundation.NSNotification notification) => _didResize.OnNext(notification); + /// + public override void DidUpdate(global::Foundation.NSNotification notification) => _didUpdate.OnNext(notification); + /// + public override void StartCustomAnimationToEnterFullScreen(global::AppKit.NSWindow window, double duration) => _startCustomAnimationToEnterFullScreen.OnNext((window, duration)); + /// + public override void StartCustomAnimationToExitFullScreen(global::AppKit.NSWindow window, double duration) => _startCustomAnimationToExitFullScreen.OnNext((window, duration)); + /// + public override void WillBeginSheet(global::Foundation.NSNotification notification) => _willBeginSheet.OnNext(notification); + /// + public override void WillClose(global::Foundation.NSNotification notification) => _willClose.OnNext(notification); + /// + public override void WillEncodeRestorableState(global::AppKit.NSWindow window, global::Foundation.NSCoder coder) => _willEncodeRestorableState.OnNext((window, coder)); + /// + public override void WillEnterFullScreen(global::Foundation.NSNotification notification) => _willEnterFullScreen.OnNext(notification); + /// + public override void WillEnterVersionBrowser(global::Foundation.NSNotification notification) => _willEnterVersionBrowser.OnNext(notification); + /// + public override void WillExitFullScreen(global::Foundation.NSNotification notification) => _willExitFullScreen.OnNext(notification); + /// + public override void WillExitVersionBrowser(global::Foundation.NSNotification notification) => _willExitVersionBrowser.OnNext(notification); + /// + public override void WillMiniaturize(global::Foundation.NSNotification notification) => _willMiniaturize.OnNext(notification); + /// + public override void WillMove(global::Foundation.NSNotification notification) => _willMove.OnNext(notification); + /// + public override void WillStartLiveResize(global::Foundation.NSNotification notification) => _willStartLiveResize.OnNext(notification); + } +} + +namespace AVFoundation +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVAssetResourceLoaderDelegateRx : global::AVFoundation.AVAssetResourceLoaderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge)> _didCancelAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest)> _didCancelLoadingRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge)> DidCancelAuthenticationChallengeObs => _didCancelAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest)> DidCancelLoadingRequestObs => _didCancelLoadingRequest; + /// + public override void DidCancelAuthenticationChallenge(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge) => _didCancelAuthenticationChallenge.OnNext((resourceLoader, authenticationChallenge)); + /// + public override void DidCancelLoadingRequest(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest) => _didCancelLoadingRequest.OnNext((resourceLoader, loadingRequest)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVAudioPlayerDelegateRx : global::AVFoundation.AVAudioPlayerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error)> _decoderError = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, bool flag)> _finishedPlaying = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, bool flag)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error)> DecoderErrorObs => _decoderError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioPlayer player, bool flag)> FinishedPlayingObs => _finishedPlaying; + /// + public override void DecoderError(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error) => _decoderError.OnNext((player, error)); + /// + public override void FinishedPlaying(global::AVFoundation.AVAudioPlayer player, bool flag) => _finishedPlaying.OnNext((player, flag)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVAudioRecorderDelegateRx : global::AVFoundation.AVAudioRecorderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, global::Foundation.NSError error)> _encoderError = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, bool flag)> _finishedRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, bool flag)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioRecorder recorder, global::Foundation.NSError error)> EncoderErrorObs => _encoderError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioRecorder recorder, bool flag)> FinishedRecordingObs => _finishedRecording; + /// + public override void EncoderError(global::AVFoundation.AVAudioRecorder recorder, global::Foundation.NSError error) => _encoderError.OnNext((recorder, error)); + /// + public override void FinishedRecording(global::AVFoundation.AVAudioRecorder recorder, bool flag) => _finishedRecording.OnNext((recorder, flag)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVCaptureAudioDataOutputSampleBufferDelegateRx : global::AVFoundation.AVCaptureAudioDataOutputSampleBufferDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> _didDropSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> _didOutputSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + [global::System.ObsoleteAttribute("This member only exists for 'AVCaptureVideoDataOutputSampleBufferDelegate'.", false)] + public global::System.IObservable<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> DidDropSampleBufferObs => _didDropSampleBuffer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> DidOutputSampleBufferObs => _didOutputSampleBuffer; + /// + [global::System.ObsoleteAttribute("This member only exists for 'AVCaptureVideoDataOutputSampleBufferDelegate'.", false)] + public override void DidDropSampleBuffer(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection) => _didDropSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + /// + public override void DidOutputSampleBuffer(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection) => _didOutputSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + } + + [global::System.ObsoleteAttribute("This API is not available on this platform.", false)] + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVCaptureDataOutputSynchronizerDelegateRx : global::AVFoundation.AVCaptureDataOutputSynchronizerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureDataOutputSynchronizer synchronizer, global::AVFoundation.AVCaptureSynchronizedDataCollection synchronizedDataCollection)> _didOutputSynchronizedDataCollection = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureDataOutputSynchronizer synchronizer, global::AVFoundation.AVCaptureSynchronizedDataCollection synchronizedDataCollection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureDataOutputSynchronizer synchronizer, global::AVFoundation.AVCaptureSynchronizedDataCollection synchronizedDataCollection)> DidOutputSynchronizedDataCollectionObs => _didOutputSynchronizedDataCollection; + /// + public override void DidOutputSynchronizedDataCollection(global::AVFoundation.AVCaptureDataOutputSynchronizer synchronizer, global::AVFoundation.AVCaptureSynchronizedDataCollection synchronizedDataCollection) => _didOutputSynchronizedDataCollection.OnNext((synchronizer, synchronizedDataCollection)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVCaptureFileOutputDelegateRx : global::AVFoundation.AVCaptureFileOutputDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> _didOutputSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> DidOutputSampleBufferObs => _didOutputSampleBuffer; + /// + public override void DidOutputSampleBuffer(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection) => _didOutputSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVCaptureFileOutputRecordingDelegateRx : global::AVFoundation.AVCaptureFileOutputRecordingDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections)> _didPauseRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections)> _didResumeRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections)> _didStartRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections, global::Foundation.NSError error)> _finishedRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections, global::Foundation.NSError error)> _willFinishRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections)> DidPauseRecordingObs => _didPauseRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections)> DidResumeRecordingObs => _didResumeRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections)> DidStartRecordingObs => _didStartRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections, global::Foundation.NSError error)> FinishedRecordingObs => _finishedRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections, global::Foundation.NSError error)> WillFinishRecordingObs => _willFinishRecording; + /// + public override void DidPauseRecording(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections) => _didPauseRecording.OnNext((captureOutput, outputFileUrl, connections)); + /// + public override void DidResumeRecording(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections) => _didResumeRecording.OnNext((captureOutput, outputFileUrl, connections)); + /// + public override void DidStartRecording(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections) => _didStartRecording.OnNext((captureOutput, outputFileUrl, connections)); + /// + public override void FinishedRecording(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections, global::Foundation.NSError error) => _finishedRecording.OnNext((captureOutput, outputFileUrl, connections, error)); + /// + public override void WillFinishRecording(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureConnection[] connections, global::Foundation.NSError error) => _willFinishRecording.OnNext((captureOutput, outputFileUrl, connections, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVCaptureVideoDataOutputSampleBufferDelegateRx : global::AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> _didDropSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> _didOutputSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> DidDropSampleBufferObs => _didDropSampleBuffer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> DidOutputSampleBufferObs => _didOutputSampleBuffer; + /// + public override void DidDropSampleBuffer(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection) => _didDropSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + /// + public override void DidOutputSampleBuffer(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection) => _didOutputSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVContentKeySessionDelegateRx : global::AVFoundation.AVContentKeySessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didGenerateExpiredSessionReport = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> _didProvideContentKeyRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest)> _didProvidePersistableContentKeyRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> _didProvideRenewingContentKeyRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> _didSucceed = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeObs => _didChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidGenerateExpiredSessionReportObs => _didGenerateExpiredSessionReport; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> DidProvideContentKeyRequestObs => _didProvideContentKeyRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest)> DidProvidePersistableContentKeyRequestObs => _didProvidePersistableContentKeyRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> DidProvideRenewingContentKeyRequestObs => _didProvideRenewingContentKeyRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> DidSucceedObs => _didSucceed; + /// + public override void DidChange(global::AVFoundation.AVContentKeySession session) => _didChange.OnNext(session); + /// + public override void DidFail(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err) => _didFail.OnNext((session, keyRequest, err)); + /// + public override void DidGenerateExpiredSessionReport(global::AVFoundation.AVContentKeySession session) => _didGenerateExpiredSessionReport.OnNext(session); + /// + public override void DidProvideContentKeyRequest(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest) => _didProvideContentKeyRequest.OnNext((session, keyRequest)); + /// + public override void DidProvidePersistableContentKeyRequest(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest) => _didProvidePersistableContentKeyRequest.OnNext((session, keyRequest)); + /// + public override void DidProvideRenewingContentKeyRequest(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest) => _didProvideRenewingContentKeyRequest.OnNext((session, keyRequest)); + /// + public override void DidSucceed(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest) => _didSucceed.OnNext((session, keyRequest)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVPlayerItemMetadataCollectorPushDelegateRx : global::AVFoundation.AVPlayerItemMetadataCollectorPushDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups)> _didCollectDateRange = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups)> DidCollectDateRangeObs => _didCollectDateRange; + /// + public override void DidCollectDateRange(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups) => _didCollectDateRange.OnNext((metadataCollector, metadataGroups, indexesOfNewGroups, indexesOfModifiedGroups)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerItemMetadataOutputPushDelegateRx : global::AVFoundation.AVPlayerItemMetadataOutputPushDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track)> _didOutputTimedMetadataGroups = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _outputSequenceWasFlushed = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track)> DidOutputTimedMetadataGroupsObs => _didOutputTimedMetadataGroups; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputSequenceWasFlushedObs => _outputSequenceWasFlushed; + /// + public override void DidOutputTimedMetadataGroups(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track) => _didOutputTimedMetadataGroups.OnNext((output, groups, track)); + /// + public override void OutputSequenceWasFlushed(global::AVFoundation.AVPlayerItemOutput output) => _outputSequenceWasFlushed.OnNext(output); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerItemOutputPullDelegateRx : global::AVFoundation.AVPlayerItemOutputPullDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _outputMediaDataWillChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _outputSequenceWasFlushed = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputMediaDataWillChangeObs => _outputMediaDataWillChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputSequenceWasFlushedObs => _outputSequenceWasFlushed; + /// + public override void OutputMediaDataWillChange(global::AVFoundation.AVPlayerItemOutput sender) => _outputMediaDataWillChange.OnNext(sender); + /// + public override void OutputSequenceWasFlushed(global::AVFoundation.AVPlayerItemOutput output) => _outputSequenceWasFlushed.OnNext(output); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerItemOutputPushDelegateRx : global::AVFoundation.AVPlayerItemOutputPushDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _outputSequenceWasFlushed = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputSequenceWasFlushedObs => _outputSequenceWasFlushed; + /// + public override void OutputSequenceWasFlushed(global::AVFoundation.AVPlayerItemOutput output) => _outputSequenceWasFlushed.OnNext(output); + } +} + +namespace AVKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVCaptureViewDelegateRx : global::AVKit.AVCaptureViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVCaptureView captureView, global::AVFoundation.AVCaptureFileOutput fileOutput)> _startRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVCaptureView captureView, global::AVFoundation.AVCaptureFileOutput fileOutput)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVCaptureView captureView, global::AVFoundation.AVCaptureFileOutput fileOutput)> StartRecordingObs => _startRecording; + /// + public override void StartRecording(global::AVKit.AVCaptureView captureView, global::AVFoundation.AVCaptureFileOutput fileOutput) => _startRecording.OnNext((captureView, fileOutput)); + } +} + +namespace ContactsUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class CNContactPickerDelegateRx : global::ContactsUI.CNContactPickerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPicker picker, global::Contacts.CNContactProperty contactProperty)> _contactPropertySelected = new Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPicker picker, global::Contacts.CNContactProperty contactProperty)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPicker picker, global::Contacts.CNContact contact)> _contactSelected = new Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPicker picker, global::Contacts.CNContact contact)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willClose = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ContactsUI.CNContactPicker picker, global::Contacts.CNContactProperty contactProperty)> ContactPropertySelectedObs => _contactPropertySelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ContactsUI.CNContactPicker picker, global::Contacts.CNContact contact)> ContactSelectedObs => _contactSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCloseObs => _didClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillCloseObs => _willClose; + /// + public override void ContactPropertySelected(global::ContactsUI.CNContactPicker picker, global::Contacts.CNContactProperty contactProperty) => _contactPropertySelected.OnNext((picker, contactProperty)); + /// + public override void ContactSelected(global::ContactsUI.CNContactPicker picker, global::Contacts.CNContact contact) => _contactSelected.OnNext((picker, contact)); + /// + public override void DidClose(global::ContactsUI.CNContactPicker picker) => _didClose.OnNext(picker); + /// + public override void WillClose(global::ContactsUI.CNContactPicker picker) => _willClose.OnNext(picker); + } +} + +namespace CoreAnimation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class CAAnimationDelegateRx : global::CoreAnimation.CAAnimationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _animationStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CAAnimation anim, bool finished)> _animationStopped = new Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CAAnimation anim, bool finished)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AnimationStartedObs => _animationStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreAnimation.CAAnimation anim, bool finished)> AnimationStoppedObs => _animationStopped; + /// + public override void AnimationStarted(global::CoreAnimation.CAAnimation anim) => _animationStarted.OnNext(anim); + /// + public override void AnimationStopped(global::CoreAnimation.CAAnimation anim, bool finished) => _animationStopped.OnNext((anim, finished)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class CALayerDelegateRx : global::CoreAnimation.CALayerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _displayLayer = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context)> _drawLayer = new Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _layoutSublayersOfLayer = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDrawLayer = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DisplayLayerObs => _displayLayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context)> DrawLayerObs => _drawLayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LayoutSublayersOfLayerObs => _layoutSublayersOfLayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDrawLayerObs => _willDrawLayer; + /// + public override void DisplayLayer(global::CoreAnimation.CALayer layer) => _displayLayer.OnNext(layer); + /// + public override void DrawLayer(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context) => _drawLayer.OnNext((layer, context)); + /// + public override void LayoutSublayersOfLayer(global::CoreAnimation.CALayer layer) => _layoutSublayersOfLayer.OnNext(layer); + /// + public override void WillDrawLayer(global::CoreAnimation.CALayer layer) => _willDrawLayer.OnNext(layer); + } +} + +namespace CoreBluetooth +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CBCentralManagerDelegateRx : global::CoreBluetooth.CBCentralManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral)> _connectedPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _disconnectedPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI)> _discoveredPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _failedToConnectPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)> _retrievedConnectedPeripherals = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)> _retrievedPeripherals = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _updatedState = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict)> _willRestoreState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral)> ConnectedPeripheralObs => _connectedPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> DisconnectedPeripheralObs => _disconnectedPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI)> DiscoveredPeripheralObs => _discoveredPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> FailedToConnectPeripheralObs => _failedToConnectPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)> RetrievedConnectedPeripheralsObs => _retrievedConnectedPeripherals; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)> RetrievedPeripheralsObs => _retrievedPeripherals; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UpdatedStateObs => _updatedState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict)> WillRestoreStateObs => _willRestoreState; + /// + public override void ConnectedPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral) => _connectedPeripheral.OnNext((central, peripheral)); + /// + public override void DisconnectedPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _disconnectedPeripheral.OnNext((central, peripheral, error)); + /// + public override void DiscoveredPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI) => _discoveredPeripheral.OnNext((central, peripheral, advertisementData, RSSI)); + /// + public override void FailedToConnectPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _failedToConnectPeripheral.OnNext((central, peripheral, error)); + /// + public override void RetrievedConnectedPeripherals(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals) => _retrievedConnectedPeripherals.OnNext((central, peripherals)); + /// + public override void RetrievedPeripherals(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals) => _retrievedPeripherals.OnNext((central, peripherals)); + /// + public override void UpdatedState(global::CoreBluetooth.CBCentralManager central) => _updatedState.OnNext(central); + /// + public override void WillRestoreState(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict) => _willRestoreState.OnNext((central, dict)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class CBPeripheralDelegateRx : global::CoreBluetooth.CBPeripheralDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> _didOpenL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> _discoveredCharacteristic = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _discoveredDescriptor = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> _discoveredIncludedService = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _discoveredService = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _invalidatedService = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _isReadyToSendWriteWithoutResponse = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services)> _modifiedServices = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error)> _rssiRead = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _rssiUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _updatedCharacterteristicValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _updatedName = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _updatedNotificationState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> _updatedValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _wroteCharacteristicValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> _wroteDescriptorValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> DidOpenL2CapChannelObs => _didOpenL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> DiscoveredCharacteristicObs => _discoveredCharacteristic; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> DiscoveredDescriptorObs => _discoveredDescriptor; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> DiscoveredIncludedServiceObs => _discoveredIncludedService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> DiscoveredServiceObs => _discoveredService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable InvalidatedServiceObs => _invalidatedService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable IsReadyToSendWriteWithoutResponseObs => _isReadyToSendWriteWithoutResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services)> ModifiedServicesObs => _modifiedServices; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error)> RssiReadObs => _rssiRead; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> RssiUpdatedObs => _rssiUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> UpdatedCharacterteristicValueObs => _updatedCharacterteristicValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UpdatedNameObs => _updatedName; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> UpdatedNotificationStateObs => _updatedNotificationState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> UpdatedValueObs => _updatedValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> WroteCharacteristicValueObs => _wroteCharacteristicValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> WroteDescriptorValueObs => _wroteDescriptorValue; + /// + public override void DidOpenL2CapChannel(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error) => _didOpenL2CapChannel.OnNext((peripheral, channel, error)); + /// + public override void DiscoveredCharacteristic(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error) => _discoveredCharacteristic.OnNext((peripheral, service, error)); + /// + public override void DiscoveredDescriptor(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _discoveredDescriptor.OnNext((peripheral, characteristic, error)); + /// + public override void DiscoveredIncludedService(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error) => _discoveredIncludedService.OnNext((peripheral, service, error)); + /// + public override void DiscoveredService(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _discoveredService.OnNext((peripheral, error)); + /// + public override void InvalidatedService(global::CoreBluetooth.CBPeripheral peripheral) => _invalidatedService.OnNext(peripheral); + /// + public override void IsReadyToSendWriteWithoutResponse(global::CoreBluetooth.CBPeripheral peripheral) => _isReadyToSendWriteWithoutResponse.OnNext(peripheral); + /// + public override void ModifiedServices(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services) => _modifiedServices.OnNext((peripheral, services)); + /// + public override void RssiRead(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error) => _rssiRead.OnNext((peripheral, rssi, error)); + /// + public override void RssiUpdated(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _rssiUpdated.OnNext((peripheral, error)); + /// + public override void UpdatedCharacterteristicValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _updatedCharacterteristicValue.OnNext((peripheral, characteristic, error)); + /// + public override void UpdatedName(global::CoreBluetooth.CBPeripheral peripheral) => _updatedName.OnNext(peripheral); + /// + public override void UpdatedNotificationState(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _updatedNotificationState.OnNext((peripheral, characteristic, error)); + /// + public override void UpdatedValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error) => _updatedValue.OnNext((peripheral, descriptor, error)); + /// + public override void WroteCharacteristicValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _wroteCharacteristicValue.OnNext((peripheral, characteristic, error)); + /// + public override void WroteDescriptorValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error) => _wroteDescriptorValue.OnNext((peripheral, descriptor, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CBPeripheralManagerDelegateRx : global::CoreBluetooth.CBPeripheralManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error)> _advertisingStarted = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> _characteristicSubscribed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> _characteristicUnsubscribed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> _didOpenL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> _didPublishL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> _didUnpublishL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request)> _readRequestReceived = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _readyToUpdateSubscribers = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> _serviceAdded = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _stateUpdated = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict)> _willRestoreState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests)> _writeRequestsReceived = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error)> AdvertisingStartedObs => _advertisingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> CharacteristicSubscribedObs => _characteristicSubscribed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> CharacteristicUnsubscribedObs => _characteristicUnsubscribed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> DidOpenL2CapChannelObs => _didOpenL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> DidPublishL2CapChannelObs => _didPublishL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> DidUnpublishL2CapChannelObs => _didUnpublishL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request)> ReadRequestReceivedObs => _readRequestReceived; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ReadyToUpdateSubscribersObs => _readyToUpdateSubscribers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> ServiceAddedObs => _serviceAdded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable StateUpdatedObs => _stateUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict)> WillRestoreStateObs => _willRestoreState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests)> WriteRequestsReceivedObs => _writeRequestsReceived; + /// + public override void AdvertisingStarted(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error) => _advertisingStarted.OnNext((peripheral, error)); + /// + public override void CharacteristicSubscribed(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic) => _characteristicSubscribed.OnNext((peripheral, central, characteristic)); + /// + public override void CharacteristicUnsubscribed(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic) => _characteristicUnsubscribed.OnNext((peripheral, central, characteristic)); + /// + public override void DidOpenL2CapChannel(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error) => _didOpenL2CapChannel.OnNext((peripheral, channel, error)); + /// + public override void DidPublishL2CapChannel(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error) => _didPublishL2CapChannel.OnNext((peripheral, psm, error)); + /// + public override void DidUnpublishL2CapChannel(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error) => _didUnpublishL2CapChannel.OnNext((peripheral, psm, error)); + /// + public override void ReadRequestReceived(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request) => _readRequestReceived.OnNext((peripheral, request)); + /// + public override void ReadyToUpdateSubscribers(global::CoreBluetooth.CBPeripheralManager peripheral) => _readyToUpdateSubscribers.OnNext(peripheral); + /// + public override void ServiceAdded(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error) => _serviceAdded.OnNext((peripheral, service, error)); + /// + public override void StateUpdated(global::CoreBluetooth.CBPeripheralManager peripheral) => _stateUpdated.OnNext(peripheral); + /// + public override void WillRestoreState(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict) => _willRestoreState.OnNext((peripheral, dict)); + /// + public override void WriteRequestsReceived(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests) => _writeRequestsReceived.OnNext((peripheral, requests)); + } +} + +namespace CoreData +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSCoreDataCoreSpotlightDelegateRx : global::CoreData.NSCoreDataCoreSpotlightDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)> _reindexAllSearchableItems = new Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)> _reindexSearchableItems = new Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)> ReindexAllSearchableItemsObs => _reindexAllSearchableItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)> ReindexSearchableItemsObs => _reindexSearchableItems; + /// + public override void ReindexAllSearchableItems(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler) => _reindexAllSearchableItems.OnNext((searchableIndex, acknowledgementHandler)); + /// + public override void ReindexSearchableItems(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler) => _reindexSearchableItems.OnNext((searchableIndex, identifiers, acknowledgementHandler)); + } +} + +namespace CoreLocation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class CLLocationManagerDelegateRx : global::CoreLocation.CLLocationManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status)> _authorizationChanged = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> _deferredUpdatesFinished = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegionState state, global::CoreLocation.CLRegion region)> _didDetermineState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegionState state, global::CoreLocation.CLRegion region)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> _didStartMonitoringForRegion = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> _failed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations)> _locationsUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _locationUpdatesPaused = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _locationUpdatesResumed = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region, global::Foundation.NSError error)> _monitoringFailed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> _regionEntered = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> _regionLeft = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation newLocation, global::CoreLocation.CLLocation oldLocation)> _updatedLocation = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation newLocation, global::CoreLocation.CLLocation oldLocation)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status)> AuthorizationChangedObs => _authorizationChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> DeferredUpdatesFinishedObs => _deferredUpdatesFinished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegionState state, global::CoreLocation.CLRegion region)> DidDetermineStateObs => _didDetermineState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> DidStartMonitoringForRegionObs => _didStartMonitoringForRegion; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> FailedObs => _failed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations)> LocationsUpdatedObs => _locationsUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocationUpdatesPausedObs => _locationUpdatesPaused; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocationUpdatesResumedObs => _locationUpdatesResumed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region, global::Foundation.NSError error)> MonitoringFailedObs => _monitoringFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> RegionEnteredObs => _regionEntered; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> RegionLeftObs => _regionLeft; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation newLocation, global::CoreLocation.CLLocation oldLocation)> UpdatedLocationObs => _updatedLocation; + /// + public override void AuthorizationChanged(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status) => _authorizationChanged.OnNext((manager, status)); + /// + public override void DeferredUpdatesFinished(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error) => _deferredUpdatesFinished.OnNext((manager, error)); + /// + public override void DidDetermineState(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegionState state, global::CoreLocation.CLRegion region) => _didDetermineState.OnNext((manager, state, region)); + /// + public override void DidStartMonitoringForRegion(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region) => _didStartMonitoringForRegion.OnNext((manager, region)); + /// + public override void Failed(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error) => _failed.OnNext((manager, error)); + /// + public override void LocationsUpdated(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations) => _locationsUpdated.OnNext((manager, locations)); + /// + public override void LocationUpdatesPaused(global::CoreLocation.CLLocationManager manager) => _locationUpdatesPaused.OnNext(manager); + /// + public override void LocationUpdatesResumed(global::CoreLocation.CLLocationManager manager) => _locationUpdatesResumed.OnNext(manager); + /// + public override void MonitoringFailed(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region, global::Foundation.NSError error) => _monitoringFailed.OnNext((manager, region, error)); + /// + public override void RegionEntered(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region) => _regionEntered.OnNext((manager, region)); + /// + public override void RegionLeft(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region) => _regionLeft.OnNext((manager, region)); + /// + public override void UpdatedLocation(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation newLocation, global::CoreLocation.CLLocation oldLocation) => _updatedLocation.OnNext((manager, newLocation, oldLocation)); + } +} + +namespace CoreSpotlight +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CSSearchableIndexDelegateRx : global::CoreSpotlight.CSSearchableIndexDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishThrottle = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didThrottle = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)> _reindexAllSearchableItems = new Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)> _reindexSearchableItems = new Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishThrottleObs => _didFinishThrottle; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidThrottleObs => _didThrottle; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)> ReindexAllSearchableItemsObs => _reindexAllSearchableItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)> ReindexSearchableItemsObs => _reindexSearchableItems; + /// + public override void DidFinishThrottle(global::CoreSpotlight.CSSearchableIndex searchableIndex) => _didFinishThrottle.OnNext(searchableIndex); + /// + public override void DidThrottle(global::CoreSpotlight.CSSearchableIndex searchableIndex) => _didThrottle.OnNext(searchableIndex); + /// + public override void ReindexAllSearchableItems(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler) => _reindexAllSearchableItems.OnNext((searchableIndex, acknowledgementHandler)); + /// + public override void ReindexSearchableItems(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler) => _reindexSearchableItems.OnNext((searchableIndex, identifiers, acknowledgementHandler)); + } +} + +namespace CoreWlan +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class CWEventDelegateRx : global::CoreWlan.CWEventDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _bssidDidChangeForWiFi = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _clientConnectionInterrupted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _clientConnectionInvalidated = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _countryCodeDidChangeForWiFi = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _linkDidChangeForWiFi = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(string interfaceName, int rssi, double transmitRate)> _linkQualityDidChangeForWiFi = new Pharmacist.Common.SingleAwaitSubject<(string interfaceName, int rssi, double transmitRate)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _modeDidChangeForWiFi = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _powerStateDidChangeForWiFi = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _scanCacheUpdatedForWiFi = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _ssidDidChangeForWiFi = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable BssidDidChangeForWiFiObs => _bssidDidChangeForWiFi; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ClientConnectionInterruptedObs => _clientConnectionInterrupted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ClientConnectionInvalidatedObs => _clientConnectionInvalidated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CountryCodeDidChangeForWiFiObs => _countryCodeDidChangeForWiFi; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LinkDidChangeForWiFiObs => _linkDidChangeForWiFi; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(string interfaceName, int rssi, double transmitRate)> LinkQualityDidChangeForWiFiObs => _linkQualityDidChangeForWiFi; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ModeDidChangeForWiFiObs => _modeDidChangeForWiFi; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PowerStateDidChangeForWiFiObs => _powerStateDidChangeForWiFi; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScanCacheUpdatedForWiFiObs => _scanCacheUpdatedForWiFi; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SsidDidChangeForWiFiObs => _ssidDidChangeForWiFi; + /// + public override void BssidDidChangeForWiFi(string interfaceName) => _bssidDidChangeForWiFi.OnNext(interfaceName); + /// + public override void ClientConnectionInterrupted() => _clientConnectionInterrupted.OnNext(global::System.Reactive.Unit.Default); + /// + public override void ClientConnectionInvalidated() => _clientConnectionInvalidated.OnNext(global::System.Reactive.Unit.Default); + /// + public override void CountryCodeDidChangeForWiFi(string interfaceName) => _countryCodeDidChangeForWiFi.OnNext(interfaceName); + /// + public override void LinkDidChangeForWiFi(string interfaceName) => _linkDidChangeForWiFi.OnNext(interfaceName); + /// + public override void LinkQualityDidChangeForWiFi(string interfaceName, int rssi, double transmitRate) => _linkQualityDidChangeForWiFi.OnNext((interfaceName, rssi, transmitRate)); + /// + public override void ModeDidChangeForWiFi(string interfaceName) => _modeDidChangeForWiFi.OnNext(interfaceName); + /// + public override void PowerStateDidChangeForWiFi(string interfaceName) => _powerStateDidChangeForWiFi.OnNext(interfaceName); + /// + public override void ScanCacheUpdatedForWiFi(string interfaceName) => _scanCacheUpdatedForWiFi.OnNext(interfaceName); + /// + public override void SsidDidChangeForWiFi(string interfaceName) => _ssidDidChangeForWiFi.OnNext(interfaceName); + } +} + +namespace ExternalAccessory +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class EAAccessoryDelegateRx : global::ExternalAccessory.EAAccessoryDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _disconnected = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DisconnectedObs => _disconnected; + /// + public override void Disconnected(global::ExternalAccessory.EAAccessory accessory) => _disconnected.OnNext(accessory); + } +} + +namespace Foundation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSCacheDelegateRx : global::Foundation.NSCacheDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSCache cache, global::Foundation.NSObject obj)> _willEvictObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSCache cache, global::Foundation.NSObject obj)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSCache cache, global::Foundation.NSObject obj)> WillEvictObjectObs => _willEvictObject; + /// + public override void WillEvictObject(global::Foundation.NSCache cache, global::Foundation.NSObject obj) => _willEvictObject.OnNext((cache, obj)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSKeyedArchiverDelegateRx : global::Foundation.NSKeyedArchiverDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj)> _encodedObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> _replacingObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj)> EncodedObjectObs => _encodedObject; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishingObs => _finishing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> ReplacingObjectObs => _replacingObject; + /// + public override void EncodedObject(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj) => _encodedObject.OnNext((archiver, obj)); + /// + public override void Finished(global::Foundation.NSKeyedArchiver archiver) => _finished.OnNext(archiver); + /// + public override void Finishing(global::Foundation.NSKeyedArchiver archiver) => _finishing.OnNext(archiver); + /// + public override void ReplacingObject(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject) => _replacingObject.OnNext((archiver, oldObject, newObject)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSKeyedUnarchiverDelegateRx : global::Foundation.NSKeyedUnarchiverDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> _replacingObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishingObs => _finishing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> ReplacingObjectObs => _replacingObject; + /// + public override void Finished(global::Foundation.NSKeyedUnarchiver unarchiver) => _finished.OnNext(unarchiver); + /// + public override void Finishing(global::Foundation.NSKeyedUnarchiver unarchiver) => _finishing.OnNext(unarchiver); + /// + public override void ReplacingObject(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject) => _replacingObject.OnNext((unarchiver, oldObject, newObject)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSMachPortDelegateRx : global::Foundation.NSMachPortDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _machMessageReceived = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MachMessageReceivedObs => _machMessageReceived; + /// + public override void MachMessageReceived(global::System.IntPtr msgHeader) => _machMessageReceived.OnNext(msgHeader); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSNetServiceBrowserDelegateRx : global::Foundation.NSNetServiceBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> _domainRemoved = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> _foundDomain = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> _foundService = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors)> _notSearched = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchStopped = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> _serviceRemoved = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> DomainRemovedObs => _domainRemoved; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> FoundDomainObs => _foundDomain; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> FoundServiceObs => _foundService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors)> NotSearchedObs => _notSearched; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchStartedObs => _searchStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchStoppedObs => _searchStopped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> ServiceRemovedObs => _serviceRemoved; + /// + public override void DomainRemoved(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing) => _domainRemoved.OnNext((sender, domain, moreComing)); + /// + public override void FoundDomain(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing) => _foundDomain.OnNext((sender, domain, moreComing)); + /// + public override void FoundService(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing) => _foundService.OnNext((sender, service, moreComing)); + /// + public override void NotSearched(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors) => _notSearched.OnNext((sender, errors)); + /// + public override void SearchStarted(global::Foundation.NSNetServiceBrowser sender) => _searchStarted.OnNext(sender); + /// + public override void SearchStopped(global::Foundation.NSNetServiceBrowser sender) => _searchStopped.OnNext(sender); + /// + public override void ServiceRemoved(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing) => _serviceRemoved.OnNext((sender, service, moreComing)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSNetServiceDelegateRx : global::Foundation.NSNetServiceDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _addressResolved = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> _didAcceptConnection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _published = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> _publishFailure = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> _resolveFailure = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _stopped = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSData data)> _updatedTxtRecordData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPublish = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willResolve = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AddressResolvedObs => _addressResolved; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> DidAcceptConnectionObs => _didAcceptConnection; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PublishedObs => _published; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> PublishFailureObs => _publishFailure; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> ResolveFailureObs => _resolveFailure; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable StoppedObs => _stopped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSData data)> UpdatedTxtRecordDataObs => _updatedTxtRecordData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPublishObs => _willPublish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillResolveObs => _willResolve; + /// + public override void AddressResolved(global::Foundation.NSNetService sender) => _addressResolved.OnNext(sender); + /// + public override void DidAcceptConnection(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream) => _didAcceptConnection.OnNext((sender, inputStream, outputStream)); + /// + public override void Published(global::Foundation.NSNetService sender) => _published.OnNext(sender); + /// + public override void PublishFailure(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors) => _publishFailure.OnNext((sender, errors)); + /// + public override void ResolveFailure(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors) => _resolveFailure.OnNext((sender, errors)); + /// + public override void Stopped(global::Foundation.NSNetService sender) => _stopped.OnNext(sender); + /// + public override void UpdatedTxtRecordData(global::Foundation.NSNetService sender, global::Foundation.NSData data) => _updatedTxtRecordData.OnNext((sender, data)); + /// + public override void WillPublish(global::Foundation.NSNetService sender) => _willPublish.OnNext(sender); + /// + public override void WillResolve(global::Foundation.NSNetService sender) => _willResolve.OnNext(sender); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSPortDelegateRx : global::Foundation.NSPortDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _messageReceived = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MessageReceivedObs => _messageReceived; + /// + public override void MessageReceived(global::Foundation.NSPortMessage message) => _messageReceived.OnNext(message); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSStreamDelegateRx : global::Foundation.NSStreamDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent)> _handleEvent = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent)> HandleEventObs => _handleEvent; + /// + public override void HandleEvent(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent) => _handleEvent.OnNext((theStream, streamEvent)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlConnectionDataDelegateRx : global::Foundation.NSUrlConnectionDataDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finishedLoading = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data)> _receivedData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response)> _receivedResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite)> _sentBodyData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedLoadingObs => _finishedLoading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data)> ReceivedDataObs => _receivedData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response)> ReceivedResponseObs => _receivedResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite)> SentBodyDataObs => _sentBodyData; + /// + public override void FinishedLoading(global::Foundation.NSUrlConnection connection) => _finishedLoading.OnNext(connection); + /// + public override void ReceivedData(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data) => _receivedData.OnNext((connection, data)); + /// + public override void ReceivedResponse(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response) => _receivedResponse.OnNext((connection, response)); + /// + public override void SentBodyData(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite) => _sentBodyData.OnNext((connection, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlConnectionDelegateRx : global::Foundation.NSUrlConnectionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> _canceledAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> _receivedAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> _willSendRequestForAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> CanceledAuthenticationChallengeObs => _canceledAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> ReceivedAuthenticationChallengeObs => _receivedAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> WillSendRequestForAuthenticationChallengeObs => _willSendRequestForAuthenticationChallenge; + /// + public override void CanceledAuthenticationChallenge(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge) => _canceledAuthenticationChallenge.OnNext((connection, challenge)); + /// + public override void FailedWithError(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error) => _failedWithError.OnNext((connection, error)); + /// + public override void ReceivedAuthenticationChallenge(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge) => _receivedAuthenticationChallenge.OnNext((connection, challenge)); + /// + public override void WillSendRequestForAuthenticationChallenge(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge) => _willSendRequestForAuthenticationChallenge.OnNext((connection, challenge)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSUrlConnectionDownloadDelegateRx : global::Foundation.NSUrlConnectionDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl)> _finishedDownloading = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes)> _resumedDownloading = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes)> _wroteData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl)> FinishedDownloadingObs => _finishedDownloading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes)> ResumedDownloadingObs => _resumedDownloading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes)> WroteDataObs => _wroteData; + /// + public override void FinishedDownloading(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl) => _finishedDownloading.OnNext((connection, destinationUrl)); + /// + public override void ResumedDownloading(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes) => _resumedDownloading.OnNext((connection, totalBytesWritten, expectedTotalBytes)); + /// + public override void WroteData(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes) => _wroteData.OnNext((connection, bytesWritten, totalBytesWritten, expectedTotalBytes)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlDownloadDelegateRx : global::Foundation.NSUrlDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlAuthenticationChallenge challenge)> _canceledAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, string path)> _createdDestination = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, string path)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, string suggestedFilename)> _decideDestination = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, string suggestedFilename)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _downloadBegan = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlAuthenticationChallenge challenge)> _receivedAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::System.nuint length)> _receivedData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::System.nuint length)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlResponse response)> _receivedResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlResponse response)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlResponse response, long startingByte)> _resume = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlResponse response, long startingByte)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlAuthenticationChallenge challenge)> CanceledAuthenticationChallengeObs => _canceledAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlDownload download, string path)> CreatedDestinationObs => _createdDestination; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlDownload download, string suggestedFilename)> DecideDestinationObs => _decideDestination; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DownloadBeganObs => _downloadBegan; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlDownload download, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlAuthenticationChallenge challenge)> ReceivedAuthenticationChallengeObs => _receivedAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlDownload download, global::System.nuint length)> ReceivedDataObs => _receivedData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlResponse response)> ReceivedResponseObs => _receivedResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlResponse response, long startingByte)> ResumeObs => _resume; + /// + public override void CanceledAuthenticationChallenge(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlAuthenticationChallenge challenge) => _canceledAuthenticationChallenge.OnNext((download, challenge)); + /// + public override void CreatedDestination(global::Foundation.NSUrlDownload download, string path) => _createdDestination.OnNext((download, path)); + /// + public override void DecideDestination(global::Foundation.NSUrlDownload download, string suggestedFilename) => _decideDestination.OnNext((download, suggestedFilename)); + /// + public override void DownloadBegan(global::Foundation.NSUrlDownload download) => _downloadBegan.OnNext(download); + /// + public override void FailedWithError(global::Foundation.NSUrlDownload download, global::Foundation.NSError error) => _failedWithError.OnNext((download, error)); + /// + public override void Finished(global::Foundation.NSUrlDownload download) => _finished.OnNext(download); + /// + public override void ReceivedAuthenticationChallenge(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlAuthenticationChallenge challenge) => _receivedAuthenticationChallenge.OnNext((download, challenge)); + /// + public override void ReceivedData(global::Foundation.NSUrlDownload download, global::System.nuint length) => _receivedData.OnNext((download, length)); + /// + public override void ReceivedResponse(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlResponse response) => _receivedResponse.OnNext((download, response)); + /// + public override void Resume(global::Foundation.NSUrlDownload download, global::Foundation.NSUrlResponse response, long startingByte) => _resume.OnNext((download, response, startingByte)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionDataDelegateRx : global::Foundation.NSUrlSessionDataDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask)> _didBecomeDownloadTask = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask)> _didBecomeStreamTask = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data)> _didReceiveData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler)> _didReceiveResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler)> _willCacheResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask)> DidBecomeDownloadTaskObs => _didBecomeDownloadTask; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask)> DidBecomeStreamTaskObs => _didBecomeStreamTask; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data)> DidReceiveDataObs => _didReceiveData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler)> DidReceiveResponseObs => _didReceiveResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler)> WillCacheResponseObs => _willCacheResponse; + /// + public override void DidBecomeDownloadTask(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask) => _didBecomeDownloadTask.OnNext((session, dataTask, downloadTask)); + /// + public override void DidBecomeStreamTask(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask) => _didBecomeStreamTask.OnNext((session, dataTask, streamTask)); + /// + public override void DidReceiveData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data) => _didReceiveData.OnNext((session, dataTask, data)); + /// + public override void DidReceiveResponse(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler) => _didReceiveResponse.OnNext((session, dataTask, response, completionHandler)); + /// + public override void WillCacheResponse(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler) => _willCacheResponse.OnNext((session, dataTask, proposedResponse, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionDelegateRx : global::Foundation.NSUrlSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSError error)> _didBecomeInvalid = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishEventsForBackgroundSession = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSError error)> DidBecomeInvalidObs => _didBecomeInvalid; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishEventsForBackgroundSessionObs => _didFinishEventsForBackgroundSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveChallengeObs => _didReceiveChallenge; + /// + public override void DidBecomeInvalid(global::Foundation.NSUrlSession session, global::Foundation.NSError error) => _didBecomeInvalid.OnNext((session, error)); + /// + public override void DidFinishEventsForBackgroundSession(global::Foundation.NSUrlSession session) => _didFinishEventsForBackgroundSession.OnNext(session); + /// + public override void DidReceiveChallenge(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveChallenge.OnNext((session, challenge, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSUrlSessionDownloadDelegateRx : global::Foundation.NSUrlSessionDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location)> _didFinishDownloading = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes)> _didResume = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite)> _didWriteData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location)> DidFinishDownloadingObs => _didFinishDownloading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes)> DidResumeObs => _didResume; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite)> DidWriteDataObs => _didWriteData; + /// + public override void DidFinishDownloading(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location) => _didFinishDownloading.OnNext((session, downloadTask, location)); + /// + public override void DidResume(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes) => _didResume.OnNext((session, downloadTask, resumeFileOffset, expectedTotalBytes)); + /// + public override void DidWriteData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite) => _didWriteData.OnNext((session, downloadTask, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionStreamDelegateRx : global::Foundation.NSUrlSessionStreamDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> _betterRouteDiscovered = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> _completedTaskCaptureStreams = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> _readClosed = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> _writeClosed = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> BetterRouteDiscoveredObs => _betterRouteDiscovered; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> CompletedTaskCaptureStreamsObs => _completedTaskCaptureStreams; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> ReadClosedObs => _readClosed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> WriteClosedObs => _writeClosed; + /// + public override void BetterRouteDiscovered(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask) => _betterRouteDiscovered.OnNext((session, streamTask)); + /// + public override void CompletedTaskCaptureStreams(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream) => _completedTaskCaptureStreams.OnNext((session, streamTask, inputStream, outputStream)); + /// + public override void ReadClosed(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask) => _readClosed.OnNext((session, streamTask)); + /// + public override void WriteClosed(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask) => _writeClosed.OnNext((session, streamTask)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionTaskDelegateRx : global::Foundation.NSUrlSessionTaskDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> _didCompleteWithError = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> _didFinishCollectingMetrics = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> _didSendBodyData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> _needNewBodyStream = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)> _taskIsWaitingForConnectivity = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)> _willBeginDelayedRequest = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> _willPerformHttpRedirection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> DidCompleteWithErrorObs => _didCompleteWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> DidFinishCollectingMetricsObs => _didFinishCollectingMetrics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveChallengeObs => _didReceiveChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> DidSendBodyDataObs => _didSendBodyData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> NeedNewBodyStreamObs => _needNewBodyStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)> TaskIsWaitingForConnectivityObs => _taskIsWaitingForConnectivity; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)> WillBeginDelayedRequestObs => _willBeginDelayedRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> WillPerformHttpRedirectionObs => _willPerformHttpRedirection; + /// + public override void DidCompleteWithError(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error) => _didCompleteWithError.OnNext((session, task, error)); + /// + public override void DidFinishCollectingMetrics(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics) => _didFinishCollectingMetrics.OnNext((session, task, metrics)); + /// + public override void DidReceiveChallenge(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveChallenge.OnNext((session, task, challenge, completionHandler)); + /// + public override void DidSendBodyData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend) => _didSendBodyData.OnNext((session, task, bytesSent, totalBytesSent, totalBytesExpectedToSend)); + /// + public override void NeedNewBodyStream(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler) => _needNewBodyStream.OnNext((session, task, completionHandler)); + /// + public override void TaskIsWaitingForConnectivity(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task) => _taskIsWaitingForConnectivity.OnNext((session, task)); + /// + public override void WillBeginDelayedRequest(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler) => _willBeginDelayedRequest.OnNext((session, task, request, completionHandler)); + /// + public override void WillPerformHttpRedirection(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler) => _willPerformHttpRedirection.OnNext((session, task, response, newRequest, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUserActivityDelegateRx : global::Foundation.NSUserActivityDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> _userActivityReceivedData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _userActivityWasContinued = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _userActivityWillSave = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> UserActivityReceivedDataObs => _userActivityReceivedData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UserActivityWasContinuedObs => _userActivityWasContinued; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UserActivityWillSaveObs => _userActivityWillSave; + /// + public override void UserActivityReceivedData(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream) => _userActivityReceivedData.OnNext((userActivity, inputStream, outputStream)); + /// + public override void UserActivityWasContinued(global::Foundation.NSUserActivity userActivity) => _userActivityWasContinued.OnNext(userActivity); + /// + public override void UserActivityWillSave(global::Foundation.NSUserActivity userActivity) => _userActivityWillSave.OnNext(userActivity); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUserNotificationCenterDelegateRx : global::Foundation.NSUserNotificationCenterDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserNotificationCenter center, global::Foundation.NSUserNotification notification)> _didActivateNotification = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserNotificationCenter center, global::Foundation.NSUserNotification notification)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserNotificationCenter center, global::Foundation.NSUserNotification notification)> _didDeliverNotification = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserNotificationCenter center, global::Foundation.NSUserNotification notification)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUserNotificationCenter center, global::Foundation.NSUserNotification notification)> DidActivateNotificationObs => _didActivateNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUserNotificationCenter center, global::Foundation.NSUserNotification notification)> DidDeliverNotificationObs => _didDeliverNotification; + /// + public override void DidActivateNotification(global::Foundation.NSUserNotificationCenter center, global::Foundation.NSUserNotification notification) => _didActivateNotification.OnNext((center, notification)); + /// + public override void DidDeliverNotification(global::Foundation.NSUserNotificationCenter center, global::Foundation.NSUserNotification notification) => _didDeliverNotification.OnNext((center, notification)); + } +} + +namespace GameKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKAchievementViewControllerDelegateRx : global::GameKit.GKAchievementViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + public override void DidFinish(global::GameKit.GKAchievementViewController viewController) => _didFinish.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKChallengeEventHandlerDelegateRx : global::GameKit.GKChallengeEventHandlerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _localPlayerCompletedChallenge = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _localPlayerReceivedChallenge = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _localPlayerSelectedChallenge = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _remotePlayerCompletedChallenge = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocalPlayerCompletedChallengeObs => _localPlayerCompletedChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocalPlayerReceivedChallengeObs => _localPlayerReceivedChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocalPlayerSelectedChallengeObs => _localPlayerSelectedChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable RemotePlayerCompletedChallengeObs => _remotePlayerCompletedChallenge; + /// + public override void LocalPlayerCompletedChallenge(global::GameKit.GKChallenge challenge) => _localPlayerCompletedChallenge.OnNext(challenge); + /// + public override void LocalPlayerReceivedChallenge(global::GameKit.GKChallenge challenge) => _localPlayerReceivedChallenge.OnNext(challenge); + /// + public override void LocalPlayerSelectedChallenge(global::GameKit.GKChallenge challenge) => _localPlayerSelectedChallenge.OnNext(challenge); + /// + public override void RemotePlayerCompletedChallenge(global::GameKit.GKChallenge challenge) => _remotePlayerCompletedChallenge.OnNext(challenge); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKChallengesViewControllerDelegateRx : global::GameKit.GKChallengesViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + public override void DidFinish(global::GameKit.GKChallengesViewController viewController) => _didFinish.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKFriendRequestComposeViewControllerDelegateRx : global::GameKit.GKFriendRequestComposeViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + public override void DidFinish(global::GameKit.GKFriendRequestComposeViewController viewController) => _didFinish.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKGameCenterControllerDelegateRx : global::GameKit.GKGameCenterControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + public override void Finished(global::GameKit.GKGameCenterViewController controller) => _finished.OnNext(controller); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKLeaderboardViewControllerDelegateRx : global::GameKit.GKLeaderboardViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + public override void DidFinish(global::GameKit.GKLeaderboardViewController viewController) => _didFinish.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKMatchDelegateRx : global::GameKit.GKMatchDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, string playerId, global::Foundation.NSError error)> _connectionFailed = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, string playerId, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, string playerId)> _dataReceived = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, string playerId)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player)> _dataReceivedForRecipient = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player)> _dataReceivedFromPlayer = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSError error)> _failed = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, string playerId, global::GameKit.GKPlayerConnectionState state)> _stateChanged = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, string playerId, global::GameKit.GKPlayerConnectionState state)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state)> _stateChangedForPlayer = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + [global::System.ObsoleteAttribute("It will never be called.", false)] + public global::System.IObservable<(global::GameKit.GKMatch match, string playerId, global::Foundation.NSError error)> ConnectionFailedObs => _connectionFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSData data, string playerId)> DataReceivedObs => _dataReceived; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player)> DataReceivedForRecipientObs => _dataReceivedForRecipient; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player)> DataReceivedFromPlayerObs => _dataReceivedFromPlayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSError error)> FailedObs => _failed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, string playerId, global::GameKit.GKPlayerConnectionState state)> StateChangedObs => _stateChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state)> StateChangedForPlayerObs => _stateChangedForPlayer; + /// + [global::System.ObsoleteAttribute("It will never be called.", false)] + public override void ConnectionFailed(global::GameKit.GKMatch match, string playerId, global::Foundation.NSError error) => _connectionFailed.OnNext((match, playerId, error)); + /// + public override void DataReceived(global::GameKit.GKMatch match, global::Foundation.NSData data, string playerId) => _dataReceived.OnNext((match, data, playerId)); + /// + public override void DataReceivedForRecipient(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player) => _dataReceivedForRecipient.OnNext((match, data, recipient, player)); + /// + public override void DataReceivedFromPlayer(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player) => _dataReceivedFromPlayer.OnNext((match, data, player)); + /// + public override void Failed(global::GameKit.GKMatch match, global::Foundation.NSError error) => _failed.OnNext((match, error)); + /// + public override void StateChanged(global::GameKit.GKMatch match, string playerId, global::GameKit.GKPlayerConnectionState state) => _stateChanged.OnNext((match, playerId, state)); + /// + public override void StateChangedForPlayer(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state) => _stateChangedForPlayer.OnNext((match, player, state)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKMatchmakerViewControllerDelegateRx : global::GameKit.GKMatchmakerViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error)> _didFailWithError = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs)> _didFindHostedPlayers = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match)> _didFindMatch = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::System.String[] playerIDs)> _didFindPlayers = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::System.String[] playerIDs)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID)> _hostedPlayerDidAccept = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, string playerID)> _receivedAcceptFromHostedPlayer = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, string playerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error)> DidFailWithErrorObs => _didFailWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs)> DidFindHostedPlayersObs => _didFindHostedPlayers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match)> DidFindMatchObs => _didFindMatch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::System.String[] playerIDs)> DidFindPlayersObs => _didFindPlayers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID)> HostedPlayerDidAcceptObs => _hostedPlayerDidAccept; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, string playerID)> ReceivedAcceptFromHostedPlayerObs => _receivedAcceptFromHostedPlayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void DidFailWithError(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error) => _didFailWithError.OnNext((viewController, error)); + /// + public override void DidFindHostedPlayers(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs) => _didFindHostedPlayers.OnNext((viewController, playerIDs)); + /// + public override void DidFindMatch(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match) => _didFindMatch.OnNext((viewController, match)); + /// + public override void DidFindPlayers(global::GameKit.GKMatchmakerViewController viewController, global::System.String[] playerIDs) => _didFindPlayers.OnNext((viewController, playerIDs)); + /// + public override void HostedPlayerDidAccept(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID) => _hostedPlayerDidAccept.OnNext((viewController, playerID)); + /// + public override void ReceivedAcceptFromHostedPlayer(global::GameKit.GKMatchmakerViewController viewController, string playerID) => _receivedAcceptFromHostedPlayer.OnNext((viewController, playerID)); + /// + public override void WasCancelled(global::GameKit.GKMatchmakerViewController viewController) => _wasCancelled.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKSessionDelegateRx : global::GameKit.GKSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID, global::GameKit.GKPeerConnectionState state)> _peerChangedState = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID, global::GameKit.GKPeerConnectionState state)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID, global::Foundation.NSError error)> _peerConnectionFailed = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID)> _peerConnectionRequest = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKSession session, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKSession session, string peerID, global::GameKit.GKPeerConnectionState state)> PeerChangedStateObs => _peerChangedState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKSession session, string peerID, global::Foundation.NSError error)> PeerConnectionFailedObs => _peerConnectionFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKSession session, string peerID)> PeerConnectionRequestObs => _peerConnectionRequest; + /// + public override void FailedWithError(global::GameKit.GKSession session, global::Foundation.NSError error) => _failedWithError.OnNext((session, error)); + /// + public override void PeerChangedState(global::GameKit.GKSession session, string peerID, global::GameKit.GKPeerConnectionState state) => _peerChangedState.OnNext((session, peerID, state)); + /// + public override void PeerConnectionFailed(global::GameKit.GKSession session, string peerID, global::Foundation.NSError error) => _peerConnectionFailed.OnNext((session, peerID, error)); + /// + public override void PeerConnectionRequest(global::GameKit.GKSession session, string peerID) => _peerConnectionRequest.OnNext((session, peerID)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKTurnBasedEventHandlerDelegateRx : global::GameKit.GKTurnBasedEventHandlerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _handleInviteFromGameCenter = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _handleMatchEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatch match, bool activated)> _handleTurnEvent = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatch match, bool activated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _handleTurnEventForMatch = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable HandleInviteFromGameCenterObs => _handleInviteFromGameCenter; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable HandleMatchEndedObs => _handleMatchEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKTurnBasedMatch match, bool activated)> HandleTurnEventObs => _handleTurnEvent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable HandleTurnEventForMatchObs => _handleTurnEventForMatch; + /// + public override void HandleInviteFromGameCenter(global::Foundation.NSString[] playersToInvite) => _handleInviteFromGameCenter.OnNext(playersToInvite); + /// + public override void HandleMatchEnded(global::GameKit.GKTurnBasedMatch match) => _handleMatchEnded.OnNext(match); + /// + public override void HandleTurnEvent(global::GameKit.GKTurnBasedMatch match, bool activated) => _handleTurnEvent.OnNext((match, activated)); + /// + public override void HandleTurnEventForMatch(global::GameKit.GKTurnBasedMatch match) => _handleTurnEventForMatch.OnNext(match); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKTurnBasedMatchmakerViewControllerDelegateRx : global::GameKit.GKTurnBasedMatchmakerViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)> _foundMatch = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)> _playerQuitForMatch = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)> FoundMatchObs => _foundMatch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)> PlayerQuitForMatchObs => _playerQuitForMatch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void FailedWithError(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error) => _failedWithError.OnNext((viewController, error)); + /// + public override void FoundMatch(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match) => _foundMatch.OnNext((viewController, match)); + /// + public override void PlayerQuitForMatch(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match) => _playerQuitForMatch.OnNext((viewController, match)); + /// + public override void WasCancelled(global::GameKit.GKTurnBasedMatchmakerViewController viewController) => _wasCancelled.OnNext(viewController); + } +} + +namespace GameplayKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKAgentDelegateRx : global::GameplayKit.GKAgentDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _agentDidUpdate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _agentWillUpdate = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AgentDidUpdateObs => _agentDidUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AgentWillUpdateObs => _agentWillUpdate; + /// + public override void AgentDidUpdate(global::GameplayKit.GKAgent agent) => _agentDidUpdate.OnNext(agent); + /// + public override void AgentWillUpdate(global::GameplayKit.GKAgent agent) => _agentWillUpdate.OnNext(agent); + } +} + +namespace ImageCaptureCore +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class ICCameraDeviceDelegateRx : global::ImageCaptureCore.ICCameraDeviceDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem item)> _didAddItem = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem item)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items)> _didAddItems = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeReady = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeReadyWithCompleteContentCatalog = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeCapability = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeName = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeSharingState = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> _didCloseSession = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice scanner, global::Foundation.NSError error)> _didCompleteDeleteFiles = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice scanner, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> _didEncounterError = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> _didOpenSession = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType)> _didReceiveButtonPress = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data)> _didReceiveCustomNotification = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem forItem)> _didReceiveMetadata = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem forItem)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::Foundation.NSData eventData)> _didReceivePtpEvent = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::Foundation.NSData eventData)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status)> _didReceiveStatusInformation = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem forItem)> _didReceiveThumbnail = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem forItem)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didRemoveDevice = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem item)> _didRemoveItem = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem item)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items)> _didRemoveItems = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items)> _didRenameItems = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem item)> DidAddItemObs => _didAddItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items)> DidAddItemsObs => _didAddItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeReadyObs => _didBecomeReady; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeReadyWithCompleteContentCatalogObs => _didBecomeReadyWithCompleteContentCatalog; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeCapabilityObs => _didChangeCapability; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeNameObs => _didChangeName; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeSharingStateObs => _didChangeSharingState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> DidCloseSessionObs => _didCloseSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraDevice scanner, global::Foundation.NSError error)> DidCompleteDeleteFilesObs => _didCompleteDeleteFiles; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> DidEncounterErrorObs => _didEncounterError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> DidOpenSessionObs => _didOpenSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType)> DidReceiveButtonPressObs => _didReceiveButtonPress; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data)> DidReceiveCustomNotificationObs => _didReceiveCustomNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem forItem)> DidReceiveMetadataObs => _didReceiveMetadata; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraDevice camera, global::Foundation.NSData eventData)> DidReceivePtpEventObs => _didReceivePtpEvent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status)> DidReceiveStatusInformationObs => _didReceiveStatusInformation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem forItem)> DidReceiveThumbnailObs => _didReceiveThumbnail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidRemoveDeviceObs => _didRemoveDevice; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem item)> DidRemoveItemObs => _didRemoveItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items)> DidRemoveItemsObs => _didRemoveItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items)> DidRenameItemsObs => _didRenameItems; + /// + public override void DidAddItem(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem item) => _didAddItem.OnNext((camera, item)); + /// + public override void DidAddItems(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items) => _didAddItems.OnNext((camera, items)); + /// + public override void DidBecomeReady(global::ImageCaptureCore.ICDevice device) => _didBecomeReady.OnNext(device); + /// + public override void DidBecomeReadyWithCompleteContentCatalog(global::ImageCaptureCore.ICDevice device) => _didBecomeReadyWithCompleteContentCatalog.OnNext(device); + /// + public override void DidChangeCapability(global::ImageCaptureCore.ICCameraDevice camera) => _didChangeCapability.OnNext(camera); + /// + public override void DidChangeName(global::ImageCaptureCore.ICDevice device) => _didChangeName.OnNext(device); + /// + public override void DidChangeSharingState(global::ImageCaptureCore.ICDevice device) => _didChangeSharingState.OnNext(device); + /// + public override void DidCloseSession(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error) => _didCloseSession.OnNext((device, error)); + /// + public override void DidCompleteDeleteFiles(global::ImageCaptureCore.ICCameraDevice scanner, global::Foundation.NSError error) => _didCompleteDeleteFiles.OnNext((scanner, error)); + /// + public override void DidEncounterError(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error) => _didEncounterError.OnNext((device, error)); + /// + public override void DidOpenSession(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error) => _didOpenSession.OnNext((device, error)); + /// + public override void DidReceiveButtonPress(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType) => _didReceiveButtonPress.OnNext((device, buttonType)); + /// + public override void DidReceiveCustomNotification(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data) => _didReceiveCustomNotification.OnNext((device, notification, data)); + /// + public override void DidReceiveMetadata(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem forItem) => _didReceiveMetadata.OnNext((camera, forItem)); + /// + public override void DidReceivePtpEvent(global::ImageCaptureCore.ICCameraDevice camera, global::Foundation.NSData eventData) => _didReceivePtpEvent.OnNext((camera, eventData)); + /// + public override void DidReceiveStatusInformation(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status) => _didReceiveStatusInformation.OnNext((device, status)); + /// + public override void DidReceiveThumbnail(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem forItem) => _didReceiveThumbnail.OnNext((camera, forItem)); + /// + public override void DidRemoveDevice(global::ImageCaptureCore.ICDevice device) => _didRemoveDevice.OnNext(device); + /// + public override void DidRemoveItem(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem item) => _didRemoveItem.OnNext((camera, item)); + /// + public override void DidRemoveItems(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items) => _didRemoveItems.OnNext((camera, items)); + /// + public override void DidRenameItems(global::ImageCaptureCore.ICCameraDevice camera, global::ImageCaptureCore.ICCameraItem[] items) => _didRenameItems.OnNext((camera, items)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class ICCameraDeviceDownloadDelegateRx : global::ImageCaptureCore.ICCameraDeviceDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraFile file, global::Foundation.NSError error, global::Foundation.NSDictionary options, global::System.IntPtr contextInfo)> _didDownloadFile = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraFile file, global::Foundation.NSError error, global::Foundation.NSDictionary options, global::System.IntPtr contextInfo)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraFile file, long downloadedBytes, long maxBytes)> _didReceiveDownloadProgress = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICCameraFile file, long downloadedBytes, long maxBytes)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraFile file, global::Foundation.NSError error, global::Foundation.NSDictionary options, global::System.IntPtr contextInfo)> DidDownloadFileObs => _didDownloadFile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICCameraFile file, long downloadedBytes, long maxBytes)> DidReceiveDownloadProgressObs => _didReceiveDownloadProgress; + /// + public override void DidDownloadFile(global::ImageCaptureCore.ICCameraFile file, global::Foundation.NSError error, global::Foundation.NSDictionary options, global::System.IntPtr contextInfo) => _didDownloadFile.OnNext((file, error, options, contextInfo)); + /// + public override void DidReceiveDownloadProgress(global::ImageCaptureCore.ICCameraFile file, long downloadedBytes, long maxBytes) => _didReceiveDownloadProgress.OnNext((file, downloadedBytes, maxBytes)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class ICDeviceBrowserDelegateRx : global::ImageCaptureCore.ICDeviceBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device)> _deviceDidChangeName = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device)> _deviceDidChangeSharingState = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device, bool moreComing)> _didAddDevice = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEnumerateLocalDevices = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device, bool moreGoing)> _didRemoveDevice = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device, bool moreGoing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device)> _requestsSelectDevice = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device)> DeviceDidChangeNameObs => _deviceDidChangeName; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device)> DeviceDidChangeSharingStateObs => _deviceDidChangeSharingState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device, bool moreComing)> DidAddDeviceObs => _didAddDevice; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEnumerateLocalDevicesObs => _didEnumerateLocalDevices; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device, bool moreGoing)> DidRemoveDeviceObs => _didRemoveDevice; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device)> RequestsSelectDeviceObs => _requestsSelectDevice; + /// + public override void DeviceDidChangeName(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device) => _deviceDidChangeName.OnNext((browser, device)); + /// + public override void DeviceDidChangeSharingState(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device) => _deviceDidChangeSharingState.OnNext((browser, device)); + /// + public override void DidAddDevice(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device, bool moreComing) => _didAddDevice.OnNext((browser, device, moreComing)); + /// + public override void DidEnumerateLocalDevices(global::ImageCaptureCore.ICDeviceBrowser browser) => _didEnumerateLocalDevices.OnNext(browser); + /// + public override void DidRemoveDevice(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device, bool moreGoing) => _didRemoveDevice.OnNext((browser, device, moreGoing)); + /// + public override void RequestsSelectDevice(global::ImageCaptureCore.ICDeviceBrowser browser, global::ImageCaptureCore.ICDevice device) => _requestsSelectDevice.OnNext((browser, device)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class ICDeviceDelegateRx : global::ImageCaptureCore.ICDeviceDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeReady = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeName = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeSharingState = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> _didCloseSession = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> _didEncounterError = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> _didOpenSession = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType)> _didReceiveButtonPress = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data)> _didReceiveCustomNotification = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status)> _didReceiveStatusInformation = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didRemoveDevice = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeReadyObs => _didBecomeReady; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeNameObs => _didChangeName; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeSharingStateObs => _didChangeSharingState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> DidCloseSessionObs => _didCloseSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> DidEncounterErrorObs => _didEncounterError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> DidOpenSessionObs => _didOpenSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType)> DidReceiveButtonPressObs => _didReceiveButtonPress; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data)> DidReceiveCustomNotificationObs => _didReceiveCustomNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status)> DidReceiveStatusInformationObs => _didReceiveStatusInformation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidRemoveDeviceObs => _didRemoveDevice; + /// + public override void DidBecomeReady(global::ImageCaptureCore.ICDevice device) => _didBecomeReady.OnNext(device); + /// + public override void DidChangeName(global::ImageCaptureCore.ICDevice device) => _didChangeName.OnNext(device); + /// + public override void DidChangeSharingState(global::ImageCaptureCore.ICDevice device) => _didChangeSharingState.OnNext(device); + /// + public override void DidCloseSession(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error) => _didCloseSession.OnNext((device, error)); + /// + public override void DidEncounterError(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error) => _didEncounterError.OnNext((device, error)); + /// + public override void DidOpenSession(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error) => _didOpenSession.OnNext((device, error)); + /// + public override void DidReceiveButtonPress(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType) => _didReceiveButtonPress.OnNext((device, buttonType)); + /// + public override void DidReceiveCustomNotification(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data) => _didReceiveCustomNotification.OnNext((device, notification, data)); + /// + public override void DidReceiveStatusInformation(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status) => _didReceiveStatusInformation.OnNext((device, status)); + /// + public override void DidRemoveDevice(global::ImageCaptureCore.ICDevice device) => _didRemoveDevice.OnNext(device); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class ICScannerDeviceDelegateRx : global::ImageCaptureCore.ICScannerDeviceDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeAvailable = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeReady = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeName = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeSharingState = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> _didCloseSession = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSError error)> _didCompleteOverviewScan = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSError error)> _didCompleteScan = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> _didEncounterError = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> _didOpenSession = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType)> _didReceiveButtonPress = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data)> _didReceiveCustomNotification = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status)> _didReceiveStatusInformation = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didRemoveDevice = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::ImageCaptureCore.ICScannerBandData data)> _didScanToBandData = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::ImageCaptureCore.ICScannerBandData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSUrl url, global::Foundation.NSData data)> _didScanToUrl = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSUrl url, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::ImageCaptureCore.ICScannerFunctionalUnit functionalUnit, global::Foundation.NSError error)> _didSelectFunctionalUnit = new Pharmacist.Common.SingleAwaitSubject<(global::ImageCaptureCore.ICScannerDevice scanner, global::ImageCaptureCore.ICScannerFunctionalUnit functionalUnit, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeAvailableObs => _didBecomeAvailable; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeReadyObs => _didBecomeReady; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeNameObs => _didChangeName; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeSharingStateObs => _didChangeSharingState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> DidCloseSessionObs => _didCloseSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSError error)> DidCompleteOverviewScanObs => _didCompleteOverviewScan; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSError error)> DidCompleteScanObs => _didCompleteScan; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> DidEncounterErrorObs => _didEncounterError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error)> DidOpenSessionObs => _didOpenSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType)> DidReceiveButtonPressObs => _didReceiveButtonPress; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data)> DidReceiveCustomNotificationObs => _didReceiveCustomNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status)> DidReceiveStatusInformationObs => _didReceiveStatusInformation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidRemoveDeviceObs => _didRemoveDevice; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICScannerDevice scanner, global::ImageCaptureCore.ICScannerBandData data)> DidScanToBandDataObs => _didScanToBandData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSUrl url, global::Foundation.NSData data)> DidScanToUrlObs => _didScanToUrl; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageCaptureCore.ICScannerDevice scanner, global::ImageCaptureCore.ICScannerFunctionalUnit functionalUnit, global::Foundation.NSError error)> DidSelectFunctionalUnitObs => _didSelectFunctionalUnit; + /// + public override void DidBecomeAvailable(global::ImageCaptureCore.ICScannerDevice scanner) => _didBecomeAvailable.OnNext(scanner); + /// + public override void DidBecomeReady(global::ImageCaptureCore.ICDevice device) => _didBecomeReady.OnNext(device); + /// + public override void DidChangeName(global::ImageCaptureCore.ICDevice device) => _didChangeName.OnNext(device); + /// + public override void DidChangeSharingState(global::ImageCaptureCore.ICDevice device) => _didChangeSharingState.OnNext(device); + /// + public override void DidCloseSession(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error) => _didCloseSession.OnNext((device, error)); + /// + public override void DidCompleteOverviewScan(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSError error) => _didCompleteOverviewScan.OnNext((scanner, error)); + /// + public override void DidCompleteScan(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSError error) => _didCompleteScan.OnNext((scanner, error)); + /// + public override void DidEncounterError(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error) => _didEncounterError.OnNext((device, error)); + /// + public override void DidOpenSession(global::ImageCaptureCore.ICDevice device, global::Foundation.NSError error) => _didOpenSession.OnNext((device, error)); + /// + public override void DidReceiveButtonPress(global::ImageCaptureCore.ICDevice device, global::Foundation.NSString buttonType) => _didReceiveButtonPress.OnNext((device, buttonType)); + /// + public override void DidReceiveCustomNotification(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary notification, global::Foundation.NSData data) => _didReceiveCustomNotification.OnNext((device, notification, data)); + /// + public override void DidReceiveStatusInformation(global::ImageCaptureCore.ICDevice device, global::Foundation.NSDictionary status) => _didReceiveStatusInformation.OnNext((device, status)); + /// + public override void DidRemoveDevice(global::ImageCaptureCore.ICDevice device) => _didRemoveDevice.OnNext(device); + /// + public override void DidScanToBandData(global::ImageCaptureCore.ICScannerDevice scanner, global::ImageCaptureCore.ICScannerBandData data) => _didScanToBandData.OnNext((scanner, data)); + /// + public override void DidScanToUrl(global::ImageCaptureCore.ICScannerDevice scanner, global::Foundation.NSUrl url, global::Foundation.NSData data) => _didScanToUrl.OnNext((scanner, url, data)); + /// + public override void DidSelectFunctionalUnit(global::ImageCaptureCore.ICScannerDevice scanner, global::ImageCaptureCore.ICScannerFunctionalUnit functionalUnit, global::Foundation.NSError error) => _didSelectFunctionalUnit.OnNext((scanner, functionalUnit, error)); + } +} + +namespace ImageKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class IKCameraDeviceViewDelegateRx : global::ImageKit.IKCameraDeviceViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKCameraDeviceView cameraDeviceView, global::ImageCaptureCore.ICCameraFile file, global::Foundation.NSUrl url, global::Foundation.NSData data, global::Foundation.NSError error)> _didDownloadFile = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKCameraDeviceView cameraDeviceView, global::ImageCaptureCore.ICCameraFile file, global::Foundation.NSUrl url, global::Foundation.NSData data, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKCameraDeviceView cameraDeviceView, global::Foundation.NSError error)> _didEncounterError = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKCameraDeviceView cameraDeviceView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionDidChange = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKCameraDeviceView cameraDeviceView, global::ImageCaptureCore.ICCameraFile file, global::Foundation.NSUrl url, global::Foundation.NSData data, global::Foundation.NSError error)> DidDownloadFileObs => _didDownloadFile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKCameraDeviceView cameraDeviceView, global::Foundation.NSError error)> DidEncounterErrorObs => _didEncounterError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionDidChangeObs => _selectionDidChange; + /// + public override void DidDownloadFile(global::ImageKit.IKCameraDeviceView cameraDeviceView, global::ImageCaptureCore.ICCameraFile file, global::Foundation.NSUrl url, global::Foundation.NSData data, global::Foundation.NSError error) => _didDownloadFile.OnNext((cameraDeviceView, file, url, data, error)); + /// + public override void DidEncounterError(global::ImageKit.IKCameraDeviceView cameraDeviceView, global::Foundation.NSError error) => _didEncounterError.OnNext((cameraDeviceView, error)); + /// + public override void SelectionDidChange(global::ImageKit.IKCameraDeviceView cameraDeviceView) => _selectionDidChange.OnNext(cameraDeviceView); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class IKDeviceBrowserViewDelegateRx : global::ImageKit.IKDeviceBrowserViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKDeviceBrowserView deviceBrowserView, global::Foundation.NSError error)> _didEncounterError = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKDeviceBrowserView deviceBrowserView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKDeviceBrowserView deviceBrowserView, global::ImageCaptureCore.ICDevice device)> _selectionDidChange = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKDeviceBrowserView deviceBrowserView, global::ImageCaptureCore.ICDevice device)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKDeviceBrowserView deviceBrowserView, global::Foundation.NSError error)> DidEncounterErrorObs => _didEncounterError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKDeviceBrowserView deviceBrowserView, global::ImageCaptureCore.ICDevice device)> SelectionDidChangeObs => _selectionDidChange; + /// + public override void DidEncounterError(global::ImageKit.IKDeviceBrowserView deviceBrowserView, global::Foundation.NSError error) => _didEncounterError.OnNext((deviceBrowserView, error)); + /// + public override void SelectionDidChange(global::ImageKit.IKDeviceBrowserView deviceBrowserView, global::ImageCaptureCore.ICDevice device) => _selectionDidChange.OnNext((deviceBrowserView, device)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class IKImageBrowserDelegateRx : global::ImageKit.IKImageBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKImageBrowserView browser, global::AppKit.NSEvent nsevent)> _backgroundWasRightClicked = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKImageBrowserView browser, global::AppKit.NSEvent nsevent)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKImageBrowserView browser, global::System.nint index)> _cellWasDoubleClicked = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKImageBrowserView browser, global::System.nint index)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKImageBrowserView browser, global::System.nint index, global::AppKit.NSEvent nsevent)> _cellWasRightClicked = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKImageBrowserView browser, global::System.nint index, global::AppKit.NSEvent nsevent)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionDidChange = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKImageBrowserView browser, global::AppKit.NSEvent nsevent)> BackgroundWasRightClickedObs => _backgroundWasRightClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKImageBrowserView browser, global::System.nint index)> CellWasDoubleClickedObs => _cellWasDoubleClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKImageBrowserView browser, global::System.nint index, global::AppKit.NSEvent nsevent)> CellWasRightClickedObs => _cellWasRightClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionDidChangeObs => _selectionDidChange; + /// + public override void BackgroundWasRightClicked(global::ImageKit.IKImageBrowserView browser, global::AppKit.NSEvent nsevent) => _backgroundWasRightClicked.OnNext((browser, nsevent)); + /// + public override void CellWasDoubleClicked(global::ImageKit.IKImageBrowserView browser, global::System.nint index) => _cellWasDoubleClicked.OnNext((browser, index)); + /// + public override void CellWasRightClicked(global::ImageKit.IKImageBrowserView browser, global::System.nint index, global::AppKit.NSEvent nsevent) => _cellWasRightClicked.OnNext((browser, index, nsevent)); + /// + public override void SelectionDidChange(global::ImageKit.IKImageBrowserView browser) => _selectionDidChange.OnNext(browser); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class IKScannerDeviceViewDelegateRx : global::ImageKit.IKScannerDeviceViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSError error)> _didEncounterError = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSUrl url, global::Foundation.NSData data, global::Foundation.NSError error)> _didScan = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSUrl url, global::Foundation.NSData data, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::ImageCaptureCore.ICScannerBandData data, global::Foundation.NSDictionary scanInfo, global::Foundation.NSError error)> _didScanToBandData = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::ImageCaptureCore.ICScannerBandData data, global::Foundation.NSDictionary scanInfo, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSUrl url, global::Foundation.NSError error)> _didScanToUrl = new Pharmacist.Common.SingleAwaitSubject<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSUrl url, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSError error)> DidEncounterErrorObs => _didEncounterError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSUrl url, global::Foundation.NSData data, global::Foundation.NSError error)> DidScanObs => _didScan; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::ImageCaptureCore.ICScannerBandData data, global::Foundation.NSDictionary scanInfo, global::Foundation.NSError error)> DidScanToBandDataObs => _didScanToBandData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSUrl url, global::Foundation.NSError error)> DidScanToUrlObs => _didScanToUrl; + /// + public override void DidEncounterError(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSError error) => _didEncounterError.OnNext((scannerDeviceView, error)); + /// + public override void DidScan(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSUrl url, global::Foundation.NSData data, global::Foundation.NSError error) => _didScan.OnNext((scannerDeviceView, url, data, error)); + /// + public override void DidScanToBandData(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::ImageCaptureCore.ICScannerBandData data, global::Foundation.NSDictionary scanInfo, global::Foundation.NSError error) => _didScanToBandData.OnNext((scannerDeviceView, data, scanInfo, error)); + /// + public override void DidScanToUrl(global::ImageKit.IKScannerDeviceView scannerDeviceView, global::Foundation.NSUrl url, global::Foundation.NSError error) => _didScanToUrl.OnNext((scannerDeviceView, url, error)); + } +} + +namespace MapKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class MKLocalSearchCompleterDelegateRx : global::MapKit.MKLocalSearchCompleterDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateResults = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateResultsObs => _didUpdateResults; + /// + public override void DidFail(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error) => _didFail.OnNext((completer, error)); + /// + public override void DidUpdateResults(global::MapKit.MKLocalSearchCompleter completer) => _didUpdateResults.OnNext(completer); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class MKMapViewDelegateRx : global::MapKit.MKMapViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView annotationView, global::MapKit.MKAnnotationViewDragState newState, global::MapKit.MKAnnotationViewDragState oldState)> _changedDragState = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView annotationView, global::MapKit.MKAnnotationViewDragState newState, global::MapKit.MKAnnotationViewDragState oldState)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views)> _didAddAnnotationViews = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers)> _didAddOverlayRenderers = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeVisibleRegion = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> _didDeselectAnnotationView = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> _didFailToLocateUser = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool fullyRendered)> _didFinishRenderingMap = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool fullyRendered)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> _didSelectAnnotationView = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didStopLocatingUser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation)> _didUpdateUserLocation = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> _loadingMapFailed = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _mapLoaded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)> _regionChanged = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)> _regionWillChange = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartLoadingMap = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartLocatingUser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartRenderingMap = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView annotationView, global::MapKit.MKAnnotationViewDragState newState, global::MapKit.MKAnnotationViewDragState oldState)> ChangedDragStateObs => _changedDragState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views)> DidAddAnnotationViewsObs => _didAddAnnotationViews; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers)> DidAddOverlayRenderersObs => _didAddOverlayRenderers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeVisibleRegionObs => _didChangeVisibleRegion; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> DidDeselectAnnotationViewObs => _didDeselectAnnotationView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> DidFailToLocateUserObs => _didFailToLocateUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, bool fullyRendered)> DidFinishRenderingMapObs => _didFinishRenderingMap; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> DidSelectAnnotationViewObs => _didSelectAnnotationView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStopLocatingUserObs => _didStopLocatingUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation)> DidUpdateUserLocationObs => _didUpdateUserLocation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> LoadingMapFailedObs => _loadingMapFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MapLoadedObs => _mapLoaded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, bool animated)> RegionChangedObs => _regionChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, bool animated)> RegionWillChangeObs => _regionWillChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartLoadingMapObs => _willStartLoadingMap; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartLocatingUserObs => _willStartLocatingUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartRenderingMapObs => _willStartRenderingMap; + /// + public override void ChangedDragState(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView annotationView, global::MapKit.MKAnnotationViewDragState newState, global::MapKit.MKAnnotationViewDragState oldState) => _changedDragState.OnNext((mapView, annotationView, newState, oldState)); + /// + public override void DidAddAnnotationViews(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views) => _didAddAnnotationViews.OnNext((mapView, views)); + /// + public override void DidAddOverlayRenderers(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers) => _didAddOverlayRenderers.OnNext((mapView, renderers)); + /// + public override void DidChangeVisibleRegion(global::MapKit.MKMapView mapView) => _didChangeVisibleRegion.OnNext(mapView); + /// + public override void DidDeselectAnnotationView(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view) => _didDeselectAnnotationView.OnNext((mapView, view)); + /// + public override void DidFailToLocateUser(global::MapKit.MKMapView mapView, global::Foundation.NSError error) => _didFailToLocateUser.OnNext((mapView, error)); + /// + public override void DidFinishRenderingMap(global::MapKit.MKMapView mapView, bool fullyRendered) => _didFinishRenderingMap.OnNext((mapView, fullyRendered)); + /// + public override void DidSelectAnnotationView(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view) => _didSelectAnnotationView.OnNext((mapView, view)); + /// + public override void DidStopLocatingUser(global::MapKit.MKMapView mapView) => _didStopLocatingUser.OnNext(mapView); + /// + public override void DidUpdateUserLocation(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation) => _didUpdateUserLocation.OnNext((mapView, userLocation)); + /// + public override void LoadingMapFailed(global::MapKit.MKMapView mapView, global::Foundation.NSError error) => _loadingMapFailed.OnNext((mapView, error)); + /// + public override void MapLoaded(global::MapKit.MKMapView mapView) => _mapLoaded.OnNext(mapView); + /// + public override void RegionChanged(global::MapKit.MKMapView mapView, bool animated) => _regionChanged.OnNext((mapView, animated)); + /// + public override void RegionWillChange(global::MapKit.MKMapView mapView, bool animated) => _regionWillChange.OnNext((mapView, animated)); + /// + public override void WillStartLoadingMap(global::MapKit.MKMapView mapView) => _willStartLoadingMap.OnNext(mapView); + /// + public override void WillStartLocatingUser(global::MapKit.MKMapView mapView) => _willStartLocatingUser.OnNext(mapView); + /// + public override void WillStartRenderingMap(global::MapKit.MKMapView mapView) => _willStartRenderingMap.OnNext(mapView); + } +} + +namespace MetalKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MTKViewDelegateRx : global::MetalKit.MTKViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _draw = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size)> _drawableSizeWillChange = new Pharmacist.Common.SingleAwaitSubject<(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DrawObs => _draw; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size)> DrawableSizeWillChangeObs => _drawableSizeWillChange; + /// + public override void Draw(global::MetalKit.MTKView view) => _draw.OnNext(view); + /// + public override void DrawableSizeWillChange(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size) => _drawableSizeWillChange.OnNext((view, size)); + } +} + +namespace MultipeerConnectivity +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class MCAdvertiserAssistantDelegateRx : global::MultipeerConnectivity.MCAdvertiserAssistantDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissInvitation = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresentInvitation = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissInvitationObs => _didDismissInvitation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentInvitationObs => _willPresentInvitation; + /// + public override void DidDismissInvitation(global::MultipeerConnectivity.MCAdvertiserAssistant advertiserAssistant) => _didDismissInvitation.OnNext(advertiserAssistant); + /// + public override void WillPresentInvitation(global::MultipeerConnectivity.MCAdvertiserAssistant advertiserAssistant) => _willPresentInvitation.OnNext(advertiserAssistant); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCBrowserViewControllerDelegateRx : global::MultipeerConnectivity.MCBrowserViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void DidFinish(global::MultipeerConnectivity.MCBrowserViewController browserViewController) => _didFinish.OnNext(browserViewController); + /// + public override void WasCancelled(global::MultipeerConnectivity.MCBrowserViewController browserViewController) => _wasCancelled.OnNext(browserViewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCNearbyServiceAdvertiserDelegateRx : global::MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error)> _didNotStartAdvertisingPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler)> _didReceiveInvitationFromPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error)> DidNotStartAdvertisingPeerObs => _didNotStartAdvertisingPeer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler)> DidReceiveInvitationFromPeerObs => _didReceiveInvitationFromPeer; + /// + public override void DidNotStartAdvertisingPeer(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error) => _didNotStartAdvertisingPeer.OnNext((advertiser, error)); + /// + public override void DidReceiveInvitationFromPeer(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler) => _didReceiveInvitationFromPeer.OnNext((advertiser, peerID, context, invitationHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCNearbyServiceBrowserDelegateRx : global::MultipeerConnectivity.MCNearbyServiceBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error)> _didNotStartBrowsingForPeers = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info)> _foundPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID)> _lostPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error)> DidNotStartBrowsingForPeersObs => _didNotStartBrowsingForPeers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info)> FoundPeerObs => _foundPeer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID)> LostPeerObs => _lostPeer; + /// + public override void DidNotStartBrowsingForPeers(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error) => _didNotStartBrowsingForPeers.OnNext((browser, error)); + /// + public override void FoundPeer(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info) => _foundPeer.OnNext((browser, peerID, info)); + /// + public override void LostPeer(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID) => _lostPeer.OnNext((browser, peerID)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCSessionDelegateRx : global::MultipeerConnectivity.MCSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state)> _didChangeState = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error)> _didFinishReceivingResource = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID)> _didReceiveData = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID)> _didReceiveStream = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress)> _didStartReceivingResource = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state)> DidChangeStateObs => _didChangeState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error)> DidFinishReceivingResourceObs => _didFinishReceivingResource; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID)> DidReceiveDataObs => _didReceiveData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID)> DidReceiveStreamObs => _didReceiveStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress)> DidStartReceivingResourceObs => _didStartReceivingResource; + /// + public override void DidChangeState(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state) => _didChangeState.OnNext((session, peerID, state)); + /// + public override void DidFinishReceivingResource(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error) => _didFinishReceivingResource.OnNext((session, resourceName, fromPeer, localUrl, error)); + /// + public override void DidReceiveData(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID) => _didReceiveData.OnNext((session, data, peerID)); + /// + public override void DidReceiveStream(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID) => _didReceiveStream.OnNext((session, stream, streamName, peerID)); + /// + public override void DidStartReceivingResource(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress) => _didStartReceivingResource.OnNext((session, resourceName, fromPeer, progress)); + } +} + +namespace NetworkExtension +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NWTcpConnectionAuthenticationDelegateRx : global::NetworkExtension.NWTcpConnectionAuthenticationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::NetworkExtension.NWTcpConnection connection, global::Foundation.NSArray peerCertificateChain, global::System.Action completion)> _evaluateTrust = new Pharmacist.Common.SingleAwaitSubject<(global::NetworkExtension.NWTcpConnection connection, global::Foundation.NSArray peerCertificateChain, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::NetworkExtension.NWTcpConnection connection, global::System.Action completion)> _provideIdentity = new Pharmacist.Common.SingleAwaitSubject<(global::NetworkExtension.NWTcpConnection connection, global::System.Action completion)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::NetworkExtension.NWTcpConnection connection, global::Foundation.NSArray peerCertificateChain, global::System.Action completion)> EvaluateTrustObs => _evaluateTrust; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::NetworkExtension.NWTcpConnection connection, global::System.Action completion)> ProvideIdentityObs => _provideIdentity; + /// + public override void EvaluateTrust(global::NetworkExtension.NWTcpConnection connection, global::Foundation.NSArray peerCertificateChain, global::System.Action completion) => _evaluateTrust.OnNext((connection, peerCertificateChain, completion)); + /// + public override void ProvideIdentity(global::NetworkExtension.NWTcpConnection connection, global::System.Action completion) => _provideIdentity.OnNext((connection, completion)); + } +} + +namespace NotificationCenter +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NCWidgetListViewDelegateRx : global::NotificationCenter.NCWidgetListViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::NotificationCenter.NCWidgetListViewController list, global::System.nuint row)> _didRemoveRow = new Pharmacist.Common.SingleAwaitSubject<(global::NotificationCenter.NCWidgetListViewController list, global::System.nuint row)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::NotificationCenter.NCWidgetListViewController list, global::System.nuint row, global::System.nuint newIndex)> _didReorderRow = new Pharmacist.Common.SingleAwaitSubject<(global::NotificationCenter.NCWidgetListViewController list, global::System.nuint row, global::System.nuint newIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _performAddAction = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::NotificationCenter.NCWidgetListViewController list, global::System.nuint row)> DidRemoveRowObs => _didRemoveRow; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::NotificationCenter.NCWidgetListViewController list, global::System.nuint row, global::System.nuint newIndex)> DidReorderRowObs => _didReorderRow; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PerformAddActionObs => _performAddAction; + /// + public override void DidRemoveRow(global::NotificationCenter.NCWidgetListViewController list, global::System.nuint row) => _didRemoveRow.OnNext((list, row)); + /// + public override void DidReorderRow(global::NotificationCenter.NCWidgetListViewController list, global::System.nuint row, global::System.nuint newIndex) => _didReorderRow.OnNext((list, row, newIndex)); + /// + public override void PerformAddAction(global::NotificationCenter.NCWidgetListViewController list) => _performAddAction.OnNext(list); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NCWidgetSearchViewDelegateRx : global::NotificationCenter.NCWidgetSearchViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::NotificationCenter.NCWidgetSearchViewController controller, global::Foundation.NSObject obj)> _resultSelected = new Pharmacist.Common.SingleAwaitSubject<(global::NotificationCenter.NCWidgetSearchViewController controller, global::Foundation.NSObject obj)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::NotificationCenter.NCWidgetSearchViewController controller, string searchTerm, global::System.nuint max)> _searchForTearm = new Pharmacist.Common.SingleAwaitSubject<(global::NotificationCenter.NCWidgetSearchViewController controller, string searchTerm, global::System.nuint max)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _termCleared = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::NotificationCenter.NCWidgetSearchViewController controller, global::Foundation.NSObject obj)> ResultSelectedObs => _resultSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::NotificationCenter.NCWidgetSearchViewController controller, string searchTerm, global::System.nuint max)> SearchForTearmObs => _searchForTearm; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TermClearedObs => _termCleared; + /// + public override void ResultSelected(global::NotificationCenter.NCWidgetSearchViewController controller, global::Foundation.NSObject obj) => _resultSelected.OnNext((controller, obj)); + /// + public override void SearchForTearm(global::NotificationCenter.NCWidgetSearchViewController controller, string searchTerm, global::System.nuint max) => _searchForTearm.OnNext((controller, searchTerm, max)); + /// + public override void TermCleared(global::NotificationCenter.NCWidgetSearchViewController controller) => _termCleared.OnNext(controller); + } +} + +namespace PdfKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class PdfDocumentDelegateRx : global::PdfKit.PdfDocumentDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBeginDocumentFind = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didMatchString = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUnlock = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _findFinished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _matchFound = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _pageFindFinished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _pageFindStarted = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginDocumentFindObs => _didBeginDocumentFind; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidMatchStringObs => _didMatchString; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUnlockObs => _didUnlock; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FindFinishedObs => _findFinished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MatchFoundObs => _matchFound; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PageFindFinishedObs => _pageFindFinished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PageFindStartedObs => _pageFindStarted; + /// + public override void DidBeginDocumentFind(global::Foundation.NSNotification notification) => _didBeginDocumentFind.OnNext(notification); + /// + public override void DidMatchString(global::PdfKit.PdfSelection sender) => _didMatchString.OnNext(sender); + /// + public override void DidUnlock(global::Foundation.NSNotification notification) => _didUnlock.OnNext(notification); + /// + public override void FindFinished(global::Foundation.NSNotification notification) => _findFinished.OnNext(notification); + /// + public override void MatchFound(global::Foundation.NSNotification notification) => _matchFound.OnNext(notification); + /// + public override void PageFindFinished(global::Foundation.NSNotification notification) => _pageFindFinished.OnNext(notification); + /// + public override void PageFindStarted(global::Foundation.NSNotification notification) => _pageFindStarted.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class PdfViewDelegateRx : global::PdfKit.PdfViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PdfKit.PdfView sender, global::PdfKit.PdfActionRemoteGoTo action)> _openPdf = new Pharmacist.Common.SingleAwaitSubject<(global::PdfKit.PdfView sender, global::PdfKit.PdfActionRemoteGoTo action)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _performFind = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _performGoToPage = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _performPrint = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PdfKit.PdfView sender, global::Foundation.NSUrl url)> _willClickOnLink = new Pharmacist.Common.SingleAwaitSubject<(global::PdfKit.PdfView sender, global::Foundation.NSUrl url)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PdfKit.PdfView sender, global::PdfKit.PdfActionRemoteGoTo action)> OpenPdfObs => _openPdf; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PerformFindObs => _performFind; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PerformGoToPageObs => _performGoToPage; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PerformPrintObs => _performPrint; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PdfKit.PdfView sender, global::Foundation.NSUrl url)> WillClickOnLinkObs => _willClickOnLink; + /// + public override void OpenPdf(global::PdfKit.PdfView sender, global::PdfKit.PdfActionRemoteGoTo action) => _openPdf.OnNext((sender, action)); + /// + public override void PerformFind(global::PdfKit.PdfView sender) => _performFind.OnNext(sender); + /// + public override void PerformGoToPage(global::PdfKit.PdfView sender) => _performGoToPage.OnNext(sender); + /// + public override void PerformPrint(global::PdfKit.PdfView sender) => _performPrint.OnNext(sender); + /// + public override void WillClickOnLink(global::PdfKit.PdfView sender, global::Foundation.NSUrl url) => _willClickOnLink.OnNext((sender, url)); + } +} + +namespace PhotosUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class PHLivePhotoViewDelegateRx : global::PhotosUI.PHLivePhotoViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> _didEndPlayback = new Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> _willBeginPlayback = new Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> DidEndPlaybackObs => _didEndPlayback; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> WillBeginPlaybackObs => _willBeginPlayback; + /// + public override void DidEndPlayback(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle) => _didEndPlayback.OnNext((livePhotoView, playbackStyle)); + /// + public override void WillBeginPlayback(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle) => _willBeginPlayback.OnNext((livePhotoView, playbackStyle)); + } +} + +namespace QTKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class QTCaptureDecompressedVideoOutputDelegateRx : global::QTKit.QTCaptureDecompressedVideoOutputDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureOutput captureOutput, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection)> _didDropVideoFrame = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureOutput captureOutput, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureOutput captureOutput, global::CoreVideo.CVImageBuffer videoFrame, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection)> _didOutputVideoFrame = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureOutput captureOutput, global::CoreVideo.CVImageBuffer videoFrame, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureOutput captureOutput, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection)> DidDropVideoFrameObs => _didDropVideoFrame; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureOutput captureOutput, global::CoreVideo.CVImageBuffer videoFrame, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection)> DidOutputVideoFrameObs => _didOutputVideoFrame; + /// + public override void DidDropVideoFrame(global::QTKit.QTCaptureOutput captureOutput, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection) => _didDropVideoFrame.OnNext((captureOutput, sampleBuffer, connection)); + /// + public override void DidOutputVideoFrame(global::QTKit.QTCaptureOutput captureOutput, global::CoreVideo.CVImageBuffer videoFrame, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection) => _didOutputVideoFrame.OnNext((captureOutput, videoFrame, sampleBuffer, connection)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class QTCaptureFileOutputDelegateRx : global::QTKit.QTCaptureFileOutputDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason)> _didFinishRecording = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection)> _didOutputSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)> _didPauseRecording = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)> _didResumeRecording = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)> _didStartRecording = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason)> _mustChangeOutputFile = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason)> _willFinishRecording = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)> _willStartRecording = new Pharmacist.Common.SingleAwaitSubject<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason)> DidFinishRecordingObs => _didFinishRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureFileOutput captureOutput, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection)> DidOutputSampleBufferObs => _didOutputSampleBuffer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)> DidPauseRecordingObs => _didPauseRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)> DidResumeRecordingObs => _didResumeRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)> DidStartRecordingObs => _didStartRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason)> MustChangeOutputFileObs => _mustChangeOutputFile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason)> WillFinishRecordingObs => _willFinishRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections)> WillStartRecordingObs => _willStartRecording; + /// + public override void DidFinishRecording(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason) => _didFinishRecording.OnNext((captureOutput, outputFileURL, connections, reason)); + /// + public override void DidOutputSampleBuffer(global::QTKit.QTCaptureFileOutput captureOutput, global::QTKit.QTSampleBuffer sampleBuffer, global::QTKit.QTCaptureConnection connection) => _didOutputSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + /// + public override void DidPauseRecording(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections) => _didPauseRecording.OnNext((captureOutput, fileUrl, connections)); + /// + public override void DidResumeRecording(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections) => _didResumeRecording.OnNext((captureOutput, fileUrl, connections)); + /// + public override void DidStartRecording(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections) => _didStartRecording.OnNext((captureOutput, fileUrl, connections)); + /// + public override void MustChangeOutputFile(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason) => _mustChangeOutputFile.OnNext((captureOutput, outputFileURL, connections, reason)); + /// + public override void WillFinishRecording(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileURL, global::QTKit.QTCaptureConnection[] connections, global::Foundation.NSError reason) => _willFinishRecording.OnNext((captureOutput, outputFileURL, connections, reason)); + /// + public override void WillStartRecording(global::QTKit.QTCaptureFileOutput captureOutput, global::Foundation.NSUrl fileUrl, global::QTKit.QTCaptureConnection[] connections) => _willStartRecording.OnNext((captureOutput, fileUrl, connections)); + } +} + +namespace QuickLookUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class QLPreviewPanelDelegateRx : global::QuickLookUI.QLPreviewPanelDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeKey = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeMain = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeBackingProperties = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeScreenProfile = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)> _didDecodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didDeminiaturize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndLiveResize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndSheet = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEnterFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEnterVersionBrowser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didExitFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didExitVersionBrowser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didExpose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFailToEnterFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFailToExitFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didMiniaturize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didMove = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didResignKey = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didResignMain = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didResize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, double duration)> _startCustomAnimationToEnterFullScreen = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, double duration)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, double duration)> _startCustomAnimationToExitFullScreen = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, double duration)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willBeginSheet = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)> _willEncodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willEnterFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willEnterVersionBrowser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willExitFullScreen = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willExitVersionBrowser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willMiniaturize = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willMove = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartLiveResize = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeKeyObs => _didBecomeKey; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeMainObs => _didBecomeMain; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeBackingPropertiesObs => _didChangeBackingProperties; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeScreenObs => _didChangeScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeScreenProfileObs => _didChangeScreenProfile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)> DidDecodeRestorableStateObs => _didDecodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDeminiaturizeObs => _didDeminiaturize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndLiveResizeObs => _didEndLiveResize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndSheetObs => _didEndSheet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEnterFullScreenObs => _didEnterFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEnterVersionBrowserObs => _didEnterVersionBrowser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidExitFullScreenObs => _didExitFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidExitVersionBrowserObs => _didExitVersionBrowser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidExposeObs => _didExpose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFailToEnterFullScreenObs => _didFailToEnterFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFailToExitFullScreenObs => _didFailToExitFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidMiniaturizeObs => _didMiniaturize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidMoveObs => _didMove; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidResignKeyObs => _didResignKey; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidResignMainObs => _didResignMain; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidResizeObs => _didResize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateObs => _didUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSWindow window, double duration)> StartCustomAnimationToEnterFullScreenObs => _startCustomAnimationToEnterFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSWindow window, double duration)> StartCustomAnimationToExitFullScreenObs => _startCustomAnimationToExitFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillBeginSheetObs => _willBeginSheet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillCloseObs => _willClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AppKit.NSWindow window, global::Foundation.NSCoder coder)> WillEncodeRestorableStateObs => _willEncodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillEnterFullScreenObs => _willEnterFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillEnterVersionBrowserObs => _willEnterVersionBrowser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillExitFullScreenObs => _willExitFullScreen; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillExitVersionBrowserObs => _willExitVersionBrowser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillMiniaturizeObs => _willMiniaturize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillMoveObs => _willMove; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartLiveResizeObs => _willStartLiveResize; + /// + public override void DidBecomeKey(global::Foundation.NSNotification notification) => _didBecomeKey.OnNext(notification); + /// + public override void DidBecomeMain(global::Foundation.NSNotification notification) => _didBecomeMain.OnNext(notification); + /// + public override void DidChangeBackingProperties(global::Foundation.NSNotification notification) => _didChangeBackingProperties.OnNext(notification); + /// + public override void DidChangeScreen(global::Foundation.NSNotification notification) => _didChangeScreen.OnNext(notification); + /// + public override void DidChangeScreenProfile(global::Foundation.NSNotification notification) => _didChangeScreenProfile.OnNext(notification); + /// + public override void DidDecodeRestorableState(global::AppKit.NSWindow window, global::Foundation.NSCoder coder) => _didDecodeRestorableState.OnNext((window, coder)); + /// + public override void DidDeminiaturize(global::Foundation.NSNotification notification) => _didDeminiaturize.OnNext(notification); + /// + public override void DidEndLiveResize(global::Foundation.NSNotification notification) => _didEndLiveResize.OnNext(notification); + /// + public override void DidEndSheet(global::Foundation.NSNotification notification) => _didEndSheet.OnNext(notification); + /// + public override void DidEnterFullScreen(global::Foundation.NSNotification notification) => _didEnterFullScreen.OnNext(notification); + /// + public override void DidEnterVersionBrowser(global::Foundation.NSNotification notification) => _didEnterVersionBrowser.OnNext(notification); + /// + public override void DidExitFullScreen(global::Foundation.NSNotification notification) => _didExitFullScreen.OnNext(notification); + /// + public override void DidExitVersionBrowser(global::Foundation.NSNotification notification) => _didExitVersionBrowser.OnNext(notification); + /// + public override void DidExpose(global::Foundation.NSNotification notification) => _didExpose.OnNext(notification); + /// + public override void DidFailToEnterFullScreen(global::AppKit.NSWindow window) => _didFailToEnterFullScreen.OnNext(window); + /// + public override void DidFailToExitFullScreen(global::AppKit.NSWindow window) => _didFailToExitFullScreen.OnNext(window); + /// + public override void DidMiniaturize(global::Foundation.NSNotification notification) => _didMiniaturize.OnNext(notification); + /// + public override void DidMove(global::Foundation.NSNotification notification) => _didMove.OnNext(notification); + /// + public override void DidResignKey(global::Foundation.NSNotification notification) => _didResignKey.OnNext(notification); + /// + public override void DidResignMain(global::Foundation.NSNotification notification) => _didResignMain.OnNext(notification); + /// + public override void DidResize(global::Foundation.NSNotification notification) => _didResize.OnNext(notification); + /// + public override void DidUpdate(global::Foundation.NSNotification notification) => _didUpdate.OnNext(notification); + /// + public override void StartCustomAnimationToEnterFullScreen(global::AppKit.NSWindow window, double duration) => _startCustomAnimationToEnterFullScreen.OnNext((window, duration)); + /// + public override void StartCustomAnimationToExitFullScreen(global::AppKit.NSWindow window, double duration) => _startCustomAnimationToExitFullScreen.OnNext((window, duration)); + /// + public override void WillBeginSheet(global::Foundation.NSNotification notification) => _willBeginSheet.OnNext(notification); + /// + public override void WillClose(global::Foundation.NSNotification notification) => _willClose.OnNext(notification); + /// + public override void WillEncodeRestorableState(global::AppKit.NSWindow window, global::Foundation.NSCoder coder) => _willEncodeRestorableState.OnNext((window, coder)); + /// + public override void WillEnterFullScreen(global::Foundation.NSNotification notification) => _willEnterFullScreen.OnNext(notification); + /// + public override void WillEnterVersionBrowser(global::Foundation.NSNotification notification) => _willEnterVersionBrowser.OnNext(notification); + /// + public override void WillExitFullScreen(global::Foundation.NSNotification notification) => _willExitFullScreen.OnNext(notification); + /// + public override void WillExitVersionBrowser(global::Foundation.NSNotification notification) => _willExitVersionBrowser.OnNext(notification); + /// + public override void WillMiniaturize(global::Foundation.NSNotification notification) => _willMiniaturize.OnNext(notification); + /// + public override void WillMove(global::Foundation.NSNotification notification) => _willMove.OnNext(notification); + /// + public override void WillStartLiveResize(global::Foundation.NSNotification notification) => _willStartLiveResize.OnNext(notification); + } +} + +namespace SceneKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNAvoidOccluderConstraintDelegateRx : global::SceneKit.SCNAvoidOccluderConstraintDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node)> _didAvoidOccluder = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node)> DidAvoidOccluderObs => _didAvoidOccluder; + /// + public override void DidAvoidOccluder(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node) => _didAvoidOccluder.OnNext((constraint, occluder, node)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNCameraControllerDelegateRx : global::SceneKit.SCNCameraControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _cameraInertiaDidEnd = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _cameraInertiaWillStart = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CameraInertiaDidEndObs => _cameraInertiaDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CameraInertiaWillStartObs => _cameraInertiaWillStart; + /// + public override void CameraInertiaDidEnd(global::SceneKit.SCNCameraController cameraController) => _cameraInertiaDidEnd.OnNext(cameraController); + /// + public override void CameraInertiaWillStart(global::SceneKit.SCNCameraController cameraController) => _cameraInertiaWillStart.OnNext(cameraController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNNodeRendererDelegateRx : global::SceneKit.SCNNodeRendererDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments)> _render = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments)> RenderObs => _render; + /// + public override void Render(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments) => _render.OnNext((node, renderer, arguments)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNPhysicsContactDelegateRx : global::SceneKit.SCNPhysicsContactDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> _didBeginContact = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> _didEndContact = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> _didUpdateContact = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> DidBeginContactObs => _didBeginContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> DidEndContactObs => _didEndContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> DidUpdateContactObs => _didUpdateContact; + /// + public override void DidBeginContact(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact) => _didBeginContact.OnNext((world, contact)); + /// + public override void DidEndContact(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact) => _didEndContact.OnNext((world, contact)); + /// + public override void DidUpdateContact(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact) => _didUpdateContact.OnNext((world, contact)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNProgramDelegateRx : global::SceneKit.SCNProgramDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNProgram program, global::Foundation.NSError error)> _handleError = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNProgram program, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNProgram program, string symbol, uint location, uint programID, global::SceneKit.SCNRenderer renderer)> _unbindValue = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNProgram program, string symbol, uint location, uint programID, global::SceneKit.SCNRenderer renderer)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNProgram program, global::Foundation.NSError error)> HandleErrorObs => _handleError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNProgram program, string symbol, uint location, uint programID, global::SceneKit.SCNRenderer renderer)> UnbindValueObs => _unbindValue; + /// + public override void HandleError(global::SceneKit.SCNProgram program, global::Foundation.NSError error) => _handleError.OnNext((program, error)); + /// + public override void UnbindValue(global::SceneKit.SCNProgram program, string symbol, uint location, uint programID, global::SceneKit.SCNRenderer renderer) => _unbindValue.OnNext((program, symbol, location, programID, renderer)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNSceneRendererDelegateRx : global::SceneKit.SCNSceneRendererDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _didApplyAnimations = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)> _didApplyConstraints = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> _didRenderScene = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _didSimulatePhysics = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _update = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> _willRenderScene = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> DidApplyAnimationsObs => _didApplyAnimations; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)> DidApplyConstraintsObs => _didApplyConstraints; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> DidRenderSceneObs => _didRenderScene; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> DidSimulatePhysicsObs => _didSimulatePhysics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> UpdateObs => _update; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> WillRenderSceneObs => _willRenderScene; + /// + public override void DidApplyAnimations(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _didApplyAnimations.OnNext((renderer, timeInSeconds)); + /// + public override void DidApplyConstraints(global::SceneKit.ISCNSceneRenderer renderer, double atTime) => _didApplyConstraints.OnNext((renderer, atTime)); + /// + public override void DidRenderScene(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds) => _didRenderScene.OnNext((renderer, scene, timeInSeconds)); + /// + public override void DidSimulatePhysics(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _didSimulatePhysics.OnNext((renderer, timeInSeconds)); + /// + public override void Update(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _update.OnNext((renderer, timeInSeconds)); + /// + public override void WillRenderScene(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds) => _willRenderScene.OnNext((renderer, scene, timeInSeconds)); + } +} + +namespace SpriteKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKPhysicsContactDelegateRx : global::SpriteKit.SKPhysicsContactDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBeginContact = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndContact = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginContactObs => _didBeginContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndContactObs => _didEndContact; + /// + public override void DidBeginContact(global::SpriteKit.SKPhysicsContact contact) => _didBeginContact.OnNext(contact); + /// + public override void DidEndContact(global::SpriteKit.SKPhysicsContact contact) => _didEndContact.OnNext(contact); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKSceneDelegateRx : global::SpriteKit.SKSceneDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didApplyConstraints = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEvaluateActions = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishUpdate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didSimulatePhysics = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(double currentTime, global::SpriteKit.SKScene scene)> _update = new Pharmacist.Common.SingleAwaitSubject<(double currentTime, global::SpriteKit.SKScene scene)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidApplyConstraintsObs => _didApplyConstraints; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEvaluateActionsObs => _didEvaluateActions; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishUpdateObs => _didFinishUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidSimulatePhysicsObs => _didSimulatePhysics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(double currentTime, global::SpriteKit.SKScene scene)> UpdateObs => _update; + /// + public override void DidApplyConstraints(global::SpriteKit.SKScene scene) => _didApplyConstraints.OnNext(scene); + /// + public override void DidEvaluateActions(global::SpriteKit.SKScene scene) => _didEvaluateActions.OnNext(scene); + /// + public override void DidFinishUpdate(global::SpriteKit.SKScene scene) => _didFinishUpdate.OnNext(scene); + /// + public override void DidSimulatePhysics(global::SpriteKit.SKScene scene) => _didSimulatePhysics.OnNext(scene); + /// + public override void Update(double currentTime, global::SpriteKit.SKScene scene) => _update.OnNext((currentTime, scene)); + } +} + +namespace StoreKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class SKProductsRequestDelegateRx : global::StoreKit.SKProductsRequestDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response)> _receivedResponse = new Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response)> ReceivedResponseObs => _receivedResponse; + /// + public override void ReceivedResponse(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response) => _receivedResponse.OnNext((request, response)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKRequestDelegateRx : global::StoreKit.SKRequestDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKRequest request, global::Foundation.NSError error)> _requestFailed = new Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKRequest request, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _requestFinished = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::StoreKit.SKRequest request, global::Foundation.NSError error)> RequestFailedObs => _requestFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable RequestFinishedObs => _requestFinished; + /// + public override void RequestFailed(global::StoreKit.SKRequest request, global::Foundation.NSError error) => _requestFailed.OnNext((request, error)); + /// + public override void RequestFinished(global::StoreKit.SKRequest request) => _requestFinished.OnNext(request); + } +} + +namespace UserNotifications +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class UNUserNotificationCenterDelegateRx : global::UserNotifications.UNUserNotificationCenterDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotificationResponse response, global::System.Action completionHandler)> _didReceiveNotificationResponse = new Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotificationResponse response, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification)> _openSettings = new Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler)> _willPresentNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotificationResponse response, global::System.Action completionHandler)> DidReceiveNotificationResponseObs => _didReceiveNotificationResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification)> OpenSettingsObs => _openSettings; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler)> WillPresentNotificationObs => _willPresentNotification; + /// + public override void DidReceiveNotificationResponse(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotificationResponse response, global::System.Action completionHandler) => _didReceiveNotificationResponse.OnNext((center, response, completionHandler)); + /// + public override void OpenSettings(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification) => _openSettings.OnNext((center, notification)); + /// + public override void WillPresentNotification(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler) => _willPresentNotification.OnNext((center, notification, completionHandler)); + } +} + +namespace VideoSubscriberAccount +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class VSAccountManagerDelegateRx : global::VideoSubscriberAccount.VSAccountManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::AppKit.NSViewController viewController)> _dismissViewController = new Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::AppKit.NSViewController viewController)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::AppKit.NSViewController viewController)> _presentViewController = new Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::AppKit.NSViewController viewController)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::AppKit.NSViewController viewController)> DismissViewControllerObs => _dismissViewController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::AppKit.NSViewController viewController)> PresentViewControllerObs => _presentViewController; + /// + public override void DismissViewController(global::VideoSubscriberAccount.VSAccountManager accountManager, global::AppKit.NSViewController viewController) => _dismissViewController.OnNext((accountManager, viewController)); + /// + public override void PresentViewController(global::VideoSubscriberAccount.VSAccountManager accountManager, global::AppKit.NSViewController viewController) => _presentViewController.OnNext((accountManager, viewController)); + } +} + +namespace WebKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class WebFrameLoadDelegateRx : global::WebKit.WebFrameLoadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> _canceledClientRedirect = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> _changedLocationWithinPage = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::WebKit.WebScriptObject windowObject, global::WebKit.WebFrame forFrame)> _clearedWindowObject = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::WebKit.WebScriptObject windowObject, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> _commitedLoad = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::JavaScriptCore.JSContext context, global::WebKit.WebFrame frame)> _didCreateJavaScriptContext = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::JavaScriptCore.JSContext context, global::WebKit.WebFrame frame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebFrame forFrame)> _failedLoadWithError = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebFrame forFrame)> _failedProvisionalLoad = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> _finishedLoad = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::AppKit.NSImage image, global::WebKit.WebFrame forFrame)> _receivedIcon = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::AppKit.NSImage image, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> _receivedServerRedirectForProvisionalLoad = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, string title, global::WebKit.WebFrame forFrame)> _receivedTitle = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, string title, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> _startedProvisionalLoad = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> _willCloseFrame = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSUrl toUrl, double secondsDelay, global::Foundation.NSDate fireDate, global::WebKit.WebFrame forFrame)> _willPerformClientRedirect = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSUrl toUrl, double secondsDelay, global::Foundation.NSDate fireDate, global::WebKit.WebFrame forFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::WebKit.WebScriptObject windowScriptObject)> _windowScriptObjectAvailable = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::WebKit.WebScriptObject windowScriptObject)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> CanceledClientRedirectObs => _canceledClientRedirect; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> ChangedLocationWithinPageObs => _changedLocationWithinPage; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView webView, global::WebKit.WebScriptObject windowObject, global::WebKit.WebFrame forFrame)> ClearedWindowObjectObs => _clearedWindowObject; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> CommitedLoadObs => _commitedLoad; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView webView, global::JavaScriptCore.JSContext context, global::WebKit.WebFrame frame)> DidCreateJavaScriptContextObs => _didCreateJavaScriptContext; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebFrame forFrame)> FailedLoadWithErrorObs => _failedLoadWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebFrame forFrame)> FailedProvisionalLoadObs => _failedProvisionalLoad; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> FinishedLoadObs => _finishedLoad; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::AppKit.NSImage image, global::WebKit.WebFrame forFrame)> ReceivedIconObs => _receivedIcon; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> ReceivedServerRedirectForProvisionalLoadObs => _receivedServerRedirectForProvisionalLoad; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, string title, global::WebKit.WebFrame forFrame)> ReceivedTitleObs => _receivedTitle; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> StartedProvisionalLoadObs => _startedProvisionalLoad; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame)> WillCloseFrameObs => _willCloseFrame; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSUrl toUrl, double secondsDelay, global::Foundation.NSDate fireDate, global::WebKit.WebFrame forFrame)> WillPerformClientRedirectObs => _willPerformClientRedirect; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView webView, global::WebKit.WebScriptObject windowScriptObject)> WindowScriptObjectAvailableObs => _windowScriptObjectAvailable; + /// + public override void CanceledClientRedirect(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame) => _canceledClientRedirect.OnNext((sender, forFrame)); + /// + public override void ChangedLocationWithinPage(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame) => _changedLocationWithinPage.OnNext((sender, forFrame)); + /// + public override void ClearedWindowObject(global::WebKit.WebView webView, global::WebKit.WebScriptObject windowObject, global::WebKit.WebFrame forFrame) => _clearedWindowObject.OnNext((webView, windowObject, forFrame)); + /// + public override void CommitedLoad(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame) => _commitedLoad.OnNext((sender, forFrame)); + /// + public override void DidCreateJavaScriptContext(global::WebKit.WebView webView, global::JavaScriptCore.JSContext context, global::WebKit.WebFrame frame) => _didCreateJavaScriptContext.OnNext((webView, context, frame)); + /// + public override void FailedLoadWithError(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebFrame forFrame) => _failedLoadWithError.OnNext((sender, error, forFrame)); + /// + public override void FailedProvisionalLoad(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebFrame forFrame) => _failedProvisionalLoad.OnNext((sender, error, forFrame)); + /// + public override void FinishedLoad(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame) => _finishedLoad.OnNext((sender, forFrame)); + /// + public override void ReceivedIcon(global::WebKit.WebView sender, global::AppKit.NSImage image, global::WebKit.WebFrame forFrame) => _receivedIcon.OnNext((sender, image, forFrame)); + /// + public override void ReceivedServerRedirectForProvisionalLoad(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame) => _receivedServerRedirectForProvisionalLoad.OnNext((sender, forFrame)); + /// + public override void ReceivedTitle(global::WebKit.WebView sender, string title, global::WebKit.WebFrame forFrame) => _receivedTitle.OnNext((sender, title, forFrame)); + /// + public override void StartedProvisionalLoad(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame) => _startedProvisionalLoad.OnNext((sender, forFrame)); + /// + public override void WillCloseFrame(global::WebKit.WebView sender, global::WebKit.WebFrame forFrame) => _willCloseFrame.OnNext((sender, forFrame)); + /// + public override void WillPerformClientRedirect(global::WebKit.WebView sender, global::Foundation.NSUrl toUrl, double secondsDelay, global::Foundation.NSDate fireDate, global::WebKit.WebFrame forFrame) => _willPerformClientRedirect.OnNext((sender, toUrl, secondsDelay, fireDate, forFrame)); + /// + public override void WindowScriptObjectAvailable(global::WebKit.WebView webView, global::WebKit.WebScriptObject windowScriptObject) => _windowScriptObjectAvailable.OnNext((webView, windowScriptObject)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class WebPolicyDelegateRx : global::WebKit.WebPolicyDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, string mimeType, global::Foundation.NSUrlRequest request, global::WebKit.WebFrame frame, global::Foundation.NSObject decisionToken)> _decidePolicyForMimeType = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, string mimeType, global::Foundation.NSUrlRequest request, global::WebKit.WebFrame frame, global::Foundation.NSObject decisionToken)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::Foundation.NSDictionary actionInformation, global::Foundation.NSUrlRequest request, global::WebKit.WebFrame frame, global::Foundation.NSObject decisionToken)> _decidePolicyForNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::Foundation.NSDictionary actionInformation, global::Foundation.NSUrlRequest request, global::WebKit.WebFrame frame, global::Foundation.NSObject decisionToken)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::Foundation.NSDictionary actionInformation, global::Foundation.NSUrlRequest request, string newFrameName, global::Foundation.NSObject decisionToken)> _decidePolicyForNewWindow = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::Foundation.NSDictionary actionInformation, global::Foundation.NSUrlRequest request, string newFrameName, global::Foundation.NSObject decisionToken)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::Foundation.NSError error, global::WebKit.WebFrame frame)> _unableToImplementPolicy = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::Foundation.NSError error, global::WebKit.WebFrame frame)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView webView, string mimeType, global::Foundation.NSUrlRequest request, global::WebKit.WebFrame frame, global::Foundation.NSObject decisionToken)> DecidePolicyForMimeTypeObs => _decidePolicyForMimeType; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView webView, global::Foundation.NSDictionary actionInformation, global::Foundation.NSUrlRequest request, global::WebKit.WebFrame frame, global::Foundation.NSObject decisionToken)> DecidePolicyForNavigationObs => _decidePolicyForNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView webView, global::Foundation.NSDictionary actionInformation, global::Foundation.NSUrlRequest request, string newFrameName, global::Foundation.NSObject decisionToken)> DecidePolicyForNewWindowObs => _decidePolicyForNewWindow; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView webView, global::Foundation.NSError error, global::WebKit.WebFrame frame)> UnableToImplementPolicyObs => _unableToImplementPolicy; + /// + public override void DecidePolicyForMimeType(global::WebKit.WebView webView, string mimeType, global::Foundation.NSUrlRequest request, global::WebKit.WebFrame frame, global::Foundation.NSObject decisionToken) => _decidePolicyForMimeType.OnNext((webView, mimeType, request, frame, decisionToken)); + /// + public override void DecidePolicyForNavigation(global::WebKit.WebView webView, global::Foundation.NSDictionary actionInformation, global::Foundation.NSUrlRequest request, global::WebKit.WebFrame frame, global::Foundation.NSObject decisionToken) => _decidePolicyForNavigation.OnNext((webView, actionInformation, request, frame, decisionToken)); + /// + public override void DecidePolicyForNewWindow(global::WebKit.WebView webView, global::Foundation.NSDictionary actionInformation, global::Foundation.NSUrlRequest request, string newFrameName, global::Foundation.NSObject decisionToken) => _decidePolicyForNewWindow.OnNext((webView, actionInformation, request, newFrameName, decisionToken)); + /// + public override void UnableToImplementPolicy(global::WebKit.WebView webView, global::Foundation.NSError error, global::WebKit.WebFrame frame) => _unableToImplementPolicy.OnNext((webView, error, frame)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class WebResourceLoadDelegateRx : global::WebKit.WebResourceLoadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlAuthenticationChallenge challenge, global::WebKit.WebDataSource dataSource)> _onCancelledAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlAuthenticationChallenge challenge, global::WebKit.WebDataSource dataSource)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSError withError, global::WebKit.WebDataSource dataSource)> _onFailedLoading = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSError withError, global::WebKit.WebDataSource dataSource)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::WebKit.WebDataSource dataSource)> _onFinishedLoading = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::WebKit.WebDataSource dataSource)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebDataSource dataSource)> _onPlugInFailed = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebDataSource dataSource)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlAuthenticationChallenge challenge, global::WebKit.WebDataSource dataSource)> _onReceivedAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlAuthenticationChallenge challenge, global::WebKit.WebDataSource dataSource)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::System.nint length, global::WebKit.WebDataSource dataSource)> _onReceivedContentLength = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::System.nint length, global::WebKit.WebDataSource dataSource)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlResponse responseReceived, global::WebKit.WebDataSource dataSource)> _onReceivedResponse = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlResponse responseReceived, global::WebKit.WebDataSource dataSource)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlAuthenticationChallenge challenge, global::WebKit.WebDataSource dataSource)> OnCancelledAuthenticationChallengeObs => _onCancelledAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSError withError, global::WebKit.WebDataSource dataSource)> OnFailedLoadingObs => _onFailedLoading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::WebKit.WebDataSource dataSource)> OnFinishedLoadingObs => _onFinishedLoading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebDataSource dataSource)> OnPlugInFailedObs => _onPlugInFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlAuthenticationChallenge challenge, global::WebKit.WebDataSource dataSource)> OnReceivedAuthenticationChallengeObs => _onReceivedAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::System.nint length, global::WebKit.WebDataSource dataSource)> OnReceivedContentLengthObs => _onReceivedContentLength; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlResponse responseReceived, global::WebKit.WebDataSource dataSource)> OnReceivedResponseObs => _onReceivedResponse; + /// + public override void OnCancelledAuthenticationChallenge(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlAuthenticationChallenge challenge, global::WebKit.WebDataSource dataSource) => _onCancelledAuthenticationChallenge.OnNext((sender, identifier, challenge, dataSource)); + /// + public override void OnFailedLoading(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSError withError, global::WebKit.WebDataSource dataSource) => _onFailedLoading.OnNext((sender, identifier, withError, dataSource)); + /// + public override void OnFinishedLoading(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::WebKit.WebDataSource dataSource) => _onFinishedLoading.OnNext((sender, identifier, dataSource)); + /// + public override void OnPlugInFailed(global::WebKit.WebView sender, global::Foundation.NSError error, global::WebKit.WebDataSource dataSource) => _onPlugInFailed.OnNext((sender, error, dataSource)); + /// + public override void OnReceivedAuthenticationChallenge(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlAuthenticationChallenge challenge, global::WebKit.WebDataSource dataSource) => _onReceivedAuthenticationChallenge.OnNext((sender, identifier, challenge, dataSource)); + /// + public override void OnReceivedContentLength(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::System.nint length, global::WebKit.WebDataSource dataSource) => _onReceivedContentLength.OnNext((sender, identifier, length, dataSource)); + /// + public override void OnReceivedResponse(global::WebKit.WebView sender, global::Foundation.NSObject identifier, global::Foundation.NSUrlResponse responseReceived, global::WebKit.WebDataSource dataSource) => _onReceivedResponse.OnNext((sender, identifier, responseReceived, dataSource)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class WebUIDelegateRx : global::WebKit.WebUIDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _uIClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::CoreGraphics.CGRect rect)> _uIDrawFooterInRect = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::CoreGraphics.CGRect rect)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::CoreGraphics.CGRect rect)> _uIDrawHeaderInRect = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::CoreGraphics.CGRect rect)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _uIFocus = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::AppKit.NSResponder newResponder)> _uIMakeFirstResponder = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::AppKit.NSResponder newResponder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSDictionary elementInformation, global::AppKit.NSEventModifierMask modifierFlags)> _uIMouseDidMoveOverElement = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::Foundation.NSDictionary elementInformation, global::AppKit.NSEventModifierMask modifierFlags)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrameView frameView)> _uIPrintFrameView = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.WebFrameView frameView)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, string message)> _uIRunJavaScriptAlertPanel = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, string message)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, string withMessage, global::WebKit.WebFrame initiatedByFrame)> _uIRunJavaScriptAlertPanelMessage = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, string withMessage, global::WebKit.WebFrame initiatedByFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _uIRunModal = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.IWebOpenPanelResultListener resultListener)> _uIRunOpenPanelForFileButton = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::WebKit.IWebOpenPanelResultListener resultListener)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::CoreGraphics.CGRect frame)> _uISetContentRect = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::CoreGraphics.CGRect frame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::CoreGraphics.CGRect newFrame)> _uISetFrame = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, global::CoreGraphics.CGRect newFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, bool resizable)> _uISetResizable = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, bool resizable)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, bool visible)> _uISetStatusBarVisible = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, bool visible)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, string text)> _uISetStatusText = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, string text)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, bool visible)> _uISetToolbarsVisible = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView sender, bool visible)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _uIShow = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _uIUnfocus = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::WebKit.WebDragDestinationAction action, global::AppKit.NSDraggingInfo draggingInfo)> _uIWillPerformDragDestination = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::WebKit.WebDragDestinationAction action, global::AppKit.NSDraggingInfo draggingInfo)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::WebKit.WebDragSourceAction action, global::CoreGraphics.CGPoint sourcePoint, global::AppKit.NSPasteboard pasteboard)> _uIWillPerformDragSource = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WebView webView, global::WebKit.WebDragSourceAction action, global::CoreGraphics.CGPoint sourcePoint, global::AppKit.NSPasteboard pasteboard)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UICloseObs => _uIClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::CoreGraphics.CGRect rect)> UIDrawFooterInRectObs => _uIDrawFooterInRect; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::CoreGraphics.CGRect rect)> UIDrawHeaderInRectObs => _uIDrawHeaderInRect; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UIFocusObs => _uIFocus; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::AppKit.NSResponder newResponder)> UIMakeFirstResponderObs => _uIMakeFirstResponder; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::Foundation.NSDictionary elementInformation, global::AppKit.NSEventModifierMask modifierFlags)> UIMouseDidMoveOverElementObs => _uIMouseDidMoveOverElement; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::WebKit.WebFrameView frameView)> UIPrintFrameViewObs => _uIPrintFrameView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, string message)> UIRunJavaScriptAlertPanelObs => _uIRunJavaScriptAlertPanel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, string withMessage, global::WebKit.WebFrame initiatedByFrame)> UIRunJavaScriptAlertPanelMessageObs => _uIRunJavaScriptAlertPanelMessage; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UIRunModalObs => _uIRunModal; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::WebKit.IWebOpenPanelResultListener resultListener)> UIRunOpenPanelForFileButtonObs => _uIRunOpenPanelForFileButton; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::CoreGraphics.CGRect frame)> UISetContentRectObs => _uISetContentRect; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, global::CoreGraphics.CGRect newFrame)> UISetFrameObs => _uISetFrame; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, bool resizable)> UISetResizableObs => _uISetResizable; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, bool visible)> UISetStatusBarVisibleObs => _uISetStatusBarVisible; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, string text)> UISetStatusTextObs => _uISetStatusText; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView sender, bool visible)> UISetToolbarsVisibleObs => _uISetToolbarsVisible; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UIShowObs => _uIShow; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UIUnfocusObs => _uIUnfocus; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView webView, global::WebKit.WebDragDestinationAction action, global::AppKit.NSDraggingInfo draggingInfo)> UIWillPerformDragDestinationObs => _uIWillPerformDragDestination; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WebView webView, global::WebKit.WebDragSourceAction action, global::CoreGraphics.CGPoint sourcePoint, global::AppKit.NSPasteboard pasteboard)> UIWillPerformDragSourceObs => _uIWillPerformDragSource; + /// + public override void UIClose(global::WebKit.WebView sender) => _uIClose.OnNext(sender); + /// + public override void UIDrawFooterInRect(global::WebKit.WebView sender, global::CoreGraphics.CGRect rect) => _uIDrawFooterInRect.OnNext((sender, rect)); + /// + public override void UIDrawHeaderInRect(global::WebKit.WebView sender, global::CoreGraphics.CGRect rect) => _uIDrawHeaderInRect.OnNext((sender, rect)); + /// + public override void UIFocus(global::WebKit.WebView sender) => _uIFocus.OnNext(sender); + /// + public override void UIMakeFirstResponder(global::WebKit.WebView sender, global::AppKit.NSResponder newResponder) => _uIMakeFirstResponder.OnNext((sender, newResponder)); + /// + public override void UIMouseDidMoveOverElement(global::WebKit.WebView sender, global::Foundation.NSDictionary elementInformation, global::AppKit.NSEventModifierMask modifierFlags) => _uIMouseDidMoveOverElement.OnNext((sender, elementInformation, modifierFlags)); + /// + public override void UIPrintFrameView(global::WebKit.WebView sender, global::WebKit.WebFrameView frameView) => _uIPrintFrameView.OnNext((sender, frameView)); + /// + public override void UIRunJavaScriptAlertPanel(global::WebKit.WebView sender, string message) => _uIRunJavaScriptAlertPanel.OnNext((sender, message)); + /// + public override void UIRunJavaScriptAlertPanelMessage(global::WebKit.WebView sender, string withMessage, global::WebKit.WebFrame initiatedByFrame) => _uIRunJavaScriptAlertPanelMessage.OnNext((sender, withMessage, initiatedByFrame)); + /// + public override void UIRunModal(global::WebKit.WebView sender) => _uIRunModal.OnNext(sender); + /// + public override void UIRunOpenPanelForFileButton(global::WebKit.WebView sender, global::WebKit.IWebOpenPanelResultListener resultListener) => _uIRunOpenPanelForFileButton.OnNext((sender, resultListener)); + /// + public override void UISetContentRect(global::WebKit.WebView sender, global::CoreGraphics.CGRect frame) => _uISetContentRect.OnNext((sender, frame)); + /// + public override void UISetFrame(global::WebKit.WebView sender, global::CoreGraphics.CGRect newFrame) => _uISetFrame.OnNext((sender, newFrame)); + /// + public override void UISetResizable(global::WebKit.WebView sender, bool resizable) => _uISetResizable.OnNext((sender, resizable)); + /// + public override void UISetStatusBarVisible(global::WebKit.WebView sender, bool visible) => _uISetStatusBarVisible.OnNext((sender, visible)); + /// + public override void UISetStatusText(global::WebKit.WebView sender, string text) => _uISetStatusText.OnNext((sender, text)); + /// + public override void UISetToolbarsVisible(global::WebKit.WebView sender, bool visible) => _uISetToolbarsVisible.OnNext((sender, visible)); + /// + public override void UIShow(global::WebKit.WebView sender) => _uIShow.OnNext(sender); + /// + public override void UIUnfocus(global::WebKit.WebView sender) => _uIUnfocus.OnNext(sender); + /// + public override void UIWillPerformDragDestination(global::WebKit.WebView webView, global::WebKit.WebDragDestinationAction action, global::AppKit.NSDraggingInfo draggingInfo) => _uIWillPerformDragDestination.OnNext((webView, action, draggingInfo)); + /// + public override void UIWillPerformDragSource(global::WebKit.WebView webView, global::WebKit.WebDragSourceAction action, global::CoreGraphics.CGPoint sourcePoint, global::AppKit.NSPasteboard pasteboard) => _uIWillPerformDragSource.OnNext((webView, action, sourcePoint, pasteboard)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class WKNavigationDelegateRx : global::WebKit.WKNavigationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _contentProcessDidTerminate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigationAction navigationAction, global::System.Action decisionHandler)> _decidePolicy = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigationAction navigationAction, global::System.Action decisionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> _didCommitNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)> _didFailNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)> _didFailProvisionalNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> _didFinishNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> _didReceiveServerRedirectForProvisionalNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> _didStartProvisionalNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ContentProcessDidTerminateObs => _contentProcessDidTerminate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigationAction navigationAction, global::System.Action decisionHandler)> DecidePolicyObs => _decidePolicy; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> DidCommitNavigationObs => _didCommitNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)> DidFailNavigationObs => _didFailNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)> DidFailProvisionalNavigationObs => _didFailProvisionalNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> DidFinishNavigationObs => _didFinishNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveAuthenticationChallengeObs => _didReceiveAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> DidReceiveServerRedirectForProvisionalNavigationObs => _didReceiveServerRedirectForProvisionalNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> DidStartProvisionalNavigationObs => _didStartProvisionalNavigation; + /// + public override void ContentProcessDidTerminate(global::WebKit.WKWebView webView) => _contentProcessDidTerminate.OnNext(webView); + /// + public override void DecidePolicy(global::WebKit.WKWebView webView, global::WebKit.WKNavigationAction navigationAction, global::System.Action decisionHandler) => _decidePolicy.OnNext((webView, navigationAction, decisionHandler)); + /// + public override void DidCommitNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation) => _didCommitNavigation.OnNext((webView, navigation)); + /// + public override void DidFailNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error) => _didFailNavigation.OnNext((webView, navigation, error)); + /// + public override void DidFailProvisionalNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error) => _didFailProvisionalNavigation.OnNext((webView, navigation, error)); + /// + public override void DidFinishNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation) => _didFinishNavigation.OnNext((webView, navigation)); + /// + public override void DidReceiveAuthenticationChallenge(global::WebKit.WKWebView webView, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveAuthenticationChallenge.OnNext((webView, challenge, completionHandler)); + /// + public override void DidReceiveServerRedirectForProvisionalNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation) => _didReceiveServerRedirectForProvisionalNavigation.OnNext((webView, navigation)); + /// + public override void DidStartProvisionalNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation) => _didStartProvisionalNavigation.OnNext((webView, navigation)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class WKUIDelegateRx : global::WebKit.WKUIDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> _runJavaScriptAlertPanel = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> _runJavaScriptConfirmPanel = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string prompt, string defaultText, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> _runJavaScriptTextInputPanel = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string prompt, string defaultText, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKOpenPanelParameters parameters, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> _runOpenPanel = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKOpenPanelParameters parameters, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCloseObs => _didClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> RunJavaScriptAlertPanelObs => _runJavaScriptAlertPanel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> RunJavaScriptConfirmPanelObs => _runJavaScriptConfirmPanel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, string prompt, string defaultText, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> RunJavaScriptTextInputPanelObs => _runJavaScriptTextInputPanel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKOpenPanelParameters parameters, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> RunOpenPanelObs => _runOpenPanel; + /// + public override void DidClose(global::WebKit.WKWebView webView) => _didClose.OnNext(webView); + /// + public override void RunJavaScriptAlertPanel(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler) => _runJavaScriptAlertPanel.OnNext((webView, message, frame, completionHandler)); + /// + public override void RunJavaScriptConfirmPanel(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler) => _runJavaScriptConfirmPanel.OnNext((webView, message, frame, completionHandler)); + /// + public override void RunJavaScriptTextInputPanel(global::WebKit.WKWebView webView, string prompt, string defaultText, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler) => _runJavaScriptTextInputPanel.OnNext((webView, prompt, defaultText, frame, completionHandler)); + /// + public override void RunOpenPanel(global::WebKit.WKWebView webView, global::WebKit.WKOpenPanelParameters parameters, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler) => _runOpenPanel.OnNext((webView, parameters, frame, completionHandler)); + } +} \ No newline at end of file diff --git a/src/Pharmacist.Tests/IntegrationTests/Approved/TVOS.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/TVOS.approved.txt new file mode 100644 index 0000000..28362fd --- /dev/null +++ b/src/Pharmacist.Tests/IntegrationTests/Approved/TVOS.approved.txt @@ -0,0 +1,5690 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using global::System; +using global::System.Reactive; +using global::System.Reactive.Linq; +using global::System.Reactive.Subjects; + +using global::Pharmacist.Common; + +namespace AudioToolbox +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioConverterEvents Events(this global::AudioToolbox.AudioConverter item) => new AudioConverterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InputAudioQueueEvents Events(this global::AudioToolbox.InputAudioQueue item) => new InputAudioQueueEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static OutputAudioQueueEvents Events(this global::AudioToolbox.OutputAudioQueue item) => new OutputAudioQueueEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioConverterEvents + { + private readonly global::AudioToolbox.AudioConverter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioConverterEvents(global::AudioToolbox.AudioConverter data) + { + _data = data; + } + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InputAudioQueueEvents + { + private readonly global::AudioToolbox.InputAudioQueue _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InputAudioQueueEvents(global::AudioToolbox.InputAudioQueue data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InputCompleted => global::System.Reactive.Linq.Observable.FromEventPattern, global::AudioToolbox.InputCompletedEventArgs>(x => _data.InputCompleted += x, x => _data.InputCompleted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class OutputAudioQueueEvents + { + private readonly global::AudioToolbox.OutputAudioQueue _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public OutputAudioQueueEvents(global::AudioToolbox.OutputAudioQueue data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferCompleted => global::System.Reactive.Linq.Observable.FromEventPattern, global::AudioToolbox.BufferCompletedEventArgs>(x => _data.BufferCompleted += x, x => _data.BufferCompleted -= x).Select(x => x.EventArgs); + } +} + +namespace AVFoundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AVAudioPlayerEvents Events(this global::AVFoundation.AVAudioPlayer item) => new AVAudioPlayerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AVSpeechSynthesizerEvents Events(this global::AVFoundation.AVSpeechSynthesizer item) => new AVSpeechSynthesizerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AVAudioPlayerEvents + { + private readonly global::AVFoundation.AVAudioPlayer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AVAudioPlayerEvents(global::AVFoundation.AVAudioPlayer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeginInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeginInterruption += x, x => _data.BeginInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecoderError => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVErrorEventArgs>(x => _data.DecoderError += x, x => _data.DecoderError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EndInterruption += x, x => _data.EndInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FinishedPlaying => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVStatusEventArgs>(x => _data.FinishedPlaying += x, x => _data.FinishedPlaying -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AVSpeechSynthesizerEvents + { + private readonly global::AVFoundation.AVSpeechSynthesizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AVSpeechSynthesizerEvents(global::AVFoundation.AVSpeechSynthesizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidCancelSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidCancelSpeechUtterance += x, x => _data.DidCancelSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidContinueSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidContinueSpeechUtterance += x, x => _data.DidContinueSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidFinishSpeechUtterance += x, x => _data.DidFinishSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPauseSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidPauseSpeechUtterance += x, x => _data.DidPauseSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidStartSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidStartSpeechUtterance += x, x => _data.DidStartSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillSpeakRangeOfSpeechString => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerWillSpeakEventArgs>(x => _data.WillSpeakRangeOfSpeechString += x, x => _data.WillSpeakRangeOfSpeechString -= x).Select(x => x.EventArgs); + } +} + +namespace CoreAnimation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CAAnimationEvents Events(this global::CoreAnimation.CAAnimation item) => new CAAnimationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CAAnimationEvents + { + private readonly global::CoreAnimation.CAAnimation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CAAnimationEvents(global::CoreAnimation.CAAnimation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnimationStarted += x, x => _data.AnimationStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationStopped => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreAnimation.CAAnimationStateEventArgs>(x => _data.AnimationStopped += x, x => _data.AnimationStopped -= x).Select(x => x.EventArgs); + } +} + +namespace CoreBluetooth +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CBCentralManagerEvents Events(this global::CoreBluetooth.CBCentralManager item) => new CBCentralManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CBPeripheralEvents Events(this global::CoreBluetooth.CBPeripheral item) => new CBPeripheralEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CBPeripheralManagerEvents Events(this global::CoreBluetooth.CBPeripheralManager item) => new CBPeripheralManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CBCentralManagerEvents + { + private readonly global::CoreBluetooth.CBCentralManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CBCentralManagerEvents(global::CoreBluetooth.CBCentralManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ConnectedPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralEventArgs>(x => _data.ConnectedPeripheral += x, x => _data.ConnectedPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisconnectedPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralErrorEventArgs>(x => _data.DisconnectedPeripheral += x, x => _data.DisconnectedPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBDiscoveredPeripheralEventArgs>(x => _data.DiscoveredPeripheral += x, x => _data.DiscoveredPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FailedToConnectPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralErrorEventArgs>(x => _data.FailedToConnectPeripheral += x, x => _data.FailedToConnectPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedState => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UpdatedState += x, x => _data.UpdatedState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillRestoreState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBWillRestoreEventArgs>(x => _data.WillRestoreState += x, x => _data.WillRestoreState -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CBPeripheralEvents + { + private readonly global::CoreBluetooth.CBPeripheral _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CBPeripheralEvents(global::CoreBluetooth.CBPeripheral data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidOpenL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralOpenL2CapChannelEventArgs>(x => _data.DidOpenL2CapChannel += x, x => _data.DidOpenL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredCharacteristic => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBServiceEventArgs>(x => _data.DiscoveredCharacteristic += x, x => _data.DiscoveredCharacteristic -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredDescriptor => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.DiscoveredDescriptor += x, x => _data.DiscoveredDescriptor -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredIncludedService => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBServiceEventArgs>(x => _data.DiscoveredIncludedService += x, x => _data.DiscoveredIncludedService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredService => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.DiscoveredService += x, x => _data.DiscoveredService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsReadyToSendWriteWithoutResponse => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsReadyToSendWriteWithoutResponse += x, x => _data.IsReadyToSendWriteWithoutResponse -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ModifiedServices => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralServicesEventArgs>(x => _data.ModifiedServices += x, x => _data.ModifiedServices -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RssiRead => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBRssiEventArgs>(x => _data.RssiRead += x, x => _data.RssiRead -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RssiUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.RssiUpdated += x, x => _data.RssiUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedCharacterteristicValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.UpdatedCharacterteristicValue += x, x => _data.UpdatedCharacterteristicValue -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedName => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UpdatedName += x, x => _data.UpdatedName -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedNotificationState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.UpdatedNotificationState += x, x => _data.UpdatedNotificationState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBDescriptorEventArgs>(x => _data.UpdatedValue += x, x => _data.UpdatedValue -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WroteCharacteristicValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.WroteCharacteristicValue += x, x => _data.WroteCharacteristicValue -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WroteDescriptorValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBDescriptorEventArgs>(x => _data.WroteDescriptorValue += x, x => _data.WroteDescriptorValue -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CBPeripheralManagerEvents + { + private readonly global::CoreBluetooth.CBPeripheralManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CBPeripheralManagerEvents(global::CoreBluetooth.CBPeripheralManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AdvertisingStarted => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.AdvertisingStarted += x, x => _data.AdvertisingStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CharacteristicSubscribed => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerSubscriptionEventArgs>(x => _data.CharacteristicSubscribed += x, x => _data.CharacteristicSubscribed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CharacteristicUnsubscribed => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerSubscriptionEventArgs>(x => _data.CharacteristicUnsubscribed += x, x => _data.CharacteristicUnsubscribed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidOpenL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerOpenL2CapChannelEventArgs>(x => _data.DidOpenL2CapChannel += x, x => _data.DidOpenL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPublishL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerL2CapChannelOperationEventArgs>(x => _data.DidPublishL2CapChannel += x, x => _data.DidPublishL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUnpublishL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerL2CapChannelOperationEventArgs>(x => _data.DidUnpublishL2CapChannel += x, x => _data.DidUnpublishL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadRequestReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBATTRequestEventArgs>(x => _data.ReadRequestReceived += x, x => _data.ReadRequestReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadyToUpdateSubscribers => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReadyToUpdateSubscribers += x, x => _data.ReadyToUpdateSubscribers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ServiceAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerServiceEventArgs>(x => _data.ServiceAdded += x, x => _data.ServiceAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StateUpdated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StateUpdated += x, x => _data.StateUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillRestoreState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBWillRestoreEventArgs>(x => _data.WillRestoreState += x, x => _data.WillRestoreState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WriteRequestsReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBATTRequestsEventArgs>(x => _data.WriteRequestsReceived += x, x => _data.WriteRequestsReceived -= x).Select(x => x.EventArgs); + } +} + +namespace CoreFoundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CFSocketEvents Events(this global::CoreFoundation.CFSocket item) => new CFSocketEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CFStreamEvents Events(this global::CoreFoundation.CFStream item) => new CFStreamEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CFSocketEvents + { + private readonly global::CoreFoundation.CFSocket _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CFSocketEvents(global::CoreFoundation.CFSocket data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AcceptEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketAcceptEventArgs>(x => _data.AcceptEvent += x, x => _data.AcceptEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ConnectEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketConnectEventArgs>(x => _data.ConnectEvent += x, x => _data.ConnectEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketDataEventArgs>(x => _data.DataEvent += x, x => _data.DataEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketReadEventArgs>(x => _data.ReadEvent += x, x => _data.ReadEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WriteEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketWriteEventArgs>(x => _data.WriteEvent += x, x => _data.WriteEvent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CFStreamEvents + { + private readonly global::CoreFoundation.CFStream _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CFStreamEvents(global::CoreFoundation.CFStream data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CanAcceptBytesEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.CanAcceptBytesEvent += x, x => _data.CanAcceptBytesEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ClosedEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.ClosedEvent += x, x => _data.ClosedEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ErrorEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.ErrorEvent += x, x => _data.ErrorEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HasBytesAvailableEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.HasBytesAvailableEvent += x, x => _data.HasBytesAvailableEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OpenCompletedEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.OpenCompletedEvent += x, x => _data.OpenCompletedEvent -= x).Select(x => x.EventArgs); + } +} + +namespace CoreLocation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CLLocationManagerEvents Events(this global::CoreLocation.CLLocationManager item) => new CLLocationManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CLLocationManagerEvents + { + private readonly global::CoreLocation.CLLocationManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CLLocationManagerEvents(global::CoreLocation.CLLocationManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AuthorizationChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLAuthorizationChangedEventArgs>(x => _data.AuthorizationChanged += x, x => _data.AuthorizationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Failed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.Failed += x, x => _data.Failed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationsUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLLocationsUpdatedEventArgs>(x => _data.LocationsUpdated += x, x => _data.LocationsUpdated -= x).Select(x => x.EventArgs); + } +} + +namespace ExternalAccessory +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EAAccessoryEvents Events(this global::ExternalAccessory.EAAccessory item) => new EAAccessoryEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EAAccessoryEvents + { + private readonly global::ExternalAccessory.EAAccessory _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EAAccessoryEvents(global::ExternalAccessory.EAAccessory data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Disconnected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Disconnected += x, x => _data.Disconnected -= x).Select(x => x.EventArgs); + } +} + +namespace Foundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSCacheEvents Events(this global::Foundation.NSCache item) => new NSCacheEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSKeyedArchiverEvents Events(this global::Foundation.NSKeyedArchiver item) => new NSKeyedArchiverEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSKeyedUnarchiverEvents Events(this global::Foundation.NSKeyedUnarchiver item) => new NSKeyedUnarchiverEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSNetServiceEvents Events(this global::Foundation.NSNetService item) => new NSNetServiceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSNetServiceBrowserEvents Events(this global::Foundation.NSNetServiceBrowser item) => new NSNetServiceBrowserEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSStreamEvents Events(this global::Foundation.NSStream item) => new NSStreamEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSCacheEvents + { + private readonly global::Foundation.NSCache _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSCacheEvents(global::Foundation.NSCache data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEvictObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSObjectEventArgs>(x => _data.WillEvictObject += x, x => _data.WillEvictObject -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSKeyedArchiverEvents + { + private readonly global::Foundation.NSKeyedArchiver _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSKeyedArchiverEvents(global::Foundation.NSKeyedArchiver data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EncodedObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSObjectEventArgs>(x => _data.EncodedObject += x, x => _data.EncodedObject -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finishing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finishing += x, x => _data.Finishing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReplacingObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSArchiveReplaceEventArgs>(x => _data.ReplacingObject += x, x => _data.ReplacingObject -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSKeyedUnarchiverEvents + { + private readonly global::Foundation.NSKeyedUnarchiver _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSKeyedUnarchiverEvents(global::Foundation.NSKeyedUnarchiver data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finishing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finishing += x, x => _data.Finishing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReplacingObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSArchiveReplaceEventArgs>(x => _data.ReplacingObject += x, x => _data.ReplacingObject -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSNetServiceEvents + { + private readonly global::Foundation.NSNetService _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSNetServiceEvents(global::Foundation.NSNetService data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AddressResolved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AddressResolved += x, x => _data.AddressResolved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAcceptConnection => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceConnectionEventArgs>(x => _data.DidAcceptConnection += x, x => _data.DidAcceptConnection -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Published => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Published += x, x => _data.Published -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PublishFailure => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceErrorEventArgs>(x => _data.PublishFailure += x, x => _data.PublishFailure -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ResolveFailure => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceErrorEventArgs>(x => _data.ResolveFailure += x, x => _data.ResolveFailure -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Stopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Stopped += x, x => _data.Stopped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedTxtRecordData => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceDataEventArgs>(x => _data.UpdatedTxtRecordData += x, x => _data.UpdatedTxtRecordData -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPublish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillPublish += x, x => _data.WillPublish -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillResolve => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillResolve += x, x => _data.WillResolve -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSNetServiceBrowserEvents + { + private readonly global::Foundation.NSNetServiceBrowser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSNetServiceBrowserEvents(global::Foundation.NSNetServiceBrowser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DomainRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetDomainEventArgs>(x => _data.DomainRemoved += x, x => _data.DomainRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FoundDomain => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetDomainEventArgs>(x => _data.FoundDomain += x, x => _data.FoundDomain -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FoundService => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceEventArgs>(x => _data.FoundService += x, x => _data.FoundService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NotSearched => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceErrorEventArgs>(x => _data.NotSearched += x, x => _data.NotSearched -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchStarted += x, x => _data.SearchStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchStopped += x, x => _data.SearchStopped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ServiceRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceEventArgs>(x => _data.ServiceRemoved += x, x => _data.ServiceRemoved -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSStreamEvents + { + private readonly global::Foundation.NSStream _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSStreamEvents(global::Foundation.NSStream data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSStreamEventArgs>(x => _data.OnEvent += x, x => _data.OnEvent -= x).Select(x => x.EventArgs); + } +} + +namespace GameKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKGameCenterViewControllerEvents Events(this global::GameKit.GKGameCenterViewController item) => new GKGameCenterViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKMatchEvents Events(this global::GameKit.GKMatch item) => new GKMatchEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKMatchmakerViewControllerEvents Events(this global::GameKit.GKMatchmakerViewController item) => new GKMatchmakerViewControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKGameCenterViewControllerEvents + { + private readonly global::GameKit.GKGameCenterViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKGameCenterViewControllerEvents(global::GameKit.GKGameCenterViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKMatchEvents + { + private readonly global::GameKit.GKMatch _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKMatchEvents(global::GameKit.GKMatch data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataReceivedForRecipient => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKDataReceivedForRecipientEventArgs>(x => _data.DataReceivedForRecipient += x, x => _data.DataReceivedForRecipient -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataReceivedFromPlayer => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchReceivedDataFromRemotePlayerEventArgs>(x => _data.DataReceivedFromPlayer += x, x => _data.DataReceivedFromPlayer -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Failed => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKErrorEventArgs>(x => _data.Failed += x, x => _data.Failed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StateChangedForPlayer => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchConnectionChangedEventArgs>(x => _data.StateChangedForPlayer += x, x => _data.StateChangedForPlayer -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKMatchmakerViewControllerEvents + { + private readonly global::GameKit.GKMatchmakerViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKMatchmakerViewControllerEvents(global::GameKit.GKMatchmakerViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailWithError => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKErrorEventArgs>(x => _data.DidFailWithError += x, x => _data.DidFailWithError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindHostedPlayers => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchmakingPlayersEventArgs>(x => _data.DidFindHostedPlayers += x, x => _data.DidFindHostedPlayers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindMatch => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchEventArgs>(x => _data.DidFindMatch += x, x => _data.DidFindMatch -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HostedPlayerDidAccept => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchmakingPlayerEventArgs>(x => _data.HostedPlayerDidAccept += x, x => _data.HostedPlayerDidAccept -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WasCancelled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WasCancelled += x, x => _data.WasCancelled -= x).Select(x => x.EventArgs); + } +} + +namespace GLKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GLKViewEvents Events(this global::GLKit.GLKView item) => new GLKViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GLKViewEvents + { + private readonly global::GLKit.GLKView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GLKViewEvents(global::GLKit.GLKView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawInRect => global::System.Reactive.Linq.Observable.FromEventPattern, global::GLKit.GLKViewDrawEventArgs>(x => _data.DrawInRect += x, x => _data.DrawInRect -= x).Select(x => x.EventArgs); + } +} + +namespace HomeKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HMAccessoryEvents Events(this global::HomeKit.HMAccessory item) => new HMAccessoryEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HMHomeEvents Events(this global::HomeKit.HMHome item) => new HMHomeEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HMHomeManagerEvents Events(this global::HomeKit.HMHomeManager item) => new HMHomeManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HMAccessoryEvents + { + private readonly global::HomeKit.HMAccessory _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HMAccessoryEvents(global::HomeKit.HMAccessory data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddProfile => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryProfileEventArgs>(x => _data.DidAddProfile += x, x => _data.DidAddProfile -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveProfile => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryProfileEventArgs>(x => _data.DidRemoveProfile += x, x => _data.DidRemoveProfile -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateAssociatedServiceType => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryUpdateEventArgs>(x => _data.DidUpdateAssociatedServiceType += x, x => _data.DidUpdateAssociatedServiceType -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateFirmwareVersion => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryFirmwareVersionEventArgs>(x => _data.DidUpdateFirmwareVersion += x, x => _data.DidUpdateFirmwareVersion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateName => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateName += x, x => _data.DidUpdateName -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForService => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryUpdateEventArgs>(x => _data.DidUpdateNameForService += x, x => _data.DidUpdateNameForService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateReachability => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateReachability += x, x => _data.DidUpdateReachability -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateServices => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateServices += x, x => _data.DidUpdateServices -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateValueForCharacteristic => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryServiceUpdateCharacteristicEventArgs>(x => _data.DidUpdateValueForCharacteristic += x, x => _data.DidUpdateValueForCharacteristic -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HMHomeEvents + { + private readonly global::HomeKit.HMHome _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HMHomeEvents(global::HomeKit.HMHome data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddAccessory => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeAccessoryEventArgs>(x => _data.DidAddAccessory += x, x => _data.DidAddAccessory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddActionSet => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeActionSetEventArgs>(x => _data.DidAddActionSet += x, x => _data.DidAddActionSet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddRoom => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomEventArgs>(x => _data.DidAddRoom += x, x => _data.DidAddRoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddRoomToZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomZoneEventArgs>(x => _data.DidAddRoomToZone += x, x => _data.DidAddRoomToZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddService => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceServiceGroupEventArgs>(x => _data.DidAddService += x, x => _data.DidAddService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddServiceGroup => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceGroupEventArgs>(x => _data.DidAddServiceGroup += x, x => _data.DidAddServiceGroup -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddTrigger => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeTriggerEventArgs>(x => _data.DidAddTrigger += x, x => _data.DidAddTrigger -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddUser => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeUserEventArgs>(x => _data.DidAddUser += x, x => _data.DidAddUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeZoneEventArgs>(x => _data.DidAddZone += x, x => _data.DidAddZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEncounterError => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeErrorAccessoryEventArgs>(x => _data.DidEncounterError += x, x => _data.DidEncounterError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveAccessory => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeAccessoryEventArgs>(x => _data.DidRemoveAccessory += x, x => _data.DidRemoveAccessory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveActionSet => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeActionSetEventArgs>(x => _data.DidRemoveActionSet += x, x => _data.DidRemoveActionSet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveRoom => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomEventArgs>(x => _data.DidRemoveRoom += x, x => _data.DidRemoveRoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveRoomFromZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomZoneEventArgs>(x => _data.DidRemoveRoomFromZone += x, x => _data.DidRemoveRoomFromZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveService => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceServiceGroupEventArgs>(x => _data.DidRemoveService += x, x => _data.DidRemoveService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveServiceGroup => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceGroupEventArgs>(x => _data.DidRemoveServiceGroup += x, x => _data.DidRemoveServiceGroup -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveTrigger => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeTriggerEventArgs>(x => _data.DidRemoveTrigger += x, x => _data.DidRemoveTrigger -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveUser => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeUserEventArgs>(x => _data.DidRemoveUser += x, x => _data.DidRemoveUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeZoneEventArgs>(x => _data.DidRemoveZone += x, x => _data.DidRemoveZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUnblockAccessory => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeAccessoryEventArgs>(x => _data.DidUnblockAccessory += x, x => _data.DidUnblockAccessory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateAccessControlForCurrentUser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateAccessControlForCurrentUser += x, x => _data.DidUpdateAccessControlForCurrentUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateActionsForActionSet => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeActionSetEventArgs>(x => _data.DidUpdateActionsForActionSet += x, x => _data.DidUpdateActionsForActionSet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateHomeHubState => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeHubStateEventArgs>(x => _data.DidUpdateHomeHubState += x, x => _data.DidUpdateHomeHubState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForActionSet => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeActionSetEventArgs>(x => _data.DidUpdateNameForActionSet += x, x => _data.DidUpdateNameForActionSet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForHome => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateNameForHome += x, x => _data.DidUpdateNameForHome -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForRoom => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomEventArgs>(x => _data.DidUpdateNameForRoom += x, x => _data.DidUpdateNameForRoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForServiceGroup => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceGroupEventArgs>(x => _data.DidUpdateNameForServiceGroup += x, x => _data.DidUpdateNameForServiceGroup -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForTrigger => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeTriggerEventArgs>(x => _data.DidUpdateNameForTrigger += x, x => _data.DidUpdateNameForTrigger -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeZoneEventArgs>(x => _data.DidUpdateNameForZone += x, x => _data.DidUpdateNameForZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateRoom => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomAccessoryEventArgs>(x => _data.DidUpdateRoom += x, x => _data.DidUpdateRoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateTrigger => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeTriggerEventArgs>(x => _data.DidUpdateTrigger += x, x => _data.DidUpdateTrigger -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HMHomeManagerEvents + { + private readonly global::HomeKit.HMHomeManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HMHomeManagerEvents(global::HomeKit.HMHomeManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddHome => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeManagerEventArgs>(x => _data.DidAddHome += x, x => _data.DidAddHome -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveHome => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeManagerEventArgs>(x => _data.DidRemoveHome += x, x => _data.DidRemoveHome -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateHomes => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateHomes += x, x => _data.DidUpdateHomes -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdatePrimaryHome => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdatePrimaryHome += x, x => _data.DidUpdatePrimaryHome -= x).Select(x => x.EventArgs); + } +} + +namespace MapKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MKMapViewEvents Events(this global::MapKit.MKMapView item) => new MKMapViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MKMapViewEvents + { + private readonly global::MapKit.MKMapView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MKMapViewEvents(global::MapKit.MKMapView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddAnnotationViews => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewAnnotationEventArgs>(x => _data.DidAddAnnotationViews += x, x => _data.DidAddAnnotationViews -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddOverlayRenderers => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKDidAddOverlayRenderersEventArgs>(x => _data.DidAddOverlayRenderers += x, x => _data.DidAddOverlayRenderers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeUserTrackingMode => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MMapViewUserTrackingEventArgs>(x => _data.DidChangeUserTrackingMode += x, x => _data.DidChangeUserTrackingMode -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeVisibleRegion => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeVisibleRegion += x, x => _data.DidChangeVisibleRegion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDeselectAnnotationView => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKAnnotationViewEventArgs>(x => _data.DidDeselectAnnotationView += x, x => _data.DidDeselectAnnotationView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailToLocateUser => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.DidFailToLocateUser += x, x => _data.DidFailToLocateUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishRenderingMap => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKDidFinishRenderingMapEventArgs>(x => _data.DidFinishRenderingMap += x, x => _data.DidFinishRenderingMap -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectAnnotationView => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKAnnotationViewEventArgs>(x => _data.DidSelectAnnotationView += x, x => _data.DidSelectAnnotationView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidStopLocatingUser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidStopLocatingUser += x, x => _data.DidStopLocatingUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateUserLocation => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKUserLocationEventArgs>(x => _data.DidUpdateUserLocation += x, x => _data.DidUpdateUserLocation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadingMapFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.LoadingMapFailed += x, x => _data.LoadingMapFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MapLoaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MapLoaded += x, x => _data.MapLoaded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewChangeEventArgs>(x => _data.RegionChanged += x, x => _data.RegionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionWillChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewChangeEventArgs>(x => _data.RegionWillChange += x, x => _data.RegionWillChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartLoadingMap => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartLoadingMap += x, x => _data.WillStartLoadingMap -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartLocatingUser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartLocatingUser += x, x => _data.WillStartLocatingUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartRenderingMap => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartRenderingMap += x, x => _data.WillStartRenderingMap -= x).Select(x => x.EventArgs); + } +} + +namespace SceneKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SCNPhysicsWorldEvents Events(this global::SceneKit.SCNPhysicsWorld item) => new SCNPhysicsWorldEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SCNPhysicsWorldEvents + { + private readonly global::SceneKit.SCNPhysicsWorld _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SCNPhysicsWorldEvents(global::SceneKit.SCNPhysicsWorld data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBeginContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::SceneKit.SCNPhysicsContactEventArgs>(x => _data.DidBeginContact += x, x => _data.DidBeginContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::SceneKit.SCNPhysicsContactEventArgs>(x => _data.DidEndContact += x, x => _data.DidEndContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::SceneKit.SCNPhysicsContactEventArgs>(x => _data.DidUpdateContact += x, x => _data.DidUpdateContact -= x).Select(x => x.EventArgs); + } +} + +namespace SpriteKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKPhysicsWorldEvents Events(this global::SpriteKit.SKPhysicsWorld item) => new SKPhysicsWorldEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKPhysicsWorldEvents + { + private readonly global::SpriteKit.SKPhysicsWorld _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKPhysicsWorldEvents(global::SpriteKit.SKPhysicsWorld data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBeginContact => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidBeginContact += x, x => _data.DidBeginContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndContact => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidEndContact += x, x => _data.DidEndContact -= x).Select(x => x.EventArgs); + } +} + +namespace StoreKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKProductsRequestEvents Events(this global::StoreKit.SKProductsRequest item) => new SKProductsRequestEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKRequestEvents Events(this global::StoreKit.SKRequest item) => new SKRequestEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKProductsRequestEvents + { + private readonly global::StoreKit.SKProductsRequest _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKProductsRequestEvents(global::StoreKit.SKProductsRequest data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceivedResponse => global::System.Reactive.Linq.Observable.FromEventPattern, global::StoreKit.SKProductsRequestResponseEventArgs>(x => _data.ReceivedResponse += x, x => _data.ReceivedResponse -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKRequestEvents + { + private readonly global::StoreKit.SKRequest _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKRequestEvents(global::StoreKit.SKRequest data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RequestFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::StoreKit.SKRequestErrorEventArgs>(x => _data.RequestFailed += x, x => _data.RequestFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RequestFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RequestFinished += x, x => _data.RequestFinished -= x).Select(x => x.EventArgs); + } +} + +namespace UIKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSTextStorageEvents Events(this global::UIKit.NSTextStorage item) => new NSTextStorageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIBarButtonItemEvents Events(this global::UIKit.UIBarButtonItem item) => new UIBarButtonItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UICollisionBehaviorEvents Events(this global::UIKit.UICollisionBehavior item) => new UICollisionBehaviorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIControlEvents Events(this global::UIKit.UIControl item) => new UIControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIPageViewControllerEvents Events(this global::UIKit.UIPageViewController item) => new UIPageViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIPopoverControllerEvents Events(this global::UIKit.UIPopoverController item) => new UIPopoverControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIScrollViewEvents Events(this global::UIKit.UIScrollView item) => new UIScrollViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UISearchBarEvents Events(this global::UIKit.UISearchBar item) => new UISearchBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UISplitViewControllerEvents Events(this global::UIKit.UISplitViewController item) => new UISplitViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UITabBarEvents Events(this global::UIKit.UITabBar item) => new UITabBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UITabBarControllerEvents Events(this global::UIKit.UITabBarController item) => new UITabBarControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UITextFieldEvents Events(this global::UIKit.UITextField item) => new UITextFieldEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UITextViewEvents Events(this global::UIKit.UITextView item) => new UITextViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSTextStorageEvents + { + private readonly global::UIKit.NSTextStorage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSTextStorageEvents(global::UIKit.NSTextStorage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidProcessEditing => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.NSTextStorageEventArgs>(x => _data.DidProcessEditing += x, x => _data.DidProcessEditing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillProcessEditing => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.NSTextStorageEventArgs>(x => _data.WillProcessEditing += x, x => _data.WillProcessEditing -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIBarButtonItemEvents + { + private readonly global::UIKit.UIBarButtonItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIBarButtonItemEvents(global::UIKit.UIBarButtonItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Clicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Clicked += x, x => _data.Clicked -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UICollisionBehaviorEvents + { + private readonly global::UIKit.UICollisionBehavior _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UICollisionBehaviorEvents(global::UIKit.UICollisionBehavior data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeganBoundaryContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UICollisionBeganBoundaryContactEventArgs>(x => _data.BeganBoundaryContact += x, x => _data.BeganBoundaryContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeganContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UICollisionBeganContactEventArgs>(x => _data.BeganContact += x, x => _data.BeganContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndedBoundaryContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UICollisionEndedBoundaryContactEventArgs>(x => _data.EndedBoundaryContact += x, x => _data.EndedBoundaryContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndedContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UICollisionEndedContactEventArgs>(x => _data.EndedContact += x, x => _data.EndedContact -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIControlEvents + { + private readonly global::UIKit.UIControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIControlEvents(global::UIKit.UIControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllEditingEvents => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllEditingEvents += x, x => _data.AllEditingEvents -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllEvents => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllEvents += x, x => _data.AllEvents -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllTouchEvents => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllTouchEvents += x, x => _data.AllTouchEvents -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingChanged += x, x => _data.EditingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingDidBegin => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingDidBegin += x, x => _data.EditingDidBegin -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingDidEnd => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingDidEnd += x, x => _data.EditingDidEnd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingDidEndOnExit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingDidEndOnExit += x, x => _data.EditingDidEndOnExit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PrimaryActionTriggered => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PrimaryActionTriggered += x, x => _data.PrimaryActionTriggered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchCancel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchCancel += x, x => _data.TouchCancel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDown += x, x => _data.TouchDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDownRepeat => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDownRepeat += x, x => _data.TouchDownRepeat -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDragEnter += x, x => _data.TouchDragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDragExit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDragExit += x, x => _data.TouchDragExit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDragInside => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDragInside += x, x => _data.TouchDragInside -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDragOutside => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDragOutside += x, x => _data.TouchDragOutside -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchUpInside => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchUpInside += x, x => _data.TouchUpInside -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchUpOutside => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchUpOutside += x, x => _data.TouchUpOutside -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ValueChanged += x, x => _data.ValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIPageViewControllerEvents + { + private readonly global::UIKit.UIPageViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIPageViewControllerEvents(global::UIKit.UIPageViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishAnimating => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIPageViewFinishedAnimationEventArgs>(x => _data.DidFinishAnimating += x, x => _data.DidFinishAnimating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillTransition => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIPageViewControllerTransitionEventArgs>(x => _data.WillTransition += x, x => _data.WillTransition -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIPopoverControllerEvents + { + private readonly global::UIKit.UIPopoverController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIPopoverControllerEvents(global::UIKit.UIPopoverController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDismiss => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidDismiss += x, x => _data.DidDismiss -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillReposition => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIPopoverControllerRepositionEventArgs>(x => _data.WillReposition += x, x => _data.WillReposition -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIScrollViewEvents + { + private readonly global::UIKit.UIScrollView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIScrollViewEvents(global::UIKit.UIScrollView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecelerationEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DecelerationEnded += x, x => _data.DecelerationEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecelerationStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DecelerationStarted += x, x => _data.DecelerationStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeAdjustedContentInset => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeAdjustedContentInset += x, x => _data.DidChangeAdjustedContentInset -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidZoom => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidZoom += x, x => _data.DidZoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DraggingEnded => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.DraggingEventArgs>(x => _data.DraggingEnded += x, x => _data.DraggingEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DraggingStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DraggingStarted += x, x => _data.DraggingStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrollAnimationEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScrollAnimationEnded += x, x => _data.ScrollAnimationEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scrolled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scrolled += x, x => _data.Scrolled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrolledToTop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScrolledToTop += x, x => _data.ScrolledToTop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEndDragging => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.WillEndDraggingEventArgs>(x => _data.WillEndDragging += x, x => _data.WillEndDragging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ZoomingEnded => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.ZoomingEndedEventArgs>(x => _data.ZoomingEnded += x, x => _data.ZoomingEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ZoomingStarted => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIScrollViewZoomingEventArgs>(x => _data.ZoomingStarted += x, x => _data.ZoomingStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UISearchBarEvents + { + private readonly global::UIKit.UISearchBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UISearchBarEvents(global::UIKit.UISearchBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnEditingStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OnEditingStarted += x, x => _data.OnEditingStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnEditingStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OnEditingStopped += x, x => _data.OnEditingStopped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchButtonClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchButtonClicked += x, x => _data.SearchButtonClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedScopeButtonIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UISearchBarButtonIndexEventArgs>(x => _data.SelectedScopeButtonIndexChanged += x, x => _data.SelectedScopeButtonIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UISearchBarTextChangedEventArgs>(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UISplitViewControllerEvents + { + private readonly global::UIKit.UISplitViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UISplitViewControllerEvents(global::UIKit.UISplitViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillChangeDisplayMode => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UISplitViewControllerDisplayModeEventArgs>(x => _data.WillChangeDisplayMode += x, x => _data.WillChangeDisplayMode -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UITabBarEvents + { + private readonly global::UIKit.UITabBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UITabBarEvents(global::UIKit.UITabBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarItemEventArgs>(x => _data.ItemSelected += x, x => _data.ItemSelected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UITabBarControllerEvents + { + private readonly global::UIKit.UITabBarController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UITabBarControllerEvents(global::UIKit.UITabBarController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ViewControllerSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarSelectionEventArgs>(x => _data.ViewControllerSelected += x, x => _data.ViewControllerSelected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UITextFieldEvents + { + private readonly global::UIKit.UITextField _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UITextFieldEvents(global::UIKit.UITextField data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Ended => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Ended += x, x => _data.Ended -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndedWithReason => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITextFieldEditingEndedEventArgs>(x => _data.EndedWithReason += x, x => _data.EndedWithReason -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Started => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Started += x, x => _data.Started -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UITextViewEvents + { + private readonly global::UIKit.UITextView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UITextViewEvents(global::UIKit.UITextView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Changed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Changed += x, x => _data.Changed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Ended => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Ended += x, x => _data.Ended -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Started => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Started += x, x => _data.Started -= x).Select(x => x.EventArgs); + } +} + +namespace ObjCRuntime +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RuntimeMarshalManagedException => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::ObjCRuntime.Runtime.MarshalManagedException += x, x => global::ObjCRuntime.Runtime.MarshalManagedException -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RuntimeMarshalObjectiveCException => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::ObjCRuntime.Runtime.MarshalObjectiveCException += x, x => global::ObjCRuntime.Runtime.MarshalObjectiveCException -= x).Select(x => x.EventArgs); + } +} + +namespace UIKit +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable UIViewAnimationWillEnd => global::System.Reactive.Linq.Observable.FromEvent(x => global::UIKit.UIView.AnimationWillEnd += x, x => global::UIKit.UIView.AnimationWillEnd -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable UIViewAnimationWillStart => global::System.Reactive.Linq.Observable.FromEvent(x => global::UIKit.UIView.AnimationWillStart += x, x => global::UIKit.UIView.AnimationWillStart -= x); + } +} + +namespace AVFoundation +{ + [global::System.ObsoleteAttribute("Removed in tvOS 10.", false)] + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVAssetDownloadDelegateRx : global::AVFoundation.AVAssetDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> _didCompleteWithError = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> _didFinishCollectingMetrics = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::Foundation.NSUrl location)> _didFinishDownloadingToUrl = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::Foundation.NSUrl location)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::CoreMedia.CMTimeRange timeRange, global::Foundation.NSValue[] loadedTimeRanges, global::CoreMedia.CMTimeRange timeRangeExpectedToLoad)> _didLoadTimeRange = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::CoreMedia.CMTimeRange timeRange, global::Foundation.NSValue[] loadedTimeRanges, global::CoreMedia.CMTimeRange timeRangeExpectedToLoad)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::AVFoundation.AVMediaSelection resolvedMediaSelection)> _didResolveMediaSelection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::AVFoundation.AVMediaSelection resolvedMediaSelection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> _didSendBodyData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> _needNewBodyStream = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> _willPerformHttpRedirection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> DidCompleteWithErrorObs => _didCompleteWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> DidFinishCollectingMetricsObs => _didFinishCollectingMetrics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::Foundation.NSUrl location)> DidFinishDownloadingToUrlObs => _didFinishDownloadingToUrl; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::CoreMedia.CMTimeRange timeRange, global::Foundation.NSValue[] loadedTimeRanges, global::CoreMedia.CMTimeRange timeRangeExpectedToLoad)> DidLoadTimeRangeObs => _didLoadTimeRange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveChallengeObs => _didReceiveChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::AVFoundation.AVMediaSelection resolvedMediaSelection)> DidResolveMediaSelectionObs => _didResolveMediaSelection; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> DidSendBodyDataObs => _didSendBodyData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> NeedNewBodyStreamObs => _needNewBodyStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> WillPerformHttpRedirectionObs => _willPerformHttpRedirection; + /// + public override void DidCompleteWithError(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error) => _didCompleteWithError.OnNext((session, task, error)); + /// + public override void DidFinishCollectingMetrics(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics) => _didFinishCollectingMetrics.OnNext((session, task, metrics)); + /// + public override void DidFinishDownloadingToUrl(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::Foundation.NSUrl location) => _didFinishDownloadingToUrl.OnNext((session, assetDownloadTask, location)); + /// + public override void DidLoadTimeRange(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::CoreMedia.CMTimeRange timeRange, global::Foundation.NSValue[] loadedTimeRanges, global::CoreMedia.CMTimeRange timeRangeExpectedToLoad) => _didLoadTimeRange.OnNext((session, assetDownloadTask, timeRange, loadedTimeRanges, timeRangeExpectedToLoad)); + /// + public override void DidReceiveChallenge(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveChallenge.OnNext((session, task, challenge, completionHandler)); + /// + public override void DidResolveMediaSelection(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::AVFoundation.AVMediaSelection resolvedMediaSelection) => _didResolveMediaSelection.OnNext((session, assetDownloadTask, resolvedMediaSelection)); + /// + public override void DidSendBodyData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend) => _didSendBodyData.OnNext((session, task, bytesSent, totalBytesSent, totalBytesExpectedToSend)); + /// + public override void NeedNewBodyStream(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler) => _needNewBodyStream.OnNext((session, task, completionHandler)); + /// + public override void WillPerformHttpRedirection(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler) => _willPerformHttpRedirection.OnNext((session, task, response, newRequest, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVAssetResourceLoaderDelegateRx : global::AVFoundation.AVAssetResourceLoaderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge)> _didCancelAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest)> _didCancelLoadingRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge)> DidCancelAuthenticationChallengeObs => _didCancelAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest)> DidCancelLoadingRequestObs => _didCancelLoadingRequest; + /// + public override void DidCancelAuthenticationChallenge(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge) => _didCancelAuthenticationChallenge.OnNext((resourceLoader, authenticationChallenge)); + /// + public override void DidCancelLoadingRequest(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest) => _didCancelLoadingRequest.OnNext((resourceLoader, loadingRequest)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVAudioPlayerDelegateRx : global::AVFoundation.AVAudioPlayerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _beginInterruption = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error)> _decoderError = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::AVFoundation.AVAudioSessionInterruptionFlags flags)> _endInterruption = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::AVFoundation.AVAudioSessionInterruptionFlags flags)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, bool flag)> _finishedPlaying = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, bool flag)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable BeginInterruptionObs => _beginInterruption; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error)> DecoderErrorObs => _decoderError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioPlayer player, global::AVFoundation.AVAudioSessionInterruptionFlags flags)> EndInterruptionObs => _endInterruption; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioPlayer player, bool flag)> FinishedPlayingObs => _finishedPlaying; + /// + public override void BeginInterruption(global::AVFoundation.AVAudioPlayer player) => _beginInterruption.OnNext(player); + /// + public override void DecoderError(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error) => _decoderError.OnNext((player, error)); + /// + public override void EndInterruption(global::AVFoundation.AVAudioPlayer player, global::AVFoundation.AVAudioSessionInterruptionFlags flags) => _endInterruption.OnNext((player, flags)); + /// + public override void FinishedPlaying(global::AVFoundation.AVAudioPlayer player, bool flag) => _finishedPlaying.OnNext((player, flag)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVContentKeySessionDelegateRx : global::AVFoundation.AVContentKeySessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didGenerateExpiredSessionReport = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> _didProvideContentKeyRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest)> _didProvidePersistableContentKeyRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> _didProvideRenewingContentKeyRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> _didSucceed = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeObs => _didChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidGenerateExpiredSessionReportObs => _didGenerateExpiredSessionReport; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> DidProvideContentKeyRequestObs => _didProvideContentKeyRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest)> DidProvidePersistableContentKeyRequestObs => _didProvidePersistableContentKeyRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> DidProvideRenewingContentKeyRequestObs => _didProvideRenewingContentKeyRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> DidSucceedObs => _didSucceed; + /// + public override void DidChange(global::AVFoundation.AVContentKeySession session) => _didChange.OnNext(session); + /// + public override void DidFail(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err) => _didFail.OnNext((session, keyRequest, err)); + /// + public override void DidGenerateExpiredSessionReport(global::AVFoundation.AVContentKeySession session) => _didGenerateExpiredSessionReport.OnNext(session); + /// + public override void DidProvideContentKeyRequest(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest) => _didProvideContentKeyRequest.OnNext((session, keyRequest)); + /// + public override void DidProvidePersistableContentKeyRequest(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest) => _didProvidePersistableContentKeyRequest.OnNext((session, keyRequest)); + /// + public override void DidProvideRenewingContentKeyRequest(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest) => _didProvideRenewingContentKeyRequest.OnNext((session, keyRequest)); + /// + public override void DidSucceed(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest) => _didSucceed.OnNext((session, keyRequest)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVPlayerItemMetadataCollectorPushDelegateRx : global::AVFoundation.AVPlayerItemMetadataCollectorPushDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups)> _didCollectDateRange = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups)> DidCollectDateRangeObs => _didCollectDateRange; + /// + public override void DidCollectDateRange(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups) => _didCollectDateRange.OnNext((metadataCollector, metadataGroups, indexesOfNewGroups, indexesOfModifiedGroups)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerItemMetadataOutputPushDelegateRx : global::AVFoundation.AVPlayerItemMetadataOutputPushDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track)> _didOutputTimedMetadataGroups = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _outputSequenceWasFlushed = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track)> DidOutputTimedMetadataGroupsObs => _didOutputTimedMetadataGroups; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputSequenceWasFlushedObs => _outputSequenceWasFlushed; + /// + public override void DidOutputTimedMetadataGroups(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track) => _didOutputTimedMetadataGroups.OnNext((output, groups, track)); + /// + public override void OutputSequenceWasFlushed(global::AVFoundation.AVPlayerItemOutput output) => _outputSequenceWasFlushed.OnNext(output); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerItemOutputPullDelegateRx : global::AVFoundation.AVPlayerItemOutputPullDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _outputMediaDataWillChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _outputSequenceWasFlushed = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputMediaDataWillChangeObs => _outputMediaDataWillChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputSequenceWasFlushedObs => _outputSequenceWasFlushed; + /// + public override void OutputMediaDataWillChange(global::AVFoundation.AVPlayerItemOutput sender) => _outputMediaDataWillChange.OnNext(sender); + /// + public override void OutputSequenceWasFlushed(global::AVFoundation.AVPlayerItemOutput output) => _outputSequenceWasFlushed.OnNext(output); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerItemOutputPushDelegateRx : global::AVFoundation.AVPlayerItemOutputPushDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _outputSequenceWasFlushed = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputSequenceWasFlushedObs => _outputSequenceWasFlushed; + /// + public override void OutputSequenceWasFlushed(global::AVFoundation.AVPlayerItemOutput output) => _outputSequenceWasFlushed.OnNext(output); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVSpeechSynthesizerDelegateRx : global::AVFoundation.AVSpeechSynthesizerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didCancelSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didContinueSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didFinishSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didPauseSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didStartSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::Foundation.NSRange characterRange, global::AVFoundation.AVSpeechUtterance utterance)> _willSpeakRangeOfSpeechString = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::Foundation.NSRange characterRange, global::AVFoundation.AVSpeechUtterance utterance)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidCancelSpeechUtteranceObs => _didCancelSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidContinueSpeechUtteranceObs => _didContinueSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidFinishSpeechUtteranceObs => _didFinishSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidPauseSpeechUtteranceObs => _didPauseSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidStartSpeechUtteranceObs => _didStartSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::Foundation.NSRange characterRange, global::AVFoundation.AVSpeechUtterance utterance)> WillSpeakRangeOfSpeechStringObs => _willSpeakRangeOfSpeechString; + /// + public override void DidCancelSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didCancelSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void DidContinueSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didContinueSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void DidFinishSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didFinishSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void DidPauseSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didPauseSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void DidStartSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didStartSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void WillSpeakRangeOfSpeechString(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::Foundation.NSRange characterRange, global::AVFoundation.AVSpeechUtterance utterance) => _willSpeakRangeOfSpeechString.OnNext((synthesizer, characterRange, utterance)); + } +} + +namespace AVKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerViewControllerDelegateRx : global::AVKit.AVPlayerViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVContentProposal proposal)> _didAcceptContentProposal = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVContentProposal proposal)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndDismissalTransition = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVKit.AVInterstitialTimeRange interstitial)> _didPresentInterstitialTimeRange = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVKit.AVInterstitialTimeRange interstitial)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVContentProposal proposal)> _didRejectContentProposal = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVContentProposal proposal)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, string language)> _didSelectExternalSubtitleOptionLanguage = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, string language)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVMediaSelectionOption mediaSelectionOption, global::AVFoundation.AVMediaSelectionGroup mediaSelectionGroup)> _didSelectMediaSelectionOption = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVMediaSelectionOption mediaSelectionOption, global::AVFoundation.AVMediaSelectionGroup mediaSelectionGroup)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _skipToNextItem = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _skipToPreviousItem = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willBeginDismissalTransition = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVKit.AVInterstitialTimeRange interstitial)> _willPresentInterstitialTimeRange = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::AVKit.AVInterstitialTimeRange interstitial)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::CoreMedia.CMTime oldTime, global::CoreMedia.CMTime targetTime)> _willResumePlaybackAfterUserNavigatedFromTime = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::CoreMedia.CMTime oldTime, global::CoreMedia.CMTime targetTime)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, bool visible, global::AVKit.IAVPlayerViewControllerAnimationCoordinator coordinator)> _willTransitionToVisibilityOfTransportBar = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, bool visible, global::AVKit.IAVPlayerViewControllerAnimationCoordinator coordinator)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVContentProposal proposal)> DidAcceptContentProposalObs => _didAcceptContentProposal; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndDismissalTransitionObs => _didEndDismissalTransition; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, global::AVKit.AVInterstitialTimeRange interstitial)> DidPresentInterstitialTimeRangeObs => _didPresentInterstitialTimeRange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVContentProposal proposal)> DidRejectContentProposalObs => _didRejectContentProposal; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, string language)> DidSelectExternalSubtitleOptionLanguageObs => _didSelectExternalSubtitleOptionLanguage; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVMediaSelectionOption mediaSelectionOption, global::AVFoundation.AVMediaSelectionGroup mediaSelectionGroup)> DidSelectMediaSelectionOptionObs => _didSelectMediaSelectionOption; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SkipToNextItemObs => _skipToNextItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SkipToPreviousItemObs => _skipToPreviousItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillBeginDismissalTransitionObs => _willBeginDismissalTransition; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, global::AVKit.AVInterstitialTimeRange interstitial)> WillPresentInterstitialTimeRangeObs => _willPresentInterstitialTimeRange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, global::CoreMedia.CMTime oldTime, global::CoreMedia.CMTime targetTime)> WillResumePlaybackAfterUserNavigatedFromTimeObs => _willResumePlaybackAfterUserNavigatedFromTime; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, bool visible, global::AVKit.IAVPlayerViewControllerAnimationCoordinator coordinator)> WillTransitionToVisibilityOfTransportBarObs => _willTransitionToVisibilityOfTransportBar; + /// + public override void DidAcceptContentProposal(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVContentProposal proposal) => _didAcceptContentProposal.OnNext((playerViewController, proposal)); + /// + public override void DidEndDismissalTransition(global::AVKit.AVPlayerViewController playerViewController) => _didEndDismissalTransition.OnNext(playerViewController); + /// + public override void DidPresentInterstitialTimeRange(global::AVKit.AVPlayerViewController playerViewController, global::AVKit.AVInterstitialTimeRange interstitial) => _didPresentInterstitialTimeRange.OnNext((playerViewController, interstitial)); + /// + public override void DidRejectContentProposal(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVContentProposal proposal) => _didRejectContentProposal.OnNext((playerViewController, proposal)); + /// + public override void DidSelectExternalSubtitleOptionLanguage(global::AVKit.AVPlayerViewController playerViewController, string language) => _didSelectExternalSubtitleOptionLanguage.OnNext((playerViewController, language)); + /// + public override void DidSelectMediaSelectionOption(global::AVKit.AVPlayerViewController playerViewController, global::AVFoundation.AVMediaSelectionOption mediaSelectionOption, global::AVFoundation.AVMediaSelectionGroup mediaSelectionGroup) => _didSelectMediaSelectionOption.OnNext((playerViewController, mediaSelectionOption, mediaSelectionGroup)); + /// + public override void SkipToNextItem(global::AVKit.AVPlayerViewController playerViewController) => _skipToNextItem.OnNext(playerViewController); + /// + public override void SkipToPreviousItem(global::AVKit.AVPlayerViewController playerViewController) => _skipToPreviousItem.OnNext(playerViewController); + /// + public override void WillBeginDismissalTransition(global::AVKit.AVPlayerViewController playerViewController) => _willBeginDismissalTransition.OnNext(playerViewController); + /// + public override void WillPresentInterstitialTimeRange(global::AVKit.AVPlayerViewController playerViewController, global::AVKit.AVInterstitialTimeRange interstitial) => _willPresentInterstitialTimeRange.OnNext((playerViewController, interstitial)); + /// + public override void WillResumePlaybackAfterUserNavigatedFromTime(global::AVKit.AVPlayerViewController playerViewController, global::CoreMedia.CMTime oldTime, global::CoreMedia.CMTime targetTime) => _willResumePlaybackAfterUserNavigatedFromTime.OnNext((playerViewController, oldTime, targetTime)); + /// + public override void WillTransitionToVisibilityOfTransportBar(global::AVKit.AVPlayerViewController playerViewController, bool visible, global::AVKit.IAVPlayerViewControllerAnimationCoordinator coordinator) => _willTransitionToVisibilityOfTransportBar.OnNext((playerViewController, visible, coordinator)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVRoutePickerViewDelegateRx : global::AVKit.AVRoutePickerViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didEndPresentingRoutes = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willBeginPresentingRoutes = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndPresentingRoutesObs => _didEndPresentingRoutes; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillBeginPresentingRoutesObs => _willBeginPresentingRoutes; + /// + public override void DidEndPresentingRoutes(global::AVKit.AVRoutePickerView routePickerView) => _didEndPresentingRoutes.OnNext(routePickerView); + /// + public override void WillBeginPresentingRoutes(global::AVKit.AVRoutePickerView routePickerView) => _willBeginPresentingRoutes.OnNext(routePickerView); + } +} + +namespace CoreAnimation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class CAAnimationDelegateRx : global::CoreAnimation.CAAnimationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _animationStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CAAnimation anim, bool finished)> _animationStopped = new Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CAAnimation anim, bool finished)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AnimationStartedObs => _animationStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreAnimation.CAAnimation anim, bool finished)> AnimationStoppedObs => _animationStopped; + /// + public override void AnimationStarted(global::CoreAnimation.CAAnimation anim) => _animationStarted.OnNext(anim); + /// + public override void AnimationStopped(global::CoreAnimation.CAAnimation anim, bool finished) => _animationStopped.OnNext((anim, finished)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class CALayerDelegateRx : global::CoreAnimation.CALayerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _displayLayer = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context)> _drawLayer = new Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _layoutSublayersOfLayer = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDrawLayer = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DisplayLayerObs => _displayLayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context)> DrawLayerObs => _drawLayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LayoutSublayersOfLayerObs => _layoutSublayersOfLayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDrawLayerObs => _willDrawLayer; + /// + public override void DisplayLayer(global::CoreAnimation.CALayer layer) => _displayLayer.OnNext(layer); + /// + public override void DrawLayer(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context) => _drawLayer.OnNext((layer, context)); + /// + public override void LayoutSublayersOfLayer(global::CoreAnimation.CALayer layer) => _layoutSublayersOfLayer.OnNext(layer); + /// + public override void WillDrawLayer(global::CoreAnimation.CALayer layer) => _willDrawLayer.OnNext(layer); + } +} + +namespace CoreBluetooth +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CBCentralManagerDelegateRx : global::CoreBluetooth.CBCentralManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral)> _connectedPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _disconnectedPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI)> _discoveredPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _failedToConnectPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _updatedState = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict)> _willRestoreState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral)> ConnectedPeripheralObs => _connectedPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> DisconnectedPeripheralObs => _disconnectedPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI)> DiscoveredPeripheralObs => _discoveredPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> FailedToConnectPeripheralObs => _failedToConnectPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UpdatedStateObs => _updatedState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict)> WillRestoreStateObs => _willRestoreState; + /// + public override void ConnectedPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral) => _connectedPeripheral.OnNext((central, peripheral)); + /// + public override void DisconnectedPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _disconnectedPeripheral.OnNext((central, peripheral, error)); + /// + public override void DiscoveredPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI) => _discoveredPeripheral.OnNext((central, peripheral, advertisementData, RSSI)); + /// + public override void FailedToConnectPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _failedToConnectPeripheral.OnNext((central, peripheral, error)); + /// + public override void UpdatedState(global::CoreBluetooth.CBCentralManager central) => _updatedState.OnNext(central); + /// + public override void WillRestoreState(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict) => _willRestoreState.OnNext((central, dict)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class CBPeripheralDelegateRx : global::CoreBluetooth.CBPeripheralDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> _didOpenL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> _discoveredCharacteristic = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _discoveredDescriptor = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> _discoveredIncludedService = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _discoveredService = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _isReadyToSendWriteWithoutResponse = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services)> _modifiedServices = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error)> _rssiRead = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _rssiUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _updatedCharacterteristicValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _updatedName = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _updatedNotificationState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> _updatedValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _wroteCharacteristicValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> _wroteDescriptorValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> DidOpenL2CapChannelObs => _didOpenL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> DiscoveredCharacteristicObs => _discoveredCharacteristic; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> DiscoveredDescriptorObs => _discoveredDescriptor; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> DiscoveredIncludedServiceObs => _discoveredIncludedService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> DiscoveredServiceObs => _discoveredService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable IsReadyToSendWriteWithoutResponseObs => _isReadyToSendWriteWithoutResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services)> ModifiedServicesObs => _modifiedServices; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error)> RssiReadObs => _rssiRead; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> RssiUpdatedObs => _rssiUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> UpdatedCharacterteristicValueObs => _updatedCharacterteristicValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UpdatedNameObs => _updatedName; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> UpdatedNotificationStateObs => _updatedNotificationState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> UpdatedValueObs => _updatedValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> WroteCharacteristicValueObs => _wroteCharacteristicValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> WroteDescriptorValueObs => _wroteDescriptorValue; + /// + public override void DidOpenL2CapChannel(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error) => _didOpenL2CapChannel.OnNext((peripheral, channel, error)); + /// + public override void DiscoveredCharacteristic(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error) => _discoveredCharacteristic.OnNext((peripheral, service, error)); + /// + public override void DiscoveredDescriptor(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _discoveredDescriptor.OnNext((peripheral, characteristic, error)); + /// + public override void DiscoveredIncludedService(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error) => _discoveredIncludedService.OnNext((peripheral, service, error)); + /// + public override void DiscoveredService(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _discoveredService.OnNext((peripheral, error)); + /// + public override void IsReadyToSendWriteWithoutResponse(global::CoreBluetooth.CBPeripheral peripheral) => _isReadyToSendWriteWithoutResponse.OnNext(peripheral); + /// + public override void ModifiedServices(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services) => _modifiedServices.OnNext((peripheral, services)); + /// + public override void RssiRead(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error) => _rssiRead.OnNext((peripheral, rssi, error)); + /// + public override void RssiUpdated(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _rssiUpdated.OnNext((peripheral, error)); + /// + public override void UpdatedCharacterteristicValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _updatedCharacterteristicValue.OnNext((peripheral, characteristic, error)); + /// + public override void UpdatedName(global::CoreBluetooth.CBPeripheral peripheral) => _updatedName.OnNext(peripheral); + /// + public override void UpdatedNotificationState(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _updatedNotificationState.OnNext((peripheral, characteristic, error)); + /// + public override void UpdatedValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error) => _updatedValue.OnNext((peripheral, descriptor, error)); + /// + public override void WroteCharacteristicValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _wroteCharacteristicValue.OnNext((peripheral, characteristic, error)); + /// + public override void WroteDescriptorValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error) => _wroteDescriptorValue.OnNext((peripheral, descriptor, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CBPeripheralManagerDelegateRx : global::CoreBluetooth.CBPeripheralManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error)> _advertisingStarted = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> _characteristicSubscribed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> _characteristicUnsubscribed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> _didOpenL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> _didPublishL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> _didUnpublishL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request)> _readRequestReceived = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _readyToUpdateSubscribers = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> _serviceAdded = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _stateUpdated = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict)> _willRestoreState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests)> _writeRequestsReceived = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error)> AdvertisingStartedObs => _advertisingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> CharacteristicSubscribedObs => _characteristicSubscribed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> CharacteristicUnsubscribedObs => _characteristicUnsubscribed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> DidOpenL2CapChannelObs => _didOpenL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> DidPublishL2CapChannelObs => _didPublishL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> DidUnpublishL2CapChannelObs => _didUnpublishL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request)> ReadRequestReceivedObs => _readRequestReceived; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ReadyToUpdateSubscribersObs => _readyToUpdateSubscribers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> ServiceAddedObs => _serviceAdded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable StateUpdatedObs => _stateUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict)> WillRestoreStateObs => _willRestoreState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests)> WriteRequestsReceivedObs => _writeRequestsReceived; + /// + public override void AdvertisingStarted(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error) => _advertisingStarted.OnNext((peripheral, error)); + /// + public override void CharacteristicSubscribed(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic) => _characteristicSubscribed.OnNext((peripheral, central, characteristic)); + /// + public override void CharacteristicUnsubscribed(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic) => _characteristicUnsubscribed.OnNext((peripheral, central, characteristic)); + /// + public override void DidOpenL2CapChannel(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error) => _didOpenL2CapChannel.OnNext((peripheral, channel, error)); + /// + public override void DidPublishL2CapChannel(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error) => _didPublishL2CapChannel.OnNext((peripheral, psm, error)); + /// + public override void DidUnpublishL2CapChannel(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error) => _didUnpublishL2CapChannel.OnNext((peripheral, psm, error)); + /// + public override void ReadRequestReceived(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request) => _readRequestReceived.OnNext((peripheral, request)); + /// + public override void ReadyToUpdateSubscribers(global::CoreBluetooth.CBPeripheralManager peripheral) => _readyToUpdateSubscribers.OnNext(peripheral); + /// + public override void ServiceAdded(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error) => _serviceAdded.OnNext((peripheral, service, error)); + /// + public override void StateUpdated(global::CoreBluetooth.CBPeripheralManager peripheral) => _stateUpdated.OnNext(peripheral); + /// + public override void WillRestoreState(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict) => _willRestoreState.OnNext((peripheral, dict)); + /// + public override void WriteRequestsReceived(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests) => _writeRequestsReceived.OnNext((peripheral, requests)); + } +} + +namespace CoreData +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSFetchedResultsControllerDelegateRx : global::CoreData.NSFetchedResultsControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeContent = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreData.NSFetchedResultsController controller, global::Foundation.NSObject anObject, global::Foundation.NSIndexPath indexPath, global::CoreData.NSFetchedResultsChangeType type, global::Foundation.NSIndexPath newIndexPath)> _didChangeObject = new Pharmacist.Common.SingleAwaitSubject<(global::CoreData.NSFetchedResultsController controller, global::Foundation.NSObject anObject, global::Foundation.NSIndexPath indexPath, global::CoreData.NSFetchedResultsChangeType type, global::Foundation.NSIndexPath newIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreData.NSFetchedResultsController controller, global::CoreData.INSFetchedResultsSectionInfo sectionInfo, global::System.nuint sectionIndex, global::CoreData.NSFetchedResultsChangeType type)> _didChangeSection = new Pharmacist.Common.SingleAwaitSubject<(global::CoreData.NSFetchedResultsController controller, global::CoreData.INSFetchedResultsSectionInfo sectionInfo, global::System.nuint sectionIndex, global::CoreData.NSFetchedResultsChangeType type)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willChangeContent = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeContentObs => _didChangeContent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreData.NSFetchedResultsController controller, global::Foundation.NSObject anObject, global::Foundation.NSIndexPath indexPath, global::CoreData.NSFetchedResultsChangeType type, global::Foundation.NSIndexPath newIndexPath)> DidChangeObjectObs => _didChangeObject; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreData.NSFetchedResultsController controller, global::CoreData.INSFetchedResultsSectionInfo sectionInfo, global::System.nuint sectionIndex, global::CoreData.NSFetchedResultsChangeType type)> DidChangeSectionObs => _didChangeSection; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillChangeContentObs => _willChangeContent; + /// + public override void DidChangeContent(global::CoreData.NSFetchedResultsController controller) => _didChangeContent.OnNext(controller); + /// + public override void DidChangeObject(global::CoreData.NSFetchedResultsController controller, global::Foundation.NSObject anObject, global::Foundation.NSIndexPath indexPath, global::CoreData.NSFetchedResultsChangeType type, global::Foundation.NSIndexPath newIndexPath) => _didChangeObject.OnNext((controller, anObject, indexPath, type, newIndexPath)); + /// + public override void DidChangeSection(global::CoreData.NSFetchedResultsController controller, global::CoreData.INSFetchedResultsSectionInfo sectionInfo, global::System.nuint sectionIndex, global::CoreData.NSFetchedResultsChangeType type) => _didChangeSection.OnNext((controller, sectionInfo, sectionIndex, type)); + /// + public override void WillChangeContent(global::CoreData.NSFetchedResultsController controller) => _willChangeContent.OnNext(controller); + } +} + +namespace CoreLocation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class CLLocationManagerDelegateRx : global::CoreLocation.CLLocationManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status)> _authorizationChanged = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> _failed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations)> _locationsUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status)> AuthorizationChangedObs => _authorizationChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> FailedObs => _failed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations)> LocationsUpdatedObs => _locationsUpdated; + /// + public override void AuthorizationChanged(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status) => _authorizationChanged.OnNext((manager, status)); + /// + public override void Failed(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error) => _failed.OnNext((manager, error)); + /// + public override void LocationsUpdated(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations) => _locationsUpdated.OnNext((manager, locations)); + } +} + +namespace ExternalAccessory +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class EAAccessoryDelegateRx : global::ExternalAccessory.EAAccessoryDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _disconnected = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DisconnectedObs => _disconnected; + /// + public override void Disconnected(global::ExternalAccessory.EAAccessory accessory) => _disconnected.OnNext(accessory); + } +} + +namespace Foundation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSCacheDelegateRx : global::Foundation.NSCacheDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSCache cache, global::Foundation.NSObject obj)> _willEvictObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSCache cache, global::Foundation.NSObject obj)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSCache cache, global::Foundation.NSObject obj)> WillEvictObjectObs => _willEvictObject; + /// + public override void WillEvictObject(global::Foundation.NSCache cache, global::Foundation.NSObject obj) => _willEvictObject.OnNext((cache, obj)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSKeyedArchiverDelegateRx : global::Foundation.NSKeyedArchiverDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj)> _encodedObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> _replacingObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj)> EncodedObjectObs => _encodedObject; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishingObs => _finishing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> ReplacingObjectObs => _replacingObject; + /// + public override void EncodedObject(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj) => _encodedObject.OnNext((archiver, obj)); + /// + public override void Finished(global::Foundation.NSKeyedArchiver archiver) => _finished.OnNext(archiver); + /// + public override void Finishing(global::Foundation.NSKeyedArchiver archiver) => _finishing.OnNext(archiver); + /// + public override void ReplacingObject(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject) => _replacingObject.OnNext((archiver, oldObject, newObject)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSKeyedUnarchiverDelegateRx : global::Foundation.NSKeyedUnarchiverDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> _replacingObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishingObs => _finishing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> ReplacingObjectObs => _replacingObject; + /// + public override void Finished(global::Foundation.NSKeyedUnarchiver unarchiver) => _finished.OnNext(unarchiver); + /// + public override void Finishing(global::Foundation.NSKeyedUnarchiver unarchiver) => _finishing.OnNext(unarchiver); + /// + public override void ReplacingObject(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject) => _replacingObject.OnNext((unarchiver, oldObject, newObject)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSMachPortDelegateRx : global::Foundation.NSMachPortDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _machMessageReceived = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MachMessageReceivedObs => _machMessageReceived; + /// + public override void MachMessageReceived(global::System.IntPtr msgHeader) => _machMessageReceived.OnNext(msgHeader); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSNetServiceBrowserDelegateRx : global::Foundation.NSNetServiceBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> _domainRemoved = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> _foundDomain = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> _foundService = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors)> _notSearched = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchStopped = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> _serviceRemoved = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> DomainRemovedObs => _domainRemoved; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> FoundDomainObs => _foundDomain; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> FoundServiceObs => _foundService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors)> NotSearchedObs => _notSearched; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchStartedObs => _searchStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchStoppedObs => _searchStopped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> ServiceRemovedObs => _serviceRemoved; + /// + public override void DomainRemoved(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing) => _domainRemoved.OnNext((sender, domain, moreComing)); + /// + public override void FoundDomain(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing) => _foundDomain.OnNext((sender, domain, moreComing)); + /// + public override void FoundService(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing) => _foundService.OnNext((sender, service, moreComing)); + /// + public override void NotSearched(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors) => _notSearched.OnNext((sender, errors)); + /// + public override void SearchStarted(global::Foundation.NSNetServiceBrowser sender) => _searchStarted.OnNext(sender); + /// + public override void SearchStopped(global::Foundation.NSNetServiceBrowser sender) => _searchStopped.OnNext(sender); + /// + public override void ServiceRemoved(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing) => _serviceRemoved.OnNext((sender, service, moreComing)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSNetServiceDelegateRx : global::Foundation.NSNetServiceDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _addressResolved = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> _didAcceptConnection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _published = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> _publishFailure = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> _resolveFailure = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _stopped = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSData data)> _updatedTxtRecordData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPublish = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willResolve = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AddressResolvedObs => _addressResolved; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> DidAcceptConnectionObs => _didAcceptConnection; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PublishedObs => _published; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> PublishFailureObs => _publishFailure; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> ResolveFailureObs => _resolveFailure; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable StoppedObs => _stopped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSData data)> UpdatedTxtRecordDataObs => _updatedTxtRecordData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPublishObs => _willPublish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillResolveObs => _willResolve; + /// + public override void AddressResolved(global::Foundation.NSNetService sender) => _addressResolved.OnNext(sender); + /// + public override void DidAcceptConnection(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream) => _didAcceptConnection.OnNext((sender, inputStream, outputStream)); + /// + public override void Published(global::Foundation.NSNetService sender) => _published.OnNext(sender); + /// + public override void PublishFailure(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors) => _publishFailure.OnNext((sender, errors)); + /// + public override void ResolveFailure(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors) => _resolveFailure.OnNext((sender, errors)); + /// + public override void Stopped(global::Foundation.NSNetService sender) => _stopped.OnNext(sender); + /// + public override void UpdatedTxtRecordData(global::Foundation.NSNetService sender, global::Foundation.NSData data) => _updatedTxtRecordData.OnNext((sender, data)); + /// + public override void WillPublish(global::Foundation.NSNetService sender) => _willPublish.OnNext(sender); + /// + public override void WillResolve(global::Foundation.NSNetService sender) => _willResolve.OnNext(sender); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSPortDelegateRx : global::Foundation.NSPortDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _messageReceived = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MessageReceivedObs => _messageReceived; + /// + public override void MessageReceived(global::Foundation.NSPortMessage message) => _messageReceived.OnNext(message); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSStreamDelegateRx : global::Foundation.NSStreamDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent)> _handleEvent = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent)> HandleEventObs => _handleEvent; + /// + public override void HandleEvent(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent) => _handleEvent.OnNext((theStream, streamEvent)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlConnectionDataDelegateRx : global::Foundation.NSUrlConnectionDataDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finishedLoading = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data)> _receivedData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response)> _receivedResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite)> _sentBodyData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedLoadingObs => _finishedLoading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data)> ReceivedDataObs => _receivedData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response)> ReceivedResponseObs => _receivedResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite)> SentBodyDataObs => _sentBodyData; + /// + public override void FinishedLoading(global::Foundation.NSUrlConnection connection) => _finishedLoading.OnNext(connection); + /// + public override void ReceivedData(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data) => _receivedData.OnNext((connection, data)); + /// + public override void ReceivedResponse(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response) => _receivedResponse.OnNext((connection, response)); + /// + public override void SentBodyData(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite) => _sentBodyData.OnNext((connection, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlConnectionDelegateRx : global::Foundation.NSUrlConnectionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> _canceledAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> _receivedAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> _willSendRequestForAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> CanceledAuthenticationChallengeObs => _canceledAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> ReceivedAuthenticationChallengeObs => _receivedAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> WillSendRequestForAuthenticationChallengeObs => _willSendRequestForAuthenticationChallenge; + /// + public override void CanceledAuthenticationChallenge(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge) => _canceledAuthenticationChallenge.OnNext((connection, challenge)); + /// + public override void FailedWithError(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error) => _failedWithError.OnNext((connection, error)); + /// + public override void ReceivedAuthenticationChallenge(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge) => _receivedAuthenticationChallenge.OnNext((connection, challenge)); + /// + public override void WillSendRequestForAuthenticationChallenge(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge) => _willSendRequestForAuthenticationChallenge.OnNext((connection, challenge)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSUrlConnectionDownloadDelegateRx : global::Foundation.NSUrlConnectionDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl)> _finishedDownloading = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes)> _resumedDownloading = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes)> _wroteData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl)> FinishedDownloadingObs => _finishedDownloading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes)> ResumedDownloadingObs => _resumedDownloading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes)> WroteDataObs => _wroteData; + /// + public override void FinishedDownloading(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl) => _finishedDownloading.OnNext((connection, destinationUrl)); + /// + public override void ResumedDownloading(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes) => _resumedDownloading.OnNext((connection, totalBytesWritten, expectedTotalBytes)); + /// + public override void WroteData(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes) => _wroteData.OnNext((connection, bytesWritten, totalBytesWritten, expectedTotalBytes)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionDataDelegateRx : global::Foundation.NSUrlSessionDataDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask)> _didBecomeDownloadTask = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask)> _didBecomeStreamTask = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data)> _didReceiveData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler)> _didReceiveResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler)> _willCacheResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask)> DidBecomeDownloadTaskObs => _didBecomeDownloadTask; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask)> DidBecomeStreamTaskObs => _didBecomeStreamTask; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data)> DidReceiveDataObs => _didReceiveData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler)> DidReceiveResponseObs => _didReceiveResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler)> WillCacheResponseObs => _willCacheResponse; + /// + public override void DidBecomeDownloadTask(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask) => _didBecomeDownloadTask.OnNext((session, dataTask, downloadTask)); + /// + public override void DidBecomeStreamTask(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask) => _didBecomeStreamTask.OnNext((session, dataTask, streamTask)); + /// + public override void DidReceiveData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data) => _didReceiveData.OnNext((session, dataTask, data)); + /// + public override void DidReceiveResponse(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler) => _didReceiveResponse.OnNext((session, dataTask, response, completionHandler)); + /// + public override void WillCacheResponse(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler) => _willCacheResponse.OnNext((session, dataTask, proposedResponse, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionDelegateRx : global::Foundation.NSUrlSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSError error)> _didBecomeInvalid = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishEventsForBackgroundSession = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSError error)> DidBecomeInvalidObs => _didBecomeInvalid; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishEventsForBackgroundSessionObs => _didFinishEventsForBackgroundSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveChallengeObs => _didReceiveChallenge; + /// + public override void DidBecomeInvalid(global::Foundation.NSUrlSession session, global::Foundation.NSError error) => _didBecomeInvalid.OnNext((session, error)); + /// + public override void DidFinishEventsForBackgroundSession(global::Foundation.NSUrlSession session) => _didFinishEventsForBackgroundSession.OnNext(session); + /// + public override void DidReceiveChallenge(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveChallenge.OnNext((session, challenge, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSUrlSessionDownloadDelegateRx : global::Foundation.NSUrlSessionDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location)> _didFinishDownloading = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes)> _didResume = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite)> _didWriteData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location)> DidFinishDownloadingObs => _didFinishDownloading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes)> DidResumeObs => _didResume; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite)> DidWriteDataObs => _didWriteData; + /// + public override void DidFinishDownloading(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location) => _didFinishDownloading.OnNext((session, downloadTask, location)); + /// + public override void DidResume(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes) => _didResume.OnNext((session, downloadTask, resumeFileOffset, expectedTotalBytes)); + /// + public override void DidWriteData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite) => _didWriteData.OnNext((session, downloadTask, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionStreamDelegateRx : global::Foundation.NSUrlSessionStreamDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> _betterRouteDiscovered = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> _completedTaskCaptureStreams = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> _readClosed = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> _writeClosed = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> BetterRouteDiscoveredObs => _betterRouteDiscovered; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> CompletedTaskCaptureStreamsObs => _completedTaskCaptureStreams; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> ReadClosedObs => _readClosed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> WriteClosedObs => _writeClosed; + /// + public override void BetterRouteDiscovered(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask) => _betterRouteDiscovered.OnNext((session, streamTask)); + /// + public override void CompletedTaskCaptureStreams(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream) => _completedTaskCaptureStreams.OnNext((session, streamTask, inputStream, outputStream)); + /// + public override void ReadClosed(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask) => _readClosed.OnNext((session, streamTask)); + /// + public override void WriteClosed(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask) => _writeClosed.OnNext((session, streamTask)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionTaskDelegateRx : global::Foundation.NSUrlSessionTaskDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> _didCompleteWithError = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> _didFinishCollectingMetrics = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> _didSendBodyData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> _needNewBodyStream = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)> _taskIsWaitingForConnectivity = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)> _willBeginDelayedRequest = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> _willPerformHttpRedirection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> DidCompleteWithErrorObs => _didCompleteWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> DidFinishCollectingMetricsObs => _didFinishCollectingMetrics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveChallengeObs => _didReceiveChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> DidSendBodyDataObs => _didSendBodyData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> NeedNewBodyStreamObs => _needNewBodyStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)> TaskIsWaitingForConnectivityObs => _taskIsWaitingForConnectivity; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)> WillBeginDelayedRequestObs => _willBeginDelayedRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> WillPerformHttpRedirectionObs => _willPerformHttpRedirection; + /// + public override void DidCompleteWithError(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error) => _didCompleteWithError.OnNext((session, task, error)); + /// + public override void DidFinishCollectingMetrics(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics) => _didFinishCollectingMetrics.OnNext((session, task, metrics)); + /// + public override void DidReceiveChallenge(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveChallenge.OnNext((session, task, challenge, completionHandler)); + /// + public override void DidSendBodyData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend) => _didSendBodyData.OnNext((session, task, bytesSent, totalBytesSent, totalBytesExpectedToSend)); + /// + public override void NeedNewBodyStream(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler) => _needNewBodyStream.OnNext((session, task, completionHandler)); + /// + public override void TaskIsWaitingForConnectivity(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task) => _taskIsWaitingForConnectivity.OnNext((session, task)); + /// + public override void WillBeginDelayedRequest(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler) => _willBeginDelayedRequest.OnNext((session, task, request, completionHandler)); + /// + public override void WillPerformHttpRedirection(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler) => _willPerformHttpRedirection.OnNext((session, task, response, newRequest, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUserActivityDelegateRx : global::Foundation.NSUserActivityDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> _userActivityReceivedData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _userActivityWasContinued = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _userActivityWillSave = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> UserActivityReceivedDataObs => _userActivityReceivedData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UserActivityWasContinuedObs => _userActivityWasContinued; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UserActivityWillSaveObs => _userActivityWillSave; + /// + public override void UserActivityReceivedData(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream) => _userActivityReceivedData.OnNext((userActivity, inputStream, outputStream)); + /// + public override void UserActivityWasContinued(global::Foundation.NSUserActivity userActivity) => _userActivityWasContinued.OnNext(userActivity); + /// + public override void UserActivityWillSave(global::Foundation.NSUserActivity userActivity) => _userActivityWillSave.OnNext(userActivity); + } +} + +namespace GameKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKGameCenterControllerDelegateRx : global::GameKit.GKGameCenterControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + public override void Finished(global::GameKit.GKGameCenterViewController controller) => _finished.OnNext(controller); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKGameSessionSharingViewControllerDelegateRx : global::GameKit.GKGameSessionSharingViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKGameSessionSharingViewController viewController, global::Foundation.NSError error)> _didFinish = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKGameSessionSharingViewController viewController, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKGameSessionSharingViewController viewController, global::Foundation.NSError error)> DidFinishObs => _didFinish; + /// + public override void DidFinish(global::GameKit.GKGameSessionSharingViewController viewController, global::Foundation.NSError error) => _didFinish.OnNext((viewController, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKMatchDelegateRx : global::GameKit.GKMatchDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player)> _dataReceivedForRecipient = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player)> _dataReceivedFromPlayer = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSError error)> _failed = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state)> _stateChangedForPlayer = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player)> DataReceivedForRecipientObs => _dataReceivedForRecipient; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player)> DataReceivedFromPlayerObs => _dataReceivedFromPlayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSError error)> FailedObs => _failed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state)> StateChangedForPlayerObs => _stateChangedForPlayer; + /// + public override void DataReceivedForRecipient(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player) => _dataReceivedForRecipient.OnNext((match, data, recipient, player)); + /// + public override void DataReceivedFromPlayer(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player) => _dataReceivedFromPlayer.OnNext((match, data, player)); + /// + public override void Failed(global::GameKit.GKMatch match, global::Foundation.NSError error) => _failed.OnNext((match, error)); + /// + public override void StateChangedForPlayer(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state) => _stateChangedForPlayer.OnNext((match, player, state)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKMatchmakerViewControllerDelegateRx : global::GameKit.GKMatchmakerViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error)> _didFailWithError = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs)> _didFindHostedPlayers = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match)> _didFindMatch = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID)> _hostedPlayerDidAccept = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error)> DidFailWithErrorObs => _didFailWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs)> DidFindHostedPlayersObs => _didFindHostedPlayers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match)> DidFindMatchObs => _didFindMatch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID)> HostedPlayerDidAcceptObs => _hostedPlayerDidAccept; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void DidFailWithError(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error) => _didFailWithError.OnNext((viewController, error)); + /// + public override void DidFindHostedPlayers(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs) => _didFindHostedPlayers.OnNext((viewController, playerIDs)); + /// + public override void DidFindMatch(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match) => _didFindMatch.OnNext((viewController, match)); + /// + public override void HostedPlayerDidAccept(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID) => _hostedPlayerDidAccept.OnNext((viewController, playerID)); + /// + public override void WasCancelled(global::GameKit.GKMatchmakerViewController viewController) => _wasCancelled.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKTurnBasedMatchmakerViewControllerDelegateRx : global::GameKit.GKTurnBasedMatchmakerViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void FailedWithError(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error) => _failedWithError.OnNext((viewController, error)); + /// + public override void WasCancelled(global::GameKit.GKTurnBasedMatchmakerViewController viewController) => _wasCancelled.OnNext(viewController); + } +} + +namespace GameplayKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKAgentDelegateRx : global::GameplayKit.GKAgentDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _agentDidUpdate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _agentWillUpdate = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AgentDidUpdateObs => _agentDidUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AgentWillUpdateObs => _agentWillUpdate; + /// + public override void AgentDidUpdate(global::GameplayKit.GKAgent agent) => _agentDidUpdate.OnNext(agent); + /// + public override void AgentWillUpdate(global::GameplayKit.GKAgent agent) => _agentWillUpdate.OnNext(agent); + } +} + +namespace GLKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GLKViewControllerDelegateRx : global::GLKit.GLKViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _update = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GLKit.GLKViewController controller, bool pause)> _willPause = new Pharmacist.Common.SingleAwaitSubject<(global::GLKit.GLKViewController controller, bool pause)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UpdateObs => _update; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GLKit.GLKViewController controller, bool pause)> WillPauseObs => _willPause; + /// + public override void Update(global::GLKit.GLKViewController controller) => _update.OnNext(controller); + /// + public override void WillPause(global::GLKit.GLKViewController controller, bool pause) => _willPause.OnNext((controller, pause)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GLKViewDelegateRx : global::GLKit.GLKViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GLKit.GLKView view, global::CoreGraphics.CGRect rect)> _drawInRect = new Pharmacist.Common.SingleAwaitSubject<(global::GLKit.GLKView view, global::CoreGraphics.CGRect rect)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GLKit.GLKView view, global::CoreGraphics.CGRect rect)> DrawInRectObs => _drawInRect; + /// + public override void DrawInRect(global::GLKit.GLKView view, global::CoreGraphics.CGRect rect) => _drawInRect.OnNext((view, rect)); + } +} + +namespace HomeKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMAccessoryDelegateRx : global::HomeKit.HMAccessoryDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)> _didAddProfile = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)> _didRemoveProfile = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)> _didUpdateAssociatedServiceType = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, string firmwareVersion)> _didUpdateFirmwareVersion = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, string firmwareVersion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateName = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)> _didUpdateNameForService = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateReachability = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateServices = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service, global::HomeKit.HMCharacteristic characteristic)> _didUpdateValueForCharacteristic = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service, global::HomeKit.HMCharacteristic characteristic)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)> DidAddProfileObs => _didAddProfile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)> DidRemoveProfileObs => _didRemoveProfile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)> DidUpdateAssociatedServiceTypeObs => _didUpdateAssociatedServiceType; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, string firmwareVersion)> DidUpdateFirmwareVersionObs => _didUpdateFirmwareVersion; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateNameObs => _didUpdateName; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)> DidUpdateNameForServiceObs => _didUpdateNameForService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateReachabilityObs => _didUpdateReachability; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateServicesObs => _didUpdateServices; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service, global::HomeKit.HMCharacteristic characteristic)> DidUpdateValueForCharacteristicObs => _didUpdateValueForCharacteristic; + /// + public override void DidAddProfile(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile) => _didAddProfile.OnNext((accessory, profile)); + /// + public override void DidRemoveProfile(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile) => _didRemoveProfile.OnNext((accessory, profile)); + /// + public override void DidUpdateAssociatedServiceType(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service) => _didUpdateAssociatedServiceType.OnNext((accessory, service)); + /// + public override void DidUpdateFirmwareVersion(global::HomeKit.HMAccessory accessory, string firmwareVersion) => _didUpdateFirmwareVersion.OnNext((accessory, firmwareVersion)); + /// + public override void DidUpdateName(global::HomeKit.HMAccessory accessory) => _didUpdateName.OnNext(accessory); + /// + public override void DidUpdateNameForService(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service) => _didUpdateNameForService.OnNext((accessory, service)); + /// + public override void DidUpdateReachability(global::HomeKit.HMAccessory accessory) => _didUpdateReachability.OnNext(accessory); + /// + public override void DidUpdateServices(global::HomeKit.HMAccessory accessory) => _didUpdateServices.OnNext(accessory); + /// + public override void DidUpdateValueForCharacteristic(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service, global::HomeKit.HMCharacteristic characteristic) => _didUpdateValueForCharacteristic.OnNext((accessory, service, characteristic)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMCameraSnapshotControlDelegateRx : global::HomeKit.HMCameraSnapshotControlDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl, global::HomeKit.HMCameraSnapshot snapshot, global::Foundation.NSError error)> _didTakeSnapshot = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl, global::HomeKit.HMCameraSnapshot snapshot, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateMostRecentSnapshot = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl, global::HomeKit.HMCameraSnapshot snapshot, global::Foundation.NSError error)> DidTakeSnapshotObs => _didTakeSnapshot; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateMostRecentSnapshotObs => _didUpdateMostRecentSnapshot; + /// + public override void DidTakeSnapshot(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl, global::HomeKit.HMCameraSnapshot snapshot, global::Foundation.NSError error) => _didTakeSnapshot.OnNext((cameraSnapshotControl, snapshot, error)); + /// + public override void DidUpdateMostRecentSnapshot(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl) => _didUpdateMostRecentSnapshot.OnNext(cameraSnapshotControl); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMCameraStreamControlDelegateRx : global::HomeKit.HMCameraStreamControlDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didStartStream = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMCameraStreamControl cameraStreamControl, global::Foundation.NSError error)> _didStopStream = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMCameraStreamControl cameraStreamControl, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStartStreamObs => _didStartStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMCameraStreamControl cameraStreamControl, global::Foundation.NSError error)> DidStopStreamObs => _didStopStream; + /// + public override void DidStartStream(global::HomeKit.HMCameraStreamControl cameraStreamControl) => _didStartStream.OnNext(cameraStreamControl); + /// + public override void DidStopStream(global::HomeKit.HMCameraStreamControl cameraStreamControl, global::Foundation.NSError error) => _didStopStream.OnNext((cameraStreamControl, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMHomeDelegateRx : global::HomeKit.HMHomeDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> _didAddAccessory = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> _didAddActionSet = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> _didAddRoom = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)> _didAddRoomToZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)> _didAddService = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> _didAddServiceGroup = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> _didAddTrigger = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)> _didAddUser = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> _didAddZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::Foundation.NSError error, global::HomeKit.HMAccessory accessory)> _didEncounterError = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::Foundation.NSError error, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> _didRemoveAccessory = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> _didRemoveActionSet = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> _didRemoveRoom = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)> _didRemoveRoomFromZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)> _didRemoveService = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> _didRemoveServiceGroup = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> _didRemoveTrigger = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)> _didRemoveUser = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> _didRemoveZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> _didUnblockAccessory = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateAccessControlForCurrentUser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> _didUpdateActionsForActionSet = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMHomeHubState homeHubState)> _didUpdateHomeHubState = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMHomeHubState homeHubState)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> _didUpdateNameForActionSet = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateNameForHome = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> _didUpdateNameForRoom = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> _didUpdateNameForServiceGroup = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> _didUpdateNameForTrigger = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> _didUpdateNameForZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMAccessory accessory)> _didUpdateRoom = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> _didUpdateTrigger = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> DidAddAccessoryObs => _didAddAccessory; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> DidAddActionSetObs => _didAddActionSet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> DidAddRoomObs => _didAddRoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)> DidAddRoomToZoneObs => _didAddRoomToZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)> DidAddServiceObs => _didAddService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> DidAddServiceGroupObs => _didAddServiceGroup; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> DidAddTriggerObs => _didAddTrigger; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)> DidAddUserObs => _didAddUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> DidAddZoneObs => _didAddZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::Foundation.NSError error, global::HomeKit.HMAccessory accessory)> DidEncounterErrorObs => _didEncounterError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> DidRemoveAccessoryObs => _didRemoveAccessory; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> DidRemoveActionSetObs => _didRemoveActionSet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> DidRemoveRoomObs => _didRemoveRoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)> DidRemoveRoomFromZoneObs => _didRemoveRoomFromZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)> DidRemoveServiceObs => _didRemoveService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> DidRemoveServiceGroupObs => _didRemoveServiceGroup; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> DidRemoveTriggerObs => _didRemoveTrigger; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)> DidRemoveUserObs => _didRemoveUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> DidRemoveZoneObs => _didRemoveZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> DidUnblockAccessoryObs => _didUnblockAccessory; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateAccessControlForCurrentUserObs => _didUpdateAccessControlForCurrentUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> DidUpdateActionsForActionSetObs => _didUpdateActionsForActionSet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMHomeHubState homeHubState)> DidUpdateHomeHubStateObs => _didUpdateHomeHubState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> DidUpdateNameForActionSetObs => _didUpdateNameForActionSet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateNameForHomeObs => _didUpdateNameForHome; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> DidUpdateNameForRoomObs => _didUpdateNameForRoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> DidUpdateNameForServiceGroupObs => _didUpdateNameForServiceGroup; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> DidUpdateNameForTriggerObs => _didUpdateNameForTrigger; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> DidUpdateNameForZoneObs => _didUpdateNameForZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMAccessory accessory)> DidUpdateRoomObs => _didUpdateRoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> DidUpdateTriggerObs => _didUpdateTrigger; + /// + public override void DidAddAccessory(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory) => _didAddAccessory.OnNext((home, accessory)); + /// + public override void DidAddActionSet(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet) => _didAddActionSet.OnNext((home, actionSet)); + /// + public override void DidAddRoom(global::HomeKit.HMHome home, global::HomeKit.HMRoom room) => _didAddRoom.OnNext((home, room)); + /// + public override void DidAddRoomToZone(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone) => _didAddRoomToZone.OnNext((home, room, zone)); + /// + public override void DidAddService(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group) => _didAddService.OnNext((home, service, group)); + /// + public override void DidAddServiceGroup(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group) => _didAddServiceGroup.OnNext((home, group)); + /// + public override void DidAddTrigger(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger) => _didAddTrigger.OnNext((home, trigger)); + /// + public override void DidAddUser(global::HomeKit.HMHome home, global::HomeKit.HMUser user) => _didAddUser.OnNext((home, user)); + /// + public override void DidAddZone(global::HomeKit.HMHome home, global::HomeKit.HMZone zone) => _didAddZone.OnNext((home, zone)); + /// + public override void DidEncounterError(global::HomeKit.HMHome home, global::Foundation.NSError error, global::HomeKit.HMAccessory accessory) => _didEncounterError.OnNext((home, error, accessory)); + /// + public override void DidRemoveAccessory(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory) => _didRemoveAccessory.OnNext((home, accessory)); + /// + public override void DidRemoveActionSet(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet) => _didRemoveActionSet.OnNext((home, actionSet)); + /// + public override void DidRemoveRoom(global::HomeKit.HMHome home, global::HomeKit.HMRoom room) => _didRemoveRoom.OnNext((home, room)); + /// + public override void DidRemoveRoomFromZone(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone) => _didRemoveRoomFromZone.OnNext((home, room, zone)); + /// + public override void DidRemoveService(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group) => _didRemoveService.OnNext((home, service, group)); + /// + public override void DidRemoveServiceGroup(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group) => _didRemoveServiceGroup.OnNext((home, group)); + /// + public override void DidRemoveTrigger(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger) => _didRemoveTrigger.OnNext((home, trigger)); + /// + public override void DidRemoveUser(global::HomeKit.HMHome home, global::HomeKit.HMUser user) => _didRemoveUser.OnNext((home, user)); + /// + public override void DidRemoveZone(global::HomeKit.HMHome home, global::HomeKit.HMZone zone) => _didRemoveZone.OnNext((home, zone)); + /// + public override void DidUnblockAccessory(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory) => _didUnblockAccessory.OnNext((home, accessory)); + /// + public override void DidUpdateAccessControlForCurrentUser(global::HomeKit.HMHome home) => _didUpdateAccessControlForCurrentUser.OnNext(home); + /// + public override void DidUpdateActionsForActionSet(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet) => _didUpdateActionsForActionSet.OnNext((home, actionSet)); + /// + public override void DidUpdateHomeHubState(global::HomeKit.HMHome home, global::HomeKit.HMHomeHubState homeHubState) => _didUpdateHomeHubState.OnNext((home, homeHubState)); + /// + public override void DidUpdateNameForActionSet(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet) => _didUpdateNameForActionSet.OnNext((home, actionSet)); + /// + public override void DidUpdateNameForHome(global::HomeKit.HMHome home) => _didUpdateNameForHome.OnNext(home); + /// + public override void DidUpdateNameForRoom(global::HomeKit.HMHome home, global::HomeKit.HMRoom room) => _didUpdateNameForRoom.OnNext((home, room)); + /// + public override void DidUpdateNameForServiceGroup(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group) => _didUpdateNameForServiceGroup.OnNext((home, group)); + /// + public override void DidUpdateNameForTrigger(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger) => _didUpdateNameForTrigger.OnNext((home, trigger)); + /// + public override void DidUpdateNameForZone(global::HomeKit.HMHome home, global::HomeKit.HMZone zone) => _didUpdateNameForZone.OnNext((home, zone)); + /// + public override void DidUpdateRoom(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMAccessory accessory) => _didUpdateRoom.OnNext((home, room, accessory)); + /// + public override void DidUpdateTrigger(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger) => _didUpdateTrigger.OnNext((home, trigger)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMHomeManagerDelegateRx : global::HomeKit.HMHomeManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)> _didAddHome = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)> _didRemoveHome = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateHomes = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdatePrimaryHome = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)> DidAddHomeObs => _didAddHome; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)> DidRemoveHomeObs => _didRemoveHome; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateHomesObs => _didUpdateHomes; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdatePrimaryHomeObs => _didUpdatePrimaryHome; + /// + public override void DidAddHome(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home) => _didAddHome.OnNext((manager, home)); + /// + public override void DidRemoveHome(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home) => _didRemoveHome.OnNext((manager, home)); + /// + public override void DidUpdateHomes(global::HomeKit.HMHomeManager manager) => _didUpdateHomes.OnNext(manager); + /// + public override void DidUpdatePrimaryHome(global::HomeKit.HMHomeManager manager) => _didUpdatePrimaryHome.OnNext(manager); + } +} + +namespace MapKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class MKLocalSearchCompleterDelegateRx : global::MapKit.MKLocalSearchCompleterDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateResults = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateResultsObs => _didUpdateResults; + /// + public override void DidFail(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error) => _didFail.OnNext((completer, error)); + /// + public override void DidUpdateResults(global::MapKit.MKLocalSearchCompleter completer) => _didUpdateResults.OnNext(completer); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class MKMapViewDelegateRx : global::MapKit.MKMapViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views)> _didAddAnnotationViews = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers)> _didAddOverlayRenderers = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserTrackingMode mode, bool animated)> _didChangeUserTrackingMode = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserTrackingMode mode, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeVisibleRegion = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> _didDeselectAnnotationView = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> _didFailToLocateUser = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool fullyRendered)> _didFinishRenderingMap = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool fullyRendered)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> _didSelectAnnotationView = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didStopLocatingUser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation)> _didUpdateUserLocation = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> _loadingMapFailed = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _mapLoaded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)> _regionChanged = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)> _regionWillChange = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartLoadingMap = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartLocatingUser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartRenderingMap = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views)> DidAddAnnotationViewsObs => _didAddAnnotationViews; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers)> DidAddOverlayRenderersObs => _didAddOverlayRenderers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKUserTrackingMode mode, bool animated)> DidChangeUserTrackingModeObs => _didChangeUserTrackingMode; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeVisibleRegionObs => _didChangeVisibleRegion; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> DidDeselectAnnotationViewObs => _didDeselectAnnotationView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> DidFailToLocateUserObs => _didFailToLocateUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, bool fullyRendered)> DidFinishRenderingMapObs => _didFinishRenderingMap; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> DidSelectAnnotationViewObs => _didSelectAnnotationView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStopLocatingUserObs => _didStopLocatingUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation)> DidUpdateUserLocationObs => _didUpdateUserLocation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> LoadingMapFailedObs => _loadingMapFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MapLoadedObs => _mapLoaded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, bool animated)> RegionChangedObs => _regionChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, bool animated)> RegionWillChangeObs => _regionWillChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartLoadingMapObs => _willStartLoadingMap; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartLocatingUserObs => _willStartLocatingUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartRenderingMapObs => _willStartRenderingMap; + /// + public override void DidAddAnnotationViews(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views) => _didAddAnnotationViews.OnNext((mapView, views)); + /// + public override void DidAddOverlayRenderers(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers) => _didAddOverlayRenderers.OnNext((mapView, renderers)); + /// + public override void DidChangeUserTrackingMode(global::MapKit.MKMapView mapView, global::MapKit.MKUserTrackingMode mode, bool animated) => _didChangeUserTrackingMode.OnNext((mapView, mode, animated)); + /// + public override void DidChangeVisibleRegion(global::MapKit.MKMapView mapView) => _didChangeVisibleRegion.OnNext(mapView); + /// + public override void DidDeselectAnnotationView(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view) => _didDeselectAnnotationView.OnNext((mapView, view)); + /// + public override void DidFailToLocateUser(global::MapKit.MKMapView mapView, global::Foundation.NSError error) => _didFailToLocateUser.OnNext((mapView, error)); + /// + public override void DidFinishRenderingMap(global::MapKit.MKMapView mapView, bool fullyRendered) => _didFinishRenderingMap.OnNext((mapView, fullyRendered)); + /// + public override void DidSelectAnnotationView(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view) => _didSelectAnnotationView.OnNext((mapView, view)); + /// + public override void DidStopLocatingUser(global::MapKit.MKMapView mapView) => _didStopLocatingUser.OnNext(mapView); + /// + public override void DidUpdateUserLocation(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation) => _didUpdateUserLocation.OnNext((mapView, userLocation)); + /// + public override void LoadingMapFailed(global::MapKit.MKMapView mapView, global::Foundation.NSError error) => _loadingMapFailed.OnNext((mapView, error)); + /// + public override void MapLoaded(global::MapKit.MKMapView mapView) => _mapLoaded.OnNext(mapView); + /// + public override void RegionChanged(global::MapKit.MKMapView mapView, bool animated) => _regionChanged.OnNext((mapView, animated)); + /// + public override void RegionWillChange(global::MapKit.MKMapView mapView, bool animated) => _regionWillChange.OnNext((mapView, animated)); + /// + public override void WillStartLoadingMap(global::MapKit.MKMapView mapView) => _willStartLoadingMap.OnNext(mapView); + /// + public override void WillStartLocatingUser(global::MapKit.MKMapView mapView) => _willStartLocatingUser.OnNext(mapView); + /// + public override void WillStartRenderingMap(global::MapKit.MKMapView mapView) => _willStartRenderingMap.OnNext(mapView); + } +} + +namespace MetalKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MTKViewDelegateRx : global::MetalKit.MTKViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _draw = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size)> _drawableSizeWillChange = new Pharmacist.Common.SingleAwaitSubject<(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DrawObs => _draw; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size)> DrawableSizeWillChangeObs => _drawableSizeWillChange; + /// + public override void Draw(global::MetalKit.MTKView view) => _draw.OnNext(view); + /// + public override void DrawableSizeWillChange(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size) => _drawableSizeWillChange.OnNext((view, size)); + } +} + +namespace MultipeerConnectivity +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class MCAdvertiserAssistantDelegateRx : global::MultipeerConnectivity.MCAdvertiserAssistantDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissInvitation = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresentInvitation = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissInvitationObs => _didDismissInvitation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentInvitationObs => _willPresentInvitation; + /// + public override void DidDismissInvitation(global::MultipeerConnectivity.MCAdvertiserAssistant advertiserAssistant) => _didDismissInvitation.OnNext(advertiserAssistant); + /// + public override void WillPresentInvitation(global::MultipeerConnectivity.MCAdvertiserAssistant advertiserAssistant) => _willPresentInvitation.OnNext(advertiserAssistant); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCBrowserViewControllerDelegateRx : global::MultipeerConnectivity.MCBrowserViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void DidFinish(global::MultipeerConnectivity.MCBrowserViewController browserViewController) => _didFinish.OnNext(browserViewController); + /// + public override void WasCancelled(global::MultipeerConnectivity.MCBrowserViewController browserViewController) => _wasCancelled.OnNext(browserViewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCNearbyServiceAdvertiserDelegateRx : global::MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error)> _didNotStartAdvertisingPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler)> _didReceiveInvitationFromPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error)> DidNotStartAdvertisingPeerObs => _didNotStartAdvertisingPeer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler)> DidReceiveInvitationFromPeerObs => _didReceiveInvitationFromPeer; + /// + public override void DidNotStartAdvertisingPeer(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error) => _didNotStartAdvertisingPeer.OnNext((advertiser, error)); + /// + public override void DidReceiveInvitationFromPeer(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler) => _didReceiveInvitationFromPeer.OnNext((advertiser, peerID, context, invitationHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCNearbyServiceBrowserDelegateRx : global::MultipeerConnectivity.MCNearbyServiceBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error)> _didNotStartBrowsingForPeers = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info)> _foundPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID)> _lostPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error)> DidNotStartBrowsingForPeersObs => _didNotStartBrowsingForPeers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info)> FoundPeerObs => _foundPeer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID)> LostPeerObs => _lostPeer; + /// + public override void DidNotStartBrowsingForPeers(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error) => _didNotStartBrowsingForPeers.OnNext((browser, error)); + /// + public override void FoundPeer(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info) => _foundPeer.OnNext((browser, peerID, info)); + /// + public override void LostPeer(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID) => _lostPeer.OnNext((browser, peerID)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCSessionDelegateRx : global::MultipeerConnectivity.MCSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state)> _didChangeState = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error)> _didFinishReceivingResource = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID)> _didReceiveData = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID)> _didReceiveStream = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress)> _didStartReceivingResource = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state)> DidChangeStateObs => _didChangeState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error)> DidFinishReceivingResourceObs => _didFinishReceivingResource; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID)> DidReceiveDataObs => _didReceiveData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID)> DidReceiveStreamObs => _didReceiveStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress)> DidStartReceivingResourceObs => _didStartReceivingResource; + /// + public override void DidChangeState(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state) => _didChangeState.OnNext((session, peerID, state)); + /// + public override void DidFinishReceivingResource(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error) => _didFinishReceivingResource.OnNext((session, resourceName, fromPeer, localUrl, error)); + /// + public override void DidReceiveData(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID) => _didReceiveData.OnNext((session, data, peerID)); + /// + public override void DidReceiveStream(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID) => _didReceiveStream.OnNext((session, stream, streamName, peerID)); + /// + public override void DidStartReceivingResource(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress) => _didStartReceivingResource.OnNext((session, resourceName, fromPeer, progress)); + } +} + +namespace PhotosUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class PHLivePhotoViewDelegateRx : global::PhotosUI.PHLivePhotoViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> _didEndPlayback = new Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> _willBeginPlayback = new Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> DidEndPlaybackObs => _didEndPlayback; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> WillBeginPlaybackObs => _willBeginPlayback; + /// + public override void DidEndPlayback(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle) => _didEndPlayback.OnNext((livePhotoView, playbackStyle)); + /// + public override void WillBeginPlayback(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle) => _willBeginPlayback.OnNext((livePhotoView, playbackStyle)); + } +} + +namespace ReplayKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class RPBroadcastActivityViewControllerDelegateRx : global::ReplayKit.RPBroadcastActivityViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastActivityViewController broadcastActivityViewController, global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)> _didFinish = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastActivityViewController broadcastActivityViewController, global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPBroadcastActivityViewController broadcastActivityViewController, global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)> DidFinishObs => _didFinish; + /// + public override void DidFinish(global::ReplayKit.RPBroadcastActivityViewController broadcastActivityViewController, global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error) => _didFinish.OnNext((broadcastActivityViewController, broadcastController, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class RPBroadcastControllerDelegateRx : global::ReplayKit.RPBroadcastControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)> _didFinish = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSUrl broadcastUrl)> _didUpdateBroadcastUrl = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSUrl broadcastUrl)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSDictionary serviceInfo)> _didUpdateServiceInfo = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSDictionary serviceInfo)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)> DidFinishObs => _didFinish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSUrl broadcastUrl)> DidUpdateBroadcastUrlObs => _didUpdateBroadcastUrl; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSDictionary serviceInfo)> DidUpdateServiceInfoObs => _didUpdateServiceInfo; + /// + public override void DidFinish(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error) => _didFinish.OnNext((broadcastController, error)); + /// + public override void DidUpdateBroadcastUrl(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSUrl broadcastUrl) => _didUpdateBroadcastUrl.OnNext((broadcastController, broadcastUrl)); + /// + public override void DidUpdateServiceInfo(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSDictionary serviceInfo) => _didUpdateServiceInfo.OnNext((broadcastController, serviceInfo)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class RPPreviewViewControllerDelegateRx : global::ReplayKit.RPPreviewViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + public override void DidFinish(global::ReplayKit.RPPreviewViewController previewController) => _didFinish.OnNext(previewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class RPScreenRecorderDelegateRx : global::ReplayKit.RPScreenRecorderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeAvailability = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPScreenRecorder screenRecorder, global::Foundation.NSError error, global::ReplayKit.RPPreviewViewController previewViewController)> _didStopRecording = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPScreenRecorder screenRecorder, global::Foundation.NSError error, global::ReplayKit.RPPreviewViewController previewViewController)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeAvailabilityObs => _didChangeAvailability; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPScreenRecorder screenRecorder, global::Foundation.NSError error, global::ReplayKit.RPPreviewViewController previewViewController)> DidStopRecordingObs => _didStopRecording; + /// + public override void DidChangeAvailability(global::ReplayKit.RPScreenRecorder screenRecorder) => _didChangeAvailability.OnNext(screenRecorder); + /// + public override void DidStopRecording(global::ReplayKit.RPScreenRecorder screenRecorder, global::Foundation.NSError error, global::ReplayKit.RPPreviewViewController previewViewController) => _didStopRecording.OnNext((screenRecorder, error, previewViewController)); + } +} + +namespace SceneKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNAvoidOccluderConstraintDelegateRx : global::SceneKit.SCNAvoidOccluderConstraintDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node)> _didAvoidOccluder = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node)> DidAvoidOccluderObs => _didAvoidOccluder; + /// + public override void DidAvoidOccluder(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node) => _didAvoidOccluder.OnNext((constraint, occluder, node)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNCameraControllerDelegateRx : global::SceneKit.SCNCameraControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _cameraInertiaDidEnd = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _cameraInertiaWillStart = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CameraInertiaDidEndObs => _cameraInertiaDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CameraInertiaWillStartObs => _cameraInertiaWillStart; + /// + public override void CameraInertiaDidEnd(global::SceneKit.SCNCameraController cameraController) => _cameraInertiaDidEnd.OnNext(cameraController); + /// + public override void CameraInertiaWillStart(global::SceneKit.SCNCameraController cameraController) => _cameraInertiaWillStart.OnNext(cameraController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNNodeRendererDelegateRx : global::SceneKit.SCNNodeRendererDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments)> _render = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments)> RenderObs => _render; + /// + public override void Render(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments) => _render.OnNext((node, renderer, arguments)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNPhysicsContactDelegateRx : global::SceneKit.SCNPhysicsContactDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> _didBeginContact = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> _didEndContact = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> _didUpdateContact = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> DidBeginContactObs => _didBeginContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> DidEndContactObs => _didEndContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> DidUpdateContactObs => _didUpdateContact; + /// + public override void DidBeginContact(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact) => _didBeginContact.OnNext((world, contact)); + /// + public override void DidEndContact(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact) => _didEndContact.OnNext((world, contact)); + /// + public override void DidUpdateContact(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact) => _didUpdateContact.OnNext((world, contact)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNProgramDelegateRx : global::SceneKit.SCNProgramDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNProgram program, global::Foundation.NSError error)> _handleError = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNProgram program, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNProgram program, global::Foundation.NSError error)> HandleErrorObs => _handleError; + /// + public override void HandleError(global::SceneKit.SCNProgram program, global::Foundation.NSError error) => _handleError.OnNext((program, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNSceneRendererDelegateRx : global::SceneKit.SCNSceneRendererDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _didApplyAnimations = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)> _didApplyConstraints = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> _didRenderScene = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _didSimulatePhysics = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _update = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> _willRenderScene = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> DidApplyAnimationsObs => _didApplyAnimations; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)> DidApplyConstraintsObs => _didApplyConstraints; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> DidRenderSceneObs => _didRenderScene; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> DidSimulatePhysicsObs => _didSimulatePhysics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> UpdateObs => _update; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> WillRenderSceneObs => _willRenderScene; + /// + public override void DidApplyAnimations(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _didApplyAnimations.OnNext((renderer, timeInSeconds)); + /// + public override void DidApplyConstraints(global::SceneKit.ISCNSceneRenderer renderer, double atTime) => _didApplyConstraints.OnNext((renderer, atTime)); + /// + public override void DidRenderScene(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds) => _didRenderScene.OnNext((renderer, scene, timeInSeconds)); + /// + public override void DidSimulatePhysics(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _didSimulatePhysics.OnNext((renderer, timeInSeconds)); + /// + public override void Update(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _update.OnNext((renderer, timeInSeconds)); + /// + public override void WillRenderScene(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds) => _willRenderScene.OnNext((renderer, scene, timeInSeconds)); + } +} + +namespace SpriteKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKPhysicsContactDelegateRx : global::SpriteKit.SKPhysicsContactDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBeginContact = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndContact = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginContactObs => _didBeginContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndContactObs => _didEndContact; + /// + public override void DidBeginContact(global::SpriteKit.SKPhysicsContact contact) => _didBeginContact.OnNext(contact); + /// + public override void DidEndContact(global::SpriteKit.SKPhysicsContact contact) => _didEndContact.OnNext(contact); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKSceneDelegateRx : global::SpriteKit.SKSceneDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didApplyConstraints = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEvaluateActions = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishUpdate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didSimulatePhysics = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(double currentTime, global::SpriteKit.SKScene scene)> _update = new Pharmacist.Common.SingleAwaitSubject<(double currentTime, global::SpriteKit.SKScene scene)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidApplyConstraintsObs => _didApplyConstraints; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEvaluateActionsObs => _didEvaluateActions; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishUpdateObs => _didFinishUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidSimulatePhysicsObs => _didSimulatePhysics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(double currentTime, global::SpriteKit.SKScene scene)> UpdateObs => _update; + /// + public override void DidApplyConstraints(global::SpriteKit.SKScene scene) => _didApplyConstraints.OnNext(scene); + /// + public override void DidEvaluateActions(global::SpriteKit.SKScene scene) => _didEvaluateActions.OnNext(scene); + /// + public override void DidFinishUpdate(global::SpriteKit.SKScene scene) => _didFinishUpdate.OnNext(scene); + /// + public override void DidSimulatePhysics(global::SpriteKit.SKScene scene) => _didSimulatePhysics.OnNext(scene); + /// + public override void Update(double currentTime, global::SpriteKit.SKScene scene) => _update.OnNext((currentTime, scene)); + } +} + +namespace StoreKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class SKProductsRequestDelegateRx : global::StoreKit.SKProductsRequestDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response)> _receivedResponse = new Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response)> ReceivedResponseObs => _receivedResponse; + /// + public override void ReceivedResponse(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response) => _receivedResponse.OnNext((request, response)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKRequestDelegateRx : global::StoreKit.SKRequestDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKRequest request, global::Foundation.NSError error)> _requestFailed = new Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKRequest request, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _requestFinished = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::StoreKit.SKRequest request, global::Foundation.NSError error)> RequestFailedObs => _requestFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable RequestFinishedObs => _requestFinished; + /// + public override void RequestFailed(global::StoreKit.SKRequest request, global::Foundation.NSError error) => _requestFailed.OnNext((request, error)); + /// + public override void RequestFinished(global::StoreKit.SKRequest request) => _requestFinished.OnNext(request); + } +} + +namespace TVMLKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class TVApplicationControllerDelegateRx : global::TVMLKit.TVApplicationControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::TVMLKit.TVApplicationController appController, global::Foundation.NSError error)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::TVMLKit.TVApplicationController appController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::TVMLKit.TVApplicationController appController, global::Foundation.NSDictionary options)> _didFinishLaunching = new Pharmacist.Common.SingleAwaitSubject<(global::TVMLKit.TVApplicationController appController, global::Foundation.NSDictionary options)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::TVMLKit.TVApplicationController appController, global::Foundation.NSDictionary options)> _didStop = new Pharmacist.Common.SingleAwaitSubject<(global::TVMLKit.TVApplicationController appController, global::Foundation.NSDictionary options)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::TVMLKit.TVApplicationController appController, global::JavaScriptCore.JSContext jsContext)> _evaluateAppJavaScript = new Pharmacist.Common.SingleAwaitSubject<(global::TVMLKit.TVApplicationController appController, global::JavaScriptCore.JSContext jsContext)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::TVMLKit.TVApplicationController appController, global::Foundation.NSError error)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::TVMLKit.TVApplicationController appController, global::Foundation.NSDictionary options)> DidFinishLaunchingObs => _didFinishLaunching; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::TVMLKit.TVApplicationController appController, global::Foundation.NSDictionary options)> DidStopObs => _didStop; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::TVMLKit.TVApplicationController appController, global::JavaScriptCore.JSContext jsContext)> EvaluateAppJavaScriptObs => _evaluateAppJavaScript; + /// + public override void DidFail(global::TVMLKit.TVApplicationController appController, global::Foundation.NSError error) => _didFail.OnNext((appController, error)); + /// + public override void DidFinishLaunching(global::TVMLKit.TVApplicationController appController, global::Foundation.NSDictionary options) => _didFinishLaunching.OnNext((appController, options)); + /// + public override void DidStop(global::TVMLKit.TVApplicationController appController, global::Foundation.NSDictionary options) => _didStop.OnNext((appController, options)); + /// + public override void EvaluateAppJavaScript(global::TVMLKit.TVApplicationController appController, global::JavaScriptCore.JSContext jsContext) => _evaluateAppJavaScript.OnNext((appController, jsContext)); + } +} + +namespace UIKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSLayoutManagerDelegateRx : global::UIKit.NSLayoutManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize)> _didChangeGeometry = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, bool layoutFinishedFlag)> _didCompleteLayout = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, bool layoutFinishedFlag)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didInvalidatedLayout = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize)> DidChangeGeometryObs => _didChangeGeometry; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, bool layoutFinishedFlag)> DidCompleteLayoutObs => _didCompleteLayout; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidInvalidatedLayoutObs => _didInvalidatedLayout; + /// + public override void DidChangeGeometry(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize) => _didChangeGeometry.OnNext((layoutManager, textContainer, oldSize)); + /// + public override void DidCompleteLayout(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, bool layoutFinishedFlag) => _didCompleteLayout.OnNext((layoutManager, textContainer, layoutFinishedFlag)); + /// + public override void DidInvalidatedLayout(global::UIKit.NSLayoutManager sender) => _didInvalidatedLayout.OnNext(sender); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSTextStorageDelegateRx : global::UIKit.NSTextStorageDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> _didProcessEditing = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> _willProcessEditing = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> DidProcessEditingObs => _didProcessEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> WillProcessEditingObs => _willProcessEditing; + /// + public override void DidProcessEditing(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta) => _didProcessEditing.OnNext((textStorage, editedMask, editedRange, delta)); + /// + public override void WillProcessEditing(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta) => _willProcessEditing.OnNext((textStorage, editedMask, editedRange, delta)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIAdaptivePresentationControllerDelegateRx : global::UIKit.UIAdaptivePresentationControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPresentationController presentationController, global::UIKit.UIModalPresentationStyle style, global::UIKit.IUIViewControllerTransitionCoordinator transitionCoordinator)> _willPresent = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPresentationController presentationController, global::UIKit.UIModalPresentationStyle style, global::UIKit.IUIViewControllerTransitionCoordinator transitionCoordinator)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIPresentationController presentationController, global::UIKit.UIModalPresentationStyle style, global::UIKit.IUIViewControllerTransitionCoordinator transitionCoordinator)> WillPresentObs => _willPresent; + /// + public override void WillPresent(global::UIKit.UIPresentationController presentationController, global::UIKit.UIModalPresentationStyle style, global::UIKit.IUIViewControllerTransitionCoordinator transitionCoordinator) => _willPresent.OnNext((presentationController, style, transitionCoordinator)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIApplicationDelegateRx : global::UIKit.UIApplicationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _applicationSignificantTimeChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> _didDecodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEnterBackground = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error)> _didFailToContinueUserActivitiy = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler)> _didReceiveRemoteNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSError error)> _failedToRegisterForRemoteNotifications = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishedLaunching = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler)> _handleEventsForBackgroundUrl = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply)> _handleWatchKitExtensionRequest = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _onActivated = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _onResignActivation = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::System.Action completionHandler)> _performFetch = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _protectedDataDidBecomeAvailable = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _protectedDataWillBecomeUnavailable = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo)> _receivedRemoteNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _receiveMemoryWarning = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken)> _registeredForRemoteNotifications = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _shouldRequestHealthAuthorization = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity)> _userActivityUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata)> _userDidAcceptCloudKitShare = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> _willEncodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willEnterForeground = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willTerminate = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ApplicationSignificantTimeChangeObs => _applicationSignificantTimeChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> DidDecodeRestorableStateObs => _didDecodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEnterBackgroundObs => _didEnterBackground; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error)> DidFailToContinueUserActivitiyObs => _didFailToContinueUserActivitiy; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler)> DidReceiveRemoteNotificationObs => _didReceiveRemoteNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSError error)> FailedToRegisterForRemoteNotificationsObs => _failedToRegisterForRemoteNotifications; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedLaunchingObs => _finishedLaunching; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler)> HandleEventsForBackgroundUrlObs => _handleEventsForBackgroundUrl; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply)> HandleWatchKitExtensionRequestObs => _handleWatchKitExtensionRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnActivatedObs => _onActivated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnResignActivationObs => _onResignActivation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::System.Action completionHandler)> PerformFetchObs => _performFetch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ProtectedDataDidBecomeAvailableObs => _protectedDataDidBecomeAvailable; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ProtectedDataWillBecomeUnavailableObs => _protectedDataWillBecomeUnavailable; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo)> ReceivedRemoteNotificationObs => _receivedRemoteNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ReceiveMemoryWarningObs => _receiveMemoryWarning; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken)> RegisteredForRemoteNotificationsObs => _registeredForRemoteNotifications; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ShouldRequestHealthAuthorizationObs => _shouldRequestHealthAuthorization; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity)> UserActivityUpdatedObs => _userActivityUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata)> UserDidAcceptCloudKitShareObs => _userDidAcceptCloudKitShare; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> WillEncodeRestorableStateObs => _willEncodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillEnterForegroundObs => _willEnterForeground; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillTerminateObs => _willTerminate; + /// + public override void ApplicationSignificantTimeChange(global::UIKit.UIApplication application) => _applicationSignificantTimeChange.OnNext(application); + /// + public override void DidDecodeRestorableState(global::UIKit.UIApplication application, global::Foundation.NSCoder coder) => _didDecodeRestorableState.OnNext((application, coder)); + /// + public override void DidEnterBackground(global::UIKit.UIApplication application) => _didEnterBackground.OnNext(application); + /// + public override void DidFailToContinueUserActivitiy(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error) => _didFailToContinueUserActivitiy.OnNext((application, userActivityType, error)); + /// + public override void DidReceiveRemoteNotification(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler) => _didReceiveRemoteNotification.OnNext((application, userInfo, completionHandler)); + /// + public override void FailedToRegisterForRemoteNotifications(global::UIKit.UIApplication application, global::Foundation.NSError error) => _failedToRegisterForRemoteNotifications.OnNext((application, error)); + /// + public override void FinishedLaunching(global::UIKit.UIApplication application) => _finishedLaunching.OnNext(application); + /// + public override void HandleEventsForBackgroundUrl(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler) => _handleEventsForBackgroundUrl.OnNext((application, sessionIdentifier, completionHandler)); + /// + public override void HandleWatchKitExtensionRequest(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply) => _handleWatchKitExtensionRequest.OnNext((application, userInfo, reply)); + /// + public override void OnActivated(global::UIKit.UIApplication application) => _onActivated.OnNext(application); + /// + public override void OnResignActivation(global::UIKit.UIApplication application) => _onResignActivation.OnNext(application); + /// + public override void PerformFetch(global::UIKit.UIApplication application, global::System.Action completionHandler) => _performFetch.OnNext((application, completionHandler)); + /// + public override void ProtectedDataDidBecomeAvailable(global::UIKit.UIApplication application) => _protectedDataDidBecomeAvailable.OnNext(application); + /// + public override void ProtectedDataWillBecomeUnavailable(global::UIKit.UIApplication application) => _protectedDataWillBecomeUnavailable.OnNext(application); + /// + public override void ReceivedRemoteNotification(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo) => _receivedRemoteNotification.OnNext((application, userInfo)); + /// + public override void ReceiveMemoryWarning(global::UIKit.UIApplication application) => _receiveMemoryWarning.OnNext(application); + /// + public override void RegisteredForRemoteNotifications(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken) => _registeredForRemoteNotifications.OnNext((application, deviceToken)); + /// + public override void ShouldRequestHealthAuthorization(global::UIKit.UIApplication application) => _shouldRequestHealthAuthorization.OnNext(application); + /// + public override void UserActivityUpdated(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity) => _userActivityUpdated.OnNext((application, userActivity)); + /// + public override void UserDidAcceptCloudKitShare(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata) => _userDidAcceptCloudKitShare.OnNext((application, cloudKitShareMetadata)); + /// + public override void WillEncodeRestorableState(global::UIKit.UIApplication application, global::Foundation.NSCoder coder) => _willEncodeRestorableState.OnNext((application, coder)); + /// + public override void WillEnterForeground(global::UIKit.UIApplication application) => _willEnterForeground.OnNext(application); + /// + public override void WillTerminate(global::UIKit.UIApplication application) => _willTerminate.OnNext(application); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UICollectionViewDelegateRx : global::UIKit.UICollectionViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)> _cellDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> _didUpdateFocus = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> _itemDeselected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> _itemHighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> _itemSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> _itemUnhighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> _performAction = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath)> _supplementaryViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)> _willDisplayCell = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, string elementKind, global::Foundation.NSIndexPath indexPath)> _willDisplaySupplementaryView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, string elementKind, global::Foundation.NSIndexPath indexPath)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)> CellDisplayingEndedObs => _cellDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> DidUpdateFocusObs => _didUpdateFocus; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> ItemDeselectedObs => _itemDeselected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> ItemHighlightedObs => _itemHighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> ItemSelectedObs => _itemSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> ItemUnhighlightedObs => _itemUnhighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> PerformActionObs => _performAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath)> SupplementaryViewDisplayingEndedObs => _supplementaryViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)> WillDisplayCellObs => _willDisplayCell; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, string elementKind, global::Foundation.NSIndexPath indexPath)> WillDisplaySupplementaryViewObs => _willDisplaySupplementaryView; + /// + public override void CellDisplayingEnded(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath) => _cellDisplayingEnded.OnNext((collectionView, cell, indexPath)); + /// + public override void DidUpdateFocus(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator) => _didUpdateFocus.OnNext((collectionView, context, coordinator)); + /// + public override void ItemDeselected(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath) => _itemDeselected.OnNext((collectionView, indexPath)); + /// + public override void ItemHighlighted(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath) => _itemHighlighted.OnNext((collectionView, indexPath)); + /// + public override void ItemSelected(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath) => _itemSelected.OnNext((collectionView, indexPath)); + /// + public override void ItemUnhighlighted(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath) => _itemUnhighlighted.OnNext((collectionView, indexPath)); + /// + public override void PerformAction(global::UIKit.UICollectionView collectionView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender) => _performAction.OnNext((collectionView, action, indexPath, sender)); + /// + public override void SupplementaryViewDisplayingEnded(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath) => _supplementaryViewDisplayingEnded.OnNext((collectionView, view, elementKind, indexPath)); + /// + public override void WillDisplayCell(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath) => _willDisplayCell.OnNext((collectionView, cell, indexPath)); + /// + public override void WillDisplaySupplementaryView(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, string elementKind, global::Foundation.NSIndexPath indexPath) => _willDisplaySupplementaryView.OnNext((collectionView, view, elementKind, indexPath)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UICollisionBehaviorDelegateRx : global::UIKit.UICollisionBehaviorDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier, global::CoreGraphics.CGPoint atPoint)> _beganBoundaryContact = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier, global::CoreGraphics.CGPoint atPoint)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem, global::CoreGraphics.CGPoint atPoint)> _beganContact = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem, global::CoreGraphics.CGPoint atPoint)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier)> _endedBoundaryContact = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem)> _endedContact = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier, global::CoreGraphics.CGPoint atPoint)> BeganBoundaryContactObs => _beganBoundaryContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem, global::CoreGraphics.CGPoint atPoint)> BeganContactObs => _beganContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier)> EndedBoundaryContactObs => _endedBoundaryContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem)> EndedContactObs => _endedContact; + /// + public override void BeganBoundaryContact(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier, global::CoreGraphics.CGPoint atPoint) => _beganBoundaryContact.OnNext((behavior, dynamicItem, boundaryIdentifier, atPoint)); + /// + public override void BeganContact(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem, global::CoreGraphics.CGPoint atPoint) => _beganContact.OnNext((behavior, firstItem, secondItem, atPoint)); + /// + public override void EndedBoundaryContact(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier) => _endedBoundaryContact.OnNext((behavior, dynamicItem, boundaryIdentifier)); + /// + public override void EndedContact(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem) => _endedContact.OnNext((behavior, firstItem, secondItem)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UIDynamicAnimatorDelegateRx : global::UIKit.UIDynamicAnimatorDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didPause = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willResume = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidPauseObs => _didPause; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillResumeObs => _willResume; + /// + public override void DidPause(global::UIKit.UIDynamicAnimator animator) => _didPause.OnNext(animator); + /// + public override void WillResume(global::UIKit.UIDynamicAnimator animator) => _willResume.OnNext(animator); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UINavigationBarDelegateRx : global::UIKit.UINavigationBarDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)> _didPopItem = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)> _didPushItem = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)> DidPopItemObs => _didPopItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)> DidPushItemObs => _didPushItem; + /// + public override void DidPopItem(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item) => _didPopItem.OnNext((navigationBar, item)); + /// + public override void DidPushItem(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item) => _didPushItem.OnNext((navigationBar, item)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UINavigationControllerDelegateRx : global::UIKit.UINavigationControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)> _didShowViewController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)> _willShowViewController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)> DidShowViewControllerObs => _didShowViewController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)> WillShowViewControllerObs => _willShowViewController; + /// + public override void DidShowViewController(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated) => _didShowViewController.OnNext((navigationController, viewController, animated)); + /// + public override void WillShowViewController(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated) => _willShowViewController.OnNext((navigationController, viewController, animated)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIPageViewControllerDelegateRx : global::UIKit.UIPageViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPageViewController pageViewController, bool finished, global::UIKit.UIViewController[] previousViewControllers, bool completed)> _didFinishAnimating = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPageViewController pageViewController, bool finished, global::UIKit.UIViewController[] previousViewControllers, bool completed)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPageViewController pageViewController, global::UIKit.UIViewController[] pendingViewControllers)> _willTransition = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPageViewController pageViewController, global::UIKit.UIViewController[] pendingViewControllers)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIPageViewController pageViewController, bool finished, global::UIKit.UIViewController[] previousViewControllers, bool completed)> DidFinishAnimatingObs => _didFinishAnimating; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIPageViewController pageViewController, global::UIKit.UIViewController[] pendingViewControllers)> WillTransitionObs => _willTransition; + /// + public override void DidFinishAnimating(global::UIKit.UIPageViewController pageViewController, bool finished, global::UIKit.UIViewController[] previousViewControllers, bool completed) => _didFinishAnimating.OnNext((pageViewController, finished, previousViewControllers, completed)); + /// + public override void WillTransition(global::UIKit.UIPageViewController pageViewController, global::UIKit.UIViewController[] pendingViewControllers) => _willTransition.OnNext((pageViewController, pendingViewControllers)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIPopoverControllerDelegateRx : global::UIKit.UIPopoverControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismiss = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissObs => _didDismiss; + /// + public override void DidDismiss(global::UIKit.UIPopoverController popoverController) => _didDismiss.OnNext(popoverController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIScrollViewDelegateRx : global::UIKit.UIScrollViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _decelerationEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _decelerationStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeAdjustedContentInset = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didZoom = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, bool willDecelerate)> _draggingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, bool willDecelerate)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _draggingStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _scrollAnimationEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _scrolled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _scrolledToTop = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale)> _zoomingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view)> _zoomingStarted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DecelerationEndedObs => _decelerationEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DecelerationStartedObs => _decelerationStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeAdjustedContentInsetObs => _didChangeAdjustedContentInset; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidZoomObs => _didZoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIScrollView scrollView, bool willDecelerate)> DraggingEndedObs => _draggingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DraggingStartedObs => _draggingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScrollAnimationEndedObs => _scrollAnimationEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScrolledObs => _scrolled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScrolledToTopObs => _scrolledToTop; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale)> ZoomingEndedObs => _zoomingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view)> ZoomingStartedObs => _zoomingStarted; + /// + public override void DecelerationEnded(global::UIKit.UIScrollView scrollView) => _decelerationEnded.OnNext(scrollView); + /// + public override void DecelerationStarted(global::UIKit.UIScrollView scrollView) => _decelerationStarted.OnNext(scrollView); + /// + public override void DidChangeAdjustedContentInset(global::UIKit.UIScrollView scrollView) => _didChangeAdjustedContentInset.OnNext(scrollView); + /// + public override void DidZoom(global::UIKit.UIScrollView scrollView) => _didZoom.OnNext(scrollView); + /// + public override void DraggingEnded(global::UIKit.UIScrollView scrollView, bool willDecelerate) => _draggingEnded.OnNext((scrollView, willDecelerate)); + /// + public override void DraggingStarted(global::UIKit.UIScrollView scrollView) => _draggingStarted.OnNext(scrollView); + /// + public override void ScrollAnimationEnded(global::UIKit.UIScrollView scrollView) => _scrollAnimationEnded.OnNext(scrollView); + /// + public override void Scrolled(global::UIKit.UIScrollView scrollView) => _scrolled.OnNext(scrollView); + /// + public override void ScrolledToTop(global::UIKit.UIScrollView scrollView) => _scrolledToTop.OnNext(scrollView); + /// + public override void ZoomingEnded(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale) => _zoomingEnded.OnNext((scrollView, withView, atScale)); + /// + public override void ZoomingStarted(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view) => _zoomingStarted.OnNext((scrollView, view)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UISearchBarDelegateRx : global::UIKit.UISearchBarDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _onEditingStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _onEditingStopped = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchButtonClicked = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchBar searchBar, global::System.nint selectedScope)> _selectedScopeButtonIndexChanged = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchBar searchBar, global::System.nint selectedScope)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchBar searchBar, string searchText)> _textChanged = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchBar searchBar, string searchText)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnEditingStartedObs => _onEditingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnEditingStoppedObs => _onEditingStopped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchButtonClickedObs => _searchButtonClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchBar searchBar, global::System.nint selectedScope)> SelectedScopeButtonIndexChangedObs => _selectedScopeButtonIndexChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchBar searchBar, string searchText)> TextChangedObs => _textChanged; + /// + public override void OnEditingStarted(global::UIKit.UISearchBar searchBar) => _onEditingStarted.OnNext(searchBar); + /// + public override void OnEditingStopped(global::UIKit.UISearchBar searchBar) => _onEditingStopped.OnNext(searchBar); + /// + public override void SearchButtonClicked(global::UIKit.UISearchBar searchBar) => _searchButtonClicked.OnNext(searchBar); + /// + public override void SelectedScopeButtonIndexChanged(global::UIKit.UISearchBar searchBar, global::System.nint selectedScope) => _selectedScopeButtonIndexChanged.OnNext((searchBar, selectedScope)); + /// + public override void TextChanged(global::UIKit.UISearchBar searchBar, string searchText) => _textChanged.OnNext((searchBar, searchText)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UISearchControllerDelegateRx : global::UIKit.UISearchControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissSearchController = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didPresentSearchController = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _presentSearchController = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDismissSearchController = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresentSearchController = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissSearchControllerObs => _didDismissSearchController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidPresentSearchControllerObs => _didPresentSearchController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PresentSearchControllerObs => _presentSearchController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDismissSearchControllerObs => _willDismissSearchController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentSearchControllerObs => _willPresentSearchController; + /// + public override void DidDismissSearchController(global::UIKit.UISearchController searchController) => _didDismissSearchController.OnNext(searchController); + /// + public override void DidPresentSearchController(global::UIKit.UISearchController searchController) => _didPresentSearchController.OnNext(searchController); + /// + public override void PresentSearchController(global::UIKit.UISearchController searchController) => _presentSearchController.OnNext(searchController); + /// + public override void WillDismissSearchController(global::UIKit.UISearchController searchController) => _willDismissSearchController.OnNext(searchController); + /// + public override void WillPresentSearchController(global::UIKit.UISearchController searchController) => _willPresentSearchController.OnNext(searchController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UISplitViewControllerDelegateRx : global::UIKit.UISplitViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UISplitViewControllerDisplayMode displayMode)> _willChangeDisplayMode = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UISplitViewControllerDisplayMode displayMode)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISplitViewController svc, global::UIKit.UISplitViewControllerDisplayMode displayMode)> WillChangeDisplayModeObs => _willChangeDisplayMode; + /// + public override void WillChangeDisplayMode(global::UIKit.UISplitViewController svc, global::UIKit.UISplitViewControllerDisplayMode displayMode) => _willChangeDisplayMode.OnNext((svc, displayMode)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITabBarControllerDelegateRx : global::UIKit.UITabBarControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController viewController)> _viewControllerSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController viewController)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController viewController)> ViewControllerSelectedObs => _viewControllerSelected; + /// + public override void ViewControllerSelected(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController viewController) => _viewControllerSelected.OnNext((tabBarController, viewController)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITabBarDelegateRx : global::UIKit.UITabBarDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem item)> _itemSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem item)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem item)> ItemSelectedObs => _itemSelected; + /// + public override void ItemSelected(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem item) => _itemSelected.OnNext((tabbar, item)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITableViewDelegateRx : global::UIKit.UITableViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _accessoryButtonTapped = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> _cellDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> _didUpdateFocus = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> _footerViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> _headerViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> _performAction = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _rowDeselected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> _rowHighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _rowSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> _rowUnhighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> _willDisplay = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> _willDisplayFooterView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> _willDisplayHeaderView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> AccessoryButtonTappedObs => _accessoryButtonTapped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> CellDisplayingEndedObs => _cellDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> DidUpdateFocusObs => _didUpdateFocus; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> FooterViewDisplayingEndedObs => _footerViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> HeaderViewDisplayingEndedObs => _headerViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> PerformActionObs => _performAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> RowDeselectedObs => _rowDeselected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> RowHighlightedObs => _rowHighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> RowSelectedObs => _rowSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> RowUnhighlightedObs => _rowUnhighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> WillDisplayObs => _willDisplay; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> WillDisplayFooterViewObs => _willDisplayFooterView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> WillDisplayHeaderViewObs => _willDisplayHeaderView; + /// + public override void AccessoryButtonTapped(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _accessoryButtonTapped.OnNext((tableView, indexPath)); + /// + public override void CellDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath) => _cellDisplayingEnded.OnNext((tableView, cell, indexPath)); + /// + public override void DidUpdateFocus(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator) => _didUpdateFocus.OnNext((tableView, context, coordinator)); + /// + public override void FooterViewDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section) => _footerViewDisplayingEnded.OnNext((tableView, footerView, section)); + /// + public override void HeaderViewDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section) => _headerViewDisplayingEnded.OnNext((tableView, headerView, section)); + /// + public override void PerformAction(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender) => _performAction.OnNext((tableView, action, indexPath, sender)); + /// + public override void RowDeselected(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _rowDeselected.OnNext((tableView, indexPath)); + /// + public override void RowHighlighted(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath) => _rowHighlighted.OnNext((tableView, rowIndexPath)); + /// + public override void RowSelected(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _rowSelected.OnNext((tableView, indexPath)); + /// + public override void RowUnhighlighted(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath) => _rowUnhighlighted.OnNext((tableView, rowIndexPath)); + /// + public override void WillDisplay(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath) => _willDisplay.OnNext((tableView, cell, indexPath)); + /// + public override void WillDisplayFooterView(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section) => _willDisplayFooterView.OnNext((tableView, footerView, section)); + /// + public override void WillDisplayHeaderView(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section) => _willDisplayHeaderView.OnNext((tableView, headerView, section)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UITableViewSourceRx : global::UIKit.UITableViewSource + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _accessoryButtonTapped = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> _cellDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCellEditingStyle editingStyle, global::Foundation.NSIndexPath indexPath)> _commitEditingStyle = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCellEditingStyle editingStyle, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> _didUpdateFocus = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> _footerViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> _headerViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath sourceIndexPath, global::Foundation.NSIndexPath destinationIndexPath)> _moveRow = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath sourceIndexPath, global::Foundation.NSIndexPath destinationIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> _performAction = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _rowDeselected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> _rowHighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _rowSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> _rowUnhighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> _willDisplay = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> _willDisplayFooterView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> _willDisplayHeaderView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> AccessoryButtonTappedObs => _accessoryButtonTapped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> CellDisplayingEndedObs => _cellDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCellEditingStyle editingStyle, global::Foundation.NSIndexPath indexPath)> CommitEditingStyleObs => _commitEditingStyle; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> DidUpdateFocusObs => _didUpdateFocus; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> FooterViewDisplayingEndedObs => _footerViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> HeaderViewDisplayingEndedObs => _headerViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath sourceIndexPath, global::Foundation.NSIndexPath destinationIndexPath)> MoveRowObs => _moveRow; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> PerformActionObs => _performAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> RowDeselectedObs => _rowDeselected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> RowHighlightedObs => _rowHighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> RowSelectedObs => _rowSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> RowUnhighlightedObs => _rowUnhighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> WillDisplayObs => _willDisplay; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> WillDisplayFooterViewObs => _willDisplayFooterView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> WillDisplayHeaderViewObs => _willDisplayHeaderView; + /// + public override void AccessoryButtonTapped(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _accessoryButtonTapped.OnNext((tableView, indexPath)); + /// + public override void CellDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath) => _cellDisplayingEnded.OnNext((tableView, cell, indexPath)); + /// + public override void CommitEditingStyle(global::UIKit.UITableView tableView, global::UIKit.UITableViewCellEditingStyle editingStyle, global::Foundation.NSIndexPath indexPath) => _commitEditingStyle.OnNext((tableView, editingStyle, indexPath)); + /// + public override void DidUpdateFocus(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator) => _didUpdateFocus.OnNext((tableView, context, coordinator)); + /// + public override void FooterViewDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section) => _footerViewDisplayingEnded.OnNext((tableView, footerView, section)); + /// + public override void HeaderViewDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section) => _headerViewDisplayingEnded.OnNext((tableView, headerView, section)); + /// + public override void MoveRow(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath sourceIndexPath, global::Foundation.NSIndexPath destinationIndexPath) => _moveRow.OnNext((tableView, sourceIndexPath, destinationIndexPath)); + /// + public override void PerformAction(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender) => _performAction.OnNext((tableView, action, indexPath, sender)); + /// + public override void RowDeselected(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _rowDeselected.OnNext((tableView, indexPath)); + /// + public override void RowHighlighted(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath) => _rowHighlighted.OnNext((tableView, rowIndexPath)); + /// + public override void RowSelected(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _rowSelected.OnNext((tableView, indexPath)); + /// + public override void RowUnhighlighted(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath) => _rowUnhighlighted.OnNext((tableView, rowIndexPath)); + /// + public override void WillDisplay(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath) => _willDisplay.OnNext((tableView, cell, indexPath)); + /// + public override void WillDisplayFooterView(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section) => _willDisplayFooterView.OnNext((tableView, footerView, section)); + /// + public override void WillDisplayHeaderView(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section) => _willDisplayHeaderView.OnNext((tableView, headerView, section)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITextFieldDelegateRx : global::UIKit.UITextFieldDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITextField textField, global::UIKit.UITextFieldDidEndEditingReason reason)> _editingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITextField textField, global::UIKit.UITextFieldDidEndEditingReason reason)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingStarted = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITextField textField, global::UIKit.UITextFieldDidEndEditingReason reason)> EditingEndedObs => _editingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingStartedObs => _editingStarted; + /// + public override void EditingEnded(global::UIKit.UITextField textField, global::UIKit.UITextFieldDidEndEditingReason reason) => _editingEnded.OnNext((textField, reason)); + /// + public override void EditingStarted(global::UIKit.UITextField textField) => _editingStarted.OnNext(textField); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UITextInputDelegateRx : global::UIKit.UITextInputDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _selectionDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionWillChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _textDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _textWillChange = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionDidChangeObs => _selectionDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionWillChangeObs => _selectionWillChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TextDidChangeObs => _textDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TextWillChangeObs => _textWillChange; + /// + public override void SelectionDidChange(global::UIKit.IUITextInput uiTextInput) => _selectionDidChange.OnNext(uiTextInput); + /// + public override void SelectionWillChange(global::UIKit.IUITextInput uiTextInput) => _selectionWillChange.OnNext(uiTextInput); + /// + public override void TextDidChange(global::UIKit.IUITextInput textInput) => _textDidChange.OnNext(textInput); + /// + public override void TextWillChange(global::UIKit.IUITextInput textInput) => _textWillChange.OnNext(textInput); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITextViewDelegateRx : global::UIKit.UITextViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _changed = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionChanged = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ChangedObs => _changed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingEndedObs => _editingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingStartedObs => _editingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionChangedObs => _selectionChanged; + /// + public override void Changed(global::UIKit.UITextView textView) => _changed.OnNext(textView); + /// + public override void EditingEnded(global::UIKit.UITextView textView) => _editingEnded.OnNext(textView); + /// + public override void EditingStarted(global::UIKit.UITextView textView) => _editingStarted.OnNext(textView); + /// + public override void SelectionChanged(global::UIKit.UITextView textView) => _selectionChanged.OnNext(textView); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UIViewControllerPreviewingDelegateRx : global::UIKit.UIViewControllerPreviewingDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUIViewControllerPreviewing previewingContext, global::UIKit.UIViewController viewControllerToCommit)> _commitViewController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUIViewControllerPreviewing previewingContext, global::UIKit.UIViewController viewControllerToCommit)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUIViewControllerPreviewing previewingContext, global::UIKit.UIViewController viewControllerToCommit)> CommitViewControllerObs => _commitViewController; + /// + public override void CommitViewController(global::UIKit.IUIViewControllerPreviewing previewingContext, global::UIKit.UIViewController viewControllerToCommit) => _commitViewController.OnNext((previewingContext, viewControllerToCommit)); + } +} + +namespace UserNotifications +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class UNUserNotificationCenterDelegateRx : global::UserNotifications.UNUserNotificationCenterDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler)> _willPresentNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler)> WillPresentNotificationObs => _willPresentNotification; + /// + public override void WillPresentNotification(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler) => _willPresentNotification.OnNext((center, notification, completionHandler)); + } +} + +namespace VideoSubscriberAccount +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class VSAccountManagerDelegateRx : global::VideoSubscriberAccount.VSAccountManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)> _dismissViewController = new Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)> _presentViewController = new Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)> DismissViewControllerObs => _dismissViewController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)> PresentViewControllerObs => _presentViewController; + /// + public override void DismissViewController(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController) => _dismissViewController.OnNext((accountManager, viewController)); + /// + public override void PresentViewController(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController) => _presentViewController.OnNext((accountManager, viewController)); + } +} \ No newline at end of file diff --git a/src/Pharmacist.Tests/IntegrationTests/Tizen.NET.API4.4.0.1.14152.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/Tizen.NET.API4.4.0.1.14152.approved.txt similarity index 100% rename from src/Pharmacist.Tests/IntegrationTests/Tizen.NET.API4.4.0.1.14152.approved.txt rename to src/Pharmacist.Tests/IntegrationTests/Approved/Tizen.NET.API4.4.0.1.14152.approved.txt diff --git a/src/Pharmacist.Tests/IntegrationTests/Approved/UWP.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/UWP.approved.txt new file mode 100644 index 0000000..3d27a8b --- /dev/null +++ b/src/Pharmacist.Tests/IntegrationTests/Approved/UWP.approved.txt @@ -0,0 +1,24010 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using global::System; +using global::System.Reactive; +using global::System.Reactive.Linq; +using global::System.Reactive.Subjects; + +using global::Pharmacist.Common; + +namespace Windows.ApplicationModel +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PackageCatalogEvents Events(this global::Windows.ApplicationModel.PackageCatalog item) => new PackageCatalogEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PackageCatalogEvents + { + private readonly global::Windows.ApplicationModel.PackageCatalog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PackageCatalogEvents(global::Windows.ApplicationModel.PackageCatalog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageContentGroupStagingEventArgs)> PackageContentGroupStaging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageContentGroupStagingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.PackageCatalog sender, global::Windows.ApplicationModel.PackageContentGroupStagingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageContentGroupStaging += x, x => _data.PackageContentGroupStaging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageInstallingEventArgs)> PackageInstalling => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageInstallingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.PackageCatalog sender, global::Windows.ApplicationModel.PackageInstallingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageInstalling += x, x => _data.PackageInstalling -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageStagingEventArgs)> PackageStaging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageStagingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.PackageCatalog sender, global::Windows.ApplicationModel.PackageStagingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageStaging += x, x => _data.PackageStaging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageStatusChangedEventArgs)> PackageStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageStatusChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.PackageCatalog sender, global::Windows.ApplicationModel.PackageStatusChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageStatusChanged += x, x => _data.PackageStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageUninstallingEventArgs)> PackageUninstalling => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageUninstallingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.PackageCatalog sender, global::Windows.ApplicationModel.PackageUninstallingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageUninstalling += x, x => _data.PackageUninstalling -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageUpdatingEventArgs)> PackageUpdating => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.PackageCatalog, global::Windows.ApplicationModel.PackageUpdatingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.PackageCatalog sender, global::Windows.ApplicationModel.PackageUpdatingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageUpdating += x, x => _data.PackageUpdating -= x); + } +} + +namespace Windows.ApplicationModel.Activation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SplashScreenEvents Events(this global::Windows.ApplicationModel.Activation.SplashScreen item) => new SplashScreenEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SplashScreenEvents + { + private readonly global::Windows.ApplicationModel.Activation.SplashScreen _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SplashScreenEvents(global::Windows.ApplicationModel.Activation.SplashScreen data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Activation.SplashScreen, object)> Dismissed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Activation.SplashScreen, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Activation.SplashScreen sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Dismissed += x, x => _data.Dismissed -= x); + } +} + +namespace Windows.ApplicationModel.AppExtensions +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppExtensionCatalogEvents Events(this global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog item) => new AppExtensionCatalogEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppExtensionCatalogEvents + { + private readonly global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppExtensionCatalogEvents(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs)> PackageInstalled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog sender, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageInstalled += x, x => _data.PackageInstalled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageStatusChangedEventArgs)> PackageStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageStatusChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog sender, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageStatusChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageStatusChanged += x, x => _data.PackageStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageUninstallingEventArgs)> PackageUninstalling => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageUninstallingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog sender, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageUninstallingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageUninstalling += x, x => _data.PackageUninstalling -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs)> PackageUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog sender, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageUpdated += x, x => _data.PackageUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatingEventArgs)> PackageUpdating => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.AppExtensions.AppExtensionCatalog sender, global::Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PackageUpdating += x, x => _data.PackageUpdating -= x); + } +} + +namespace Windows.ApplicationModel.Appointments +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppointmentCalendarSyncManagerEvents Events(this global::Windows.ApplicationModel.Appointments.AppointmentCalendarSyncManager item) => new AppointmentCalendarSyncManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppointmentStoreEvents Events(this global::Windows.ApplicationModel.Appointments.AppointmentStore item) => new AppointmentStoreEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppointmentCalendarSyncManagerEvents + { + private readonly global::Windows.ApplicationModel.Appointments.AppointmentCalendarSyncManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppointmentCalendarSyncManagerEvents(global::Windows.ApplicationModel.Appointments.AppointmentCalendarSyncManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Appointments.AppointmentCalendarSyncManager, object)> SyncStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Appointments.AppointmentCalendarSyncManager, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Appointments.AppointmentCalendarSyncManager sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SyncStatusChanged += x, x => _data.SyncStatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppointmentStoreEvents + { + private readonly global::Windows.ApplicationModel.Appointments.AppointmentStore _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppointmentStoreEvents(global::Windows.ApplicationModel.Appointments.AppointmentStore data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Appointments.AppointmentStore, global::Windows.ApplicationModel.Appointments.AppointmentStoreChangedEventArgs)> StoreChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Appointments.AppointmentStore, global::Windows.ApplicationModel.Appointments.AppointmentStoreChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Appointments.AppointmentStore sender, global::Windows.ApplicationModel.Appointments.AppointmentStoreChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StoreChanged += x, x => _data.StoreChanged -= x); + } +} + +namespace Windows.ApplicationModel.Appointments.DataProvider +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppointmentDataProviderConnectionEvents Events(this global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection item) => new AppointmentDataProviderConnectionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppointmentDataProviderConnectionEvents + { + private readonly global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppointmentDataProviderConnectionEvents(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCancelMeetingRequestEventArgs)> CancelMeetingRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCancelMeetingRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection sender, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCancelMeetingRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CancelMeetingRequested += x, x => _data.CancelMeetingRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs)> CreateOrUpdateAppointmentRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection sender, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CreateOrUpdateAppointmentRequested += x, x => _data.CreateOrUpdateAppointmentRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarForwardMeetingRequestEventArgs)> ForwardMeetingRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarForwardMeetingRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection sender, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarForwardMeetingRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ForwardMeetingRequested += x, x => _data.ForwardMeetingRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs)> ProposeNewTimeForMeetingRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection sender, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ProposeNewTimeForMeetingRequested += x, x => _data.ProposeNewTimeForMeetingRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarSyncManagerSyncRequestEventArgs)> SyncRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarSyncManagerSyncRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection sender, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarSyncManagerSyncRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SyncRequested += x, x => _data.SyncRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarUpdateMeetingResponseRequestEventArgs)> UpdateMeetingResponseRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarUpdateMeetingResponseRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection sender, global::Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarUpdateMeetingResponseRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UpdateMeetingResponseRequested += x, x => _data.UpdateMeetingResponseRequested -= x); + } +} + +namespace Windows.ApplicationModel.AppService +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppServiceConnectionEvents Events(this global::Windows.ApplicationModel.AppService.AppServiceConnection item) => new AppServiceConnectionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppServiceConnectionEvents + { + private readonly global::Windows.ApplicationModel.AppService.AppServiceConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppServiceConnectionEvents(global::Windows.ApplicationModel.AppService.AppServiceConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.AppService.AppServiceConnection, global::Windows.ApplicationModel.AppService.AppServiceRequestReceivedEventArgs)> RequestReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.AppService.AppServiceConnection, global::Windows.ApplicationModel.AppService.AppServiceRequestReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.AppService.AppServiceConnection sender, global::Windows.ApplicationModel.AppService.AppServiceRequestReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RequestReceived += x, x => _data.RequestReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.AppService.AppServiceConnection, global::Windows.ApplicationModel.AppService.AppServiceClosedEventArgs)> ServiceClosed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.AppService.AppServiceConnection, global::Windows.ApplicationModel.AppService.AppServiceClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.AppService.AppServiceConnection sender, global::Windows.ApplicationModel.AppService.AppServiceClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ServiceClosed += x, x => _data.ServiceClosed -= x); + } +} + +namespace Windows.ApplicationModel.Background +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BackgroundTaskRegistrationEvents Events(this global::Windows.ApplicationModel.Background.BackgroundTaskRegistration item) => new BackgroundTaskRegistrationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BackgroundTaskRegistrationGroupEvents Events(this global::Windows.ApplicationModel.Background.BackgroundTaskRegistrationGroup item) => new BackgroundTaskRegistrationGroupEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IBackgroundTaskInstanceEvents Events(this global::Windows.ApplicationModel.Background.IBackgroundTaskInstance item) => new IBackgroundTaskInstanceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IBackgroundTaskRegistrationEvents Events(this global::Windows.ApplicationModel.Background.IBackgroundTaskRegistration item) => new IBackgroundTaskRegistrationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BackgroundTaskRegistrationEvents + { + private readonly global::Windows.ApplicationModel.Background.BackgroundTaskRegistration _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BackgroundTaskRegistrationEvents(global::Windows.ApplicationModel.Background.BackgroundTaskRegistration data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Background.BackgroundTaskRegistration, global::Windows.ApplicationModel.Background.BackgroundTaskCompletedEventArgs)> Completed => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Background.BackgroundTaskRegistration sender, global::Windows.ApplicationModel.Background.BackgroundTaskCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Completed += x, x => _data.Completed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Background.BackgroundTaskRegistration, global::Windows.ApplicationModel.Background.BackgroundTaskProgressEventArgs)> Progress => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Background.BackgroundTaskRegistration sender, global::Windows.ApplicationModel.Background.BackgroundTaskProgressEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Progress += x, x => _data.Progress -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BackgroundTaskRegistrationGroupEvents + { + private readonly global::Windows.ApplicationModel.Background.BackgroundTaskRegistrationGroup _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BackgroundTaskRegistrationGroupEvents(global::Windows.ApplicationModel.Background.BackgroundTaskRegistrationGroup data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Background.BackgroundTaskRegistrationGroup, global::Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs)> BackgroundActivated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Background.BackgroundTaskRegistrationGroup, global::Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Background.BackgroundTaskRegistrationGroup sender, global::Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BackgroundActivated += x, x => _data.BackgroundActivated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IBackgroundTaskInstanceEvents + { + private readonly global::Windows.ApplicationModel.Background.IBackgroundTaskInstance _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IBackgroundTaskInstanceEvents(global::Windows.ApplicationModel.Background.IBackgroundTaskInstance data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Background.IBackgroundTaskInstance, global::Windows.ApplicationModel.Background.BackgroundTaskCancellationReason)> Canceled => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Background.IBackgroundTaskInstance sender, global::Windows.ApplicationModel.Background.BackgroundTaskCancellationReason reason) => eventHandler((sender, reason)); + return Handler; + } + + , x => _data.Canceled += x, x => _data.Canceled -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IBackgroundTaskRegistrationEvents + { + private readonly global::Windows.ApplicationModel.Background.IBackgroundTaskRegistration _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IBackgroundTaskRegistrationEvents(global::Windows.ApplicationModel.Background.IBackgroundTaskRegistration data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Background.BackgroundTaskRegistration, global::Windows.ApplicationModel.Background.BackgroundTaskCompletedEventArgs)> Completed => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Background.BackgroundTaskRegistration sender, global::Windows.ApplicationModel.Background.BackgroundTaskCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Completed += x, x => _data.Completed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Background.BackgroundTaskRegistration, global::Windows.ApplicationModel.Background.BackgroundTaskProgressEventArgs)> Progress => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Background.BackgroundTaskRegistration sender, global::Windows.ApplicationModel.Background.BackgroundTaskProgressEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Progress += x, x => _data.Progress -= x); + } +} + +namespace Windows.ApplicationModel.Calls +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LockScreenCallUIEvents Events(this global::Windows.ApplicationModel.Calls.LockScreenCallUI item) => new LockScreenCallUIEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PhoneLineEvents Events(this global::Windows.ApplicationModel.Calls.PhoneLine item) => new PhoneLineEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PhoneLineWatcherEvents Events(this global::Windows.ApplicationModel.Calls.PhoneLineWatcher item) => new PhoneLineWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VoipCallCoordinatorEvents Events(this global::Windows.ApplicationModel.Calls.VoipCallCoordinator item) => new VoipCallCoordinatorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VoipPhoneCallEvents Events(this global::Windows.ApplicationModel.Calls.VoipPhoneCall item) => new VoipPhoneCallEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LockScreenCallUIEvents + { + private readonly global::Windows.ApplicationModel.Calls.LockScreenCallUI _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LockScreenCallUIEvents(global::Windows.ApplicationModel.Calls.LockScreenCallUI data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.LockScreenCallUI, object)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.LockScreenCallUI, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.LockScreenCallUI sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.LockScreenCallUI, global::Windows.ApplicationModel.Calls.LockScreenCallEndRequestedEventArgs)> EndRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.LockScreenCallUI, global::Windows.ApplicationModel.Calls.LockScreenCallEndRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.LockScreenCallUI sender, global::Windows.ApplicationModel.Calls.LockScreenCallEndRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EndRequested += x, x => _data.EndRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PhoneLineEvents + { + private readonly global::Windows.ApplicationModel.Calls.PhoneLine _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PhoneLineEvents(global::Windows.ApplicationModel.Calls.PhoneLine data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.PhoneLine, object)> LineChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.PhoneLine, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.PhoneLine sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LineChanged += x, x => _data.LineChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PhoneLineWatcherEvents + { + private readonly global::Windows.ApplicationModel.Calls.PhoneLineWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PhoneLineWatcherEvents(global::Windows.ApplicationModel.Calls.PhoneLineWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.PhoneLineWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.PhoneLineWatcher, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.PhoneLineWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.PhoneLineWatcher, global::Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs)> LineAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.PhoneLineWatcher, global::Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.PhoneLineWatcher sender, global::Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LineAdded += x, x => _data.LineAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.PhoneLineWatcher, global::Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs)> LineRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.PhoneLineWatcher, global::Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.PhoneLineWatcher sender, global::Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LineRemoved += x, x => _data.LineRemoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.PhoneLineWatcher, global::Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs)> LineUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.PhoneLineWatcher, global::Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.PhoneLineWatcher sender, global::Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LineUpdated += x, x => _data.LineUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.PhoneLineWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.PhoneLineWatcher, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.PhoneLineWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VoipCallCoordinatorEvents + { + private readonly global::Windows.ApplicationModel.Calls.VoipCallCoordinator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VoipCallCoordinatorEvents(global::Windows.ApplicationModel.Calls.VoipCallCoordinator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.VoipCallCoordinator, global::Windows.ApplicationModel.Calls.MuteChangeEventArgs)> MuteStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.VoipCallCoordinator, global::Windows.ApplicationModel.Calls.MuteChangeEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.VoipCallCoordinator sender, global::Windows.ApplicationModel.Calls.MuteChangeEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MuteStateChanged += x, x => _data.MuteStateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VoipPhoneCallEvents + { + private readonly global::Windows.ApplicationModel.Calls.VoipPhoneCall _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VoipPhoneCallEvents(global::Windows.ApplicationModel.Calls.VoipPhoneCall data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallAnswerEventArgs)> AnswerRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallAnswerEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.VoipPhoneCall sender, global::Windows.ApplicationModel.Calls.CallAnswerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AnswerRequested += x, x => _data.AnswerRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallStateChangeEventArgs)> EndRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallStateChangeEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.VoipPhoneCall sender, global::Windows.ApplicationModel.Calls.CallStateChangeEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EndRequested += x, x => _data.EndRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallStateChangeEventArgs)> HoldRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallStateChangeEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.VoipPhoneCall sender, global::Windows.ApplicationModel.Calls.CallStateChangeEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HoldRequested += x, x => _data.HoldRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallRejectEventArgs)> RejectRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallRejectEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.VoipPhoneCall sender, global::Windows.ApplicationModel.Calls.CallRejectEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RejectRequested += x, x => _data.RejectRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallStateChangeEventArgs)> ResumeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Calls.VoipPhoneCall, global::Windows.ApplicationModel.Calls.CallStateChangeEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Calls.VoipPhoneCall sender, global::Windows.ApplicationModel.Calls.CallStateChangeEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ResumeRequested += x, x => _data.ResumeRequested -= x); + } +} + +namespace Windows.ApplicationModel.Chat +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ChatConversationEvents Events(this global::Windows.ApplicationModel.Chat.ChatConversation item) => new ChatConversationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ChatMessageStoreEvents Events(this global::Windows.ApplicationModel.Chat.ChatMessageStore item) => new ChatMessageStoreEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RcsEndUserMessageManagerEvents Events(this global::Windows.ApplicationModel.Chat.RcsEndUserMessageManager item) => new RcsEndUserMessageManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RcsTransportEvents Events(this global::Windows.ApplicationModel.Chat.RcsTransport item) => new RcsTransportEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ChatConversationEvents + { + private readonly global::Windows.ApplicationModel.Chat.ChatConversation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ChatConversationEvents(global::Windows.ApplicationModel.Chat.ChatConversation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Chat.ChatConversation, global::Windows.ApplicationModel.Chat.RemoteParticipantComposingChangedEventArgs)> RemoteParticipantComposingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Chat.ChatConversation, global::Windows.ApplicationModel.Chat.RemoteParticipantComposingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Chat.ChatConversation sender, global::Windows.ApplicationModel.Chat.RemoteParticipantComposingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RemoteParticipantComposingChanged += x, x => _data.RemoteParticipantComposingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ChatMessageStoreEvents + { + private readonly global::Windows.ApplicationModel.Chat.ChatMessageStore _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ChatMessageStoreEvents(global::Windows.ApplicationModel.Chat.ChatMessageStore data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Chat.ChatMessageStore, global::Windows.ApplicationModel.Chat.ChatMessageChangedEventArgs)> MessageChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Chat.ChatMessageStore, global::Windows.ApplicationModel.Chat.ChatMessageChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Chat.ChatMessageStore sender, global::Windows.ApplicationModel.Chat.ChatMessageChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MessageChanged += x, x => _data.MessageChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Chat.ChatMessageStore, global::Windows.ApplicationModel.Chat.ChatMessageStoreChangedEventArgs)> StoreChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Chat.ChatMessageStore, global::Windows.ApplicationModel.Chat.ChatMessageStoreChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Chat.ChatMessageStore sender, global::Windows.ApplicationModel.Chat.ChatMessageStoreChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StoreChanged += x, x => _data.StoreChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RcsEndUserMessageManagerEvents + { + private readonly global::Windows.ApplicationModel.Chat.RcsEndUserMessageManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RcsEndUserMessageManagerEvents(global::Windows.ApplicationModel.Chat.RcsEndUserMessageManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Chat.RcsEndUserMessageManager, global::Windows.ApplicationModel.Chat.RcsEndUserMessageAvailableEventArgs)> MessageAvailableChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Chat.RcsEndUserMessageManager, global::Windows.ApplicationModel.Chat.RcsEndUserMessageAvailableEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Chat.RcsEndUserMessageManager sender, global::Windows.ApplicationModel.Chat.RcsEndUserMessageAvailableEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MessageAvailableChanged += x, x => _data.MessageAvailableChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RcsTransportEvents + { + private readonly global::Windows.ApplicationModel.Chat.RcsTransport _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RcsTransportEvents(global::Windows.ApplicationModel.Chat.RcsTransport data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Chat.RcsTransport, global::Windows.ApplicationModel.Chat.RcsServiceKindSupportedChangedEventArgs)> ServiceKindSupportedChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Chat.RcsTransport, global::Windows.ApplicationModel.Chat.RcsServiceKindSupportedChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Chat.RcsTransport sender, global::Windows.ApplicationModel.Chat.RcsServiceKindSupportedChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ServiceKindSupportedChanged += x, x => _data.ServiceKindSupportedChanged -= x); + } +} + +namespace Windows.ApplicationModel.Contacts +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContactListEvents Events(this global::Windows.ApplicationModel.Contacts.ContactList item) => new ContactListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContactListSyncManagerEvents Events(this global::Windows.ApplicationModel.Contacts.ContactListSyncManager item) => new ContactListSyncManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContactPanelEvents Events(this global::Windows.ApplicationModel.Contacts.ContactPanel item) => new ContactPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContactStoreEvents Events(this global::Windows.ApplicationModel.Contacts.ContactStore item) => new ContactStoreEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContactListEvents + { + private readonly global::Windows.ApplicationModel.Contacts.ContactList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContactListEvents(global::Windows.ApplicationModel.Contacts.ContactList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.ContactList, global::Windows.ApplicationModel.Contacts.ContactChangedEventArgs)> ContactChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.ContactList, global::Windows.ApplicationModel.Contacts.ContactChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.ContactList sender, global::Windows.ApplicationModel.Contacts.ContactChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContactChanged += x, x => _data.ContactChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContactListSyncManagerEvents + { + private readonly global::Windows.ApplicationModel.Contacts.ContactListSyncManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContactListSyncManagerEvents(global::Windows.ApplicationModel.Contacts.ContactListSyncManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.ContactListSyncManager, object)> SyncStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.ContactListSyncManager, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.ContactListSyncManager sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SyncStatusChanged += x, x => _data.SyncStatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContactPanelEvents + { + private readonly global::Windows.ApplicationModel.Contacts.ContactPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContactPanelEvents(global::Windows.ApplicationModel.Contacts.ContactPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.ContactPanel, global::Windows.ApplicationModel.Contacts.ContactPanelClosingEventArgs)> Closing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.ContactPanel, global::Windows.ApplicationModel.Contacts.ContactPanelClosingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.ContactPanel sender, global::Windows.ApplicationModel.Contacts.ContactPanelClosingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closing += x, x => _data.Closing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.ContactPanel, global::Windows.ApplicationModel.Contacts.ContactPanelLaunchFullAppRequestedEventArgs)> LaunchFullAppRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.ContactPanel, global::Windows.ApplicationModel.Contacts.ContactPanelLaunchFullAppRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.ContactPanel sender, global::Windows.ApplicationModel.Contacts.ContactPanelLaunchFullAppRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LaunchFullAppRequested += x, x => _data.LaunchFullAppRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContactStoreEvents + { + private readonly global::Windows.ApplicationModel.Contacts.ContactStore _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContactStoreEvents(global::Windows.ApplicationModel.Contacts.ContactStore data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.ContactStore, global::Windows.ApplicationModel.Contacts.ContactChangedEventArgs)> ContactChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.ContactStore, global::Windows.ApplicationModel.Contacts.ContactChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.ContactStore sender, global::Windows.ApplicationModel.Contacts.ContactChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContactChanged += x, x => _data.ContactChanged -= x); + } +} + +namespace Windows.ApplicationModel.Contacts.DataProvider +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContactDataProviderConnectionEvents Events(this global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection item) => new ContactDataProviderConnectionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContactDataProviderConnectionEvents + { + private readonly global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContactDataProviderConnectionEvents(global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListCreateOrUpdateContactRequestEventArgs)> CreateOrUpdateContactRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListCreateOrUpdateContactRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection sender, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListCreateOrUpdateContactRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CreateOrUpdateContactRequested += x, x => _data.CreateOrUpdateContactRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListDeleteContactRequestEventArgs)> DeleteContactRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListDeleteContactRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection sender, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListDeleteContactRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DeleteContactRequested += x, x => _data.DeleteContactRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListServerSearchReadBatchRequestEventArgs)> ServerSearchReadBatchRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListServerSearchReadBatchRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection sender, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListServerSearchReadBatchRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ServerSearchReadBatchRequested += x, x => _data.ServerSearchReadBatchRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListSyncManagerSyncRequestEventArgs)> SyncRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListSyncManagerSyncRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection sender, global::Windows.ApplicationModel.Contacts.DataProvider.ContactListSyncManagerSyncRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SyncRequested += x, x => _data.SyncRequested -= x); + } +} + +namespace Windows.ApplicationModel.Contacts.Provider +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContactPickerUIEvents Events(this global::Windows.ApplicationModel.Contacts.Provider.ContactPickerUI item) => new ContactPickerUIEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContactPickerUIEvents + { + private readonly global::Windows.ApplicationModel.Contacts.Provider.ContactPickerUI _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContactPickerUIEvents(global::Windows.ApplicationModel.Contacts.Provider.ContactPickerUI data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Contacts.Provider.ContactPickerUI, global::Windows.ApplicationModel.Contacts.Provider.ContactRemovedEventArgs)> ContactRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Contacts.Provider.ContactPickerUI, global::Windows.ApplicationModel.Contacts.Provider.ContactRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Contacts.Provider.ContactPickerUI sender, global::Windows.ApplicationModel.Contacts.Provider.ContactRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContactRemoved += x, x => _data.ContactRemoved -= x); + } +} + +namespace Windows.ApplicationModel.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreApplicationViewEvents Events(this global::Windows.ApplicationModel.Core.CoreApplicationView item) => new CoreApplicationViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreApplicationViewTitleBarEvents Events(this global::Windows.ApplicationModel.Core.CoreApplicationViewTitleBar item) => new CoreApplicationViewTitleBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ICoreApplicationUnhandledErrorEvents Events(this global::Windows.ApplicationModel.Core.ICoreApplicationUnhandledError item) => new ICoreApplicationUnhandledErrorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreApplicationViewEvents + { + private readonly global::Windows.ApplicationModel.Core.CoreApplicationView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreApplicationViewEvents(global::Windows.ApplicationModel.Core.CoreApplicationView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Core.CoreApplicationView, global::Windows.ApplicationModel.Activation.IActivatedEventArgs)> Activated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Core.CoreApplicationView, global::Windows.ApplicationModel.Activation.IActivatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Core.CoreApplicationView sender, global::Windows.ApplicationModel.Activation.IActivatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Activated += x, x => _data.Activated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Core.CoreApplicationView, global::Windows.ApplicationModel.Core.HostedViewClosingEventArgs)> HostedViewClosing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Core.CoreApplicationView, global::Windows.ApplicationModel.Core.HostedViewClosingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Core.CoreApplicationView sender, global::Windows.ApplicationModel.Core.HostedViewClosingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HostedViewClosing += x, x => _data.HostedViewClosing -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreApplicationViewTitleBarEvents + { + private readonly global::Windows.ApplicationModel.Core.CoreApplicationViewTitleBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreApplicationViewTitleBarEvents(global::Windows.ApplicationModel.Core.CoreApplicationViewTitleBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Core.CoreApplicationViewTitleBar, object)> IsVisibleChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Core.CoreApplicationViewTitleBar, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Core.CoreApplicationViewTitleBar sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsVisibleChanged += x, x => _data.IsVisibleChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Core.CoreApplicationViewTitleBar, object)> LayoutMetricsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Core.CoreApplicationViewTitleBar, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Core.CoreApplicationViewTitleBar sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LayoutMetricsChanged += x, x => _data.LayoutMetricsChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ICoreApplicationUnhandledErrorEvents + { + private readonly global::Windows.ApplicationModel.Core.ICoreApplicationUnhandledError _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ICoreApplicationUnhandledErrorEvents(global::Windows.ApplicationModel.Core.ICoreApplicationUnhandledError data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UnhandledErrorDetected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.ApplicationModel.Core.UnhandledErrorDetectedEventArgs>(x => _data.UnhandledErrorDetected += x, x => _data.UnhandledErrorDetected -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.ApplicationModel.DataTransfer +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataPackageEvents Events(this global::Windows.ApplicationModel.DataTransfer.DataPackage item) => new DataPackageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataTransferManagerEvents Events(this global::Windows.ApplicationModel.DataTransfer.DataTransferManager item) => new DataTransferManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataPackageEvents + { + private readonly global::Windows.ApplicationModel.DataTransfer.DataPackage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataPackageEvents(global::Windows.ApplicationModel.DataTransfer.DataPackage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.DataTransfer.DataPackage, object)> Destroyed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.DataTransfer.DataPackage, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.DataTransfer.DataPackage sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Destroyed += x, x => _data.Destroyed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.DataTransfer.DataPackage, global::Windows.ApplicationModel.DataTransfer.OperationCompletedEventArgs)> OperationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.DataTransfer.DataPackage, global::Windows.ApplicationModel.DataTransfer.OperationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.DataTransfer.DataPackage sender, global::Windows.ApplicationModel.DataTransfer.OperationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OperationCompleted += x, x => _data.OperationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.DataTransfer.DataPackage, global::Windows.ApplicationModel.DataTransfer.ShareCompletedEventArgs)> ShareCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.DataTransfer.DataPackage, global::Windows.ApplicationModel.DataTransfer.ShareCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.DataTransfer.DataPackage sender, global::Windows.ApplicationModel.DataTransfer.ShareCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ShareCompleted += x, x => _data.ShareCompleted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataTransferManagerEvents + { + private readonly global::Windows.ApplicationModel.DataTransfer.DataTransferManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataTransferManagerEvents(global::Windows.ApplicationModel.DataTransfer.DataTransferManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.DataTransfer.DataTransferManager, global::Windows.ApplicationModel.DataTransfer.DataRequestedEventArgs)> DataRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.DataTransfer.DataTransferManager, global::Windows.ApplicationModel.DataTransfer.DataRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.DataTransfer.DataTransferManager sender, global::Windows.ApplicationModel.DataTransfer.DataRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DataRequested += x, x => _data.DataRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.DataTransfer.DataTransferManager, global::Windows.ApplicationModel.DataTransfer.ShareProvidersRequestedEventArgs)> ShareProvidersRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.DataTransfer.DataTransferManager, global::Windows.ApplicationModel.DataTransfer.ShareProvidersRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.DataTransfer.DataTransferManager sender, global::Windows.ApplicationModel.DataTransfer.ShareProvidersRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ShareProvidersRequested += x, x => _data.ShareProvidersRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.DataTransfer.DataTransferManager, global::Windows.ApplicationModel.DataTransfer.TargetApplicationChosenEventArgs)> TargetApplicationChosen => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.DataTransfer.DataTransferManager, global::Windows.ApplicationModel.DataTransfer.TargetApplicationChosenEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.DataTransfer.DataTransferManager sender, global::Windows.ApplicationModel.DataTransfer.TargetApplicationChosenEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TargetApplicationChosen += x, x => _data.TargetApplicationChosen -= x); + } +} + +namespace Windows.ApplicationModel.DataTransfer.DragDrop.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreDragDropManagerEvents Events(this global::Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager item) => new CoreDragDropManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreDragDropManagerEvents + { + private readonly global::Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreDragDropManagerEvents(global::Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager, global::Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDropOperationTargetRequestedEventArgs)> TargetRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager, global::Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDropOperationTargetRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager sender, global::Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDropOperationTargetRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TargetRequested += x, x => _data.TargetRequested -= x); + } +} + +namespace Windows.ApplicationModel.Email +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EmailMailboxEvents Events(this global::Windows.ApplicationModel.Email.EmailMailbox item) => new EmailMailboxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EmailMailboxSyncManagerEvents Events(this global::Windows.ApplicationModel.Email.EmailMailboxSyncManager item) => new EmailMailboxSyncManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EmailMailboxEvents + { + private readonly global::Windows.ApplicationModel.Email.EmailMailbox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EmailMailboxEvents(global::Windows.ApplicationModel.Email.EmailMailbox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.EmailMailbox, global::Windows.ApplicationModel.Email.EmailMailboxChangedEventArgs)> MailboxChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.EmailMailbox, global::Windows.ApplicationModel.Email.EmailMailboxChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.EmailMailbox sender, global::Windows.ApplicationModel.Email.EmailMailboxChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MailboxChanged += x, x => _data.MailboxChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EmailMailboxSyncManagerEvents + { + private readonly global::Windows.ApplicationModel.Email.EmailMailboxSyncManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EmailMailboxSyncManagerEvents(global::Windows.ApplicationModel.Email.EmailMailboxSyncManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.EmailMailboxSyncManager, object)> SyncStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.EmailMailboxSyncManager, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.EmailMailboxSyncManager sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SyncStatusChanged += x, x => _data.SyncStatusChanged -= x); + } +} + +namespace Windows.ApplicationModel.Email.DataProvider +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EmailDataProviderConnectionEvents Events(this global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection item) => new EmailDataProviderConnectionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EmailDataProviderConnectionEvents + { + private readonly global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EmailDataProviderConnectionEvents(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxCreateFolderRequestEventArgs)> CreateFolderRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxCreateFolderRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxCreateFolderRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CreateFolderRequested += x, x => _data.CreateFolderRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxDeleteFolderRequestEventArgs)> DeleteFolderRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxDeleteFolderRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxDeleteFolderRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DeleteFolderRequested += x, x => _data.DeleteFolderRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadAttachmentRequestEventArgs)> DownloadAttachmentRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadAttachmentRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadAttachmentRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DownloadAttachmentRequested += x, x => _data.DownloadAttachmentRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadMessageRequestEventArgs)> DownloadMessageRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadMessageRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadMessageRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DownloadMessageRequested += x, x => _data.DownloadMessageRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxEmptyFolderRequestEventArgs)> EmptyFolderRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxEmptyFolderRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxEmptyFolderRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EmptyFolderRequested += x, x => _data.EmptyFolderRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxForwardMeetingRequestEventArgs)> ForwardMeetingRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxForwardMeetingRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxForwardMeetingRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ForwardMeetingRequested += x, x => _data.ForwardMeetingRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxGetAutoReplySettingsRequestEventArgs)> GetAutoReplySettingsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxGetAutoReplySettingsRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxGetAutoReplySettingsRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GetAutoReplySettingsRequested += x, x => _data.GetAutoReplySettingsRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxSyncManagerSyncRequestEventArgs)> MailboxSyncRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxSyncManagerSyncRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxSyncManagerSyncRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MailboxSyncRequested += x, x => _data.MailboxSyncRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxMoveFolderRequestEventArgs)> MoveFolderRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxMoveFolderRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxMoveFolderRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MoveFolderRequested += x, x => _data.MoveFolderRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxProposeNewTimeForMeetingRequestEventArgs)> ProposeNewTimeForMeetingRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxProposeNewTimeForMeetingRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxProposeNewTimeForMeetingRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ProposeNewTimeForMeetingRequested += x, x => _data.ProposeNewTimeForMeetingRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxResolveRecipientsRequestEventArgs)> ResolveRecipientsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxResolveRecipientsRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxResolveRecipientsRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ResolveRecipientsRequested += x, x => _data.ResolveRecipientsRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxServerSearchReadBatchRequestEventArgs)> ServerSearchReadBatchRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxServerSearchReadBatchRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxServerSearchReadBatchRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ServerSearchReadBatchRequested += x, x => _data.ServerSearchReadBatchRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxSetAutoReplySettingsRequestEventArgs)> SetAutoReplySettingsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxSetAutoReplySettingsRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxSetAutoReplySettingsRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SetAutoReplySettingsRequested += x, x => _data.SetAutoReplySettingsRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxUpdateMeetingResponseRequestEventArgs)> UpdateMeetingResponseRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxUpdateMeetingResponseRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxUpdateMeetingResponseRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UpdateMeetingResponseRequested += x, x => _data.UpdateMeetingResponseRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxValidateCertificatesRequestEventArgs)> ValidateCertificatesRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxValidateCertificatesRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection sender, global::Windows.ApplicationModel.Email.DataProvider.EmailMailboxValidateCertificatesRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ValidateCertificatesRequested += x, x => _data.ValidateCertificatesRequested -= x); + } +} + +namespace Windows.ApplicationModel.ExtendedExecution +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ExtendedExecutionSessionEvents Events(this global::Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession item) => new ExtendedExecutionSessionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ExtendedExecutionSessionEvents + { + private readonly global::Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ExtendedExecutionSessionEvents(global::Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Revoked => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionRevokedEventArgs>(x => _data.Revoked += x, x => _data.Revoked -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.ApplicationModel.ExtendedExecution.Foreground +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ExtendedExecutionForegroundSessionEvents Events(this global::Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession item) => new ExtendedExecutionForegroundSessionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ExtendedExecutionForegroundSessionEvents + { + private readonly global::Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ExtendedExecutionForegroundSessionEvents(global::Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Revoked => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundRevokedEventArgs>(x => _data.Revoked += x, x => _data.Revoked -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.ApplicationModel.LockScreen +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LockApplicationHostEvents Events(this global::Windows.ApplicationModel.LockScreen.LockApplicationHost item) => new LockApplicationHostEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LockScreenInfoEvents Events(this global::Windows.ApplicationModel.LockScreen.LockScreenInfo item) => new LockScreenInfoEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LockApplicationHostEvents + { + private readonly global::Windows.ApplicationModel.LockScreen.LockApplicationHost _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LockApplicationHostEvents(global::Windows.ApplicationModel.LockScreen.LockApplicationHost data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.LockScreen.LockApplicationHost, global::Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs)> Unlocking => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.LockScreen.LockApplicationHost, global::Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.LockScreen.LockApplicationHost sender, global::Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Unlocking += x, x => _data.Unlocking -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LockScreenInfoEvents + { + private readonly global::Windows.ApplicationModel.LockScreen.LockScreenInfo _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LockScreenInfoEvents(global::Windows.ApplicationModel.LockScreen.LockScreenInfo data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.LockScreen.LockScreenInfo, object)> AlarmIconChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.LockScreen.LockScreenInfo, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.LockScreen.LockScreenInfo sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AlarmIconChanged += x, x => _data.AlarmIconChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.LockScreen.LockScreenInfo, object)> BadgesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.LockScreen.LockScreenInfo, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.LockScreen.LockScreenInfo sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BadgesChanged += x, x => _data.BadgesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.LockScreen.LockScreenInfo, object)> DetailTextChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.LockScreen.LockScreenInfo, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.LockScreen.LockScreenInfo sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DetailTextChanged += x, x => _data.DetailTextChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.LockScreen.LockScreenInfo, object)> LockScreenImageChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.LockScreen.LockScreenInfo, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.LockScreen.LockScreenInfo sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LockScreenImageChanged += x, x => _data.LockScreenImageChanged -= x); + } +} + +namespace Windows.ApplicationModel.Preview.Notes +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NotesWindowManagerPreviewEvents Events(this global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview item) => new NotesWindowManagerPreviewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NotesWindowManagerPreviewEvents + { + private readonly global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NotesWindowManagerPreviewEvents(global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview, global::Windows.ApplicationModel.Preview.Notes.NotePlacementChangedPreviewEventArgs)> NotePlacementChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview, global::Windows.ApplicationModel.Preview.Notes.NotePlacementChangedPreviewEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview sender, global::Windows.ApplicationModel.Preview.Notes.NotePlacementChangedPreviewEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NotePlacementChanged += x, x => _data.NotePlacementChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview, global::Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs)> NoteVisibilityChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview, global::Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview sender, global::Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NoteVisibilityChanged += x, x => _data.NoteVisibilityChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview, object)> SystemLockStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SystemLockStateChanged += x, x => _data.SystemLockStateChanged -= x); + } +} + +namespace Windows.ApplicationModel.Resources.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ResourceQualifierObservableMapEvents Events(this global::Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap item) => new ResourceQualifierObservableMapEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ResourceQualifierObservableMapEvents + { + private readonly global::Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ResourceQualifierObservableMapEvents(global::Windows.ApplicationModel.Resources.Core.ResourceQualifierObservableMap data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)> MapChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Collections.IObservableMap sender, global::Windows.Foundation.Collections.IMapChangedEventArgs event) => eventHandler((sender, event)); + return Handler; + } + + , x => _data.MapChanged += x, x => _data.MapChanged -= x); + } +} + +namespace Windows.ApplicationModel.Search +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SearchPaneEvents Events(this global::Windows.ApplicationModel.Search.SearchPane item) => new SearchPaneEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SearchPaneEvents + { + private readonly global::Windows.ApplicationModel.Search.SearchPane _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SearchPaneEvents(global::Windows.ApplicationModel.Search.SearchPane data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneQueryChangedEventArgs)> QueryChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneQueryChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Search.SearchPane sender, global::Windows.ApplicationModel.Search.SearchPaneQueryChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.QueryChanged += x, x => _data.QueryChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneQuerySubmittedEventArgs)> QuerySubmitted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneQuerySubmittedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Search.SearchPane sender, global::Windows.ApplicationModel.Search.SearchPaneQuerySubmittedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.QuerySubmitted += x, x => _data.QuerySubmitted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneResultSuggestionChosenEventArgs)> ResultSuggestionChosen => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneResultSuggestionChosenEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Search.SearchPane sender, global::Windows.ApplicationModel.Search.SearchPaneResultSuggestionChosenEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ResultSuggestionChosen += x, x => _data.ResultSuggestionChosen -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneSuggestionsRequestedEventArgs)> SuggestionsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneSuggestionsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Search.SearchPane sender, global::Windows.ApplicationModel.Search.SearchPaneSuggestionsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SuggestionsRequested += x, x => _data.SuggestionsRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneVisibilityChangedEventArgs)> VisibilityChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Search.SearchPane, global::Windows.ApplicationModel.Search.SearchPaneVisibilityChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Search.SearchPane sender, global::Windows.ApplicationModel.Search.SearchPaneVisibilityChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VisibilityChanged += x, x => _data.VisibilityChanged -= x); + } +} + +namespace Windows.ApplicationModel.Search.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SearchSuggestionManagerEvents Events(this global::Windows.ApplicationModel.Search.Core.SearchSuggestionManager item) => new SearchSuggestionManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SearchSuggestionManagerEvents + { + private readonly global::Windows.ApplicationModel.Search.Core.SearchSuggestionManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SearchSuggestionManagerEvents(global::Windows.ApplicationModel.Search.Core.SearchSuggestionManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Search.Core.SearchSuggestionManager, global::Windows.ApplicationModel.Search.Core.RequestingFocusOnKeyboardInputEventArgs)> RequestingFocusOnKeyboardInput => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Search.Core.SearchSuggestionManager, global::Windows.ApplicationModel.Search.Core.RequestingFocusOnKeyboardInputEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Search.Core.SearchSuggestionManager sender, global::Windows.ApplicationModel.Search.Core.RequestingFocusOnKeyboardInputEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RequestingFocusOnKeyboardInput += x, x => _data.RequestingFocusOnKeyboardInput -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Search.Core.SearchSuggestionManager, global::Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs)> SuggestionsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Search.Core.SearchSuggestionManager, global::Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Search.Core.SearchSuggestionManager sender, global::Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SuggestionsRequested += x, x => _data.SuggestionsRequested -= x); + } +} + +namespace Windows.ApplicationModel.Store +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LicenseInformationEvents Events(this global::Windows.ApplicationModel.Store.LicenseInformation item) => new LicenseInformationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LicenseInformationEvents + { + private readonly global::Windows.ApplicationModel.Store.LicenseInformation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LicenseInformationEvents(global::Windows.ApplicationModel.Store.LicenseInformation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LicenseChanged => global::System.Reactive.Linq.Observable.FromEvent(x => _data.LicenseChanged += x, x => _data.LicenseChanged -= x); + } +} + +namespace Windows.ApplicationModel.Store.Preview.InstallControl +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppInstallItemEvents Events(this global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem item) => new AppInstallItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppInstallManagerEvents Events(this global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager item) => new AppInstallManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppInstallItemEvents + { + private readonly global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppInstallItemEvents(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem, object)> Completed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Completed += x, x => _data.Completed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem, object)> StatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusChanged += x, x => _data.StatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppInstallManagerEvents + { + private readonly global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppInstallManagerEvents(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager, global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManagerItemEventArgs)> ItemCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager, global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManagerItemEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager sender, global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManagerItemEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemCompleted += x, x => _data.ItemCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager, global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManagerItemEventArgs)> ItemStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager, global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManagerItemEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager sender, global::Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManagerItemEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemStatusChanged += x, x => _data.ItemStatusChanged -= x); + } +} + +namespace Windows.ApplicationModel.UserActivities +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UserActivityRequestManagerEvents Events(this global::Windows.ApplicationModel.UserActivities.UserActivityRequestManager item) => new UserActivityRequestManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UserActivityRequestManagerEvents + { + private readonly global::Windows.ApplicationModel.UserActivities.UserActivityRequestManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UserActivityRequestManagerEvents(global::Windows.ApplicationModel.UserActivities.UserActivityRequestManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.UserActivities.UserActivityRequestManager, global::Windows.ApplicationModel.UserActivities.UserActivityRequestedEventArgs)> UserActivityRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.UserActivities.UserActivityRequestManager, global::Windows.ApplicationModel.UserActivities.UserActivityRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.UserActivities.UserActivityRequestManager sender, global::Windows.ApplicationModel.UserActivities.UserActivityRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserActivityRequested += x, x => _data.UserActivityRequested -= x); + } +} + +namespace Windows.ApplicationModel.UserDataAccounts +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UserDataAccountStoreEvents Events(this global::Windows.ApplicationModel.UserDataAccounts.UserDataAccountStore item) => new UserDataAccountStoreEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UserDataAccountStoreEvents + { + private readonly global::Windows.ApplicationModel.UserDataAccounts.UserDataAccountStore _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UserDataAccountStoreEvents(global::Windows.ApplicationModel.UserDataAccounts.UserDataAccountStore data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.UserDataAccounts.UserDataAccountStore, global::Windows.ApplicationModel.UserDataAccounts.UserDataAccountStoreChangedEventArgs)> StoreChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.UserDataAccounts.UserDataAccountStore, global::Windows.ApplicationModel.UserDataAccounts.UserDataAccountStoreChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.UserDataAccounts.UserDataAccountStore sender, global::Windows.ApplicationModel.UserDataAccounts.UserDataAccountStoreChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StoreChanged += x, x => _data.StoreChanged -= x); + } +} + +namespace Windows.ApplicationModel.UserDataTasks +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UserDataTaskListSyncManagerEvents Events(this global::Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncManager item) => new UserDataTaskListSyncManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UserDataTaskListSyncManagerEvents + { + private readonly global::Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UserDataTaskListSyncManagerEvents(global::Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncManager, object)> SyncStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncManager, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncManager sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SyncStatusChanged += x, x => _data.SyncStatusChanged -= x); + } +} + +namespace Windows.ApplicationModel.UserDataTasks.DataProvider +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UserDataTaskDataProviderConnectionEvents Events(this global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection item) => new UserDataTaskDataProviderConnectionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UserDataTaskDataProviderConnectionEvents + { + private readonly global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UserDataTaskDataProviderConnectionEvents(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCompleteTaskRequestEventArgs)> CompleteTaskRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCompleteTaskRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection sender, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCompleteTaskRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CompleteTaskRequested += x, x => _data.CompleteTaskRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCreateOrUpdateTaskRequestEventArgs)> CreateOrUpdateTaskRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCreateOrUpdateTaskRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection sender, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCreateOrUpdateTaskRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CreateOrUpdateTaskRequested += x, x => _data.CreateOrUpdateTaskRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListDeleteTaskRequestEventArgs)> DeleteTaskRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListDeleteTaskRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection sender, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListDeleteTaskRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DeleteTaskRequested += x, x => _data.DeleteTaskRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSkipOccurrenceRequestEventArgs)> SkipOccurrenceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSkipOccurrenceRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection sender, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSkipOccurrenceRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SkipOccurrenceRequested += x, x => _data.SkipOccurrenceRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSyncManagerSyncRequestEventArgs)> SyncRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSyncManagerSyncRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection sender, global::Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSyncManagerSyncRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SyncRequested += x, x => _data.SyncRequested -= x); + } +} + +namespace Windows.ApplicationModel.VoiceCommands +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VoiceCommandServiceConnectionEvents Events(this global::Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection item) => new VoiceCommandServiceConnectionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VoiceCommandServiceConnectionEvents + { + private readonly global::Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VoiceCommandServiceConnectionEvents(global::Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection, global::Windows.ApplicationModel.VoiceCommands.VoiceCommandCompletedEventArgs)> VoiceCommandCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection, global::Windows.ApplicationModel.VoiceCommands.VoiceCommandCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection sender, global::Windows.ApplicationModel.VoiceCommands.VoiceCommandCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VoiceCommandCompleted += x, x => _data.VoiceCommandCompleted -= x); + } +} + +namespace Windows.ApplicationModel.Wallet.System +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WalletItemSystemStoreEvents Events(this global::Windows.ApplicationModel.Wallet.System.WalletItemSystemStore item) => new WalletItemSystemStoreEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WalletItemSystemStoreEvents + { + private readonly global::Windows.ApplicationModel.Wallet.System.WalletItemSystemStore _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WalletItemSystemStoreEvents(global::Windows.ApplicationModel.Wallet.System.WalletItemSystemStore data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Wallet.System.WalletItemSystemStore, object)> ItemsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.ApplicationModel.Wallet.System.WalletItemSystemStore, object)>(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Wallet.System.WalletItemSystemStore sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemsChanged += x, x => _data.ItemsChanged -= x); + } +} + +namespace Windows.Devices.AllJoyn +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AllJoynBusAttachmentEvents Events(this global::Windows.Devices.AllJoyn.AllJoynBusAttachment item) => new AllJoynBusAttachmentEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AllJoynBusObjectEvents Events(this global::Windows.Devices.AllJoyn.AllJoynBusObject item) => new AllJoynBusObjectEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AllJoynSessionEvents Events(this global::Windows.Devices.AllJoyn.AllJoynSession item) => new AllJoynSessionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AllJoynBusAttachmentEvents + { + private readonly global::Windows.Devices.AllJoyn.AllJoynBusAttachment _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AllJoynBusAttachmentEvents(global::Windows.Devices.AllJoyn.AllJoynBusAttachment data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynAcceptSessionJoinerEventArgs)> AcceptSessionJoinerRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynAcceptSessionJoinerEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynBusAttachment sender, global::Windows.Devices.AllJoyn.AllJoynAcceptSessionJoinerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AcceptSessionJoinerRequested += x, x => _data.AcceptSessionJoinerRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynAuthenticationCompleteEventArgs)> AuthenticationComplete => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynAuthenticationCompleteEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynBusAttachment sender, global::Windows.Devices.AllJoyn.AllJoynAuthenticationCompleteEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AuthenticationComplete += x, x => _data.AuthenticationComplete -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynCredentialsRequestedEventArgs)> CredentialsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynCredentialsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynBusAttachment sender, global::Windows.Devices.AllJoyn.AllJoynCredentialsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CredentialsRequested += x, x => _data.CredentialsRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynCredentialsVerificationRequestedEventArgs)> CredentialsVerificationRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynCredentialsVerificationRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynBusAttachment sender, global::Windows.Devices.AllJoyn.AllJoynCredentialsVerificationRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CredentialsVerificationRequested += x, x => _data.CredentialsVerificationRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynSessionJoinedEventArgs)> SessionJoined => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynSessionJoinedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynBusAttachment sender, global::Windows.Devices.AllJoyn.AllJoynSessionJoinedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SessionJoined += x, x => _data.SessionJoined -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynBusAttachmentStateChangedEventArgs)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynBusAttachment, global::Windows.Devices.AllJoyn.AllJoynBusAttachmentStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynBusAttachment sender, global::Windows.Devices.AllJoyn.AllJoynBusAttachmentStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AllJoynBusObjectEvents + { + private readonly global::Windows.Devices.AllJoyn.AllJoynBusObject _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AllJoynBusObjectEvents(global::Windows.Devices.AllJoyn.AllJoynBusObject data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynBusObject, global::Windows.Devices.AllJoyn.AllJoynBusObjectStoppedEventArgs)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynBusObject, global::Windows.Devices.AllJoyn.AllJoynBusObjectStoppedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynBusObject sender, global::Windows.Devices.AllJoyn.AllJoynBusObjectStoppedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AllJoynSessionEvents + { + private readonly global::Windows.Devices.AllJoyn.AllJoynSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AllJoynSessionEvents(global::Windows.Devices.AllJoyn.AllJoynSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynSession, global::Windows.Devices.AllJoyn.AllJoynSessionLostEventArgs)> Lost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynSession, global::Windows.Devices.AllJoyn.AllJoynSessionLostEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynSession sender, global::Windows.Devices.AllJoyn.AllJoynSessionLostEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Lost += x, x => _data.Lost -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynSession, global::Windows.Devices.AllJoyn.AllJoynSessionMemberAddedEventArgs)> MemberAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynSession, global::Windows.Devices.AllJoyn.AllJoynSessionMemberAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynSession sender, global::Windows.Devices.AllJoyn.AllJoynSessionMemberAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MemberAdded += x, x => _data.MemberAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.AllJoyn.AllJoynSession, global::Windows.Devices.AllJoyn.AllJoynSessionMemberRemovedEventArgs)> MemberRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.AllJoyn.AllJoynSession, global::Windows.Devices.AllJoyn.AllJoynSessionMemberRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.AllJoyn.AllJoynSession sender, global::Windows.Devices.AllJoyn.AllJoynSessionMemberRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MemberRemoved += x, x => _data.MemberRemoved -= x); + } +} + +namespace Windows.Devices.Bluetooth +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BluetoothDeviceEvents Events(this global::Windows.Devices.Bluetooth.BluetoothDevice item) => new BluetoothDeviceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BluetoothLEDeviceEvents Events(this global::Windows.Devices.Bluetooth.BluetoothLEDevice item) => new BluetoothLEDeviceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BluetoothDeviceEvents + { + private readonly global::Windows.Devices.Bluetooth.BluetoothDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BluetoothDeviceEvents(global::Windows.Devices.Bluetooth.BluetoothDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.BluetoothDevice, object)> ConnectionStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.BluetoothDevice, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.BluetoothDevice sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ConnectionStatusChanged += x, x => _data.ConnectionStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.BluetoothDevice, object)> NameChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.BluetoothDevice, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.BluetoothDevice sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NameChanged += x, x => _data.NameChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.BluetoothDevice, object)> SdpRecordsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.BluetoothDevice, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.BluetoothDevice sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SdpRecordsChanged += x, x => _data.SdpRecordsChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BluetoothLEDeviceEvents + { + private readonly global::Windows.Devices.Bluetooth.BluetoothLEDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BluetoothLEDeviceEvents(global::Windows.Devices.Bluetooth.BluetoothLEDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.BluetoothLEDevice, object)> ConnectionStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.BluetoothLEDevice, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.BluetoothLEDevice sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ConnectionStatusChanged += x, x => _data.ConnectionStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.BluetoothLEDevice, object)> GattServicesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.BluetoothLEDevice, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.BluetoothLEDevice sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GattServicesChanged += x, x => _data.GattServicesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.BluetoothLEDevice, object)> NameChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.BluetoothLEDevice, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.BluetoothLEDevice sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NameChanged += x, x => _data.NameChanged -= x); + } +} + +namespace Windows.Devices.Bluetooth.Advertisement +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BluetoothLEAdvertisementPublisherEvents Events(this global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisher item) => new BluetoothLEAdvertisementPublisherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BluetoothLEAdvertisementWatcherEvents Events(this global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher item) => new BluetoothLEAdvertisementWatcherEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BluetoothLEAdvertisementPublisherEvents + { + private readonly global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BluetoothLEAdvertisementPublisherEvents(global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisher, global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisherStatusChangedEventArgs)> StatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisher, global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisherStatusChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisher sender, global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisherStatusChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusChanged += x, x => _data.StatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BluetoothLEAdvertisementWatcherEvents + { + private readonly global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BluetoothLEAdvertisementWatcherEvents(global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher, global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs)> Received => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher, global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher sender, global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Received += x, x => _data.Received -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher, global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcherStoppedEventArgs)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher, global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcherStoppedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher sender, global::Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcherStoppedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } +} + +namespace Windows.Devices.Bluetooth.GenericAttributeProfile +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GattCharacteristicEvents Events(this global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic item) => new GattCharacteristicEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GattLocalCharacteristicEvents Events(this global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic item) => new GattLocalCharacteristicEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GattLocalDescriptorEvents Events(this global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor item) => new GattLocalDescriptorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GattReadRequestEvents Events(this global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequest item) => new GattReadRequestEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GattServiceProviderEvents Events(this global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProvider item) => new GattServiceProviderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GattSessionEvents Events(this global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession item) => new GattSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GattSubscribedClientEvents Events(this global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSubscribedClient item) => new GattSubscribedClientEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GattWriteRequestEvents Events(this global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequest item) => new GattWriteRequestEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GattCharacteristicEvents + { + private readonly global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GattCharacteristicEvents(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattValueChangedEventArgs)> ValueChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattValueChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic sender, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattValueChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ValueChanged += x, x => _data.ValueChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GattLocalCharacteristicEvents + { + private readonly global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GattLocalCharacteristicEvents(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequestedEventArgs)> ReadRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic sender, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadRequested += x, x => _data.ReadRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic, object)> SubscribedClientsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SubscribedClientsChanged += x, x => _data.SubscribedClientsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequestedEventArgs)> WriteRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic sender, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WriteRequested += x, x => _data.WriteRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GattLocalDescriptorEvents + { + private readonly global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GattLocalDescriptorEvents(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequestedEventArgs)> ReadRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor sender, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadRequested += x, x => _data.ReadRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequestedEventArgs)> WriteRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor sender, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WriteRequested += x, x => _data.WriteRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GattReadRequestEvents + { + private readonly global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequest _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GattReadRequestEvents(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequest data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequest, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestStateChangedEventArgs)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequest, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequest sender, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GattServiceProviderEvents + { + private readonly global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProvider _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GattServiceProviderEvents(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProvider data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProvider, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisementStatusChangedEventArgs)> AdvertisementStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProvider, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisementStatusChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProvider sender, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisementStatusChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AdvertisementStatusChanged += x, x => _data.AdvertisementStatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GattSessionEvents + { + private readonly global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GattSessionEvents(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession, object)> MaxPduSizeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MaxPduSizeChanged += x, x => _data.MaxPduSizeChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSessionStatusChangedEventArgs)> SessionStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSessionStatusChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession sender, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSessionStatusChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SessionStatusChanged += x, x => _data.SessionStatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GattSubscribedClientEvents + { + private readonly global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSubscribedClient _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GattSubscribedClientEvents(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSubscribedClient data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSubscribedClient, object)> MaxNotificationSizeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSubscribedClient, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattSubscribedClient sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MaxNotificationSizeChanged += x, x => _data.MaxNotificationSizeChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GattWriteRequestEvents + { + private readonly global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequest _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GattWriteRequestEvents(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequest data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequest, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestStateChangedEventArgs)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequest, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequest sender, global::Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } +} + +namespace Windows.Devices.Display.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DisplayManagerEvents Events(this global::Windows.Devices.Display.Core.DisplayManager item) => new DisplayManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DisplayManagerEvents + { + private readonly global::Windows.Devices.Display.Core.DisplayManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DisplayManagerEvents(global::Windows.Devices.Display.Core.DisplayManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Display.Core.DisplayManager, global::Windows.Devices.Display.Core.DisplayManagerChangedEventArgs)> Changed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Display.Core.DisplayManager, global::Windows.Devices.Display.Core.DisplayManagerChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Display.Core.DisplayManager sender, global::Windows.Devices.Display.Core.DisplayManagerChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Changed += x, x => _data.Changed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Display.Core.DisplayManager, global::Windows.Devices.Display.Core.DisplayManagerDisabledEventArgs)> Disabled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Display.Core.DisplayManager, global::Windows.Devices.Display.Core.DisplayManagerDisabledEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Display.Core.DisplayManager sender, global::Windows.Devices.Display.Core.DisplayManagerDisabledEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Disabled += x, x => _data.Disabled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Display.Core.DisplayManager, global::Windows.Devices.Display.Core.DisplayManagerEnabledEventArgs)> Enabled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Display.Core.DisplayManager, global::Windows.Devices.Display.Core.DisplayManagerEnabledEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Display.Core.DisplayManager sender, global::Windows.Devices.Display.Core.DisplayManagerEnabledEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Enabled += x, x => _data.Enabled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Display.Core.DisplayManager, global::Windows.Devices.Display.Core.DisplayManagerPathsFailedOrInvalidatedEventArgs)> PathsFailedOrInvalidated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Display.Core.DisplayManager, global::Windows.Devices.Display.Core.DisplayManagerPathsFailedOrInvalidatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Display.Core.DisplayManager sender, global::Windows.Devices.Display.Core.DisplayManagerPathsFailedOrInvalidatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PathsFailedOrInvalidated += x, x => _data.PathsFailedOrInvalidated -= x); + } +} + +namespace Windows.Devices.Enumeration +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DeviceAccessInformationEvents Events(this global::Windows.Devices.Enumeration.DeviceAccessInformation item) => new DeviceAccessInformationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DeviceInformationCustomPairingEvents Events(this global::Windows.Devices.Enumeration.DeviceInformationCustomPairing item) => new DeviceInformationCustomPairingEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DevicePickerEvents Events(this global::Windows.Devices.Enumeration.DevicePicker item) => new DevicePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DeviceWatcherEvents Events(this global::Windows.Devices.Enumeration.DeviceWatcher item) => new DeviceWatcherEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DeviceAccessInformationEvents + { + private readonly global::Windows.Devices.Enumeration.DeviceAccessInformation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DeviceAccessInformationEvents(global::Windows.Devices.Enumeration.DeviceAccessInformation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DeviceAccessInformation, global::Windows.Devices.Enumeration.DeviceAccessChangedEventArgs)> AccessChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DeviceAccessInformation, global::Windows.Devices.Enumeration.DeviceAccessChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DeviceAccessInformation sender, global::Windows.Devices.Enumeration.DeviceAccessChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccessChanged += x, x => _data.AccessChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DeviceInformationCustomPairingEvents + { + private readonly global::Windows.Devices.Enumeration.DeviceInformationCustomPairing _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DeviceInformationCustomPairingEvents(global::Windows.Devices.Enumeration.DeviceInformationCustomPairing data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DeviceInformationCustomPairing, global::Windows.Devices.Enumeration.DevicePairingRequestedEventArgs)> PairingRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DeviceInformationCustomPairing, global::Windows.Devices.Enumeration.DevicePairingRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DeviceInformationCustomPairing sender, global::Windows.Devices.Enumeration.DevicePairingRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PairingRequested += x, x => _data.PairingRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DevicePickerEvents + { + private readonly global::Windows.Devices.Enumeration.DevicePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DevicePickerEvents(global::Windows.Devices.Enumeration.DevicePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DevicePicker, object)> DevicePickerDismissed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DevicePicker, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DevicePicker sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DevicePickerDismissed += x, x => _data.DevicePickerDismissed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DevicePicker, global::Windows.Devices.Enumeration.DeviceSelectedEventArgs)> DeviceSelected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DevicePicker, global::Windows.Devices.Enumeration.DeviceSelectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DevicePicker sender, global::Windows.Devices.Enumeration.DeviceSelectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DeviceSelected += x, x => _data.DeviceSelected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DevicePicker, global::Windows.Devices.Enumeration.DeviceDisconnectButtonClickedEventArgs)> DisconnectButtonClicked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DevicePicker, global::Windows.Devices.Enumeration.DeviceDisconnectButtonClickedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DevicePicker sender, global::Windows.Devices.Enumeration.DeviceDisconnectButtonClickedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DisconnectButtonClicked += x, x => _data.DisconnectButtonClicked -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DeviceWatcherEvents + { + private readonly global::Windows.Devices.Enumeration.DeviceWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DeviceWatcherEvents(global::Windows.Devices.Enumeration.DeviceWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DeviceWatcher, global::Windows.Devices.Enumeration.DeviceInformation)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DeviceWatcher, global::Windows.Devices.Enumeration.DeviceInformation)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DeviceWatcher sender, global::Windows.Devices.Enumeration.DeviceInformation args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DeviceWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DeviceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DeviceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DeviceWatcher, global::Windows.Devices.Enumeration.DeviceInformationUpdate)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DeviceWatcher, global::Windows.Devices.Enumeration.DeviceInformationUpdate)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DeviceWatcher sender, global::Windows.Devices.Enumeration.DeviceInformationUpdate args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DeviceWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DeviceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DeviceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.DeviceWatcher, global::Windows.Devices.Enumeration.DeviceInformationUpdate)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.DeviceWatcher, global::Windows.Devices.Enumeration.DeviceInformationUpdate)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.DeviceWatcher sender, global::Windows.Devices.Enumeration.DeviceInformationUpdate args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + } +} + +namespace Windows.Devices.Enumeration.Pnp +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PnpObjectWatcherEvents Events(this global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher item) => new PnpObjectWatcherEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PnpObjectWatcherEvents + { + private readonly global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PnpObjectWatcherEvents(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, global::Windows.Devices.Enumeration.Pnp.PnpObject)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, global::Windows.Devices.Enumeration.Pnp.PnpObject)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher sender, global::Windows.Devices.Enumeration.Pnp.PnpObject args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, global::Windows.Devices.Enumeration.Pnp.PnpObjectUpdate)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, global::Windows.Devices.Enumeration.Pnp.PnpObjectUpdate)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher sender, global::Windows.Devices.Enumeration.Pnp.PnpObjectUpdate args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, global::Windows.Devices.Enumeration.Pnp.PnpObjectUpdate)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher, global::Windows.Devices.Enumeration.Pnp.PnpObjectUpdate)>(eventHandler => + { + void Handler(global::Windows.Devices.Enumeration.Pnp.PnpObjectWatcher sender, global::Windows.Devices.Enumeration.Pnp.PnpObjectUpdate args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + } +} + +namespace Windows.Devices.Geolocation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GeolocatorEvents Events(this global::Windows.Devices.Geolocation.Geolocator item) => new GeolocatorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GeovisitMonitorEvents Events(this global::Windows.Devices.Geolocation.GeovisitMonitor item) => new GeovisitMonitorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GeolocatorEvents + { + private readonly global::Windows.Devices.Geolocation.Geolocator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GeolocatorEvents(global::Windows.Devices.Geolocation.Geolocator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Geolocation.Geolocator, global::Windows.Devices.Geolocation.PositionChangedEventArgs)> PositionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Geolocation.Geolocator, global::Windows.Devices.Geolocation.PositionChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Geolocation.Geolocator sender, global::Windows.Devices.Geolocation.PositionChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PositionChanged += x, x => _data.PositionChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Geolocation.Geolocator, global::Windows.Devices.Geolocation.StatusChangedEventArgs)> StatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Geolocation.Geolocator, global::Windows.Devices.Geolocation.StatusChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Geolocation.Geolocator sender, global::Windows.Devices.Geolocation.StatusChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusChanged += x, x => _data.StatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GeovisitMonitorEvents + { + private readonly global::Windows.Devices.Geolocation.GeovisitMonitor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GeovisitMonitorEvents(global::Windows.Devices.Geolocation.GeovisitMonitor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Geolocation.GeovisitMonitor, global::Windows.Devices.Geolocation.GeovisitStateChangedEventArgs)> VisitStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Geolocation.GeovisitMonitor, global::Windows.Devices.Geolocation.GeovisitStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Geolocation.GeovisitMonitor sender, global::Windows.Devices.Geolocation.GeovisitStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VisitStateChanged += x, x => _data.VisitStateChanged -= x); + } +} + +namespace Windows.Devices.Geolocation.Geofencing +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GeofenceMonitorEvents Events(this global::Windows.Devices.Geolocation.Geofencing.GeofenceMonitor item) => new GeofenceMonitorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GeofenceMonitorEvents + { + private readonly global::Windows.Devices.Geolocation.Geofencing.GeofenceMonitor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GeofenceMonitorEvents(global::Windows.Devices.Geolocation.Geofencing.GeofenceMonitor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Geolocation.Geofencing.GeofenceMonitor, object)> GeofenceStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Geolocation.Geofencing.GeofenceMonitor, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Geolocation.Geofencing.GeofenceMonitor sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GeofenceStateChanged += x, x => _data.GeofenceStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Geolocation.Geofencing.GeofenceMonitor, object)> StatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Geolocation.Geofencing.GeofenceMonitor, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Geolocation.Geofencing.GeofenceMonitor sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusChanged += x, x => _data.StatusChanged -= x); + } +} + +namespace Windows.Devices.Gpio +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GpioPinEvents Events(this global::Windows.Devices.Gpio.GpioPin item) => new GpioPinEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GpioPinEvents + { + private readonly global::Windows.Devices.Gpio.GpioPin _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GpioPinEvents(global::Windows.Devices.Gpio.GpioPin data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Gpio.GpioPin, global::Windows.Devices.Gpio.GpioPinValueChangedEventArgs)> ValueChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Gpio.GpioPin, global::Windows.Devices.Gpio.GpioPinValueChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Gpio.GpioPin sender, global::Windows.Devices.Gpio.GpioPinValueChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ValueChanged += x, x => _data.ValueChanged -= x); + } +} + +namespace Windows.Devices.Gpio.Provider +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IGpioPinProviderEvents Events(this global::Windows.Devices.Gpio.Provider.IGpioPinProvider item) => new IGpioPinProviderEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IGpioPinProviderEvents + { + private readonly global::Windows.Devices.Gpio.Provider.IGpioPinProvider _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IGpioPinProviderEvents(global::Windows.Devices.Gpio.Provider.IGpioPinProvider data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Gpio.Provider.IGpioPinProvider, global::Windows.Devices.Gpio.Provider.GpioPinProviderValueChangedEventArgs)> ValueChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Gpio.Provider.IGpioPinProvider, global::Windows.Devices.Gpio.Provider.GpioPinProviderValueChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Gpio.Provider.IGpioPinProvider sender, global::Windows.Devices.Gpio.Provider.GpioPinProviderValueChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ValueChanged += x, x => _data.ValueChanged -= x); + } +} + +namespace Windows.Devices.HumanInterfaceDevice +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HidDeviceEvents Events(this global::Windows.Devices.HumanInterfaceDevice.HidDevice item) => new HidDeviceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HidDeviceEvents + { + private readonly global::Windows.Devices.HumanInterfaceDevice.HidDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HidDeviceEvents(global::Windows.Devices.HumanInterfaceDevice.HidDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.HumanInterfaceDevice.HidDevice, global::Windows.Devices.HumanInterfaceDevice.HidInputReportReceivedEventArgs)> InputReportReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.HumanInterfaceDevice.HidDevice, global::Windows.Devices.HumanInterfaceDevice.HidInputReportReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.HumanInterfaceDevice.HidDevice sender, global::Windows.Devices.HumanInterfaceDevice.HidInputReportReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.InputReportReceived += x, x => _data.InputReportReceived -= x); + } +} + +namespace Windows.Devices.Input +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MouseDeviceEvents Events(this global::Windows.Devices.Input.MouseDevice item) => new MouseDeviceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MouseDeviceEvents + { + private readonly global::Windows.Devices.Input.MouseDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MouseDeviceEvents(global::Windows.Devices.Input.MouseDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Input.MouseDevice, global::Windows.Devices.Input.MouseEventArgs)> MouseMoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Input.MouseDevice, global::Windows.Devices.Input.MouseEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Input.MouseDevice sender, global::Windows.Devices.Input.MouseEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MouseMoved += x, x => _data.MouseMoved -= x); + } +} + +namespace Windows.Devices.Input.Preview +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GazeDeviceWatcherPreviewEvents Events(this global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview item) => new GazeDeviceWatcherPreviewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GazeInputSourcePreviewEvents Events(this global::Windows.Devices.Input.Preview.GazeInputSourcePreview item) => new GazeInputSourcePreviewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GazeDeviceWatcherPreviewEvents + { + private readonly global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GazeDeviceWatcherPreviewEvents(global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview, global::Windows.Devices.Input.Preview.GazeDeviceWatcherAddedPreviewEventArgs)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview, global::Windows.Devices.Input.Preview.GazeDeviceWatcherAddedPreviewEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview sender, global::Windows.Devices.Input.Preview.GazeDeviceWatcherAddedPreviewEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview, global::Windows.Devices.Input.Preview.GazeDeviceWatcherRemovedPreviewEventArgs)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview, global::Windows.Devices.Input.Preview.GazeDeviceWatcherRemovedPreviewEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview sender, global::Windows.Devices.Input.Preview.GazeDeviceWatcherRemovedPreviewEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview, global::Windows.Devices.Input.Preview.GazeDeviceWatcherUpdatedPreviewEventArgs)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview, global::Windows.Devices.Input.Preview.GazeDeviceWatcherUpdatedPreviewEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Input.Preview.GazeDeviceWatcherPreview sender, global::Windows.Devices.Input.Preview.GazeDeviceWatcherUpdatedPreviewEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GazeInputSourcePreviewEvents + { + private readonly global::Windows.Devices.Input.Preview.GazeInputSourcePreview _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GazeInputSourcePreviewEvents(global::Windows.Devices.Input.Preview.GazeInputSourcePreview data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Input.Preview.GazeInputSourcePreview, global::Windows.Devices.Input.Preview.GazeEnteredPreviewEventArgs)> GazeEntered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Input.Preview.GazeInputSourcePreview, global::Windows.Devices.Input.Preview.GazeEnteredPreviewEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Input.Preview.GazeInputSourcePreview sender, global::Windows.Devices.Input.Preview.GazeEnteredPreviewEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GazeEntered += x, x => _data.GazeEntered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Input.Preview.GazeInputSourcePreview, global::Windows.Devices.Input.Preview.GazeExitedPreviewEventArgs)> GazeExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Input.Preview.GazeInputSourcePreview, global::Windows.Devices.Input.Preview.GazeExitedPreviewEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Input.Preview.GazeInputSourcePreview sender, global::Windows.Devices.Input.Preview.GazeExitedPreviewEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GazeExited += x, x => _data.GazeExited -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Input.Preview.GazeInputSourcePreview, global::Windows.Devices.Input.Preview.GazeMovedPreviewEventArgs)> GazeMoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Input.Preview.GazeInputSourcePreview, global::Windows.Devices.Input.Preview.GazeMovedPreviewEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Input.Preview.GazeInputSourcePreview sender, global::Windows.Devices.Input.Preview.GazeMovedPreviewEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GazeMoved += x, x => _data.GazeMoved -= x); + } +} + +namespace Windows.Devices.Lights +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LampEvents Events(this global::Windows.Devices.Lights.Lamp item) => new LampEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LampEvents + { + private readonly global::Windows.Devices.Lights.Lamp _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LampEvents(global::Windows.Devices.Lights.Lamp data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Lights.Lamp, global::Windows.Devices.Lights.LampAvailabilityChangedEventArgs)> AvailabilityChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Lights.Lamp, global::Windows.Devices.Lights.LampAvailabilityChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Lights.Lamp sender, global::Windows.Devices.Lights.LampAvailabilityChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AvailabilityChanged += x, x => _data.AvailabilityChanged -= x); + } +} + +namespace Windows.Devices.Lights.Effects +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LampArrayBitmapEffectEvents Events(this global::Windows.Devices.Lights.Effects.LampArrayBitmapEffect item) => new LampArrayBitmapEffectEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LampArrayCustomEffectEvents Events(this global::Windows.Devices.Lights.Effects.LampArrayCustomEffect item) => new LampArrayCustomEffectEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LampArrayBitmapEffectEvents + { + private readonly global::Windows.Devices.Lights.Effects.LampArrayBitmapEffect _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LampArrayBitmapEffectEvents(global::Windows.Devices.Lights.Effects.LampArrayBitmapEffect data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Lights.Effects.LampArrayBitmapEffect, global::Windows.Devices.Lights.Effects.LampArrayBitmapRequestedEventArgs)> BitmapRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Lights.Effects.LampArrayBitmapEffect, global::Windows.Devices.Lights.Effects.LampArrayBitmapRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Lights.Effects.LampArrayBitmapEffect sender, global::Windows.Devices.Lights.Effects.LampArrayBitmapRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BitmapRequested += x, x => _data.BitmapRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LampArrayCustomEffectEvents + { + private readonly global::Windows.Devices.Lights.Effects.LampArrayCustomEffect _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LampArrayCustomEffectEvents(global::Windows.Devices.Lights.Effects.LampArrayCustomEffect data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Lights.Effects.LampArrayCustomEffect, global::Windows.Devices.Lights.Effects.LampArrayUpdateRequestedEventArgs)> UpdateRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Lights.Effects.LampArrayCustomEffect, global::Windows.Devices.Lights.Effects.LampArrayUpdateRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Lights.Effects.LampArrayCustomEffect sender, global::Windows.Devices.Lights.Effects.LampArrayUpdateRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UpdateRequested += x, x => _data.UpdateRequested -= x); + } +} + +namespace Windows.Devices.Midi +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MidiInPortEvents Events(this global::Windows.Devices.Midi.MidiInPort item) => new MidiInPortEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MidiInPortEvents + { + private readonly global::Windows.Devices.Midi.MidiInPort _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MidiInPortEvents(global::Windows.Devices.Midi.MidiInPort data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Midi.MidiInPort, global::Windows.Devices.Midi.MidiMessageReceivedEventArgs)> MessageReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Midi.MidiInPort, global::Windows.Devices.Midi.MidiMessageReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Midi.MidiInPort sender, global::Windows.Devices.Midi.MidiMessageReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MessageReceived += x, x => _data.MessageReceived -= x); + } +} + +namespace Windows.Devices.Perception +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionColorFrameReaderEvents Events(this global::Windows.Devices.Perception.PerceptionColorFrameReader item) => new PerceptionColorFrameReaderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionColorFrameSourceEvents Events(this global::Windows.Devices.Perception.PerceptionColorFrameSource item) => new PerceptionColorFrameSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionColorFrameSourceWatcherEvents Events(this global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher item) => new PerceptionColorFrameSourceWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionControlSessionEvents Events(this global::Windows.Devices.Perception.PerceptionControlSession item) => new PerceptionControlSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionDepthFrameReaderEvents Events(this global::Windows.Devices.Perception.PerceptionDepthFrameReader item) => new PerceptionDepthFrameReaderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionDepthFrameSourceEvents Events(this global::Windows.Devices.Perception.PerceptionDepthFrameSource item) => new PerceptionDepthFrameSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionDepthFrameSourceWatcherEvents Events(this global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher item) => new PerceptionDepthFrameSourceWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionInfraredFrameReaderEvents Events(this global::Windows.Devices.Perception.PerceptionInfraredFrameReader item) => new PerceptionInfraredFrameReaderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionInfraredFrameSourceEvents Events(this global::Windows.Devices.Perception.PerceptionInfraredFrameSource item) => new PerceptionInfraredFrameSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PerceptionInfraredFrameSourceWatcherEvents Events(this global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher item) => new PerceptionInfraredFrameSourceWatcherEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionColorFrameReaderEvents + { + private readonly global::Windows.Devices.Perception.PerceptionColorFrameReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionColorFrameReaderEvents(global::Windows.Devices.Perception.PerceptionColorFrameReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameReader, global::Windows.Devices.Perception.PerceptionColorFrameArrivedEventArgs)> FrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameReader, global::Windows.Devices.Perception.PerceptionColorFrameArrivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameReader sender, global::Windows.Devices.Perception.PerceptionColorFrameArrivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameArrived += x, x => _data.FrameArrived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionColorFrameSourceEvents + { + private readonly global::Windows.Devices.Perception.PerceptionColorFrameSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionColorFrameSourceEvents(global::Windows.Devices.Perception.PerceptionColorFrameSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameSource, object)> ActiveChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ActiveChanged += x, x => _data.ActiveChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameSource, object)> AvailableChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AvailableChanged += x, x => _data.AvailableChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameSource, object)> CameraIntrinsicsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CameraIntrinsicsChanged += x, x => _data.CameraIntrinsicsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameSource, global::Windows.Devices.Perception.PerceptionFrameSourcePropertiesChangedEventArgs)> PropertiesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameSource, global::Windows.Devices.Perception.PerceptionFrameSourcePropertiesChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameSource sender, global::Windows.Devices.Perception.PerceptionFrameSourcePropertiesChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PropertiesChanged += x, x => _data.PropertiesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameSource, object)> VideoProfileChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VideoProfileChanged += x, x => _data.VideoProfileChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionColorFrameSourceWatcherEvents + { + private readonly global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionColorFrameSourceWatcherEvents(global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionColorFrameSourceAddedEventArgs)> SourceAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionColorFrameSourceAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher sender, global::Windows.Devices.Perception.PerceptionColorFrameSourceAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceAdded += x, x => _data.SourceAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionColorFrameSourceRemovedEventArgs)> SourceRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionColorFrameSourceRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher sender, global::Windows.Devices.Perception.PerceptionColorFrameSourceRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceRemoved += x, x => _data.SourceRemoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionColorFrameSourceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionControlSessionEvents + { + private readonly global::Windows.Devices.Perception.PerceptionControlSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionControlSessionEvents(global::Windows.Devices.Perception.PerceptionControlSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionControlSession, object)> ControlLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionControlSession, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionControlSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ControlLost += x, x => _data.ControlLost -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionDepthFrameReaderEvents + { + private readonly global::Windows.Devices.Perception.PerceptionDepthFrameReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionDepthFrameReaderEvents(global::Windows.Devices.Perception.PerceptionDepthFrameReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameReader, global::Windows.Devices.Perception.PerceptionDepthFrameArrivedEventArgs)> FrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameReader, global::Windows.Devices.Perception.PerceptionDepthFrameArrivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameReader sender, global::Windows.Devices.Perception.PerceptionDepthFrameArrivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameArrived += x, x => _data.FrameArrived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionDepthFrameSourceEvents + { + private readonly global::Windows.Devices.Perception.PerceptionDepthFrameSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionDepthFrameSourceEvents(global::Windows.Devices.Perception.PerceptionDepthFrameSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameSource, object)> ActiveChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ActiveChanged += x, x => _data.ActiveChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameSource, object)> AvailableChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AvailableChanged += x, x => _data.AvailableChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameSource, object)> CameraIntrinsicsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CameraIntrinsicsChanged += x, x => _data.CameraIntrinsicsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameSource, global::Windows.Devices.Perception.PerceptionFrameSourcePropertiesChangedEventArgs)> PropertiesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameSource, global::Windows.Devices.Perception.PerceptionFrameSourcePropertiesChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameSource sender, global::Windows.Devices.Perception.PerceptionFrameSourcePropertiesChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PropertiesChanged += x, x => _data.PropertiesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameSource, object)> VideoProfileChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VideoProfileChanged += x, x => _data.VideoProfileChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionDepthFrameSourceWatcherEvents + { + private readonly global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionDepthFrameSourceWatcherEvents(global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionDepthFrameSourceAddedEventArgs)> SourceAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionDepthFrameSourceAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher sender, global::Windows.Devices.Perception.PerceptionDepthFrameSourceAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceAdded += x, x => _data.SourceAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionDepthFrameSourceRemovedEventArgs)> SourceRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionDepthFrameSourceRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher sender, global::Windows.Devices.Perception.PerceptionDepthFrameSourceRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceRemoved += x, x => _data.SourceRemoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionDepthFrameSourceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionInfraredFrameReaderEvents + { + private readonly global::Windows.Devices.Perception.PerceptionInfraredFrameReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionInfraredFrameReaderEvents(global::Windows.Devices.Perception.PerceptionInfraredFrameReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameReader, global::Windows.Devices.Perception.PerceptionInfraredFrameArrivedEventArgs)> FrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameReader, global::Windows.Devices.Perception.PerceptionInfraredFrameArrivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameReader sender, global::Windows.Devices.Perception.PerceptionInfraredFrameArrivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameArrived += x, x => _data.FrameArrived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionInfraredFrameSourceEvents + { + private readonly global::Windows.Devices.Perception.PerceptionInfraredFrameSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionInfraredFrameSourceEvents(global::Windows.Devices.Perception.PerceptionInfraredFrameSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameSource, object)> ActiveChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ActiveChanged += x, x => _data.ActiveChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameSource, object)> AvailableChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AvailableChanged += x, x => _data.AvailableChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameSource, object)> CameraIntrinsicsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CameraIntrinsicsChanged += x, x => _data.CameraIntrinsicsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameSource, global::Windows.Devices.Perception.PerceptionFrameSourcePropertiesChangedEventArgs)> PropertiesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameSource, global::Windows.Devices.Perception.PerceptionFrameSourcePropertiesChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameSource sender, global::Windows.Devices.Perception.PerceptionFrameSourcePropertiesChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PropertiesChanged += x, x => _data.PropertiesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameSource, object)> VideoProfileChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VideoProfileChanged += x, x => _data.VideoProfileChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PerceptionInfraredFrameSourceWatcherEvents + { + private readonly global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PerceptionInfraredFrameSourceWatcherEvents(global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionInfraredFrameSourceAddedEventArgs)> SourceAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionInfraredFrameSourceAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher sender, global::Windows.Devices.Perception.PerceptionInfraredFrameSourceAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceAdded += x, x => _data.SourceAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionInfraredFrameSourceRemovedEventArgs)> SourceRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher, global::Windows.Devices.Perception.PerceptionInfraredFrameSourceRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher sender, global::Windows.Devices.Perception.PerceptionInfraredFrameSourceRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceRemoved += x, x => _data.SourceRemoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Perception.PerceptionInfraredFrameSourceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } +} + +namespace Windows.Devices.PointOfService +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BarcodeScannerEvents Events(this global::Windows.Devices.PointOfService.BarcodeScanner item) => new BarcodeScannerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CashDrawerEvents Events(this global::Windows.Devices.PointOfService.CashDrawer item) => new CashDrawerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CashDrawerCloseAlarmEvents Events(this global::Windows.Devices.PointOfService.CashDrawerCloseAlarm item) => new CashDrawerCloseAlarmEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CashDrawerEventSourceEvents Events(this global::Windows.Devices.PointOfService.CashDrawerEventSource item) => new CashDrawerEventSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ClaimedBarcodeScannerEvents Events(this global::Windows.Devices.PointOfService.ClaimedBarcodeScanner item) => new ClaimedBarcodeScannerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ClaimedCashDrawerEvents Events(this global::Windows.Devices.PointOfService.ClaimedCashDrawer item) => new ClaimedCashDrawerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ClaimedLineDisplayEvents Events(this global::Windows.Devices.PointOfService.ClaimedLineDisplay item) => new ClaimedLineDisplayEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ClaimedMagneticStripeReaderEvents Events(this global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader item) => new ClaimedMagneticStripeReaderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ClaimedPosPrinterEvents Events(this global::Windows.Devices.PointOfService.ClaimedPosPrinter item) => new ClaimedPosPrinterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MagneticStripeReaderEvents Events(this global::Windows.Devices.PointOfService.MagneticStripeReader item) => new MagneticStripeReaderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PosPrinterEvents Events(this global::Windows.Devices.PointOfService.PosPrinter item) => new PosPrinterEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BarcodeScannerEvents + { + private readonly global::Windows.Devices.PointOfService.BarcodeScanner _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BarcodeScannerEvents(global::Windows.Devices.PointOfService.BarcodeScanner data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.BarcodeScanner, global::Windows.Devices.PointOfService.BarcodeScannerStatusUpdatedEventArgs)> StatusUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.BarcodeScanner, global::Windows.Devices.PointOfService.BarcodeScannerStatusUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.BarcodeScanner sender, global::Windows.Devices.PointOfService.BarcodeScannerStatusUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusUpdated += x, x => _data.StatusUpdated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CashDrawerEvents + { + private readonly global::Windows.Devices.PointOfService.CashDrawer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CashDrawerEvents(global::Windows.Devices.PointOfService.CashDrawer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.CashDrawer, global::Windows.Devices.PointOfService.CashDrawerStatusUpdatedEventArgs)> StatusUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.CashDrawer, global::Windows.Devices.PointOfService.CashDrawerStatusUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.CashDrawer sender, global::Windows.Devices.PointOfService.CashDrawerStatusUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusUpdated += x, x => _data.StatusUpdated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CashDrawerCloseAlarmEvents + { + private readonly global::Windows.Devices.PointOfService.CashDrawerCloseAlarm _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CashDrawerCloseAlarmEvents(global::Windows.Devices.PointOfService.CashDrawerCloseAlarm data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.CashDrawerCloseAlarm, object)> AlarmTimeoutExpired => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.CashDrawerCloseAlarm, object)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.CashDrawerCloseAlarm sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AlarmTimeoutExpired += x, x => _data.AlarmTimeoutExpired -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CashDrawerEventSourceEvents + { + private readonly global::Windows.Devices.PointOfService.CashDrawerEventSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CashDrawerEventSourceEvents(global::Windows.Devices.PointOfService.CashDrawerEventSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.CashDrawerEventSource, global::Windows.Devices.PointOfService.CashDrawerClosedEventArgs)> DrawerClosed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.CashDrawerEventSource, global::Windows.Devices.PointOfService.CashDrawerClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.CashDrawerEventSource sender, global::Windows.Devices.PointOfService.CashDrawerClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DrawerClosed += x, x => _data.DrawerClosed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.CashDrawerEventSource, global::Windows.Devices.PointOfService.CashDrawerOpenedEventArgs)> DrawerOpened => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.CashDrawerEventSource, global::Windows.Devices.PointOfService.CashDrawerOpenedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.CashDrawerEventSource sender, global::Windows.Devices.PointOfService.CashDrawerOpenedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DrawerOpened += x, x => _data.DrawerOpened -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ClaimedBarcodeScannerEvents + { + private readonly global::Windows.Devices.PointOfService.ClaimedBarcodeScanner _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ClaimedBarcodeScannerEvents(global::Windows.Devices.PointOfService.ClaimedBarcodeScanner data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedBarcodeScanner, global::Windows.Devices.PointOfService.ClaimedBarcodeScannerClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedBarcodeScanner, global::Windows.Devices.PointOfService.ClaimedBarcodeScannerClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedBarcodeScanner sender, global::Windows.Devices.PointOfService.ClaimedBarcodeScannerClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedBarcodeScanner, global::Windows.Devices.PointOfService.BarcodeScannerDataReceivedEventArgs)> DataReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedBarcodeScanner, global::Windows.Devices.PointOfService.BarcodeScannerDataReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedBarcodeScanner sender, global::Windows.Devices.PointOfService.BarcodeScannerDataReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DataReceived += x, x => _data.DataReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedBarcodeScanner, global::Windows.Devices.PointOfService.BarcodeScannerErrorOccurredEventArgs)> ErrorOccurred => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedBarcodeScanner, global::Windows.Devices.PointOfService.BarcodeScannerErrorOccurredEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedBarcodeScanner sender, global::Windows.Devices.PointOfService.BarcodeScannerErrorOccurredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ErrorOccurred += x, x => _data.ErrorOccurred -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedBarcodeScanner, global::Windows.Devices.PointOfService.BarcodeScannerImagePreviewReceivedEventArgs)> ImagePreviewReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedBarcodeScanner, global::Windows.Devices.PointOfService.BarcodeScannerImagePreviewReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedBarcodeScanner sender, global::Windows.Devices.PointOfService.BarcodeScannerImagePreviewReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ImagePreviewReceived += x, x => _data.ImagePreviewReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReleaseDeviceRequested => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Devices.PointOfService.ClaimedBarcodeScanner>(x => _data.ReleaseDeviceRequested += x, x => _data.ReleaseDeviceRequested -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TriggerPressed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Devices.PointOfService.ClaimedBarcodeScanner>(x => _data.TriggerPressed += x, x => _data.TriggerPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TriggerReleased => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Devices.PointOfService.ClaimedBarcodeScanner>(x => _data.TriggerReleased += x, x => _data.TriggerReleased -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ClaimedCashDrawerEvents + { + private readonly global::Windows.Devices.PointOfService.ClaimedCashDrawer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ClaimedCashDrawerEvents(global::Windows.Devices.PointOfService.ClaimedCashDrawer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedCashDrawer, global::Windows.Devices.PointOfService.ClaimedCashDrawerClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedCashDrawer, global::Windows.Devices.PointOfService.ClaimedCashDrawerClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedCashDrawer sender, global::Windows.Devices.PointOfService.ClaimedCashDrawerClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedCashDrawer, object)> ReleaseDeviceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedCashDrawer, object)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedCashDrawer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReleaseDeviceRequested += x, x => _data.ReleaseDeviceRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ClaimedLineDisplayEvents + { + private readonly global::Windows.Devices.PointOfService.ClaimedLineDisplay _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ClaimedLineDisplayEvents(global::Windows.Devices.PointOfService.ClaimedLineDisplay data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedLineDisplay, global::Windows.Devices.PointOfService.ClaimedLineDisplayClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedLineDisplay, global::Windows.Devices.PointOfService.ClaimedLineDisplayClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedLineDisplay sender, global::Windows.Devices.PointOfService.ClaimedLineDisplayClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedLineDisplay, object)> ReleaseDeviceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedLineDisplay, object)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedLineDisplay sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReleaseDeviceRequested += x, x => _data.ReleaseDeviceRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedLineDisplay, global::Windows.Devices.PointOfService.LineDisplayStatusUpdatedEventArgs)> StatusUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedLineDisplay, global::Windows.Devices.PointOfService.LineDisplayStatusUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedLineDisplay sender, global::Windows.Devices.PointOfService.LineDisplayStatusUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusUpdated += x, x => _data.StatusUpdated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ClaimedMagneticStripeReaderEvents + { + private readonly global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ClaimedMagneticStripeReaderEvents(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderAamvaCardDataReceivedEventArgs)> AamvaCardDataReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderAamvaCardDataReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader sender, global::Windows.Devices.PointOfService.MagneticStripeReaderAamvaCardDataReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AamvaCardDataReceived += x, x => _data.AamvaCardDataReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderBankCardDataReceivedEventArgs)> BankCardDataReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderBankCardDataReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader sender, global::Windows.Devices.PointOfService.MagneticStripeReaderBankCardDataReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BankCardDataReceived += x, x => _data.BankCardDataReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.ClaimedMagneticStripeReaderClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.ClaimedMagneticStripeReaderClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader sender, global::Windows.Devices.PointOfService.ClaimedMagneticStripeReaderClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderErrorOccurredEventArgs)> ErrorOccurred => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderErrorOccurredEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader sender, global::Windows.Devices.PointOfService.MagneticStripeReaderErrorOccurredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ErrorOccurred += x, x => _data.ErrorOccurred -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReleaseDeviceRequested => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader>(x => _data.ReleaseDeviceRequested += x, x => _data.ReleaseDeviceRequested -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs)> VendorSpecificDataReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedMagneticStripeReader sender, global::Windows.Devices.PointOfService.MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VendorSpecificDataReceived += x, x => _data.VendorSpecificDataReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ClaimedPosPrinterEvents + { + private readonly global::Windows.Devices.PointOfService.ClaimedPosPrinter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ClaimedPosPrinterEvents(global::Windows.Devices.PointOfService.ClaimedPosPrinter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedPosPrinter, global::Windows.Devices.PointOfService.ClaimedPosPrinterClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedPosPrinter, global::Windows.Devices.PointOfService.ClaimedPosPrinterClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedPosPrinter sender, global::Windows.Devices.PointOfService.ClaimedPosPrinterClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.ClaimedPosPrinter, global::Windows.Devices.PointOfService.PosPrinterReleaseDeviceRequestedEventArgs)> ReleaseDeviceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.ClaimedPosPrinter, global::Windows.Devices.PointOfService.PosPrinterReleaseDeviceRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.ClaimedPosPrinter sender, global::Windows.Devices.PointOfService.PosPrinterReleaseDeviceRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReleaseDeviceRequested += x, x => _data.ReleaseDeviceRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MagneticStripeReaderEvents + { + private readonly global::Windows.Devices.PointOfService.MagneticStripeReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MagneticStripeReaderEvents(global::Windows.Devices.PointOfService.MagneticStripeReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.MagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderStatusUpdatedEventArgs)> StatusUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.MagneticStripeReader, global::Windows.Devices.PointOfService.MagneticStripeReaderStatusUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.MagneticStripeReader sender, global::Windows.Devices.PointOfService.MagneticStripeReaderStatusUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusUpdated += x, x => _data.StatusUpdated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PosPrinterEvents + { + private readonly global::Windows.Devices.PointOfService.PosPrinter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PosPrinterEvents(global::Windows.Devices.PointOfService.PosPrinter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.PosPrinter, global::Windows.Devices.PointOfService.PosPrinterStatusUpdatedEventArgs)> StatusUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.PosPrinter, global::Windows.Devices.PointOfService.PosPrinterStatusUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.PosPrinter sender, global::Windows.Devices.PointOfService.PosPrinterStatusUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusUpdated += x, x => _data.StatusUpdated -= x); + } +} + +namespace Windows.Devices.PointOfService.Provider +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BarcodeScannerFrameReaderEvents Events(this global::Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReader item) => new BarcodeScannerFrameReaderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BarcodeScannerProviderConnectionEvents Events(this global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection item) => new BarcodeScannerProviderConnectionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BarcodeScannerFrameReaderEvents + { + private readonly global::Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BarcodeScannerFrameReaderEvents(global::Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReader, global::Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReaderFrameArrivedEventArgs)> FrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReader, global::Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReaderFrameArrivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReader sender, global::Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReaderFrameArrivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameArrived += x, x => _data.FrameArrived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BarcodeScannerProviderConnectionEvents + { + private readonly global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BarcodeScannerProviderConnectionEvents(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerDisableScannerRequestEventArgs)> DisableScannerRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerDisableScannerRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection sender, global::Windows.Devices.PointOfService.Provider.BarcodeScannerDisableScannerRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DisableScannerRequested += x, x => _data.DisableScannerRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerEnableScannerRequestEventArgs)> EnableScannerRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerEnableScannerRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection sender, global::Windows.Devices.PointOfService.Provider.BarcodeScannerEnableScannerRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnableScannerRequested += x, x => _data.EnableScannerRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerGetSymbologyAttributesRequestEventArgs)> GetBarcodeSymbologyAttributesRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerGetSymbologyAttributesRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection sender, global::Windows.Devices.PointOfService.Provider.BarcodeScannerGetSymbologyAttributesRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GetBarcodeSymbologyAttributesRequested += x, x => _data.GetBarcodeSymbologyAttributesRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerHideVideoPreviewRequestEventArgs)> HideVideoPreviewRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerHideVideoPreviewRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection sender, global::Windows.Devices.PointOfService.Provider.BarcodeScannerHideVideoPreviewRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HideVideoPreviewRequested += x, x => _data.HideVideoPreviewRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerSetActiveSymbologiesRequestEventArgs)> SetActiveSymbologiesRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerSetActiveSymbologiesRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection sender, global::Windows.Devices.PointOfService.Provider.BarcodeScannerSetActiveSymbologiesRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SetActiveSymbologiesRequested += x, x => _data.SetActiveSymbologiesRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerSetSymbologyAttributesRequestEventArgs)> SetBarcodeSymbologyAttributesRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerSetSymbologyAttributesRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection sender, global::Windows.Devices.PointOfService.Provider.BarcodeScannerSetSymbologyAttributesRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SetBarcodeSymbologyAttributesRequested += x, x => _data.SetBarcodeSymbologyAttributesRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerStartSoftwareTriggerRequestEventArgs)> StartSoftwareTriggerRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerStartSoftwareTriggerRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection sender, global::Windows.Devices.PointOfService.Provider.BarcodeScannerStartSoftwareTriggerRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StartSoftwareTriggerRequested += x, x => _data.StartSoftwareTriggerRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerStopSoftwareTriggerRequestEventArgs)> StopSoftwareTriggerRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection, global::Windows.Devices.PointOfService.Provider.BarcodeScannerStopSoftwareTriggerRequestEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection sender, global::Windows.Devices.PointOfService.Provider.BarcodeScannerStopSoftwareTriggerRequestEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StopSoftwareTriggerRequested += x, x => _data.StopSoftwareTriggerRequested -= x); + } +} + +namespace Windows.Devices.Power +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BatteryEvents Events(this global::Windows.Devices.Power.Battery item) => new BatteryEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BatteryEvents + { + private readonly global::Windows.Devices.Power.Battery _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BatteryEvents(global::Windows.Devices.Power.Battery data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Power.Battery, object)> ReportUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Power.Battery, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Power.Battery sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReportUpdated += x, x => _data.ReportUpdated -= x); + } +} + +namespace Windows.Devices.Printers.Extensions +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static Print3DWorkflowEvents Events(this global::Windows.Devices.Printers.Extensions.Print3DWorkflow item) => new Print3DWorkflowEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PrintTaskConfigurationEvents Events(this global::Windows.Devices.Printers.Extensions.PrintTaskConfiguration item) => new PrintTaskConfigurationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class Print3DWorkflowEvents + { + private readonly global::Windows.Devices.Printers.Extensions.Print3DWorkflow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public Print3DWorkflowEvents(global::Windows.Devices.Printers.Extensions.Print3DWorkflow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Printers.Extensions.Print3DWorkflow, global::Windows.Devices.Printers.Extensions.Print3DWorkflowPrinterChangedEventArgs)> PrinterChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Printers.Extensions.Print3DWorkflow, global::Windows.Devices.Printers.Extensions.Print3DWorkflowPrinterChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Printers.Extensions.Print3DWorkflow sender, global::Windows.Devices.Printers.Extensions.Print3DWorkflowPrinterChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PrinterChanged += x, x => _data.PrinterChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Printers.Extensions.Print3DWorkflow, global::Windows.Devices.Printers.Extensions.Print3DWorkflowPrintRequestedEventArgs)> PrintRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Printers.Extensions.Print3DWorkflow, global::Windows.Devices.Printers.Extensions.Print3DWorkflowPrintRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Printers.Extensions.Print3DWorkflow sender, global::Windows.Devices.Printers.Extensions.Print3DWorkflowPrintRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PrintRequested += x, x => _data.PrintRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PrintTaskConfigurationEvents + { + private readonly global::Windows.Devices.Printers.Extensions.PrintTaskConfiguration _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PrintTaskConfigurationEvents(global::Windows.Devices.Printers.Extensions.PrintTaskConfiguration data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Printers.Extensions.PrintTaskConfiguration, global::Windows.Devices.Printers.Extensions.PrintTaskConfigurationSaveRequestedEventArgs)> SaveRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Printers.Extensions.PrintTaskConfiguration, global::Windows.Devices.Printers.Extensions.PrintTaskConfigurationSaveRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Printers.Extensions.PrintTaskConfiguration sender, global::Windows.Devices.Printers.Extensions.PrintTaskConfigurationSaveRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SaveRequested += x, x => _data.SaveRequested -= x); + } +} + +namespace Windows.Devices.Radios +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RadioEvents Events(this global::Windows.Devices.Radios.Radio item) => new RadioEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RadioEvents + { + private readonly global::Windows.Devices.Radios.Radio _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RadioEvents(global::Windows.Devices.Radios.Radio data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Radios.Radio, object)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Radios.Radio, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Radios.Radio sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } +} + +namespace Windows.Devices.Sensors +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AccelerometerEvents Events(this global::Windows.Devices.Sensors.Accelerometer item) => new AccelerometerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ActivitySensorEvents Events(this global::Windows.Devices.Sensors.ActivitySensor item) => new ActivitySensorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AltimeterEvents Events(this global::Windows.Devices.Sensors.Altimeter item) => new AltimeterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BarometerEvents Events(this global::Windows.Devices.Sensors.Barometer item) => new BarometerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CompassEvents Events(this global::Windows.Devices.Sensors.Compass item) => new CompassEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GyrometerEvents Events(this global::Windows.Devices.Sensors.Gyrometer item) => new GyrometerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HingeAngleSensorEvents Events(this global::Windows.Devices.Sensors.HingeAngleSensor item) => new HingeAngleSensorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InclinometerEvents Events(this global::Windows.Devices.Sensors.Inclinometer item) => new InclinometerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LightSensorEvents Events(this global::Windows.Devices.Sensors.LightSensor item) => new LightSensorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MagnetometerEvents Events(this global::Windows.Devices.Sensors.Magnetometer item) => new MagnetometerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static OrientationSensorEvents Events(this global::Windows.Devices.Sensors.OrientationSensor item) => new OrientationSensorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PedometerEvents Events(this global::Windows.Devices.Sensors.Pedometer item) => new PedometerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ProximitySensorEvents Events(this global::Windows.Devices.Sensors.ProximitySensor item) => new ProximitySensorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SimpleOrientationSensorEvents Events(this global::Windows.Devices.Sensors.SimpleOrientationSensor item) => new SimpleOrientationSensorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AccelerometerEvents + { + private readonly global::Windows.Devices.Sensors.Accelerometer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AccelerometerEvents(global::Windows.Devices.Sensors.Accelerometer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Accelerometer, global::Windows.Devices.Sensors.AccelerometerReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Accelerometer, global::Windows.Devices.Sensors.AccelerometerReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Accelerometer sender, global::Windows.Devices.Sensors.AccelerometerReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Accelerometer, global::Windows.Devices.Sensors.AccelerometerShakenEventArgs)> Shaken => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Accelerometer, global::Windows.Devices.Sensors.AccelerometerShakenEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Accelerometer sender, global::Windows.Devices.Sensors.AccelerometerShakenEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Shaken += x, x => _data.Shaken -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ActivitySensorEvents + { + private readonly global::Windows.Devices.Sensors.ActivitySensor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ActivitySensorEvents(global::Windows.Devices.Sensors.ActivitySensor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.ActivitySensor, global::Windows.Devices.Sensors.ActivitySensorReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.ActivitySensor, global::Windows.Devices.Sensors.ActivitySensorReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.ActivitySensor sender, global::Windows.Devices.Sensors.ActivitySensorReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AltimeterEvents + { + private readonly global::Windows.Devices.Sensors.Altimeter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AltimeterEvents(global::Windows.Devices.Sensors.Altimeter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Altimeter, global::Windows.Devices.Sensors.AltimeterReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Altimeter, global::Windows.Devices.Sensors.AltimeterReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Altimeter sender, global::Windows.Devices.Sensors.AltimeterReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BarometerEvents + { + private readonly global::Windows.Devices.Sensors.Barometer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BarometerEvents(global::Windows.Devices.Sensors.Barometer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Barometer, global::Windows.Devices.Sensors.BarometerReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Barometer, global::Windows.Devices.Sensors.BarometerReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Barometer sender, global::Windows.Devices.Sensors.BarometerReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CompassEvents + { + private readonly global::Windows.Devices.Sensors.Compass _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CompassEvents(global::Windows.Devices.Sensors.Compass data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Compass, global::Windows.Devices.Sensors.CompassReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Compass, global::Windows.Devices.Sensors.CompassReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Compass sender, global::Windows.Devices.Sensors.CompassReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GyrometerEvents + { + private readonly global::Windows.Devices.Sensors.Gyrometer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GyrometerEvents(global::Windows.Devices.Sensors.Gyrometer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Gyrometer, global::Windows.Devices.Sensors.GyrometerReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Gyrometer, global::Windows.Devices.Sensors.GyrometerReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Gyrometer sender, global::Windows.Devices.Sensors.GyrometerReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HingeAngleSensorEvents + { + private readonly global::Windows.Devices.Sensors.HingeAngleSensor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HingeAngleSensorEvents(global::Windows.Devices.Sensors.HingeAngleSensor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.HingeAngleSensor, global::Windows.Devices.Sensors.HingeAngleSensorReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.HingeAngleSensor, global::Windows.Devices.Sensors.HingeAngleSensorReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.HingeAngleSensor sender, global::Windows.Devices.Sensors.HingeAngleSensorReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InclinometerEvents + { + private readonly global::Windows.Devices.Sensors.Inclinometer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InclinometerEvents(global::Windows.Devices.Sensors.Inclinometer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Inclinometer, global::Windows.Devices.Sensors.InclinometerReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Inclinometer, global::Windows.Devices.Sensors.InclinometerReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Inclinometer sender, global::Windows.Devices.Sensors.InclinometerReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LightSensorEvents + { + private readonly global::Windows.Devices.Sensors.LightSensor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LightSensorEvents(global::Windows.Devices.Sensors.LightSensor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.LightSensor, global::Windows.Devices.Sensors.LightSensorReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.LightSensor, global::Windows.Devices.Sensors.LightSensorReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.LightSensor sender, global::Windows.Devices.Sensors.LightSensorReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MagnetometerEvents + { + private readonly global::Windows.Devices.Sensors.Magnetometer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MagnetometerEvents(global::Windows.Devices.Sensors.Magnetometer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Magnetometer, global::Windows.Devices.Sensors.MagnetometerReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Magnetometer, global::Windows.Devices.Sensors.MagnetometerReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Magnetometer sender, global::Windows.Devices.Sensors.MagnetometerReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class OrientationSensorEvents + { + private readonly global::Windows.Devices.Sensors.OrientationSensor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public OrientationSensorEvents(global::Windows.Devices.Sensors.OrientationSensor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.OrientationSensor, global::Windows.Devices.Sensors.OrientationSensorReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.OrientationSensor, global::Windows.Devices.Sensors.OrientationSensorReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.OrientationSensor sender, global::Windows.Devices.Sensors.OrientationSensorReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PedometerEvents + { + private readonly global::Windows.Devices.Sensors.Pedometer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PedometerEvents(global::Windows.Devices.Sensors.Pedometer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Pedometer, global::Windows.Devices.Sensors.PedometerReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Pedometer, global::Windows.Devices.Sensors.PedometerReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Pedometer sender, global::Windows.Devices.Sensors.PedometerReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ProximitySensorEvents + { + private readonly global::Windows.Devices.Sensors.ProximitySensor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ProximitySensorEvents(global::Windows.Devices.Sensors.ProximitySensor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.ProximitySensor, global::Windows.Devices.Sensors.ProximitySensorReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.ProximitySensor, global::Windows.Devices.Sensors.ProximitySensorReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.ProximitySensor sender, global::Windows.Devices.Sensors.ProximitySensorReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SimpleOrientationSensorEvents + { + private readonly global::Windows.Devices.Sensors.SimpleOrientationSensor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SimpleOrientationSensorEvents(global::Windows.Devices.Sensors.SimpleOrientationSensor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.SimpleOrientationSensor, global::Windows.Devices.Sensors.SimpleOrientationSensorOrientationChangedEventArgs)> OrientationChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.SimpleOrientationSensor, global::Windows.Devices.Sensors.SimpleOrientationSensorOrientationChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.SimpleOrientationSensor sender, global::Windows.Devices.Sensors.SimpleOrientationSensorOrientationChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OrientationChanged += x, x => _data.OrientationChanged -= x); + } +} + +namespace Windows.Devices.Sensors.Custom +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CustomSensorEvents Events(this global::Windows.Devices.Sensors.Custom.CustomSensor item) => new CustomSensorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CustomSensorEvents + { + private readonly global::Windows.Devices.Sensors.Custom.CustomSensor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CustomSensorEvents(global::Windows.Devices.Sensors.Custom.CustomSensor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sensors.Custom.CustomSensor, global::Windows.Devices.Sensors.Custom.CustomSensorReadingChangedEventArgs)> ReadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sensors.Custom.CustomSensor, global::Windows.Devices.Sensors.Custom.CustomSensorReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Sensors.Custom.CustomSensor sender, global::Windows.Devices.Sensors.Custom.CustomSensorReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReadingChanged += x, x => _data.ReadingChanged -= x); + } +} + +namespace Windows.Devices.SerialCommunication +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SerialDeviceEvents Events(this global::Windows.Devices.SerialCommunication.SerialDevice item) => new SerialDeviceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SerialDeviceEvents + { + private readonly global::Windows.Devices.SerialCommunication.SerialDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SerialDeviceEvents(global::Windows.Devices.SerialCommunication.SerialDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.SerialCommunication.SerialDevice, global::Windows.Devices.SerialCommunication.ErrorReceivedEventArgs)> ErrorReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.SerialCommunication.SerialDevice, global::Windows.Devices.SerialCommunication.ErrorReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.SerialCommunication.SerialDevice sender, global::Windows.Devices.SerialCommunication.ErrorReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ErrorReceived += x, x => _data.ErrorReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.SerialCommunication.SerialDevice, global::Windows.Devices.SerialCommunication.PinChangedEventArgs)> PinChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.SerialCommunication.SerialDevice, global::Windows.Devices.SerialCommunication.PinChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.SerialCommunication.SerialDevice sender, global::Windows.Devices.SerialCommunication.PinChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PinChanged += x, x => _data.PinChanged -= x); + } +} + +namespace Windows.Devices.SmartCards +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SmartCardEmulatorEvents Events(this global::Windows.Devices.SmartCards.SmartCardEmulator item) => new SmartCardEmulatorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SmartCardReaderEvents Events(this global::Windows.Devices.SmartCards.SmartCardReader item) => new SmartCardReaderEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SmartCardEmulatorEvents + { + private readonly global::Windows.Devices.SmartCards.SmartCardEmulator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SmartCardEmulatorEvents(global::Windows.Devices.SmartCards.SmartCardEmulator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.SmartCards.SmartCardEmulator, global::Windows.Devices.SmartCards.SmartCardEmulatorApduReceivedEventArgs)> ApduReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.SmartCards.SmartCardEmulator, global::Windows.Devices.SmartCards.SmartCardEmulatorApduReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.SmartCards.SmartCardEmulator sender, global::Windows.Devices.SmartCards.SmartCardEmulatorApduReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ApduReceived += x, x => _data.ApduReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.SmartCards.SmartCardEmulator, global::Windows.Devices.SmartCards.SmartCardEmulatorConnectionDeactivatedEventArgs)> ConnectionDeactivated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.SmartCards.SmartCardEmulator, global::Windows.Devices.SmartCards.SmartCardEmulatorConnectionDeactivatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.SmartCards.SmartCardEmulator sender, global::Windows.Devices.SmartCards.SmartCardEmulatorConnectionDeactivatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ConnectionDeactivated += x, x => _data.ConnectionDeactivated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SmartCardReaderEvents + { + private readonly global::Windows.Devices.SmartCards.SmartCardReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SmartCardReaderEvents(global::Windows.Devices.SmartCards.SmartCardReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.SmartCards.SmartCardReader, global::Windows.Devices.SmartCards.CardAddedEventArgs)> CardAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.SmartCards.SmartCardReader, global::Windows.Devices.SmartCards.CardAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.SmartCards.SmartCardReader sender, global::Windows.Devices.SmartCards.CardAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CardAdded += x, x => _data.CardAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.SmartCards.SmartCardReader, global::Windows.Devices.SmartCards.CardRemovedEventArgs)> CardRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.SmartCards.SmartCardReader, global::Windows.Devices.SmartCards.CardRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.SmartCards.SmartCardReader sender, global::Windows.Devices.SmartCards.CardRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CardRemoved += x, x => _data.CardRemoved -= x); + } +} + +namespace Windows.Devices.Sms +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ISmsDeviceEvents Events(this global::Windows.Devices.Sms.ISmsDevice item) => new ISmsDeviceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SmsDeviceEvents Events(this global::Windows.Devices.Sms.SmsDevice item) => new SmsDeviceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SmsDevice2Events Events(this global::Windows.Devices.Sms.SmsDevice2 item) => new SmsDevice2Events(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SmsMessageRegistrationEvents Events(this global::Windows.Devices.Sms.SmsMessageRegistration item) => new SmsMessageRegistrationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ISmsDeviceEvents + { + private readonly global::Windows.Devices.Sms.ISmsDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ISmsDeviceEvents(global::Windows.Devices.Sms.ISmsDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SmsDeviceStatusChanged => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Devices.Sms.SmsDevice sender) => eventHandler(sender); + return Handler; + } + + , x => _data.SmsDeviceStatusChanged += x, x => _data.SmsDeviceStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sms.SmsDevice, global::Windows.Devices.Sms.SmsMessageReceivedEventArgs)> SmsMessageReceived => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Devices.Sms.SmsDevice sender, global::Windows.Devices.Sms.SmsMessageReceivedEventArgs e) => eventHandler((sender, e)); + return Handler; + } + + , x => _data.SmsMessageReceived += x, x => _data.SmsMessageReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SmsDeviceEvents + { + private readonly global::Windows.Devices.Sms.SmsDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SmsDeviceEvents(global::Windows.Devices.Sms.SmsDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SmsDeviceStatusChanged => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Devices.Sms.SmsDevice sender) => eventHandler(sender); + return Handler; + } + + , x => _data.SmsDeviceStatusChanged += x, x => _data.SmsDeviceStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sms.SmsDevice, global::Windows.Devices.Sms.SmsMessageReceivedEventArgs)> SmsMessageReceived => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Devices.Sms.SmsDevice sender, global::Windows.Devices.Sms.SmsMessageReceivedEventArgs e) => eventHandler((sender, e)); + return Handler; + } + + , x => _data.SmsMessageReceived += x, x => _data.SmsMessageReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SmsDevice2Events + { + private readonly global::Windows.Devices.Sms.SmsDevice2 _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SmsDevice2Events(global::Windows.Devices.Sms.SmsDevice2 data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sms.SmsDevice2, object)> DeviceStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sms.SmsDevice2, object)>(eventHandler => + { + void Handler(global::Windows.Devices.Sms.SmsDevice2 sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DeviceStatusChanged += x, x => _data.DeviceStatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SmsMessageRegistrationEvents + { + private readonly global::Windows.Devices.Sms.SmsMessageRegistration _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SmsMessageRegistrationEvents(global::Windows.Devices.Sms.SmsMessageRegistration data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Sms.SmsMessageRegistration, global::Windows.Devices.Sms.SmsMessageReceivedTriggerDetails)> MessageReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Sms.SmsMessageRegistration, global::Windows.Devices.Sms.SmsMessageReceivedTriggerDetails)>(eventHandler => + { + void Handler(global::Windows.Devices.Sms.SmsMessageRegistration sender, global::Windows.Devices.Sms.SmsMessageReceivedTriggerDetails args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MessageReceived += x, x => _data.MessageReceived -= x); + } +} + +namespace Windows.Devices.Usb +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UsbInterruptInPipeEvents Events(this global::Windows.Devices.Usb.UsbInterruptInPipe item) => new UsbInterruptInPipeEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UsbInterruptInPipeEvents + { + private readonly global::Windows.Devices.Usb.UsbInterruptInPipe _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UsbInterruptInPipeEvents(global::Windows.Devices.Usb.UsbInterruptInPipe data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.Usb.UsbInterruptInPipe, global::Windows.Devices.Usb.UsbInterruptInEventArgs)> DataReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.Usb.UsbInterruptInPipe, global::Windows.Devices.Usb.UsbInterruptInEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.Usb.UsbInterruptInPipe sender, global::Windows.Devices.Usb.UsbInterruptInEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DataReceived += x, x => _data.DataReceived -= x); + } +} + +namespace Windows.Devices.WiFi +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WiFiAdapterEvents Events(this global::Windows.Devices.WiFi.WiFiAdapter item) => new WiFiAdapterEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WiFiAdapterEvents + { + private readonly global::Windows.Devices.WiFi.WiFiAdapter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WiFiAdapterEvents(global::Windows.Devices.WiFi.WiFiAdapter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFi.WiFiAdapter, object)> AvailableNetworksChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFi.WiFiAdapter, object)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFi.WiFiAdapter sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AvailableNetworksChanged += x, x => _data.AvailableNetworksChanged -= x); + } +} + +namespace Windows.Devices.WiFiDirect +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WiFiDirectAdvertisementPublisherEvents Events(this global::Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher item) => new WiFiDirectAdvertisementPublisherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WiFiDirectConnectionListenerEvents Events(this global::Windows.Devices.WiFiDirect.WiFiDirectConnectionListener item) => new WiFiDirectConnectionListenerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WiFiDirectDeviceEvents Events(this global::Windows.Devices.WiFiDirect.WiFiDirectDevice item) => new WiFiDirectDeviceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WiFiDirectAdvertisementPublisherEvents + { + private readonly global::Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WiFiDirectAdvertisementPublisherEvents(global::Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher, global::Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatusChangedEventArgs)> StatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher, global::Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatusChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher sender, global::Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatusChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusChanged += x, x => _data.StatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WiFiDirectConnectionListenerEvents + { + private readonly global::Windows.Devices.WiFiDirect.WiFiDirectConnectionListener _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WiFiDirectConnectionListenerEvents(global::Windows.Devices.WiFiDirect.WiFiDirectConnectionListener data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFiDirect.WiFiDirectConnectionListener, global::Windows.Devices.WiFiDirect.WiFiDirectConnectionRequestedEventArgs)> ConnectionRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFiDirect.WiFiDirectConnectionListener, global::Windows.Devices.WiFiDirect.WiFiDirectConnectionRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFiDirect.WiFiDirectConnectionListener sender, global::Windows.Devices.WiFiDirect.WiFiDirectConnectionRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ConnectionRequested += x, x => _data.ConnectionRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WiFiDirectDeviceEvents + { + private readonly global::Windows.Devices.WiFiDirect.WiFiDirectDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WiFiDirectDeviceEvents(global::Windows.Devices.WiFiDirect.WiFiDirectDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFiDirect.WiFiDirectDevice, object)> ConnectionStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFiDirect.WiFiDirectDevice, object)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFiDirect.WiFiDirectDevice sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ConnectionStatusChanged += x, x => _data.ConnectionStatusChanged -= x); + } +} + +namespace Windows.Devices.WiFiDirect.Services +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WiFiDirectServiceEvents Events(this global::Windows.Devices.WiFiDirect.Services.WiFiDirectService item) => new WiFiDirectServiceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WiFiDirectServiceAdvertiserEvents Events(this global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser item) => new WiFiDirectServiceAdvertiserEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WiFiDirectServiceSessionEvents Events(this global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession item) => new WiFiDirectServiceSessionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WiFiDirectServiceEvents + { + private readonly global::Windows.Devices.WiFiDirect.Services.WiFiDirectService _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WiFiDirectServiceEvents(global::Windows.Devices.WiFiDirect.Services.WiFiDirectService data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFiDirect.Services.WiFiDirectService, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSessionDeferredEventArgs)> SessionDeferred => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFiDirect.Services.WiFiDirectService, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSessionDeferredEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFiDirect.Services.WiFiDirectService sender, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSessionDeferredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SessionDeferred += x, x => _data.SessionDeferred -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WiFiDirectServiceAdvertiserEvents + { + private readonly global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WiFiDirectServiceAdvertiserEvents(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser, object)> AdvertisementStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser, object)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AdvertisementStatusChanged += x, x => _data.AdvertisementStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAutoAcceptSessionConnectedEventArgs)> AutoAcceptSessionConnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAutoAcceptSessionConnectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser sender, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAutoAcceptSessionConnectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AutoAcceptSessionConnected += x, x => _data.AutoAcceptSessionConnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSessionRequestedEventArgs)> SessionRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSessionRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser sender, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSessionRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SessionRequested += x, x => _data.SessionRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WiFiDirectServiceSessionEvents + { + private readonly global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WiFiDirectServiceSessionEvents(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceRemotePortAddedEventArgs)> RemotePortAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceRemotePortAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession sender, global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceRemotePortAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RemotePortAdded += x, x => _data.RemotePortAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession, object)> SessionStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession, object)>(eventHandler => + { + void Handler(global::Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SessionStatusChanged += x, x => _data.SessionStatusChanged -= x); + } +} + +namespace Windows.Foundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IMemoryBufferReferenceEvents Events(this global::Windows.Foundation.IMemoryBufferReference item) => new IMemoryBufferReferenceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IMemoryBufferReferenceEvents + { + private readonly global::Windows.Foundation.IMemoryBufferReference _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IMemoryBufferReferenceEvents(global::Windows.Foundation.IMemoryBufferReference data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.IMemoryBufferReference, object)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.IMemoryBufferReference, object)>(eventHandler => + { + void Handler(global::Windows.Foundation.IMemoryBufferReference sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + } +} + +namespace Windows.Foundation.Collections +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PropertySetEvents Events(this global::Windows.Foundation.Collections.PropertySet item) => new PropertySetEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StringMapEvents Events(this global::Windows.Foundation.Collections.StringMap item) => new StringMapEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ValueSetEvents Events(this global::Windows.Foundation.Collections.ValueSet item) => new ValueSetEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PropertySetEvents + { + private readonly global::Windows.Foundation.Collections.PropertySet _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PropertySetEvents(global::Windows.Foundation.Collections.PropertySet data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)> MapChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Collections.IObservableMap sender, global::Windows.Foundation.Collections.IMapChangedEventArgs event) => eventHandler((sender, event)); + return Handler; + } + + , x => _data.MapChanged += x, x => _data.MapChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StringMapEvents + { + private readonly global::Windows.Foundation.Collections.StringMap _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StringMapEvents(global::Windows.Foundation.Collections.StringMap data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)> MapChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Collections.IObservableMap sender, global::Windows.Foundation.Collections.IMapChangedEventArgs event) => eventHandler((sender, event)); + return Handler; + } + + , x => _data.MapChanged += x, x => _data.MapChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ValueSetEvents + { + private readonly global::Windows.Foundation.Collections.ValueSet _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ValueSetEvents(global::Windows.Foundation.Collections.ValueSet data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)> MapChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Collections.IObservableMap sender, global::Windows.Foundation.Collections.IMapChangedEventArgs event) => eventHandler((sender, event)); + return Handler; + } + + , x => _data.MapChanged += x, x => _data.MapChanged -= x); + } +} + +namespace Windows.Foundation.Diagnostics +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FileLoggingSessionEvents Events(this global::Windows.Foundation.Diagnostics.FileLoggingSession item) => new FileLoggingSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IFileLoggingSessionEvents Events(this global::Windows.Foundation.Diagnostics.IFileLoggingSession item) => new IFileLoggingSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ILoggingChannelEvents Events(this global::Windows.Foundation.Diagnostics.ILoggingChannel item) => new ILoggingChannelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LoggingChannelEvents Events(this global::Windows.Foundation.Diagnostics.LoggingChannel item) => new LoggingChannelEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FileLoggingSessionEvents + { + private readonly global::Windows.Foundation.Diagnostics.FileLoggingSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FileLoggingSessionEvents(global::Windows.Foundation.Diagnostics.FileLoggingSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Diagnostics.IFileLoggingSession, global::Windows.Foundation.Diagnostics.LogFileGeneratedEventArgs)> LogFileGenerated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Diagnostics.IFileLoggingSession, global::Windows.Foundation.Diagnostics.LogFileGeneratedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Diagnostics.IFileLoggingSession sender, global::Windows.Foundation.Diagnostics.LogFileGeneratedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LogFileGenerated += x, x => _data.LogFileGenerated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IFileLoggingSessionEvents + { + private readonly global::Windows.Foundation.Diagnostics.IFileLoggingSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IFileLoggingSessionEvents(global::Windows.Foundation.Diagnostics.IFileLoggingSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Diagnostics.IFileLoggingSession, global::Windows.Foundation.Diagnostics.LogFileGeneratedEventArgs)> LogFileGenerated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Diagnostics.IFileLoggingSession, global::Windows.Foundation.Diagnostics.LogFileGeneratedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Diagnostics.IFileLoggingSession sender, global::Windows.Foundation.Diagnostics.LogFileGeneratedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LogFileGenerated += x, x => _data.LogFileGenerated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ILoggingChannelEvents + { + private readonly global::Windows.Foundation.Diagnostics.ILoggingChannel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ILoggingChannelEvents(global::Windows.Foundation.Diagnostics.ILoggingChannel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Diagnostics.ILoggingChannel, object)> LoggingEnabled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Diagnostics.ILoggingChannel, object)>(eventHandler => + { + void Handler(global::Windows.Foundation.Diagnostics.ILoggingChannel sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LoggingEnabled += x, x => _data.LoggingEnabled -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LoggingChannelEvents + { + private readonly global::Windows.Foundation.Diagnostics.LoggingChannel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LoggingChannelEvents(global::Windows.Foundation.Diagnostics.LoggingChannel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Diagnostics.ILoggingChannel, object)> LoggingEnabled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Diagnostics.ILoggingChannel, object)>(eventHandler => + { + void Handler(global::Windows.Foundation.Diagnostics.ILoggingChannel sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LoggingEnabled += x, x => _data.LoggingEnabled -= x); + } +} + +namespace Windows.Gaming.Input +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ArcadeStickEvents Events(this global::Windows.Gaming.Input.ArcadeStick item) => new ArcadeStickEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FlightStickEvents Events(this global::Windows.Gaming.Input.FlightStick item) => new FlightStickEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GamepadEvents Events(this global::Windows.Gaming.Input.Gamepad item) => new GamepadEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IGameControllerEvents Events(this global::Windows.Gaming.Input.IGameController item) => new IGameControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RacingWheelEvents Events(this global::Windows.Gaming.Input.RacingWheel item) => new RacingWheelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RawGameControllerEvents Events(this global::Windows.Gaming.Input.RawGameController item) => new RawGameControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UINavigationControllerEvents Events(this global::Windows.Gaming.Input.UINavigationController item) => new UINavigationControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ArcadeStickEvents + { + private readonly global::Windows.Gaming.Input.ArcadeStick _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ArcadeStickEvents(global::Windows.Gaming.Input.ArcadeStick data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetConnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetConnected += x, x => _data.HeadsetConnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetDisconnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetDisconnected += x, x => _data.HeadsetDisconnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)> UserChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserChanged += x, x => _data.UserChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FlightStickEvents + { + private readonly global::Windows.Gaming.Input.FlightStick _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FlightStickEvents(global::Windows.Gaming.Input.FlightStick data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetConnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetConnected += x, x => _data.HeadsetConnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetDisconnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetDisconnected += x, x => _data.HeadsetDisconnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)> UserChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserChanged += x, x => _data.UserChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GamepadEvents + { + private readonly global::Windows.Gaming.Input.Gamepad _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GamepadEvents(global::Windows.Gaming.Input.Gamepad data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetConnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetConnected += x, x => _data.HeadsetConnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetDisconnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetDisconnected += x, x => _data.HeadsetDisconnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)> UserChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserChanged += x, x => _data.UserChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IGameControllerEvents + { + private readonly global::Windows.Gaming.Input.IGameController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IGameControllerEvents(global::Windows.Gaming.Input.IGameController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetConnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetConnected += x, x => _data.HeadsetConnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetDisconnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetDisconnected += x, x => _data.HeadsetDisconnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)> UserChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserChanged += x, x => _data.UserChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RacingWheelEvents + { + private readonly global::Windows.Gaming.Input.RacingWheel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RacingWheelEvents(global::Windows.Gaming.Input.RacingWheel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetConnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetConnected += x, x => _data.HeadsetConnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetDisconnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetDisconnected += x, x => _data.HeadsetDisconnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)> UserChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserChanged += x, x => _data.UserChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RawGameControllerEvents + { + private readonly global::Windows.Gaming.Input.RawGameController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RawGameControllerEvents(global::Windows.Gaming.Input.RawGameController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetConnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetConnected += x, x => _data.HeadsetConnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetDisconnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetDisconnected += x, x => _data.HeadsetDisconnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)> UserChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserChanged += x, x => _data.UserChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UINavigationControllerEvents + { + private readonly global::Windows.Gaming.Input.UINavigationController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UINavigationControllerEvents(global::Windows.Gaming.Input.UINavigationController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetConnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetConnected += x, x => _data.HeadsetConnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)> HeadsetDisconnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.Gaming.Input.Headset)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.Gaming.Input.Headset args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadsetDisconnected += x, x => _data.HeadsetDisconnected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)> UserChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.Input.IGameController, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Gaming.Input.IGameController sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserChanged += x, x => _data.UserChanged -= x); + } +} + +namespace Windows.Gaming.UI +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GameChatOverlayMessageSourceEvents Events(this global::Windows.Gaming.UI.GameChatOverlayMessageSource item) => new GameChatOverlayMessageSourceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GameChatOverlayMessageSourceEvents + { + private readonly global::Windows.Gaming.UI.GameChatOverlayMessageSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GameChatOverlayMessageSourceEvents(global::Windows.Gaming.UI.GameChatOverlayMessageSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Gaming.UI.GameChatOverlayMessageSource, global::Windows.Gaming.UI.GameChatMessageReceivedEventArgs)> MessageReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Gaming.UI.GameChatOverlayMessageSource, global::Windows.Gaming.UI.GameChatMessageReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Gaming.UI.GameChatOverlayMessageSource sender, global::Windows.Gaming.UI.GameChatMessageReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MessageReceived += x, x => _data.MessageReceived -= x); + } +} + +namespace Windows.Graphics.Capture +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static Direct3D11CaptureFramePoolEvents Events(this global::Windows.Graphics.Capture.Direct3D11CaptureFramePool item) => new Direct3D11CaptureFramePoolEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GraphicsCaptureItemEvents Events(this global::Windows.Graphics.Capture.GraphicsCaptureItem item) => new GraphicsCaptureItemEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class Direct3D11CaptureFramePoolEvents + { + private readonly global::Windows.Graphics.Capture.Direct3D11CaptureFramePool _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public Direct3D11CaptureFramePoolEvents(global::Windows.Graphics.Capture.Direct3D11CaptureFramePool data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Capture.Direct3D11CaptureFramePool, object)> FrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Capture.Direct3D11CaptureFramePool, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Capture.Direct3D11CaptureFramePool sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameArrived += x, x => _data.FrameArrived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GraphicsCaptureItemEvents + { + private readonly global::Windows.Graphics.Capture.GraphicsCaptureItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GraphicsCaptureItemEvents(global::Windows.Graphics.Capture.GraphicsCaptureItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Capture.GraphicsCaptureItem, object)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Capture.GraphicsCaptureItem, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Capture.GraphicsCaptureItem sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + } +} + +namespace Windows.Graphics.Display +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BrightnessOverrideEvents Events(this global::Windows.Graphics.Display.BrightnessOverride item) => new BrightnessOverrideEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DisplayEnhancementOverrideEvents Events(this global::Windows.Graphics.Display.DisplayEnhancementOverride item) => new DisplayEnhancementOverrideEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DisplayInformationEvents Events(this global::Windows.Graphics.Display.DisplayInformation item) => new DisplayInformationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BrightnessOverrideEvents + { + private readonly global::Windows.Graphics.Display.BrightnessOverride _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BrightnessOverrideEvents(global::Windows.Graphics.Display.BrightnessOverride data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.BrightnessOverride, object)> BrightnessLevelChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.BrightnessOverride, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.BrightnessOverride sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BrightnessLevelChanged += x, x => _data.BrightnessLevelChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.BrightnessOverride, object)> IsOverrideActiveChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.BrightnessOverride, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.BrightnessOverride sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsOverrideActiveChanged += x, x => _data.IsOverrideActiveChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.BrightnessOverride, object)> IsSupportedChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.BrightnessOverride, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.BrightnessOverride sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsSupportedChanged += x, x => _data.IsSupportedChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DisplayEnhancementOverrideEvents + { + private readonly global::Windows.Graphics.Display.DisplayEnhancementOverride _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DisplayEnhancementOverrideEvents(global::Windows.Graphics.Display.DisplayEnhancementOverride data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.DisplayEnhancementOverride, object)> CanOverrideChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.DisplayEnhancementOverride, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.DisplayEnhancementOverride sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CanOverrideChanged += x, x => _data.CanOverrideChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.DisplayEnhancementOverride, global::Windows.Graphics.Display.DisplayEnhancementOverrideCapabilitiesChangedEventArgs)> DisplayEnhancementOverrideCapabilitiesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.DisplayEnhancementOverride, global::Windows.Graphics.Display.DisplayEnhancementOverrideCapabilitiesChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.DisplayEnhancementOverride sender, global::Windows.Graphics.Display.DisplayEnhancementOverrideCapabilitiesChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DisplayEnhancementOverrideCapabilitiesChanged += x, x => _data.DisplayEnhancementOverrideCapabilitiesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.DisplayEnhancementOverride, object)> IsOverrideActiveChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.DisplayEnhancementOverride, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.DisplayEnhancementOverride sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsOverrideActiveChanged += x, x => _data.IsOverrideActiveChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DisplayInformationEvents + { + private readonly global::Windows.Graphics.Display.DisplayInformation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DisplayInformationEvents(global::Windows.Graphics.Display.DisplayInformation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.DisplayInformation, object)> AdvancedColorInfoChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.DisplayInformation, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.DisplayInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AdvancedColorInfoChanged += x, x => _data.AdvancedColorInfoChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.DisplayInformation, object)> ColorProfileChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.DisplayInformation, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.DisplayInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ColorProfileChanged += x, x => _data.ColorProfileChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.DisplayInformation, object)> DpiChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.DisplayInformation, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.DisplayInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DpiChanged += x, x => _data.DpiChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.DisplayInformation, object)> OrientationChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.DisplayInformation, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.DisplayInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OrientationChanged += x, x => _data.OrientationChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.DisplayInformation, object)> StereoEnabledChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.DisplayInformation, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.DisplayInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StereoEnabledChanged += x, x => _data.StereoEnabledChanged -= x); + } +} + +namespace Windows.Graphics.Display.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HdmiDisplayInformationEvents Events(this global::Windows.Graphics.Display.Core.HdmiDisplayInformation item) => new HdmiDisplayInformationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HdmiDisplayInformationEvents + { + private readonly global::Windows.Graphics.Display.Core.HdmiDisplayInformation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HdmiDisplayInformationEvents(global::Windows.Graphics.Display.Core.HdmiDisplayInformation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Display.Core.HdmiDisplayInformation, object)> DisplayModesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.Core.HdmiDisplayInformation, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.Core.HdmiDisplayInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DisplayModesChanged += x, x => _data.DisplayModesChanged -= x); + } +} + +namespace Windows.Graphics.Holographic +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HolographicSpaceEvents Events(this global::Windows.Graphics.Holographic.HolographicSpace item) => new HolographicSpaceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HolographicSpaceEvents + { + private readonly global::Windows.Graphics.Holographic.HolographicSpace _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HolographicSpaceEvents(global::Windows.Graphics.Holographic.HolographicSpace data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Holographic.HolographicSpace, global::Windows.Graphics.Holographic.HolographicSpaceCameraAddedEventArgs)> CameraAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Holographic.HolographicSpace, global::Windows.Graphics.Holographic.HolographicSpaceCameraAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Holographic.HolographicSpace sender, global::Windows.Graphics.Holographic.HolographicSpaceCameraAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CameraAdded += x, x => _data.CameraAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Holographic.HolographicSpace, global::Windows.Graphics.Holographic.HolographicSpaceCameraRemovedEventArgs)> CameraRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Holographic.HolographicSpace, global::Windows.Graphics.Holographic.HolographicSpaceCameraRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Holographic.HolographicSpace sender, global::Windows.Graphics.Holographic.HolographicSpaceCameraRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CameraRemoved += x, x => _data.CameraRemoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Holographic.HolographicSpace, object)> UserPresenceChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Holographic.HolographicSpace, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Holographic.HolographicSpace sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserPresenceChanged += x, x => _data.UserPresenceChanged -= x); + } +} + +namespace Windows.Graphics.Printing +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PrintManagerEvents Events(this global::Windows.Graphics.Printing.PrintManager item) => new PrintManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PrintTaskEvents Events(this global::Windows.Graphics.Printing.PrintTask item) => new PrintTaskEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PrintManagerEvents + { + private readonly global::Windows.Graphics.Printing.PrintManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PrintManagerEvents(global::Windows.Graphics.Printing.PrintManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.PrintManager, global::Windows.Graphics.Printing.PrintTaskRequestedEventArgs)> PrintTaskRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.PrintManager, global::Windows.Graphics.Printing.PrintTaskRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.PrintManager sender, global::Windows.Graphics.Printing.PrintTaskRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PrintTaskRequested += x, x => _data.PrintTaskRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PrintTaskEvents + { + private readonly global::Windows.Graphics.Printing.PrintTask _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PrintTaskEvents(global::Windows.Graphics.Printing.PrintTask data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.PrintTask, global::Windows.Graphics.Printing.PrintTaskCompletedEventArgs)> Completed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.PrintTask, global::Windows.Graphics.Printing.PrintTaskCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.PrintTask sender, global::Windows.Graphics.Printing.PrintTaskCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Completed += x, x => _data.Completed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.PrintTask, object)> Previewing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.PrintTask, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.PrintTask sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Previewing += x, x => _data.Previewing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.PrintTask, global::Windows.Graphics.Printing.PrintTaskProgressingEventArgs)> Progressing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.PrintTask, global::Windows.Graphics.Printing.PrintTaskProgressingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.PrintTask sender, global::Windows.Graphics.Printing.PrintTaskProgressingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Progressing += x, x => _data.Progressing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.PrintTask, object)> Submitting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.PrintTask, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.PrintTask sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Submitting += x, x => _data.Submitting -= x); + } +} + +namespace Windows.Graphics.Printing.OptionDetails +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PrintTaskOptionDetailsEvents Events(this global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails item) => new PrintTaskOptionDetailsEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PrintTaskOptionDetailsEvents + { + private readonly global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PrintTaskOptionDetailsEvents(global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails, object)> BeginValidation => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BeginValidation += x, x => _data.BeginValidation -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails, global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionChangedEventArgs)> OptionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails, global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails sender, global::Windows.Graphics.Printing.OptionDetails.PrintTaskOptionChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OptionChanged += x, x => _data.OptionChanged -= x); + } +} + +namespace Windows.Graphics.Printing.Workflow +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PrintWorkflowBackgroundSessionEvents Events(this global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession item) => new PrintWorkflowBackgroundSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PrintWorkflowForegroundSessionEvents Events(this global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession item) => new PrintWorkflowForegroundSessionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PrintWorkflowBackgroundSessionEvents + { + private readonly global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PrintWorkflowBackgroundSessionEvents(global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession, global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSetupRequestedEventArgs)> SetupRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession, global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSetupRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession sender, global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSetupRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SetupRequested += x, x => _data.SetupRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession, global::Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedEventArgs)> Submitted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession, global::Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession sender, global::Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Submitted += x, x => _data.Submitted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PrintWorkflowForegroundSessionEvents + { + private readonly global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PrintWorkflowForegroundSessionEvents(global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession, global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSetupRequestedEventArgs)> SetupRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession, global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSetupRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession sender, global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSetupRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SetupRequested += x, x => _data.SetupRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession, global::Windows.Graphics.Printing.Workflow.PrintWorkflowXpsDataAvailableEventArgs)> XpsDataAvailable => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession, global::Windows.Graphics.Printing.Workflow.PrintWorkflowXpsDataAvailableEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession sender, global::Windows.Graphics.Printing.Workflow.PrintWorkflowXpsDataAvailableEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.XpsDataAvailable += x, x => _data.XpsDataAvailable -= x); + } +} + +namespace Windows.Graphics.Printing3D +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static Print3DManagerEvents Events(this global::Windows.Graphics.Printing3D.Print3DManager item) => new Print3DManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static Print3DTaskEvents Events(this global::Windows.Graphics.Printing3D.Print3DTask item) => new Print3DTaskEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class Print3DManagerEvents + { + private readonly global::Windows.Graphics.Printing3D.Print3DManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public Print3DManagerEvents(global::Windows.Graphics.Printing3D.Print3DManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing3D.Print3DManager, global::Windows.Graphics.Printing3D.Print3DTaskRequestedEventArgs)> TaskRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing3D.Print3DManager, global::Windows.Graphics.Printing3D.Print3DTaskRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing3D.Print3DManager sender, global::Windows.Graphics.Printing3D.Print3DTaskRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TaskRequested += x, x => _data.TaskRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class Print3DTaskEvents + { + private readonly global::Windows.Graphics.Printing3D.Print3DTask _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public Print3DTaskEvents(global::Windows.Graphics.Printing3D.Print3DTask data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing3D.Print3DTask, global::Windows.Graphics.Printing3D.Print3DTaskCompletedEventArgs)> Completed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing3D.Print3DTask, global::Windows.Graphics.Printing3D.Print3DTaskCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing3D.Print3DTask sender, global::Windows.Graphics.Printing3D.Print3DTaskCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Completed += x, x => _data.Completed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing3D.Print3DTask, global::Windows.Graphics.Printing3D.Print3DTaskSourceChangedEventArgs)> SourceChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing3D.Print3DTask, global::Windows.Graphics.Printing3D.Print3DTaskSourceChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing3D.Print3DTask sender, global::Windows.Graphics.Printing3D.Print3DTaskSourceChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceChanged += x, x => _data.SourceChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Graphics.Printing3D.Print3DTask, object)> Submitting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Printing3D.Print3DTask, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Printing3D.Print3DTask sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Submitting += x, x => _data.Submitting -= x); + } +} + +namespace Windows.Management.Policies +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NamedPolicyDataEvents Events(this global::Windows.Management.Policies.NamedPolicyData item) => new NamedPolicyDataEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NamedPolicyDataEvents + { + private readonly global::Windows.Management.Policies.NamedPolicyData _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NamedPolicyDataEvents(global::Windows.Management.Policies.NamedPolicyData data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Management.Policies.NamedPolicyData, object)> Changed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Management.Policies.NamedPolicyData, object)>(eventHandler => + { + void Handler(global::Windows.Management.Policies.NamedPolicyData sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Changed += x, x => _data.Changed -= x); + } +} + +namespace Windows.Media +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaTimelineControllerEvents Events(this global::Windows.Media.MediaTimelineController item) => new MediaTimelineControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SystemMediaTransportControlsEvents Events(this global::Windows.Media.SystemMediaTransportControls item) => new SystemMediaTransportControlsEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaTimelineControllerEvents + { + private readonly global::Windows.Media.MediaTimelineController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaTimelineControllerEvents(global::Windows.Media.MediaTimelineController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.MediaTimelineController, object)> Ended => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.MediaTimelineController, object)>(eventHandler => + { + void Handler(global::Windows.Media.MediaTimelineController sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Ended += x, x => _data.Ended -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.MediaTimelineController, global::Windows.Media.MediaTimelineControllerFailedEventArgs)> Failed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.MediaTimelineController, global::Windows.Media.MediaTimelineControllerFailedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.MediaTimelineController sender, global::Windows.Media.MediaTimelineControllerFailedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Failed += x, x => _data.Failed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.MediaTimelineController, object)> PositionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.MediaTimelineController, object)>(eventHandler => + { + void Handler(global::Windows.Media.MediaTimelineController sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PositionChanged += x, x => _data.PositionChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.MediaTimelineController, object)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.MediaTimelineController, object)>(eventHandler => + { + void Handler(global::Windows.Media.MediaTimelineController sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SystemMediaTransportControlsEvents + { + private readonly global::Windows.Media.SystemMediaTransportControls _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SystemMediaTransportControlsEvents(global::Windows.Media.SystemMediaTransportControls data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.AutoRepeatModeChangeRequestedEventArgs)> AutoRepeatModeChangeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.AutoRepeatModeChangeRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SystemMediaTransportControls sender, global::Windows.Media.AutoRepeatModeChangeRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AutoRepeatModeChangeRequested += x, x => _data.AutoRepeatModeChangeRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.SystemMediaTransportControlsButtonPressedEventArgs)> ButtonPressed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.SystemMediaTransportControlsButtonPressedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SystemMediaTransportControls sender, global::Windows.Media.SystemMediaTransportControlsButtonPressedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ButtonPressed += x, x => _data.ButtonPressed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.PlaybackPositionChangeRequestedEventArgs)> PlaybackPositionChangeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.PlaybackPositionChangeRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SystemMediaTransportControls sender, global::Windows.Media.PlaybackPositionChangeRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlaybackPositionChangeRequested += x, x => _data.PlaybackPositionChangeRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.PlaybackRateChangeRequestedEventArgs)> PlaybackRateChangeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.PlaybackRateChangeRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SystemMediaTransportControls sender, global::Windows.Media.PlaybackRateChangeRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlaybackRateChangeRequested += x, x => _data.PlaybackRateChangeRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.SystemMediaTransportControlsPropertyChangedEventArgs)> PropertyChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.SystemMediaTransportControlsPropertyChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SystemMediaTransportControls sender, global::Windows.Media.SystemMediaTransportControlsPropertyChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PropertyChanged += x, x => _data.PropertyChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.ShuffleEnabledChangeRequestedEventArgs)> ShuffleEnabledChangeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SystemMediaTransportControls, global::Windows.Media.ShuffleEnabledChangeRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SystemMediaTransportControls sender, global::Windows.Media.ShuffleEnabledChangeRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ShuffleEnabledChangeRequested += x, x => _data.ShuffleEnabledChangeRequested -= x); + } +} + +namespace Windows.Media.AppBroadcasting +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppBroadcastingMonitorEvents Events(this global::Windows.Media.AppBroadcasting.AppBroadcastingMonitor item) => new AppBroadcastingMonitorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppBroadcastingMonitorEvents + { + private readonly global::Windows.Media.AppBroadcasting.AppBroadcastingMonitor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppBroadcastingMonitorEvents(global::Windows.Media.AppBroadcasting.AppBroadcastingMonitor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.AppBroadcasting.AppBroadcastingMonitor, object)> IsCurrentAppBroadcastingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.AppBroadcasting.AppBroadcastingMonitor, object)>(eventHandler => + { + void Handler(global::Windows.Media.AppBroadcasting.AppBroadcastingMonitor sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsCurrentAppBroadcastingChanged += x, x => _data.IsCurrentAppBroadcastingChanged -= x); + } +} + +namespace Windows.Media.Audio +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioFileInputNodeEvents Events(this global::Windows.Media.Audio.AudioFileInputNode item) => new AudioFileInputNodeEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioFrameInputNodeEvents Events(this global::Windows.Media.Audio.AudioFrameInputNode item) => new AudioFrameInputNodeEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioGraphEvents Events(this global::Windows.Media.Audio.AudioGraph item) => new AudioGraphEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioStateMonitorEvents Events(this global::Windows.Media.Audio.AudioStateMonitor item) => new AudioStateMonitorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaSourceAudioInputNodeEvents Events(this global::Windows.Media.Audio.MediaSourceAudioInputNode item) => new MediaSourceAudioInputNodeEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpatialAudioDeviceConfigurationEvents Events(this global::Windows.Media.Audio.SpatialAudioDeviceConfiguration item) => new SpatialAudioDeviceConfigurationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioFileInputNodeEvents + { + private readonly global::Windows.Media.Audio.AudioFileInputNode _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioFileInputNodeEvents(global::Windows.Media.Audio.AudioFileInputNode data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Audio.AudioFileInputNode, object)> FileCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Audio.AudioFileInputNode, object)>(eventHandler => + { + void Handler(global::Windows.Media.Audio.AudioFileInputNode sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FileCompleted += x, x => _data.FileCompleted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioFrameInputNodeEvents + { + private readonly global::Windows.Media.Audio.AudioFrameInputNode _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioFrameInputNodeEvents(global::Windows.Media.Audio.AudioFrameInputNode data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Audio.AudioFrameInputNode, global::Windows.Media.Audio.AudioFrameCompletedEventArgs)> AudioFrameCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Audio.AudioFrameInputNode, global::Windows.Media.Audio.AudioFrameCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Audio.AudioFrameInputNode sender, global::Windows.Media.Audio.AudioFrameCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AudioFrameCompleted += x, x => _data.AudioFrameCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Audio.AudioFrameInputNode, global::Windows.Media.Audio.FrameInputNodeQuantumStartedEventArgs)> QuantumStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Audio.AudioFrameInputNode, global::Windows.Media.Audio.FrameInputNodeQuantumStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Audio.AudioFrameInputNode sender, global::Windows.Media.Audio.FrameInputNodeQuantumStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.QuantumStarted += x, x => _data.QuantumStarted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioGraphEvents + { + private readonly global::Windows.Media.Audio.AudioGraph _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioGraphEvents(global::Windows.Media.Audio.AudioGraph data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Audio.AudioGraph, object)> QuantumProcessed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Audio.AudioGraph, object)>(eventHandler => + { + void Handler(global::Windows.Media.Audio.AudioGraph sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.QuantumProcessed += x, x => _data.QuantumProcessed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Audio.AudioGraph, object)> QuantumStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Audio.AudioGraph, object)>(eventHandler => + { + void Handler(global::Windows.Media.Audio.AudioGraph sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.QuantumStarted += x, x => _data.QuantumStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Audio.AudioGraph, global::Windows.Media.Audio.AudioGraphUnrecoverableErrorOccurredEventArgs)> UnrecoverableErrorOccurred => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Audio.AudioGraph, global::Windows.Media.Audio.AudioGraphUnrecoverableErrorOccurredEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Audio.AudioGraph sender, global::Windows.Media.Audio.AudioGraphUnrecoverableErrorOccurredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnrecoverableErrorOccurred += x, x => _data.UnrecoverableErrorOccurred -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioStateMonitorEvents + { + private readonly global::Windows.Media.Audio.AudioStateMonitor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioStateMonitorEvents(global::Windows.Media.Audio.AudioStateMonitor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Audio.AudioStateMonitor, object)> SoundLevelChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Audio.AudioStateMonitor, object)>(eventHandler => + { + void Handler(global::Windows.Media.Audio.AudioStateMonitor sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SoundLevelChanged += x, x => _data.SoundLevelChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaSourceAudioInputNodeEvents + { + private readonly global::Windows.Media.Audio.MediaSourceAudioInputNode _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaSourceAudioInputNodeEvents(global::Windows.Media.Audio.MediaSourceAudioInputNode data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Audio.MediaSourceAudioInputNode, object)> MediaSourceCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Audio.MediaSourceAudioInputNode, object)>(eventHandler => + { + void Handler(global::Windows.Media.Audio.MediaSourceAudioInputNode sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MediaSourceCompleted += x, x => _data.MediaSourceCompleted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpatialAudioDeviceConfigurationEvents + { + private readonly global::Windows.Media.Audio.SpatialAudioDeviceConfiguration _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpatialAudioDeviceConfigurationEvents(global::Windows.Media.Audio.SpatialAudioDeviceConfiguration data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Audio.SpatialAudioDeviceConfiguration, object)> ConfigurationChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Audio.SpatialAudioDeviceConfiguration, object)>(eventHandler => + { + void Handler(global::Windows.Media.Audio.SpatialAudioDeviceConfiguration sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ConfigurationChanged += x, x => _data.ConfigurationChanged -= x); + } +} + +namespace Windows.Media.Capture +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AdvancedPhotoCaptureEvents Events(this global::Windows.Media.Capture.AdvancedPhotoCapture item) => new AdvancedPhotoCaptureEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppBroadcastBackgroundServiceEvents Events(this global::Windows.Media.Capture.AppBroadcastBackgroundService item) => new AppBroadcastBackgroundServiceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppBroadcastBackgroundServiceSignInInfoEvents Events(this global::Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo item) => new AppBroadcastBackgroundServiceSignInInfoEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppBroadcastBackgroundServiceStreamInfoEvents Events(this global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo item) => new AppBroadcastBackgroundServiceStreamInfoEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppBroadcastPreviewEvents Events(this global::Windows.Media.Capture.AppBroadcastPreview item) => new AppBroadcastPreviewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppBroadcastPreviewStreamReaderEvents Events(this global::Windows.Media.Capture.AppBroadcastPreviewStreamReader item) => new AppBroadcastPreviewStreamReaderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppBroadcastStateEvents Events(this global::Windows.Media.Capture.AppBroadcastState item) => new AppBroadcastStateEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppBroadcastStreamReaderEvents Events(this global::Windows.Media.Capture.AppBroadcastStreamReader item) => new AppBroadcastStreamReaderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppCaptureEvents Events(this global::Windows.Media.Capture.AppCapture item) => new AppCaptureEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppCaptureMetadataWriterEvents Events(this global::Windows.Media.Capture.AppCaptureMetadataWriter item) => new AppCaptureMetadataWriterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppCaptureRecordOperationEvents Events(this global::Windows.Media.Capture.AppCaptureRecordOperation item) => new AppCaptureRecordOperationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppCaptureStateEvents Events(this global::Windows.Media.Capture.AppCaptureState item) => new AppCaptureStateEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GameBarServicesEvents Events(this global::Windows.Media.Capture.GameBarServices item) => new GameBarServicesEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GameBarServicesManagerEvents Events(this global::Windows.Media.Capture.GameBarServicesManager item) => new GameBarServicesManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LowLagPhotoSequenceCaptureEvents Events(this global::Windows.Media.Capture.LowLagPhotoSequenceCapture item) => new LowLagPhotoSequenceCaptureEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaCaptureEvents Events(this global::Windows.Media.Capture.MediaCapture item) => new MediaCaptureEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ScreenCaptureEvents Events(this global::Windows.Media.Capture.ScreenCapture item) => new ScreenCaptureEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AdvancedPhotoCaptureEvents + { + private readonly global::Windows.Media.Capture.AdvancedPhotoCapture _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AdvancedPhotoCaptureEvents(global::Windows.Media.Capture.AdvancedPhotoCapture data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AdvancedPhotoCapture, object)> AllPhotosCaptured => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AdvancedPhotoCapture, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AdvancedPhotoCapture sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AllPhotosCaptured += x, x => _data.AllPhotosCaptured -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AdvancedPhotoCapture, global::Windows.Media.Capture.OptionalReferencePhotoCapturedEventArgs)> OptionalReferencePhotoCaptured => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AdvancedPhotoCapture, global::Windows.Media.Capture.OptionalReferencePhotoCapturedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AdvancedPhotoCapture sender, global::Windows.Media.Capture.OptionalReferencePhotoCapturedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OptionalReferencePhotoCaptured += x, x => _data.OptionalReferencePhotoCaptured -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppBroadcastBackgroundServiceEvents + { + private readonly global::Windows.Media.Capture.AppBroadcastBackgroundService _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppBroadcastBackgroundServiceEvents(global::Windows.Media.Capture.AppBroadcastBackgroundService data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastBackgroundService, object)> BroadcastChannelChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastBackgroundService, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastBackgroundService sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BroadcastChannelChanged += x, x => _data.BroadcastChannelChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastBackgroundService, object)> BroadcastLanguageChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastBackgroundService, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastBackgroundService sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BroadcastLanguageChanged += x, x => _data.BroadcastLanguageChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastBackgroundService, object)> BroadcastTitleChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastBackgroundService, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastBackgroundService sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BroadcastTitleChanged += x, x => _data.BroadcastTitleChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastBackgroundService, global::Windows.Media.Capture.AppBroadcastHeartbeatRequestedEventArgs)> HeartbeatRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastBackgroundService, global::Windows.Media.Capture.AppBroadcastHeartbeatRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastBackgroundService sender, global::Windows.Media.Capture.AppBroadcastHeartbeatRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeartbeatRequested += x, x => _data.HeartbeatRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppBroadcastBackgroundServiceSignInInfoEvents + { + private readonly global::Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppBroadcastBackgroundServiceSignInInfoEvents(global::Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo, global::Windows.Media.Capture.AppBroadcastSignInStateChangedEventArgs)> SignInStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo, global::Windows.Media.Capture.AppBroadcastSignInStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo sender, global::Windows.Media.Capture.AppBroadcastSignInStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SignInStateChanged += x, x => _data.SignInStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo, object)> UserNameChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserNameChanged += x, x => _data.UserNameChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppBroadcastBackgroundServiceStreamInfoEvents + { + private readonly global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppBroadcastBackgroundServiceStreamInfoEvents(global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo, global::Windows.Media.Capture.AppBroadcastStreamStateChangedEventArgs)> StreamStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo, global::Windows.Media.Capture.AppBroadcastStreamStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo sender, global::Windows.Media.Capture.AppBroadcastStreamStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StreamStateChanged += x, x => _data.StreamStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo, object)> VideoEncodingBitrateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VideoEncodingBitrateChanged += x, x => _data.VideoEncodingBitrateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo, object)> VideoEncodingResolutionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VideoEncodingResolutionChanged += x, x => _data.VideoEncodingResolutionChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppBroadcastPreviewEvents + { + private readonly global::Windows.Media.Capture.AppBroadcastPreview _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppBroadcastPreviewEvents(global::Windows.Media.Capture.AppBroadcastPreview data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastPreview, global::Windows.Media.Capture.AppBroadcastPreviewStateChangedEventArgs)> PreviewStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastPreview, global::Windows.Media.Capture.AppBroadcastPreviewStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastPreview sender, global::Windows.Media.Capture.AppBroadcastPreviewStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PreviewStateChanged += x, x => _data.PreviewStateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppBroadcastPreviewStreamReaderEvents + { + private readonly global::Windows.Media.Capture.AppBroadcastPreviewStreamReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppBroadcastPreviewStreamReaderEvents(global::Windows.Media.Capture.AppBroadcastPreviewStreamReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastPreviewStreamReader, object)> VideoFrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastPreviewStreamReader, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastPreviewStreamReader sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VideoFrameArrived += x, x => _data.VideoFrameArrived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppBroadcastStateEvents + { + private readonly global::Windows.Media.Capture.AppBroadcastState _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppBroadcastStateEvents(global::Windows.Media.Capture.AppBroadcastState data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastCameraCaptureStateChangedEventArgs)> CameraCaptureStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastCameraCaptureStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastState sender, global::Windows.Media.Capture.AppBroadcastCameraCaptureStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CameraCaptureStateChanged += x, x => _data.CameraCaptureStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastState, object)> CaptureTargetClosed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastState, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastState sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CaptureTargetClosed += x, x => _data.CaptureTargetClosed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastMicrophoneCaptureStateChangedEventArgs)> MicrophoneCaptureStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastMicrophoneCaptureStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastState sender, global::Windows.Media.Capture.AppBroadcastMicrophoneCaptureStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MicrophoneCaptureStateChanged += x, x => _data.MicrophoneCaptureStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastPlugInStateChangedEventArgs)> PlugInStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastPlugInStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastState sender, global::Windows.Media.Capture.AppBroadcastPlugInStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlugInStateChanged += x, x => _data.PlugInStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastStreamStateChangedEventArgs)> StreamStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastStreamStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastState sender, global::Windows.Media.Capture.AppBroadcastStreamStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StreamStateChanged += x, x => _data.StreamStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastViewerCountChangedEventArgs)> ViewerCountChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastState, global::Windows.Media.Capture.AppBroadcastViewerCountChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastState sender, global::Windows.Media.Capture.AppBroadcastViewerCountChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ViewerCountChanged += x, x => _data.ViewerCountChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppBroadcastStreamReaderEvents + { + private readonly global::Windows.Media.Capture.AppBroadcastStreamReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppBroadcastStreamReaderEvents(global::Windows.Media.Capture.AppBroadcastStreamReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastStreamReader, object)> AudioFrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastStreamReader, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastStreamReader sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AudioFrameArrived += x, x => _data.AudioFrameArrived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppBroadcastStreamReader, object)> VideoFrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppBroadcastStreamReader, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppBroadcastStreamReader sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VideoFrameArrived += x, x => _data.VideoFrameArrived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppCaptureEvents + { + private readonly global::Windows.Media.Capture.AppCapture _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppCaptureEvents(global::Windows.Media.Capture.AppCapture data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppCapture, object)> CapturingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppCapture, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppCapture sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CapturingChanged += x, x => _data.CapturingChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppCaptureMetadataWriterEvents + { + private readonly global::Windows.Media.Capture.AppCaptureMetadataWriter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppCaptureMetadataWriterEvents(global::Windows.Media.Capture.AppCaptureMetadataWriter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppCaptureMetadataWriter, object)> MetadataPurged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppCaptureMetadataWriter, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppCaptureMetadataWriter sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MetadataPurged += x, x => _data.MetadataPurged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppCaptureRecordOperationEvents + { + private readonly global::Windows.Media.Capture.AppCaptureRecordOperation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppCaptureRecordOperationEvents(global::Windows.Media.Capture.AppCaptureRecordOperation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppCaptureRecordOperation, global::Windows.Media.Capture.AppCaptureDurationGeneratedEventArgs)> DurationGenerated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppCaptureRecordOperation, global::Windows.Media.Capture.AppCaptureDurationGeneratedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppCaptureRecordOperation sender, global::Windows.Media.Capture.AppCaptureDurationGeneratedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DurationGenerated += x, x => _data.DurationGenerated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppCaptureRecordOperation, global::Windows.Media.Capture.AppCaptureFileGeneratedEventArgs)> FileGenerated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppCaptureRecordOperation, global::Windows.Media.Capture.AppCaptureFileGeneratedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppCaptureRecordOperation sender, global::Windows.Media.Capture.AppCaptureFileGeneratedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FileGenerated += x, x => _data.FileGenerated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppCaptureRecordOperation, global::Windows.Media.Capture.AppCaptureRecordingStateChangedEventArgs)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppCaptureRecordOperation, global::Windows.Media.Capture.AppCaptureRecordingStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppCaptureRecordOperation sender, global::Windows.Media.Capture.AppCaptureRecordingStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppCaptureStateEvents + { + private readonly global::Windows.Media.Capture.AppCaptureState _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppCaptureStateEvents(global::Windows.Media.Capture.AppCaptureState data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppCaptureState, object)> CaptureTargetClosed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppCaptureState, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppCaptureState sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CaptureTargetClosed += x, x => _data.CaptureTargetClosed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.AppCaptureState, global::Windows.Media.Capture.AppCaptureMicrophoneCaptureStateChangedEventArgs)> MicrophoneCaptureStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.AppCaptureState, global::Windows.Media.Capture.AppCaptureMicrophoneCaptureStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.AppCaptureState sender, global::Windows.Media.Capture.AppCaptureMicrophoneCaptureStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MicrophoneCaptureStateChanged += x, x => _data.MicrophoneCaptureStateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GameBarServicesEvents + { + private readonly global::Windows.Media.Capture.GameBarServices _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GameBarServicesEvents(global::Windows.Media.Capture.GameBarServices data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.GameBarServices, global::Windows.Media.Capture.GameBarServicesCommandEventArgs)> CommandReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.GameBarServices, global::Windows.Media.Capture.GameBarServicesCommandEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.GameBarServices sender, global::Windows.Media.Capture.GameBarServicesCommandEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CommandReceived += x, x => _data.CommandReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GameBarServicesManagerEvents + { + private readonly global::Windows.Media.Capture.GameBarServicesManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GameBarServicesManagerEvents(global::Windows.Media.Capture.GameBarServicesManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.GameBarServicesManager, global::Windows.Media.Capture.GameBarServicesManagerGameBarServicesCreatedEventArgs)> GameBarServicesCreated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.GameBarServicesManager, global::Windows.Media.Capture.GameBarServicesManagerGameBarServicesCreatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.GameBarServicesManager sender, global::Windows.Media.Capture.GameBarServicesManagerGameBarServicesCreatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GameBarServicesCreated += x, x => _data.GameBarServicesCreated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LowLagPhotoSequenceCaptureEvents + { + private readonly global::Windows.Media.Capture.LowLagPhotoSequenceCapture _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LowLagPhotoSequenceCaptureEvents(global::Windows.Media.Capture.LowLagPhotoSequenceCapture data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.LowLagPhotoSequenceCapture, global::Windows.Media.Capture.PhotoCapturedEventArgs)> PhotoCaptured => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.LowLagPhotoSequenceCapture, global::Windows.Media.Capture.PhotoCapturedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.LowLagPhotoSequenceCapture sender, global::Windows.Media.Capture.PhotoCapturedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PhotoCaptured += x, x => _data.PhotoCaptured -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaCaptureEvents + { + private readonly global::Windows.Media.Capture.MediaCapture _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaCaptureEvents(global::Windows.Media.Capture.MediaCapture data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.MediaCapture, object)> CameraStreamStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.MediaCapture, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.MediaCapture sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CameraStreamStateChanged += x, x => _data.CameraStreamStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.MediaCapture, global::Windows.Media.Capture.MediaCaptureDeviceExclusiveControlStatusChangedEventArgs)> CaptureDeviceExclusiveControlStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.MediaCapture, global::Windows.Media.Capture.MediaCaptureDeviceExclusiveControlStatusChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.MediaCapture sender, global::Windows.Media.Capture.MediaCaptureDeviceExclusiveControlStatusChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CaptureDeviceExclusiveControlStatusChanged += x, x => _data.CaptureDeviceExclusiveControlStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.MediaCapture, global::Windows.Media.Capture.MediaCaptureFailedEventArgs)> Failed => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Capture.MediaCapture sender, global::Windows.Media.Capture.MediaCaptureFailedEventArgs errorEventArgs) => eventHandler((sender, errorEventArgs)); + return Handler; + } + + , x => _data.Failed += x, x => _data.Failed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.MediaCapture, global::Windows.Media.Capture.MediaCaptureFocusChangedEventArgs)> FocusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.MediaCapture, global::Windows.Media.Capture.MediaCaptureFocusChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.MediaCapture sender, global::Windows.Media.Capture.MediaCaptureFocusChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FocusChanged += x, x => _data.FocusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.MediaCapture, global::Windows.Media.Capture.PhotoConfirmationCapturedEventArgs)> PhotoConfirmationCaptured => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.MediaCapture, global::Windows.Media.Capture.PhotoConfirmationCapturedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.MediaCapture sender, global::Windows.Media.Capture.PhotoConfirmationCapturedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PhotoConfirmationCaptured += x, x => _data.PhotoConfirmationCaptured -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RecordLimitationExceeded => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Capture.MediaCapture sender) => eventHandler(sender); + return Handler; + } + + , x => _data.RecordLimitationExceeded += x, x => _data.RecordLimitationExceeded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.MediaCapture, object)> ThermalStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.MediaCapture, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.MediaCapture sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ThermalStatusChanged += x, x => _data.ThermalStatusChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ScreenCaptureEvents + { + private readonly global::Windows.Media.Capture.ScreenCapture _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ScreenCaptureEvents(global::Windows.Media.Capture.ScreenCapture data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.ScreenCapture, global::Windows.Media.Capture.SourceSuspensionChangedEventArgs)> SourceSuspensionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.ScreenCapture, global::Windows.Media.Capture.SourceSuspensionChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.ScreenCapture sender, global::Windows.Media.Capture.SourceSuspensionChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceSuspensionChanged += x, x => _data.SourceSuspensionChanged -= x); + } +} + +namespace Windows.Media.Capture.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VariablePhotoSequenceCaptureEvents Events(this global::Windows.Media.Capture.Core.VariablePhotoSequenceCapture item) => new VariablePhotoSequenceCaptureEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VariablePhotoSequenceCaptureEvents + { + private readonly global::Windows.Media.Capture.Core.VariablePhotoSequenceCapture _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VariablePhotoSequenceCaptureEvents(global::Windows.Media.Capture.Core.VariablePhotoSequenceCapture data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.Core.VariablePhotoSequenceCapture, global::Windows.Media.Capture.Core.VariablePhotoCapturedEventArgs)> PhotoCaptured => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.Core.VariablePhotoSequenceCapture, global::Windows.Media.Capture.Core.VariablePhotoCapturedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.Core.VariablePhotoSequenceCapture sender, global::Windows.Media.Capture.Core.VariablePhotoCapturedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PhotoCaptured += x, x => _data.PhotoCaptured -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.Core.VariablePhotoSequenceCapture, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.Core.VariablePhotoSequenceCapture, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.Core.VariablePhotoSequenceCapture sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } +} + +namespace Windows.Media.Capture.Frames +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaFrameReaderEvents Events(this global::Windows.Media.Capture.Frames.MediaFrameReader item) => new MediaFrameReaderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaFrameSourceEvents Events(this global::Windows.Media.Capture.Frames.MediaFrameSource item) => new MediaFrameSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MultiSourceMediaFrameReaderEvents Events(this global::Windows.Media.Capture.Frames.MultiSourceMediaFrameReader item) => new MultiSourceMediaFrameReaderEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaFrameReaderEvents + { + private readonly global::Windows.Media.Capture.Frames.MediaFrameReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaFrameReaderEvents(global::Windows.Media.Capture.Frames.MediaFrameReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.Frames.MediaFrameReader, global::Windows.Media.Capture.Frames.MediaFrameArrivedEventArgs)> FrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.Frames.MediaFrameReader, global::Windows.Media.Capture.Frames.MediaFrameArrivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.Frames.MediaFrameReader sender, global::Windows.Media.Capture.Frames.MediaFrameArrivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameArrived += x, x => _data.FrameArrived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaFrameSourceEvents + { + private readonly global::Windows.Media.Capture.Frames.MediaFrameSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaFrameSourceEvents(global::Windows.Media.Capture.Frames.MediaFrameSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.Frames.MediaFrameSource, object)> FormatChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.Frames.MediaFrameSource, object)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.Frames.MediaFrameSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FormatChanged += x, x => _data.FormatChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MultiSourceMediaFrameReaderEvents + { + private readonly global::Windows.Media.Capture.Frames.MultiSourceMediaFrameReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MultiSourceMediaFrameReaderEvents(global::Windows.Media.Capture.Frames.MultiSourceMediaFrameReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Capture.Frames.MultiSourceMediaFrameReader, global::Windows.Media.Capture.Frames.MultiSourceMediaFrameArrivedEventArgs)> FrameArrived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Capture.Frames.MultiSourceMediaFrameReader, global::Windows.Media.Capture.Frames.MultiSourceMediaFrameArrivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Capture.Frames.MultiSourceMediaFrameReader sender, global::Windows.Media.Capture.Frames.MultiSourceMediaFrameArrivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameArrived += x, x => _data.FrameArrived -= x); + } +} + +namespace Windows.Media.Casting +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CastingConnectionEvents Events(this global::Windows.Media.Casting.CastingConnection item) => new CastingConnectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CastingDevicePickerEvents Events(this global::Windows.Media.Casting.CastingDevicePicker item) => new CastingDevicePickerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CastingConnectionEvents + { + private readonly global::Windows.Media.Casting.CastingConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CastingConnectionEvents(global::Windows.Media.Casting.CastingConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Casting.CastingConnection, global::Windows.Media.Casting.CastingConnectionErrorOccurredEventArgs)> ErrorOccurred => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Casting.CastingConnection, global::Windows.Media.Casting.CastingConnectionErrorOccurredEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Casting.CastingConnection sender, global::Windows.Media.Casting.CastingConnectionErrorOccurredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ErrorOccurred += x, x => _data.ErrorOccurred -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Casting.CastingConnection, object)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Casting.CastingConnection, object)>(eventHandler => + { + void Handler(global::Windows.Media.Casting.CastingConnection sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CastingDevicePickerEvents + { + private readonly global::Windows.Media.Casting.CastingDevicePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CastingDevicePickerEvents(global::Windows.Media.Casting.CastingDevicePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Casting.CastingDevicePicker, object)> CastingDevicePickerDismissed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Casting.CastingDevicePicker, object)>(eventHandler => + { + void Handler(global::Windows.Media.Casting.CastingDevicePicker sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CastingDevicePickerDismissed += x, x => _data.CastingDevicePickerDismissed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Casting.CastingDevicePicker, global::Windows.Media.Casting.CastingDeviceSelectedEventArgs)> CastingDeviceSelected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Casting.CastingDevicePicker, global::Windows.Media.Casting.CastingDeviceSelectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Casting.CastingDevicePicker sender, global::Windows.Media.Casting.CastingDeviceSelectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CastingDeviceSelected += x, x => _data.CastingDeviceSelected -= x); + } +} + +namespace Windows.Media.ContentRestrictions +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RatedContentRestrictionsEvents Events(this global::Windows.Media.ContentRestrictions.RatedContentRestrictions item) => new RatedContentRestrictionsEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RatedContentRestrictionsEvents + { + private readonly global::Windows.Media.ContentRestrictions.RatedContentRestrictions _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RatedContentRestrictionsEvents(global::Windows.Media.ContentRestrictions.RatedContentRestrictions data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RestrictionsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.RestrictionsChanged += x, x => _data.RestrictionsChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Media.Control +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GlobalSystemMediaTransportControlsSessionEvents Events(this global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession item) => new GlobalSystemMediaTransportControlsSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GlobalSystemMediaTransportControlsSessionManagerEvents Events(this global::Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager item) => new GlobalSystemMediaTransportControlsSessionManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GlobalSystemMediaTransportControlsSessionEvents + { + private readonly global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GlobalSystemMediaTransportControlsSessionEvents(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession, global::Windows.Media.Control.MediaPropertiesChangedEventArgs)> MediaPropertiesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession, global::Windows.Media.Control.MediaPropertiesChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession sender, global::Windows.Media.Control.MediaPropertiesChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MediaPropertiesChanged += x, x => _data.MediaPropertiesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession, global::Windows.Media.Control.PlaybackInfoChangedEventArgs)> PlaybackInfoChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession, global::Windows.Media.Control.PlaybackInfoChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession sender, global::Windows.Media.Control.PlaybackInfoChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlaybackInfoChanged += x, x => _data.PlaybackInfoChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession, global::Windows.Media.Control.TimelinePropertiesChangedEventArgs)> TimelinePropertiesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession, global::Windows.Media.Control.TimelinePropertiesChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSession sender, global::Windows.Media.Control.TimelinePropertiesChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TimelinePropertiesChanged += x, x => _data.TimelinePropertiesChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GlobalSystemMediaTransportControlsSessionManagerEvents + { + private readonly global::Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GlobalSystemMediaTransportControlsSessionManagerEvents(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager, global::Windows.Media.Control.CurrentSessionChangedEventArgs)> CurrentSessionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager, global::Windows.Media.Control.CurrentSessionChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager sender, global::Windows.Media.Control.CurrentSessionChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CurrentSessionChanged += x, x => _data.CurrentSessionChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager, global::Windows.Media.Control.SessionsChangedEventArgs)> SessionsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager, global::Windows.Media.Control.SessionsChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager sender, global::Windows.Media.Control.SessionsChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SessionsChanged += x, x => _data.SessionsChanged -= x); + } +} + +namespace Windows.Media.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioTrackEvents Events(this global::Windows.Media.Core.AudioTrack item) => new AudioTrackEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FaceDetectionEffectEvents Events(this global::Windows.Media.Core.FaceDetectionEffect item) => new FaceDetectionEffectEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ISingleSelectMediaTrackListEvents Events(this global::Windows.Media.Core.ISingleSelectMediaTrackList item) => new ISingleSelectMediaTrackListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaBinderEvents Events(this global::Windows.Media.Core.MediaBinder item) => new MediaBinderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaBindingEventArgsEvents Events(this global::Windows.Media.Core.MediaBindingEventArgs item) => new MediaBindingEventArgsEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaSourceEvents Events(this global::Windows.Media.Core.MediaSource item) => new MediaSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaSourceAppServiceConnectionEvents Events(this global::Windows.Media.Core.MediaSourceAppServiceConnection item) => new MediaSourceAppServiceConnectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaStreamSampleEvents Events(this global::Windows.Media.Core.MediaStreamSample item) => new MediaStreamSampleEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaStreamSourceEvents Events(this global::Windows.Media.Core.MediaStreamSource item) => new MediaStreamSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MseSourceBufferEvents Events(this global::Windows.Media.Core.MseSourceBuffer item) => new MseSourceBufferEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MseSourceBufferListEvents Events(this global::Windows.Media.Core.MseSourceBufferList item) => new MseSourceBufferListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MseStreamSourceEvents Events(this global::Windows.Media.Core.MseStreamSource item) => new MseStreamSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SceneAnalysisEffectEvents Events(this global::Windows.Media.Core.SceneAnalysisEffect item) => new SceneAnalysisEffectEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TimedMetadataTrackEvents Events(this global::Windows.Media.Core.TimedMetadataTrack item) => new TimedMetadataTrackEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TimedTextSourceEvents Events(this global::Windows.Media.Core.TimedTextSource item) => new TimedTextSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VideoStabilizationEffectEvents Events(this global::Windows.Media.Core.VideoStabilizationEffect item) => new VideoStabilizationEffectEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VideoTrackEvents Events(this global::Windows.Media.Core.VideoTrack item) => new VideoTrackEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioTrackEvents + { + private readonly global::Windows.Media.Core.AudioTrack _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioTrackEvents(global::Windows.Media.Core.AudioTrack data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.AudioTrack, global::Windows.Media.Core.AudioTrackOpenFailedEventArgs)> OpenFailed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.AudioTrack, global::Windows.Media.Core.AudioTrackOpenFailedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.AudioTrack sender, global::Windows.Media.Core.AudioTrackOpenFailedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OpenFailed += x, x => _data.OpenFailed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FaceDetectionEffectEvents + { + private readonly global::Windows.Media.Core.FaceDetectionEffect _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FaceDetectionEffectEvents(global::Windows.Media.Core.FaceDetectionEffect data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.FaceDetectionEffect, global::Windows.Media.Core.FaceDetectedEventArgs)> FaceDetected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.FaceDetectionEffect, global::Windows.Media.Core.FaceDetectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.FaceDetectionEffect sender, global::Windows.Media.Core.FaceDetectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FaceDetected += x, x => _data.FaceDetected -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ISingleSelectMediaTrackListEvents + { + private readonly global::Windows.Media.Core.ISingleSelectMediaTrackList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ISingleSelectMediaTrackListEvents(global::Windows.Media.Core.ISingleSelectMediaTrackList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.ISingleSelectMediaTrackList, object)> SelectedIndexChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.ISingleSelectMediaTrackList, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.ISingleSelectMediaTrackList sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectedIndexChanged += x, x => _data.SelectedIndexChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaBinderEvents + { + private readonly global::Windows.Media.Core.MediaBinder _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaBinderEvents(global::Windows.Media.Core.MediaBinder data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaBinder, global::Windows.Media.Core.MediaBindingEventArgs)> Binding => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaBinder, global::Windows.Media.Core.MediaBindingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaBinder sender, global::Windows.Media.Core.MediaBindingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Binding += x, x => _data.Binding -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaBindingEventArgsEvents + { + private readonly global::Windows.Media.Core.MediaBindingEventArgs _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaBindingEventArgsEvents(global::Windows.Media.Core.MediaBindingEventArgs data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaBindingEventArgs, object)> Canceled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaBindingEventArgs, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaBindingEventArgs sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Canceled += x, x => _data.Canceled -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaSourceEvents + { + private readonly global::Windows.Media.Core.MediaSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaSourceEvents(global::Windows.Media.Core.MediaSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaSource, global::Windows.Media.Core.MediaSourceOpenOperationCompletedEventArgs)> OpenOperationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaSource, global::Windows.Media.Core.MediaSourceOpenOperationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaSource sender, global::Windows.Media.Core.MediaSourceOpenOperationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OpenOperationCompleted += x, x => _data.OpenOperationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaSource, global::Windows.Media.Core.MediaSourceStateChangedEventArgs)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaSource, global::Windows.Media.Core.MediaSourceStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaSource sender, global::Windows.Media.Core.MediaSourceStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaSourceAppServiceConnectionEvents + { + private readonly global::Windows.Media.Core.MediaSourceAppServiceConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaSourceAppServiceConnectionEvents(global::Windows.Media.Core.MediaSourceAppServiceConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaSourceAppServiceConnection, global::Windows.Media.Core.InitializeMediaStreamSourceRequestedEventArgs)> InitializeMediaStreamSourceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaSourceAppServiceConnection, global::Windows.Media.Core.InitializeMediaStreamSourceRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaSourceAppServiceConnection sender, global::Windows.Media.Core.InitializeMediaStreamSourceRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.InitializeMediaStreamSourceRequested += x, x => _data.InitializeMediaStreamSourceRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaStreamSampleEvents + { + private readonly global::Windows.Media.Core.MediaStreamSample _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaStreamSampleEvents(global::Windows.Media.Core.MediaStreamSample data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaStreamSample, object)> Processed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaStreamSample, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaStreamSample sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Processed += x, x => _data.Processed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaStreamSourceEvents + { + private readonly global::Windows.Media.Core.MediaStreamSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaStreamSourceEvents(global::Windows.Media.Core.MediaStreamSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaStreamSource sender, global::Windows.Media.Core.MediaStreamSourceClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaStreamSource, object)> Paused => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaStreamSource, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaStreamSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Paused += x, x => _data.Paused -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceSampleRenderedEventArgs)> SampleRendered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceSampleRenderedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaStreamSource sender, global::Windows.Media.Core.MediaStreamSourceSampleRenderedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SampleRendered += x, x => _data.SampleRendered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceSampleRequestedEventArgs)> SampleRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceSampleRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaStreamSource sender, global::Windows.Media.Core.MediaStreamSourceSampleRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SampleRequested += x, x => _data.SampleRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceStartingEventArgs)> Starting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaStreamSource sender, global::Windows.Media.Core.MediaStreamSourceStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Starting += x, x => _data.Starting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceSwitchStreamsRequestedEventArgs)> SwitchStreamsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MediaStreamSource, global::Windows.Media.Core.MediaStreamSourceSwitchStreamsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MediaStreamSource sender, global::Windows.Media.Core.MediaStreamSourceSwitchStreamsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SwitchStreamsRequested += x, x => _data.SwitchStreamsRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MseSourceBufferEvents + { + private readonly global::Windows.Media.Core.MseSourceBuffer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MseSourceBufferEvents(global::Windows.Media.Core.MseSourceBuffer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseSourceBuffer, object)> Aborted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseSourceBuffer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseSourceBuffer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Aborted += x, x => _data.Aborted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseSourceBuffer, object)> ErrorOccurred => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseSourceBuffer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseSourceBuffer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ErrorOccurred += x, x => _data.ErrorOccurred -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseSourceBuffer, object)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseSourceBuffer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseSourceBuffer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseSourceBuffer, object)> UpdateEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseSourceBuffer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseSourceBuffer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UpdateEnded += x, x => _data.UpdateEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseSourceBuffer, object)> UpdateStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseSourceBuffer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseSourceBuffer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UpdateStarting += x, x => _data.UpdateStarting -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MseSourceBufferListEvents + { + private readonly global::Windows.Media.Core.MseSourceBufferList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MseSourceBufferListEvents(global::Windows.Media.Core.MseSourceBufferList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseSourceBufferList, object)> SourceBufferAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseSourceBufferList, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseSourceBufferList sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceBufferAdded += x, x => _data.SourceBufferAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseSourceBufferList, object)> SourceBufferRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseSourceBufferList, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseSourceBufferList sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceBufferRemoved += x, x => _data.SourceBufferRemoved -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MseStreamSourceEvents + { + private readonly global::Windows.Media.Core.MseStreamSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MseStreamSourceEvents(global::Windows.Media.Core.MseStreamSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseStreamSource, object)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseStreamSource, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseStreamSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseStreamSource, object)> Ended => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseStreamSource, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseStreamSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Ended += x, x => _data.Ended -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.MseStreamSource, object)> Opened => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.MseStreamSource, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.MseStreamSource sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Opened += x, x => _data.Opened -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SceneAnalysisEffectEvents + { + private readonly global::Windows.Media.Core.SceneAnalysisEffect _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SceneAnalysisEffectEvents(global::Windows.Media.Core.SceneAnalysisEffect data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.SceneAnalysisEffect, global::Windows.Media.Core.SceneAnalyzedEventArgs)> SceneAnalyzed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.SceneAnalysisEffect, global::Windows.Media.Core.SceneAnalyzedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.SceneAnalysisEffect sender, global::Windows.Media.Core.SceneAnalyzedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SceneAnalyzed += x, x => _data.SceneAnalyzed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TimedMetadataTrackEvents + { + private readonly global::Windows.Media.Core.TimedMetadataTrack _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TimedMetadataTrackEvents(global::Windows.Media.Core.TimedMetadataTrack data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.TimedMetadataTrack, global::Windows.Media.Core.MediaCueEventArgs)> CueEntered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.TimedMetadataTrack, global::Windows.Media.Core.MediaCueEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.TimedMetadataTrack sender, global::Windows.Media.Core.MediaCueEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CueEntered += x, x => _data.CueEntered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.TimedMetadataTrack, global::Windows.Media.Core.MediaCueEventArgs)> CueExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.TimedMetadataTrack, global::Windows.Media.Core.MediaCueEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.TimedMetadataTrack sender, global::Windows.Media.Core.MediaCueEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CueExited += x, x => _data.CueExited -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.TimedMetadataTrack, global::Windows.Media.Core.TimedMetadataTrackFailedEventArgs)> TrackFailed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.TimedMetadataTrack, global::Windows.Media.Core.TimedMetadataTrackFailedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.TimedMetadataTrack sender, global::Windows.Media.Core.TimedMetadataTrackFailedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TrackFailed += x, x => _data.TrackFailed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TimedTextSourceEvents + { + private readonly global::Windows.Media.Core.TimedTextSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TimedTextSourceEvents(global::Windows.Media.Core.TimedTextSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.TimedTextSource, global::Windows.Media.Core.TimedTextSourceResolveResultEventArgs)> Resolved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.TimedTextSource, global::Windows.Media.Core.TimedTextSourceResolveResultEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.TimedTextSource sender, global::Windows.Media.Core.TimedTextSourceResolveResultEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Resolved += x, x => _data.Resolved -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VideoStabilizationEffectEvents + { + private readonly global::Windows.Media.Core.VideoStabilizationEffect _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VideoStabilizationEffectEvents(global::Windows.Media.Core.VideoStabilizationEffect data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.VideoStabilizationEffect, global::Windows.Media.Core.VideoStabilizationEffectEnabledChangedEventArgs)> EnabledChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.VideoStabilizationEffect, global::Windows.Media.Core.VideoStabilizationEffectEnabledChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.VideoStabilizationEffect sender, global::Windows.Media.Core.VideoStabilizationEffectEnabledChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnabledChanged += x, x => _data.EnabledChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VideoTrackEvents + { + private readonly global::Windows.Media.Core.VideoTrack _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VideoTrackEvents(global::Windows.Media.Core.VideoTrack data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.VideoTrack, global::Windows.Media.Core.VideoTrackOpenFailedEventArgs)> OpenFailed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.VideoTrack, global::Windows.Media.Core.VideoTrackOpenFailedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Core.VideoTrack sender, global::Windows.Media.Core.VideoTrackOpenFailedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OpenFailed += x, x => _data.OpenFailed -= x); + } +} + +namespace Windows.Media.Devices +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioDeviceModulesManagerEvents Events(this global::Windows.Media.Devices.AudioDeviceModulesManager item) => new AudioDeviceModulesManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CallControlEvents Events(this global::Windows.Media.Devices.CallControl item) => new CallControlEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioDeviceModulesManagerEvents + { + private readonly global::Windows.Media.Devices.AudioDeviceModulesManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioDeviceModulesManagerEvents(global::Windows.Media.Devices.AudioDeviceModulesManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Devices.AudioDeviceModulesManager, global::Windows.Media.Devices.AudioDeviceModuleNotificationEventArgs)> ModuleNotificationReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Devices.AudioDeviceModulesManager, global::Windows.Media.Devices.AudioDeviceModuleNotificationEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Devices.AudioDeviceModulesManager sender, global::Windows.Media.Devices.AudioDeviceModuleNotificationEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ModuleNotificationReceived += x, x => _data.ModuleNotificationReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CallControlEvents + { + private readonly global::Windows.Media.Devices.CallControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CallControlEvents(global::Windows.Media.Devices.CallControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnswerRequested => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Devices.CallControl sender) => eventHandler(sender); + return Handler; + } + + , x => _data.AnswerRequested += x, x => _data.AnswerRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AudioTransferRequested => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Devices.CallControl sender) => eventHandler(sender); + return Handler; + } + + , x => _data.AudioTransferRequested += x, x => _data.AudioTransferRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Devices.CallControl, global::Windows.Media.Devices.DialRequestedEventArgs)> DialRequested => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Devices.CallControl sender, global::Windows.Media.Devices.DialRequestedEventArgs e) => eventHandler((sender, e)); + return Handler; + } + + , x => _data.DialRequested += x, x => _data.DialRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HangUpRequested => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Devices.CallControl sender) => eventHandler(sender); + return Handler; + } + + , x => _data.HangUpRequested += x, x => _data.HangUpRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Devices.CallControl, global::Windows.Media.Devices.KeypadPressedEventArgs)> KeypadPressed => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Devices.CallControl sender, global::Windows.Media.Devices.KeypadPressedEventArgs e) => eventHandler((sender, e)); + return Handler; + } + + , x => _data.KeypadPressed += x, x => _data.KeypadPressed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Devices.CallControl, global::Windows.Media.Devices.RedialRequestedEventArgs)> RedialRequested => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Devices.CallControl sender, global::Windows.Media.Devices.RedialRequestedEventArgs e) => eventHandler((sender, e)); + return Handler; + } + + , x => _data.RedialRequested += x, x => _data.RedialRequested -= x); + } +} + +namespace Windows.Media.DialProtocol +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DialDevicePickerEvents Events(this global::Windows.Media.DialProtocol.DialDevicePicker item) => new DialDevicePickerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DialDevicePickerEvents + { + private readonly global::Windows.Media.DialProtocol.DialDevicePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DialDevicePickerEvents(global::Windows.Media.DialProtocol.DialDevicePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.DialProtocol.DialDevicePicker, object)> DialDevicePickerDismissed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.DialProtocol.DialDevicePicker, object)>(eventHandler => + { + void Handler(global::Windows.Media.DialProtocol.DialDevicePicker sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DialDevicePickerDismissed += x, x => _data.DialDevicePickerDismissed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.DialProtocol.DialDevicePicker, global::Windows.Media.DialProtocol.DialDeviceSelectedEventArgs)> DialDeviceSelected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.DialProtocol.DialDevicePicker, global::Windows.Media.DialProtocol.DialDeviceSelectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.DialProtocol.DialDevicePicker sender, global::Windows.Media.DialProtocol.DialDeviceSelectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DialDeviceSelected += x, x => _data.DialDeviceSelected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.DialProtocol.DialDevicePicker, global::Windows.Media.DialProtocol.DialDisconnectButtonClickedEventArgs)> DisconnectButtonClicked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.DialProtocol.DialDevicePicker, global::Windows.Media.DialProtocol.DialDisconnectButtonClickedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.DialProtocol.DialDevicePicker sender, global::Windows.Media.DialProtocol.DialDisconnectButtonClickedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DisconnectButtonClicked += x, x => _data.DisconnectButtonClicked -= x); + } +} + +namespace Windows.Media.Effects +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioCaptureEffectsManagerEvents Events(this global::Windows.Media.Effects.AudioCaptureEffectsManager item) => new AudioCaptureEffectsManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioRenderEffectsManagerEvents Events(this global::Windows.Media.Effects.AudioRenderEffectsManager item) => new AudioRenderEffectsManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioCaptureEffectsManagerEvents + { + private readonly global::Windows.Media.Effects.AudioCaptureEffectsManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioCaptureEffectsManagerEvents(global::Windows.Media.Effects.AudioCaptureEffectsManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Effects.AudioCaptureEffectsManager, object)> AudioCaptureEffectsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Effects.AudioCaptureEffectsManager, object)>(eventHandler => + { + void Handler(global::Windows.Media.Effects.AudioCaptureEffectsManager sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AudioCaptureEffectsChanged += x, x => _data.AudioCaptureEffectsChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioRenderEffectsManagerEvents + { + private readonly global::Windows.Media.Effects.AudioRenderEffectsManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioRenderEffectsManagerEvents(global::Windows.Media.Effects.AudioRenderEffectsManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Effects.AudioRenderEffectsManager, object)> AudioRenderEffectsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Effects.AudioRenderEffectsManager, object)>(eventHandler => + { + void Handler(global::Windows.Media.Effects.AudioRenderEffectsManager sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AudioRenderEffectsChanged += x, x => _data.AudioRenderEffectsChanged -= x); + } +} + +namespace Windows.Media.Import +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PhotoImportFindItemsResultEvents Events(this global::Windows.Media.Import.PhotoImportFindItemsResult item) => new PhotoImportFindItemsResultEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PhotoImportFindItemsResultEvents + { + private readonly global::Windows.Media.Import.PhotoImportFindItemsResult _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PhotoImportFindItemsResultEvents(global::Windows.Media.Import.PhotoImportFindItemsResult data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Import.PhotoImportFindItemsResult, global::Windows.Media.Import.PhotoImportItemImportedEventArgs)> ItemImported => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Import.PhotoImportFindItemsResult, global::Windows.Media.Import.PhotoImportItemImportedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Import.PhotoImportFindItemsResult sender, global::Windows.Media.Import.PhotoImportItemImportedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemImported += x, x => _data.ItemImported -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Import.PhotoImportFindItemsResult, global::Windows.Media.Import.PhotoImportSelectionChangedEventArgs)> SelectionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Import.PhotoImportFindItemsResult, global::Windows.Media.Import.PhotoImportSelectionChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Import.PhotoImportFindItemsResult sender, global::Windows.Media.Import.PhotoImportSelectionChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x); + } +} + +namespace Windows.Media.Playback +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaBreakManagerEvents Events(this global::Windows.Media.Playback.MediaBreakManager item) => new MediaBreakManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaBreakScheduleEvents Events(this global::Windows.Media.Playback.MediaBreakSchedule item) => new MediaBreakScheduleEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlaybackAudioTrackListEvents Events(this global::Windows.Media.Playback.MediaPlaybackAudioTrackList item) => new MediaPlaybackAudioTrackListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlaybackCommandManagerEvents Events(this global::Windows.Media.Playback.MediaPlaybackCommandManager item) => new MediaPlaybackCommandManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlaybackCommandManagerCommandBehaviorEvents Events(this global::Windows.Media.Playback.MediaPlaybackCommandManagerCommandBehavior item) => new MediaPlaybackCommandManagerCommandBehaviorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlaybackItemEvents Events(this global::Windows.Media.Playback.MediaPlaybackItem item) => new MediaPlaybackItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlaybackListEvents Events(this global::Windows.Media.Playback.MediaPlaybackList item) => new MediaPlaybackListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlaybackSessionEvents Events(this global::Windows.Media.Playback.MediaPlaybackSession item) => new MediaPlaybackSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlaybackTimedMetadataTrackListEvents Events(this global::Windows.Media.Playback.MediaPlaybackTimedMetadataTrackList item) => new MediaPlaybackTimedMetadataTrackListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlaybackVideoTrackListEvents Events(this global::Windows.Media.Playback.MediaPlaybackVideoTrackList item) => new MediaPlaybackVideoTrackListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlayerEvents Events(this global::Windows.Media.Playback.MediaPlayer item) => new MediaPlayerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaBreakManagerEvents + { + private readonly global::Windows.Media.Playback.MediaBreakManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaBreakManagerEvents(global::Windows.Media.Playback.MediaBreakManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaBreakManager, global::Windows.Media.Playback.MediaBreakEndedEventArgs)> BreakEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaBreakManager, global::Windows.Media.Playback.MediaBreakEndedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaBreakManager sender, global::Windows.Media.Playback.MediaBreakEndedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BreakEnded += x, x => _data.BreakEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaBreakManager, global::Windows.Media.Playback.MediaBreakSkippedEventArgs)> BreakSkipped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaBreakManager, global::Windows.Media.Playback.MediaBreakSkippedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaBreakManager sender, global::Windows.Media.Playback.MediaBreakSkippedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BreakSkipped += x, x => _data.BreakSkipped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaBreakManager, global::Windows.Media.Playback.MediaBreakSeekedOverEventArgs)> BreaksSeekedOver => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaBreakManager, global::Windows.Media.Playback.MediaBreakSeekedOverEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaBreakManager sender, global::Windows.Media.Playback.MediaBreakSeekedOverEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BreaksSeekedOver += x, x => _data.BreaksSeekedOver -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaBreakManager, global::Windows.Media.Playback.MediaBreakStartedEventArgs)> BreakStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaBreakManager, global::Windows.Media.Playback.MediaBreakStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaBreakManager sender, global::Windows.Media.Playback.MediaBreakStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BreakStarted += x, x => _data.BreakStarted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaBreakScheduleEvents + { + private readonly global::Windows.Media.Playback.MediaBreakSchedule _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaBreakScheduleEvents(global::Windows.Media.Playback.MediaBreakSchedule data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaBreakSchedule, object)> ScheduleChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaBreakSchedule, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaBreakSchedule sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ScheduleChanged += x, x => _data.ScheduleChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlaybackAudioTrackListEvents + { + private readonly global::Windows.Media.Playback.MediaPlaybackAudioTrackList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlaybackAudioTrackListEvents(global::Windows.Media.Playback.MediaPlaybackAudioTrackList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.ISingleSelectMediaTrackList, object)> SelectedIndexChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.ISingleSelectMediaTrackList, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.ISingleSelectMediaTrackList sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectedIndexChanged += x, x => _data.SelectedIndexChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlaybackCommandManagerEvents + { + private readonly global::Windows.Media.Playback.MediaPlaybackCommandManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlaybackCommandManagerEvents(global::Windows.Media.Playback.MediaPlaybackCommandManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs)> AutoRepeatModeReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AutoRepeatModeReceived += x, x => _data.AutoRepeatModeReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerFastForwardReceivedEventArgs)> FastForwardReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerFastForwardReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerFastForwardReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FastForwardReceived += x, x => _data.FastForwardReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerNextReceivedEventArgs)> NextReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerNextReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerNextReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NextReceived += x, x => _data.NextReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerPauseReceivedEventArgs)> PauseReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerPauseReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerPauseReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PauseReceived += x, x => _data.PauseReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerPlayReceivedEventArgs)> PlayReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerPlayReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerPlayReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlayReceived += x, x => _data.PlayReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerPositionReceivedEventArgs)> PositionReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerPositionReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerPositionReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PositionReceived += x, x => _data.PositionReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerPreviousReceivedEventArgs)> PreviousReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerPreviousReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerPreviousReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PreviousReceived += x, x => _data.PreviousReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerRateReceivedEventArgs)> RateReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerRateReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerRateReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RateReceived += x, x => _data.RateReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerRewindReceivedEventArgs)> RewindReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerRewindReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerRewindReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RewindReceived += x, x => _data.RewindReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerShuffleReceivedEventArgs)> ShuffleReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManager, global::Windows.Media.Playback.MediaPlaybackCommandManagerShuffleReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManager sender, global::Windows.Media.Playback.MediaPlaybackCommandManagerShuffleReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ShuffleReceived += x, x => _data.ShuffleReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlaybackCommandManagerCommandBehaviorEvents + { + private readonly global::Windows.Media.Playback.MediaPlaybackCommandManagerCommandBehavior _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlaybackCommandManagerCommandBehaviorEvents(global::Windows.Media.Playback.MediaPlaybackCommandManagerCommandBehavior data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackCommandManagerCommandBehavior, object)> IsEnabledChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackCommandManagerCommandBehavior, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackCommandManagerCommandBehavior sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsEnabledChanged += x, x => _data.IsEnabledChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlaybackItemEvents + { + private readonly global::Windows.Media.Playback.MediaPlaybackItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlaybackItemEvents(global::Windows.Media.Playback.MediaPlaybackItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackItem, global::Windows.Foundation.Collections.IVectorChangedEventArgs)> AudioTracksChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackItem, global::Windows.Foundation.Collections.IVectorChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackItem sender, global::Windows.Foundation.Collections.IVectorChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AudioTracksChanged += x, x => _data.AudioTracksChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackItem, global::Windows.Foundation.Collections.IVectorChangedEventArgs)> TimedMetadataTracksChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackItem, global::Windows.Foundation.Collections.IVectorChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackItem sender, global::Windows.Foundation.Collections.IVectorChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TimedMetadataTracksChanged += x, x => _data.TimedMetadataTracksChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackItem, global::Windows.Foundation.Collections.IVectorChangedEventArgs)> VideoTracksChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackItem, global::Windows.Foundation.Collections.IVectorChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackItem sender, global::Windows.Foundation.Collections.IVectorChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VideoTracksChanged += x, x => _data.VideoTracksChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlaybackListEvents + { + private readonly global::Windows.Media.Playback.MediaPlaybackList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlaybackListEvents(global::Windows.Media.Playback.MediaPlaybackList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackList, global::Windows.Media.Playback.CurrentMediaPlaybackItemChangedEventArgs)> CurrentItemChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackList, global::Windows.Media.Playback.CurrentMediaPlaybackItemChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackList sender, global::Windows.Media.Playback.CurrentMediaPlaybackItemChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CurrentItemChanged += x, x => _data.CurrentItemChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackList, global::Windows.Media.Playback.MediaPlaybackItemFailedEventArgs)> ItemFailed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackList, global::Windows.Media.Playback.MediaPlaybackItemFailedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackList sender, global::Windows.Media.Playback.MediaPlaybackItemFailedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemFailed += x, x => _data.ItemFailed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackList, global::Windows.Media.Playback.MediaPlaybackItemOpenedEventArgs)> ItemOpened => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackList, global::Windows.Media.Playback.MediaPlaybackItemOpenedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackList sender, global::Windows.Media.Playback.MediaPlaybackItemOpenedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemOpened += x, x => _data.ItemOpened -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlaybackSessionEvents + { + private readonly global::Windows.Media.Playback.MediaPlaybackSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlaybackSessionEvents(global::Windows.Media.Playback.MediaPlaybackSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> BufferedRangesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BufferedRangesChanged += x, x => _data.BufferedRangesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> BufferingEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BufferingEnded += x, x => _data.BufferingEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> BufferingProgressChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BufferingProgressChanged += x, x => _data.BufferingProgressChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> BufferingStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BufferingStarted += x, x => _data.BufferingStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> DownloadProgressChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DownloadProgressChanged += x, x => _data.DownloadProgressChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> NaturalDurationChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NaturalDurationChanged += x, x => _data.NaturalDurationChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> NaturalVideoSizeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NaturalVideoSizeChanged += x, x => _data.NaturalVideoSizeChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> PlaybackRateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlaybackRateChanged += x, x => _data.PlaybackRateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> PlaybackStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlaybackStateChanged += x, x => _data.PlaybackStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> PlayedRangesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlayedRangesChanged += x, x => _data.PlayedRangesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> PositionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PositionChanged += x, x => _data.PositionChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> SeekableRangesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SeekableRangesChanged += x, x => _data.SeekableRangesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> SeekCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SeekCompleted += x, x => _data.SeekCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackSession, object)> SupportedPlaybackRatesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SupportedPlaybackRatesChanged += x, x => _data.SupportedPlaybackRatesChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlaybackTimedMetadataTrackListEvents + { + private readonly global::Windows.Media.Playback.MediaPlaybackTimedMetadataTrackList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlaybackTimedMetadataTrackListEvents(global::Windows.Media.Playback.MediaPlaybackTimedMetadataTrackList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlaybackTimedMetadataTrackList, global::Windows.Media.Playback.TimedMetadataPresentationModeChangedEventArgs)> PresentationModeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlaybackTimedMetadataTrackList, global::Windows.Media.Playback.TimedMetadataPresentationModeChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlaybackTimedMetadataTrackList sender, global::Windows.Media.Playback.TimedMetadataPresentationModeChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PresentationModeChanged += x, x => _data.PresentationModeChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlaybackVideoTrackListEvents + { + private readonly global::Windows.Media.Playback.MediaPlaybackVideoTrackList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlaybackVideoTrackListEvents(global::Windows.Media.Playback.MediaPlaybackVideoTrackList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Core.ISingleSelectMediaTrackList, object)> SelectedIndexChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Core.ISingleSelectMediaTrackList, object)>(eventHandler => + { + void Handler(global::Windows.Media.Core.ISingleSelectMediaTrackList sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectedIndexChanged += x, x => _data.SelectedIndexChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlayerEvents + { + private readonly global::Windows.Media.Playback.MediaPlayer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlayerEvents(global::Windows.Media.Playback.MediaPlayer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> BufferingEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BufferingEnded += x, x => _data.BufferingEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> BufferingStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BufferingStarted += x, x => _data.BufferingStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> CurrentStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CurrentStateChanged += x, x => _data.CurrentStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> IsMutedChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsMutedChanged += x, x => _data.IsMutedChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> MediaEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MediaEnded += x, x => _data.MediaEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, global::Windows.Media.Playback.MediaPlayerFailedEventArgs)> MediaFailed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, global::Windows.Media.Playback.MediaPlayerFailedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, global::Windows.Media.Playback.MediaPlayerFailedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MediaFailed += x, x => _data.MediaFailed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> MediaOpened => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MediaOpened += x, x => _data.MediaOpened -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, global::Windows.Media.Playback.MediaPlayerRateChangedEventArgs)> MediaPlayerRateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, global::Windows.Media.Playback.MediaPlayerRateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, global::Windows.Media.Playback.MediaPlayerRateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MediaPlayerRateChanged += x, x => _data.MediaPlayerRateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, global::Windows.Media.Playback.PlaybackMediaMarkerReachedEventArgs)> PlaybackMediaMarkerReached => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, global::Windows.Media.Playback.PlaybackMediaMarkerReachedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, global::Windows.Media.Playback.PlaybackMediaMarkerReachedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlaybackMediaMarkerReached += x, x => _data.PlaybackMediaMarkerReached -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> SeekCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SeekCompleted += x, x => _data.SeekCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> SourceChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceChanged += x, x => _data.SourceChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> SubtitleFrameChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SubtitleFrameChanged += x, x => _data.SubtitleFrameChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> VideoFrameAvailable => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VideoFrameAvailable += x, x => _data.VideoFrameAvailable -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Playback.MediaPlayer, object)> VolumeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Playback.MediaPlayer, object)>(eventHandler => + { + void Handler(global::Windows.Media.Playback.MediaPlayer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VolumeChanged += x, x => _data.VolumeChanged -= x); + } +} + +namespace Windows.Media.PlayTo +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PlayToConnectionEvents Events(this global::Windows.Media.PlayTo.PlayToConnection item) => new PlayToConnectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PlayToManagerEvents Events(this global::Windows.Media.PlayTo.PlayToManager item) => new PlayToManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PlayToReceiverEvents Events(this global::Windows.Media.PlayTo.PlayToReceiver item) => new PlayToReceiverEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PlayToConnectionEvents + { + private readonly global::Windows.Media.PlayTo.PlayToConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PlayToConnectionEvents(global::Windows.Media.PlayTo.PlayToConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToConnection, global::Windows.Media.PlayTo.PlayToConnectionErrorEventArgs)> Error => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToConnection, global::Windows.Media.PlayTo.PlayToConnectionErrorEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToConnection sender, global::Windows.Media.PlayTo.PlayToConnectionErrorEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Error += x, x => _data.Error -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToConnection, global::Windows.Media.PlayTo.PlayToConnectionStateChangedEventArgs)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToConnection, global::Windows.Media.PlayTo.PlayToConnectionStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToConnection sender, global::Windows.Media.PlayTo.PlayToConnectionStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToConnection, global::Windows.Media.PlayTo.PlayToConnectionTransferredEventArgs)> Transferred => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToConnection, global::Windows.Media.PlayTo.PlayToConnectionTransferredEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToConnection sender, global::Windows.Media.PlayTo.PlayToConnectionTransferredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Transferred += x, x => _data.Transferred -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PlayToManagerEvents + { + private readonly global::Windows.Media.PlayTo.PlayToManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PlayToManagerEvents(global::Windows.Media.PlayTo.PlayToManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToManager, global::Windows.Media.PlayTo.PlayToSourceRequestedEventArgs)> SourceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToManager, global::Windows.Media.PlayTo.PlayToSourceRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToManager sender, global::Windows.Media.PlayTo.PlayToSourceRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceRequested += x, x => _data.SourceRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToManager, global::Windows.Media.PlayTo.PlayToSourceSelectedEventArgs)> SourceSelected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToManager, global::Windows.Media.PlayTo.PlayToSourceSelectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToManager sender, global::Windows.Media.PlayTo.PlayToSourceSelectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceSelected += x, x => _data.SourceSelected -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PlayToReceiverEvents + { + private readonly global::Windows.Media.PlayTo.PlayToReceiver _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PlayToReceiverEvents(global::Windows.Media.PlayTo.PlayToReceiver data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.CurrentTimeChangeRequestedEventArgs)> CurrentTimeChangeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.CurrentTimeChangeRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToReceiver sender, global::Windows.Media.PlayTo.CurrentTimeChangeRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CurrentTimeChangeRequested += x, x => _data.CurrentTimeChangeRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.MuteChangeRequestedEventArgs)> MuteChangeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.MuteChangeRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToReceiver sender, global::Windows.Media.PlayTo.MuteChangeRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MuteChangeRequested += x, x => _data.MuteChangeRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToReceiver, object)> PauseRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToReceiver, object)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToReceiver sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PauseRequested += x, x => _data.PauseRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.PlaybackRateChangeRequestedEventArgs)> PlaybackRateChangeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.PlaybackRateChangeRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToReceiver sender, global::Windows.Media.PlayTo.PlaybackRateChangeRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlaybackRateChangeRequested += x, x => _data.PlaybackRateChangeRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToReceiver, object)> PlayRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToReceiver, object)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToReceiver sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlayRequested += x, x => _data.PlayRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.SourceChangeRequestedEventArgs)> SourceChangeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.SourceChangeRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToReceiver sender, global::Windows.Media.PlayTo.SourceChangeRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceChangeRequested += x, x => _data.SourceChangeRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToReceiver, object)> StopRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToReceiver, object)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToReceiver sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StopRequested += x, x => _data.StopRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToReceiver, object)> TimeUpdateRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToReceiver, object)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToReceiver sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TimeUpdateRequested += x, x => _data.TimeUpdateRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.VolumeChangeRequestedEventArgs)> VolumeChangeRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.PlayTo.PlayToReceiver, global::Windows.Media.PlayTo.VolumeChangeRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.PlayTo.PlayToReceiver sender, global::Windows.Media.PlayTo.VolumeChangeRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VolumeChangeRequested += x, x => _data.VolumeChangeRequested -= x); + } +} + +namespace Windows.Media.Protection +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HdcpSessionEvents Events(this global::Windows.Media.Protection.HdcpSession item) => new HdcpSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaProtectionManagerEvents Events(this global::Windows.Media.Protection.MediaProtectionManager item) => new MediaProtectionManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HdcpSessionEvents + { + private readonly global::Windows.Media.Protection.HdcpSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HdcpSessionEvents(global::Windows.Media.Protection.HdcpSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Protection.HdcpSession, object)> ProtectionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Protection.HdcpSession, object)>(eventHandler => + { + void Handler(global::Windows.Media.Protection.HdcpSession sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ProtectionChanged += x, x => _data.ProtectionChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaProtectionManagerEvents + { + private readonly global::Windows.Media.Protection.MediaProtectionManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaProtectionManagerEvents(global::Windows.Media.Protection.MediaProtectionManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Protection.MediaProtectionManager, global::Windows.Media.Protection.ComponentLoadFailedEventArgs)> ComponentLoadFailed => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Protection.MediaProtectionManager sender, global::Windows.Media.Protection.ComponentLoadFailedEventArgs e) => eventHandler((sender, e)); + return Handler; + } + + , x => _data.ComponentLoadFailed += x, x => _data.ComponentLoadFailed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RebootNeeded => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Protection.MediaProtectionManager sender) => eventHandler(sender); + return Handler; + } + + , x => _data.RebootNeeded += x, x => _data.RebootNeeded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Protection.MediaProtectionManager, global::Windows.Media.Protection.ServiceRequestedEventArgs)> ServiceRequested => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Media.Protection.MediaProtectionManager sender, global::Windows.Media.Protection.ServiceRequestedEventArgs e) => eventHandler((sender, e)); + return Handler; + } + + , x => _data.ServiceRequested += x, x => _data.ServiceRequested -= x); + } +} + +namespace Windows.Media.Protection.PlayReady +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NDClientEvents Events(this global::Windows.Media.Protection.PlayReady.NDClient item) => new NDClientEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NDClientEvents + { + private readonly global::Windows.Media.Protection.PlayReady.NDClient _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NDClientEvents(global::Windows.Media.Protection.PlayReady.NDClient data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Protection.PlayReady.NDClient, global::Windows.Media.Protection.PlayReady.INDClosedCaptionDataReceivedEventArgs)> ClosedCaptionDataReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Protection.PlayReady.NDClient, global::Windows.Media.Protection.PlayReady.INDClosedCaptionDataReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Protection.PlayReady.NDClient sender, global::Windows.Media.Protection.PlayReady.INDClosedCaptionDataReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ClosedCaptionDataReceived += x, x => _data.ClosedCaptionDataReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Protection.PlayReady.NDClient, global::Windows.Media.Protection.PlayReady.INDLicenseFetchCompletedEventArgs)> LicenseFetchCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Protection.PlayReady.NDClient, global::Windows.Media.Protection.PlayReady.INDLicenseFetchCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Protection.PlayReady.NDClient sender, global::Windows.Media.Protection.PlayReady.INDLicenseFetchCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LicenseFetchCompleted += x, x => _data.LicenseFetchCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Protection.PlayReady.NDClient, global::Windows.Media.Protection.PlayReady.INDProximityDetectionCompletedEventArgs)> ProximityDetectionCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Protection.PlayReady.NDClient, global::Windows.Media.Protection.PlayReady.INDProximityDetectionCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Protection.PlayReady.NDClient sender, global::Windows.Media.Protection.PlayReady.INDProximityDetectionCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ProximityDetectionCompleted += x, x => _data.ProximityDetectionCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Protection.PlayReady.NDClient, global::Windows.Media.Protection.PlayReady.INDRegistrationCompletedEventArgs)> RegistrationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Protection.PlayReady.NDClient, global::Windows.Media.Protection.PlayReady.INDRegistrationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Protection.PlayReady.NDClient sender, global::Windows.Media.Protection.PlayReady.INDRegistrationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RegistrationCompleted += x, x => _data.RegistrationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Protection.PlayReady.NDClient, object)> ReRegistrationNeeded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Protection.PlayReady.NDClient, object)>(eventHandler => + { + void Handler(global::Windows.Media.Protection.PlayReady.NDClient sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ReRegistrationNeeded += x, x => _data.ReRegistrationNeeded -= x); + } +} + +namespace Windows.Media.SpeechRecognition +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpeechContinuousRecognitionSessionEvents Events(this global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession item) => new SpeechContinuousRecognitionSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpeechRecognizerEvents Events(this global::Windows.Media.SpeechRecognition.SpeechRecognizer item) => new SpeechRecognizerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpeechContinuousRecognitionSessionEvents + { + private readonly global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpeechContinuousRecognitionSessionEvents(global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession, global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs)> Completed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession, global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession sender, global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Completed += x, x => _data.Completed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession, global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs)> ResultGenerated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession, global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession sender, global::Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ResultGenerated += x, x => _data.ResultGenerated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpeechRecognizerEvents + { + private readonly global::Windows.Media.SpeechRecognition.SpeechRecognizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpeechRecognizerEvents(global::Windows.Media.SpeechRecognition.SpeechRecognizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SpeechRecognition.SpeechRecognizer, global::Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs)> HypothesisGenerated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SpeechRecognition.SpeechRecognizer, global::Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SpeechRecognition.SpeechRecognizer sender, global::Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HypothesisGenerated += x, x => _data.HypothesisGenerated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SpeechRecognition.SpeechRecognizer, global::Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs)> RecognitionQualityDegrading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SpeechRecognition.SpeechRecognizer, global::Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SpeechRecognition.SpeechRecognizer sender, global::Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RecognitionQualityDegrading += x, x => _data.RecognitionQualityDegrading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.SpeechRecognition.SpeechRecognizer, global::Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.SpeechRecognition.SpeechRecognizer, global::Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.SpeechRecognition.SpeechRecognizer sender, global::Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } +} + +namespace Windows.Media.Streaming.Adaptive +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AdaptiveMediaSourceEvents Events(this global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource item) => new AdaptiveMediaSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AdaptiveMediaSourceDiagnosticsEvents Events(this global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnostics item) => new AdaptiveMediaSourceDiagnosticsEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AdaptiveMediaSourceEvents + { + private readonly global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AdaptiveMediaSourceEvents(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadBitrateChangedEventArgs)> DownloadBitrateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadBitrateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource sender, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadBitrateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DownloadBitrateChanged += x, x => _data.DownloadBitrateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadCompletedEventArgs)> DownloadCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource sender, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DownloadCompleted += x, x => _data.DownloadCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadFailedEventArgs)> DownloadFailed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadFailedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource sender, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadFailedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DownloadFailed += x, x => _data.DownloadFailed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadRequestedEventArgs)> DownloadRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource sender, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DownloadRequested += x, x => _data.DownloadRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourcePlaybackBitrateChangedEventArgs)> PlaybackBitrateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourcePlaybackBitrateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSource sender, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourcePlaybackBitrateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PlaybackBitrateChanged += x, x => _data.PlaybackBitrateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AdaptiveMediaSourceDiagnosticsEvents + { + private readonly global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnostics _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AdaptiveMediaSourceDiagnosticsEvents(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnostics data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnostics, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnosticAvailableEventArgs)> DiagnosticAvailable => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnostics, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnosticAvailableEventArgs)>(eventHandler => + { + void Handler(global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnostics sender, global::Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnosticAvailableEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DiagnosticAvailable += x, x => _data.DiagnosticAvailable -= x); + } +} + +namespace Windows.Networking.BackgroundTransfer +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DownloadOperationEvents Events(this global::Windows.Networking.BackgroundTransfer.DownloadOperation item) => new DownloadOperationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DownloadOperationEvents + { + private readonly global::Windows.Networking.BackgroundTransfer.DownloadOperation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DownloadOperationEvents(global::Windows.Networking.BackgroundTransfer.DownloadOperation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.BackgroundTransfer.DownloadOperation, global::Windows.Networking.BackgroundTransfer.BackgroundTransferRangesDownloadedEventArgs)> RangesDownloaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.BackgroundTransfer.DownloadOperation, global::Windows.Networking.BackgroundTransfer.BackgroundTransferRangesDownloadedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.BackgroundTransfer.DownloadOperation sender, global::Windows.Networking.BackgroundTransfer.BackgroundTransferRangesDownloadedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RangesDownloaded += x, x => _data.RangesDownloaded -= x); + } +} + +namespace Windows.Networking.NetworkOperators +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ESimEvents Events(this global::Windows.Networking.NetworkOperators.ESim item) => new ESimEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ESimProfileMetadataEvents Events(this global::Windows.Networking.NetworkOperators.ESimProfileMetadata item) => new ESimProfileMetadataEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ESimWatcherEvents Events(this global::Windows.Networking.NetworkOperators.ESimWatcher item) => new ESimWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MobileBroadbandAccountWatcherEvents Events(this global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher item) => new MobileBroadbandAccountWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MobileBroadbandDeviceServiceDataSessionEvents Events(this global::Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataSession item) => new MobileBroadbandDeviceServiceDataSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MobileBroadbandModemEvents Events(this global::Windows.Networking.NetworkOperators.MobileBroadbandModem item) => new MobileBroadbandModemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MobileBroadbandSarManagerEvents Events(this global::Windows.Networking.NetworkOperators.MobileBroadbandSarManager item) => new MobileBroadbandSarManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ESimEvents + { + private readonly global::Windows.Networking.NetworkOperators.ESim _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ESimEvents(global::Windows.Networking.NetworkOperators.ESim data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.ESim, object)> ProfileChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.ESim, object)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.ESim sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ProfileChanged += x, x => _data.ProfileChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ESimProfileMetadataEvents + { + private readonly global::Windows.Networking.NetworkOperators.ESimProfileMetadata _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ESimProfileMetadataEvents(global::Windows.Networking.NetworkOperators.ESimProfileMetadata data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.ESimProfileMetadata, object)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.ESimProfileMetadata, object)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.ESimProfileMetadata sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ESimWatcherEvents + { + private readonly global::Windows.Networking.NetworkOperators.ESimWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ESimWatcherEvents(global::Windows.Networking.NetworkOperators.ESimWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.ESimWatcher, global::Windows.Networking.NetworkOperators.ESimAddedEventArgs)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.ESimWatcher, global::Windows.Networking.NetworkOperators.ESimAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.ESimWatcher sender, global::Windows.Networking.NetworkOperators.ESimAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.ESimWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.ESimWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.ESimWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.ESimWatcher, global::Windows.Networking.NetworkOperators.ESimRemovedEventArgs)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.ESimWatcher, global::Windows.Networking.NetworkOperators.ESimRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.ESimWatcher sender, global::Windows.Networking.NetworkOperators.ESimRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.ESimWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.ESimWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.ESimWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.ESimWatcher, global::Windows.Networking.NetworkOperators.ESimUpdatedEventArgs)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.ESimWatcher, global::Windows.Networking.NetworkOperators.ESimUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.ESimWatcher sender, global::Windows.Networking.NetworkOperators.ESimUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MobileBroadbandAccountWatcherEvents + { + private readonly global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MobileBroadbandAccountWatcherEvents(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, global::Windows.Networking.NetworkOperators.MobileBroadbandAccountEventArgs)> AccountAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, global::Windows.Networking.NetworkOperators.MobileBroadbandAccountEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher sender, global::Windows.Networking.NetworkOperators.MobileBroadbandAccountEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccountAdded += x, x => _data.AccountAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, global::Windows.Networking.NetworkOperators.MobileBroadbandAccountEventArgs)> AccountRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, global::Windows.Networking.NetworkOperators.MobileBroadbandAccountEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher sender, global::Windows.Networking.NetworkOperators.MobileBroadbandAccountEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccountRemoved += x, x => _data.AccountRemoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, global::Windows.Networking.NetworkOperators.MobileBroadbandAccountUpdatedEventArgs)> AccountUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, global::Windows.Networking.NetworkOperators.MobileBroadbandAccountUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher sender, global::Windows.Networking.NetworkOperators.MobileBroadbandAccountUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccountUpdated += x, x => _data.AccountUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MobileBroadbandDeviceServiceDataSessionEvents + { + private readonly global::Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MobileBroadbandDeviceServiceDataSessionEvents(global::Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataSession, global::Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataReceivedEventArgs)> DataReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataSession, global::Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataSession sender, global::Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DataReceived += x, x => _data.DataReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MobileBroadbandModemEvents + { + private readonly global::Windows.Networking.NetworkOperators.MobileBroadbandModem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MobileBroadbandModemEvents(global::Windows.Networking.NetworkOperators.MobileBroadbandModem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.MobileBroadbandModem, object)> IsInEmergencyCallModeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.MobileBroadbandModem, object)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.MobileBroadbandModem sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsInEmergencyCallModeChanged += x, x => _data.IsInEmergencyCallModeChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MobileBroadbandSarManagerEvents + { + private readonly global::Windows.Networking.NetworkOperators.MobileBroadbandSarManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MobileBroadbandSarManagerEvents(global::Windows.Networking.NetworkOperators.MobileBroadbandSarManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.NetworkOperators.MobileBroadbandSarManager, global::Windows.Networking.NetworkOperators.MobileBroadbandTransmissionStateChangedEventArgs)> TransmissionStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.NetworkOperators.MobileBroadbandSarManager, global::Windows.Networking.NetworkOperators.MobileBroadbandTransmissionStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.NetworkOperators.MobileBroadbandSarManager sender, global::Windows.Networking.NetworkOperators.MobileBroadbandTransmissionStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TransmissionStateChanged += x, x => _data.TransmissionStateChanged -= x); + } +} + +namespace Windows.Networking.Proximity +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PeerWatcherEvents Events(this global::Windows.Networking.Proximity.PeerWatcher item) => new PeerWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ProximityDeviceEvents Events(this global::Windows.Networking.Proximity.ProximityDevice item) => new ProximityDeviceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PeerWatcherEvents + { + private readonly global::Windows.Networking.Proximity.PeerWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PeerWatcherEvents(global::Windows.Networking.Proximity.PeerWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Proximity.PeerWatcher, global::Windows.Networking.Proximity.PeerInformation)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Proximity.PeerWatcher, global::Windows.Networking.Proximity.PeerInformation)>(eventHandler => + { + void Handler(global::Windows.Networking.Proximity.PeerWatcher sender, global::Windows.Networking.Proximity.PeerInformation args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Proximity.PeerWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Proximity.PeerWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Networking.Proximity.PeerWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Proximity.PeerWatcher, global::Windows.Networking.Proximity.PeerInformation)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Proximity.PeerWatcher, global::Windows.Networking.Proximity.PeerInformation)>(eventHandler => + { + void Handler(global::Windows.Networking.Proximity.PeerWatcher sender, global::Windows.Networking.Proximity.PeerInformation args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Proximity.PeerWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Proximity.PeerWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Networking.Proximity.PeerWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Proximity.PeerWatcher, global::Windows.Networking.Proximity.PeerInformation)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Proximity.PeerWatcher, global::Windows.Networking.Proximity.PeerInformation)>(eventHandler => + { + void Handler(global::Windows.Networking.Proximity.PeerWatcher sender, global::Windows.Networking.Proximity.PeerInformation args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ProximityDeviceEvents + { + private readonly global::Windows.Networking.Proximity.ProximityDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ProximityDeviceEvents(global::Windows.Networking.Proximity.ProximityDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DeviceArrived => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Networking.Proximity.ProximityDevice sender) => eventHandler(sender); + return Handler; + } + + , x => _data.DeviceArrived += x, x => _data.DeviceArrived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DeviceDeparted => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Networking.Proximity.ProximityDevice sender) => eventHandler(sender); + return Handler; + } + + , x => _data.DeviceDeparted += x, x => _data.DeviceDeparted -= x); + } +} + +namespace Windows.Networking.PushNotifications +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PushNotificationChannelEvents Events(this global::Windows.Networking.PushNotifications.PushNotificationChannel item) => new PushNotificationChannelEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PushNotificationChannelEvents + { + private readonly global::Windows.Networking.PushNotifications.PushNotificationChannel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PushNotificationChannelEvents(global::Windows.Networking.PushNotifications.PushNotificationChannel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.PushNotifications.PushNotificationChannel, global::Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs)> PushNotificationReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.PushNotifications.PushNotificationChannel, global::Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.PushNotifications.PushNotificationChannel sender, global::Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PushNotificationReceived += x, x => _data.PushNotificationReceived -= x); + } +} + +namespace Windows.Networking.ServiceDiscovery.Dnssd +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DnssdServiceWatcherEvents Events(this global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher item) => new DnssdServiceWatcherEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DnssdServiceWatcherEvents + { + private readonly global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DnssdServiceWatcherEvents(global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher, global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher, global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance)>(eventHandler => + { + void Handler(global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher sender, global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } +} + +namespace Windows.Networking.Sockets +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DatagramSocketEvents Events(this global::Windows.Networking.Sockets.DatagramSocket item) => new DatagramSocketEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IWebSocketEvents Events(this global::Windows.Networking.Sockets.IWebSocket item) => new IWebSocketEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MessageWebSocketEvents Events(this global::Windows.Networking.Sockets.MessageWebSocket item) => new MessageWebSocketEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ServerMessageWebSocketEvents Events(this global::Windows.Networking.Sockets.ServerMessageWebSocket item) => new ServerMessageWebSocketEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ServerStreamWebSocketEvents Events(this global::Windows.Networking.Sockets.ServerStreamWebSocket item) => new ServerStreamWebSocketEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StreamSocketListenerEvents Events(this global::Windows.Networking.Sockets.StreamSocketListener item) => new StreamSocketListenerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StreamWebSocketEvents Events(this global::Windows.Networking.Sockets.StreamWebSocket item) => new StreamWebSocketEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DatagramSocketEvents + { + private readonly global::Windows.Networking.Sockets.DatagramSocket _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DatagramSocketEvents(global::Windows.Networking.Sockets.DatagramSocket data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.DatagramSocket, global::Windows.Networking.Sockets.DatagramSocketMessageReceivedEventArgs)> MessageReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.DatagramSocket, global::Windows.Networking.Sockets.DatagramSocketMessageReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.DatagramSocket sender, global::Windows.Networking.Sockets.DatagramSocketMessageReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MessageReceived += x, x => _data.MessageReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IWebSocketEvents + { + private readonly global::Windows.Networking.Sockets.IWebSocket _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IWebSocketEvents(global::Windows.Networking.Sockets.IWebSocket data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.IWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.IWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.IWebSocket sender, global::Windows.Networking.Sockets.WebSocketClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MessageWebSocketEvents + { + private readonly global::Windows.Networking.Sockets.MessageWebSocket _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MessageWebSocketEvents(global::Windows.Networking.Sockets.MessageWebSocket data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.IWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.IWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.IWebSocket sender, global::Windows.Networking.Sockets.WebSocketClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.MessageWebSocket, global::Windows.Networking.Sockets.MessageWebSocketMessageReceivedEventArgs)> MessageReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.MessageWebSocket, global::Windows.Networking.Sockets.MessageWebSocketMessageReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.MessageWebSocket sender, global::Windows.Networking.Sockets.MessageWebSocketMessageReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MessageReceived += x, x => _data.MessageReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.MessageWebSocket, global::Windows.Networking.Sockets.WebSocketServerCustomValidationRequestedEventArgs)> ServerCustomValidationRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.MessageWebSocket, global::Windows.Networking.Sockets.WebSocketServerCustomValidationRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.MessageWebSocket sender, global::Windows.Networking.Sockets.WebSocketServerCustomValidationRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ServerCustomValidationRequested += x, x => _data.ServerCustomValidationRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ServerMessageWebSocketEvents + { + private readonly global::Windows.Networking.Sockets.ServerMessageWebSocket _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ServerMessageWebSocketEvents(global::Windows.Networking.Sockets.ServerMessageWebSocket data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.ServerMessageWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.ServerMessageWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.ServerMessageWebSocket sender, global::Windows.Networking.Sockets.WebSocketClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.ServerMessageWebSocket, global::Windows.Networking.Sockets.MessageWebSocketMessageReceivedEventArgs)> MessageReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.ServerMessageWebSocket, global::Windows.Networking.Sockets.MessageWebSocketMessageReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.ServerMessageWebSocket sender, global::Windows.Networking.Sockets.MessageWebSocketMessageReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MessageReceived += x, x => _data.MessageReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ServerStreamWebSocketEvents + { + private readonly global::Windows.Networking.Sockets.ServerStreamWebSocket _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ServerStreamWebSocketEvents(global::Windows.Networking.Sockets.ServerStreamWebSocket data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.ServerStreamWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.ServerStreamWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.ServerStreamWebSocket sender, global::Windows.Networking.Sockets.WebSocketClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StreamSocketListenerEvents + { + private readonly global::Windows.Networking.Sockets.StreamSocketListener _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StreamSocketListenerEvents(global::Windows.Networking.Sockets.StreamSocketListener data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.StreamSocketListener, global::Windows.Networking.Sockets.StreamSocketListenerConnectionReceivedEventArgs)> ConnectionReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.StreamSocketListener, global::Windows.Networking.Sockets.StreamSocketListenerConnectionReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.StreamSocketListener sender, global::Windows.Networking.Sockets.StreamSocketListenerConnectionReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ConnectionReceived += x, x => _data.ConnectionReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StreamWebSocketEvents + { + private readonly global::Windows.Networking.Sockets.StreamWebSocket _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StreamWebSocketEvents(global::Windows.Networking.Sockets.StreamWebSocket data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.IWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.IWebSocket, global::Windows.Networking.Sockets.WebSocketClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.IWebSocket sender, global::Windows.Networking.Sockets.WebSocketClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Sockets.StreamWebSocket, global::Windows.Networking.Sockets.WebSocketServerCustomValidationRequestedEventArgs)> ServerCustomValidationRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Sockets.StreamWebSocket, global::Windows.Networking.Sockets.WebSocketServerCustomValidationRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Sockets.StreamWebSocket sender, global::Windows.Networking.Sockets.WebSocketServerCustomValidationRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ServerCustomValidationRequested += x, x => _data.ServerCustomValidationRequested -= x); + } +} + +namespace Windows.Networking.Vpn +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VpnChannelEvents Events(this global::Windows.Networking.Vpn.VpnChannel item) => new VpnChannelEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VpnChannelEvents + { + private readonly global::Windows.Networking.Vpn.VpnChannel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VpnChannelEvents(global::Windows.Networking.Vpn.VpnChannel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Vpn.VpnChannel, global::Windows.Networking.Vpn.VpnChannelActivityEventArgs)> ActivityChange => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Vpn.VpnChannel, global::Windows.Networking.Vpn.VpnChannelActivityEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Vpn.VpnChannel sender, global::Windows.Networking.Vpn.VpnChannelActivityEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ActivityChange += x, x => _data.ActivityChange -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.Vpn.VpnChannel, global::Windows.Networking.Vpn.VpnChannelActivityStateChangedArgs)> ActivityStateChange => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.Vpn.VpnChannel, global::Windows.Networking.Vpn.VpnChannelActivityStateChangedArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.Vpn.VpnChannel sender, global::Windows.Networking.Vpn.VpnChannelActivityStateChangedArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ActivityStateChange += x, x => _data.ActivityStateChange -= x); + } +} + +namespace Windows.Networking.XboxLive +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static XboxLiveDeviceAddressEvents Events(this global::Windows.Networking.XboxLive.XboxLiveDeviceAddress item) => new XboxLiveDeviceAddressEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static XboxLiveEndpointPairEvents Events(this global::Windows.Networking.XboxLive.XboxLiveEndpointPair item) => new XboxLiveEndpointPairEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static XboxLiveEndpointPairTemplateEvents Events(this global::Windows.Networking.XboxLive.XboxLiveEndpointPairTemplate item) => new XboxLiveEndpointPairTemplateEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class XboxLiveDeviceAddressEvents + { + private readonly global::Windows.Networking.XboxLive.XboxLiveDeviceAddress _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public XboxLiveDeviceAddressEvents(global::Windows.Networking.XboxLive.XboxLiveDeviceAddress data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.XboxLive.XboxLiveDeviceAddress, object)> SnapshotChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.XboxLive.XboxLiveDeviceAddress, object)>(eventHandler => + { + void Handler(global::Windows.Networking.XboxLive.XboxLiveDeviceAddress sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SnapshotChanged += x, x => _data.SnapshotChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class XboxLiveEndpointPairEvents + { + private readonly global::Windows.Networking.XboxLive.XboxLiveEndpointPair _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public XboxLiveEndpointPairEvents(global::Windows.Networking.XboxLive.XboxLiveEndpointPair data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.XboxLive.XboxLiveEndpointPair, global::Windows.Networking.XboxLive.XboxLiveEndpointPairStateChangedEventArgs)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.XboxLive.XboxLiveEndpointPair, global::Windows.Networking.XboxLive.XboxLiveEndpointPairStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.XboxLive.XboxLiveEndpointPair sender, global::Windows.Networking.XboxLive.XboxLiveEndpointPairStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class XboxLiveEndpointPairTemplateEvents + { + private readonly global::Windows.Networking.XboxLive.XboxLiveEndpointPairTemplate _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public XboxLiveEndpointPairTemplateEvents(global::Windows.Networking.XboxLive.XboxLiveEndpointPairTemplate data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Networking.XboxLive.XboxLiveEndpointPairTemplate, global::Windows.Networking.XboxLive.XboxLiveInboundEndpointPairCreatedEventArgs)> InboundEndpointPairCreated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Networking.XboxLive.XboxLiveEndpointPairTemplate, global::Windows.Networking.XboxLive.XboxLiveInboundEndpointPairCreatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Networking.XboxLive.XboxLiveEndpointPairTemplate sender, global::Windows.Networking.XboxLive.XboxLiveInboundEndpointPairCreatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.InboundEndpointPairCreated += x, x => _data.InboundEndpointPairCreated -= x); + } +} + +namespace Windows.Perception.Spatial +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpatialAnchorEvents Events(this global::Windows.Perception.Spatial.SpatialAnchor item) => new SpatialAnchorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpatialEntityWatcherEvents Events(this global::Windows.Perception.Spatial.SpatialEntityWatcher item) => new SpatialEntityWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpatialLocatorEvents Events(this global::Windows.Perception.Spatial.SpatialLocator item) => new SpatialLocatorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpatialAnchorEvents + { + private readonly global::Windows.Perception.Spatial.SpatialAnchor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpatialAnchorEvents(global::Windows.Perception.Spatial.SpatialAnchor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Perception.Spatial.SpatialAnchor, global::Windows.Perception.Spatial.SpatialAnchorRawCoordinateSystemAdjustedEventArgs)> RawCoordinateSystemAdjusted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Perception.Spatial.SpatialAnchor, global::Windows.Perception.Spatial.SpatialAnchorRawCoordinateSystemAdjustedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Perception.Spatial.SpatialAnchor sender, global::Windows.Perception.Spatial.SpatialAnchorRawCoordinateSystemAdjustedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RawCoordinateSystemAdjusted += x, x => _data.RawCoordinateSystemAdjusted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpatialEntityWatcherEvents + { + private readonly global::Windows.Perception.Spatial.SpatialEntityWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpatialEntityWatcherEvents(global::Windows.Perception.Spatial.SpatialEntityWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Perception.Spatial.SpatialEntityWatcher, global::Windows.Perception.Spatial.SpatialEntityAddedEventArgs)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Perception.Spatial.SpatialEntityWatcher, global::Windows.Perception.Spatial.SpatialEntityAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Perception.Spatial.SpatialEntityWatcher sender, global::Windows.Perception.Spatial.SpatialEntityAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Perception.Spatial.SpatialEntityWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Perception.Spatial.SpatialEntityWatcher, object)>(eventHandler => + { + void Handler(global::Windows.Perception.Spatial.SpatialEntityWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Perception.Spatial.SpatialEntityWatcher, global::Windows.Perception.Spatial.SpatialEntityRemovedEventArgs)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Perception.Spatial.SpatialEntityWatcher, global::Windows.Perception.Spatial.SpatialEntityRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Perception.Spatial.SpatialEntityWatcher sender, global::Windows.Perception.Spatial.SpatialEntityRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Perception.Spatial.SpatialEntityWatcher, global::Windows.Perception.Spatial.SpatialEntityUpdatedEventArgs)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Perception.Spatial.SpatialEntityWatcher, global::Windows.Perception.Spatial.SpatialEntityUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Perception.Spatial.SpatialEntityWatcher sender, global::Windows.Perception.Spatial.SpatialEntityUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpatialLocatorEvents + { + private readonly global::Windows.Perception.Spatial.SpatialLocator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpatialLocatorEvents(global::Windows.Perception.Spatial.SpatialLocator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Perception.Spatial.SpatialLocator, object)> LocatabilityChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Perception.Spatial.SpatialLocator, object)>(eventHandler => + { + void Handler(global::Windows.Perception.Spatial.SpatialLocator sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LocatabilityChanged += x, x => _data.LocatabilityChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Perception.Spatial.SpatialLocator, global::Windows.Perception.Spatial.SpatialLocatorPositionalTrackingDeactivatingEventArgs)> PositionalTrackingDeactivating => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Perception.Spatial.SpatialLocator, global::Windows.Perception.Spatial.SpatialLocatorPositionalTrackingDeactivatingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Perception.Spatial.SpatialLocator sender, global::Windows.Perception.Spatial.SpatialLocatorPositionalTrackingDeactivatingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PositionalTrackingDeactivating += x, x => _data.PositionalTrackingDeactivating -= x); + } +} + +namespace Windows.Perception.Spatial.Surfaces +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpatialSurfaceObserverEvents Events(this global::Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver item) => new SpatialSurfaceObserverEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpatialSurfaceObserverEvents + { + private readonly global::Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpatialSurfaceObserverEvents(global::Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver, object)> ObservedSurfacesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver, object)>(eventHandler => + { + void Handler(global::Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ObservedSurfacesChanged += x, x => _data.ObservedSurfacesChanged -= x); + } +} + +namespace Windows.Phone.Devices.Power +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BatteryEvents Events(this global::Windows.Phone.Devices.Power.Battery item) => new BatteryEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BatteryEvents + { + private readonly global::Windows.Phone.Devices.Power.Battery _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BatteryEvents(global::Windows.Phone.Devices.Power.Battery data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RemainingChargePercentChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.RemainingChargePercentChanged += x, x => _data.RemainingChargePercentChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Phone.Media.Devices +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioRoutingManagerEvents Events(this global::Windows.Phone.Media.Devices.AudioRoutingManager item) => new AudioRoutingManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioRoutingManagerEvents + { + private readonly global::Windows.Phone.Media.Devices.AudioRoutingManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioRoutingManagerEvents(global::Windows.Phone.Media.Devices.AudioRoutingManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Phone.Media.Devices.AudioRoutingManager, object)> AudioEndpointChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Phone.Media.Devices.AudioRoutingManager, object)>(eventHandler => + { + void Handler(global::Windows.Phone.Media.Devices.AudioRoutingManager sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AudioEndpointChanged += x, x => _data.AudioEndpointChanged -= x); + } +} + +namespace Windows.Security.Authentication.Web.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebAccountMonitorEvents Events(this global::Windows.Security.Authentication.Web.Core.WebAccountMonitor item) => new WebAccountMonitorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebAccountMonitorEvents + { + private readonly global::Windows.Security.Authentication.Web.Core.WebAccountMonitor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebAccountMonitorEvents(global::Windows.Security.Authentication.Web.Core.WebAccountMonitor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Security.Authentication.Web.Core.WebAccountMonitor, object)> DefaultSignInAccountChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Security.Authentication.Web.Core.WebAccountMonitor, object)>(eventHandler => + { + void Handler(global::Windows.Security.Authentication.Web.Core.WebAccountMonitor sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DefaultSignInAccountChanged += x, x => _data.DefaultSignInAccountChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Security.Authentication.Web.Core.WebAccountMonitor, global::Windows.Security.Authentication.Web.Core.WebAccountEventArgs)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Security.Authentication.Web.Core.WebAccountMonitor, global::Windows.Security.Authentication.Web.Core.WebAccountEventArgs)>(eventHandler => + { + void Handler(global::Windows.Security.Authentication.Web.Core.WebAccountMonitor sender, global::Windows.Security.Authentication.Web.Core.WebAccountEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Security.Authentication.Web.Core.WebAccountMonitor, global::Windows.Security.Authentication.Web.Core.WebAccountEventArgs)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Security.Authentication.Web.Core.WebAccountMonitor, global::Windows.Security.Authentication.Web.Core.WebAccountEventArgs)>(eventHandler => + { + void Handler(global::Windows.Security.Authentication.Web.Core.WebAccountMonitor sender, global::Windows.Security.Authentication.Web.Core.WebAccountEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + } +} + +namespace Windows.Security.Credentials +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PasswordCredentialPropertyStoreEvents Events(this global::Windows.Security.Credentials.PasswordCredentialPropertyStore item) => new PasswordCredentialPropertyStoreEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PasswordCredentialPropertyStoreEvents + { + private readonly global::Windows.Security.Credentials.PasswordCredentialPropertyStore _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PasswordCredentialPropertyStoreEvents(global::Windows.Security.Credentials.PasswordCredentialPropertyStore data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)> MapChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Collections.IObservableMap sender, global::Windows.Foundation.Collections.IMapChangedEventArgs event) => eventHandler((sender, event)); + return Handler; + } + + , x => _data.MapChanged += x, x => _data.MapChanged -= x); + } +} + +namespace Windows.Services.Maps.Guidance +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GuidanceNavigatorEvents Events(this global::Windows.Services.Maps.Guidance.GuidanceNavigator item) => new GuidanceNavigatorEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GuidanceNavigatorEvents + { + private readonly global::Windows.Services.Maps.Guidance.GuidanceNavigator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GuidanceNavigatorEvents(global::Windows.Services.Maps.Guidance.GuidanceNavigator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Maps.Guidance.GuidanceNavigator, global::Windows.Services.Maps.Guidance.GuidanceAudioNotificationRequestedEventArgs)> AudioNotificationRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Maps.Guidance.GuidanceNavigator, global::Windows.Services.Maps.Guidance.GuidanceAudioNotificationRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Services.Maps.Guidance.GuidanceNavigator sender, global::Windows.Services.Maps.Guidance.GuidanceAudioNotificationRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AudioNotificationRequested += x, x => _data.AudioNotificationRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)> DestinationReached => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)>(eventHandler => + { + void Handler(global::Windows.Services.Maps.Guidance.GuidanceNavigator sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DestinationReached += x, x => _data.DestinationReached -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Maps.Guidance.GuidanceNavigator, global::Windows.Services.Maps.Guidance.GuidanceUpdatedEventArgs)> GuidanceUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Maps.Guidance.GuidanceNavigator, global::Windows.Services.Maps.Guidance.GuidanceUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Services.Maps.Guidance.GuidanceNavigator sender, global::Windows.Services.Maps.Guidance.GuidanceUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GuidanceUpdated += x, x => _data.GuidanceUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Maps.Guidance.GuidanceNavigator, global::Windows.Services.Maps.Guidance.GuidanceReroutedEventArgs)> Rerouted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Maps.Guidance.GuidanceNavigator, global::Windows.Services.Maps.Guidance.GuidanceReroutedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Services.Maps.Guidance.GuidanceNavigator sender, global::Windows.Services.Maps.Guidance.GuidanceReroutedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Rerouted += x, x => _data.Rerouted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)> RerouteFailed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)>(eventHandler => + { + void Handler(global::Windows.Services.Maps.Guidance.GuidanceNavigator sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RerouteFailed += x, x => _data.RerouteFailed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)> Rerouting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)>(eventHandler => + { + void Handler(global::Windows.Services.Maps.Guidance.GuidanceNavigator sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Rerouting += x, x => _data.Rerouting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)> UserLocationLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)>(eventHandler => + { + void Handler(global::Windows.Services.Maps.Guidance.GuidanceNavigator sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserLocationLost += x, x => _data.UserLocationLost -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)> UserLocationRestored => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Maps.Guidance.GuidanceNavigator, object)>(eventHandler => + { + void Handler(global::Windows.Services.Maps.Guidance.GuidanceNavigator sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UserLocationRestored += x, x => _data.UserLocationRestored -= x); + } +} + +namespace Windows.Services.Maps.OfflineMaps +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static OfflineMapPackageEvents Events(this global::Windows.Services.Maps.OfflineMaps.OfflineMapPackage item) => new OfflineMapPackageEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class OfflineMapPackageEvents + { + private readonly global::Windows.Services.Maps.OfflineMaps.OfflineMapPackage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public OfflineMapPackageEvents(global::Windows.Services.Maps.OfflineMaps.OfflineMapPackage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Maps.OfflineMaps.OfflineMapPackage, object)> StatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Maps.OfflineMaps.OfflineMapPackage, object)>(eventHandler => + { + void Handler(global::Windows.Services.Maps.OfflineMaps.OfflineMapPackage sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusChanged += x, x => _data.StatusChanged -= x); + } +} + +namespace Windows.Services.Store +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StoreContextEvents Events(this global::Windows.Services.Store.StoreContext item) => new StoreContextEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StorePackageLicenseEvents Events(this global::Windows.Services.Store.StorePackageLicense item) => new StorePackageLicenseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StoreQueueItemEvents Events(this global::Windows.Services.Store.StoreQueueItem item) => new StoreQueueItemEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StoreContextEvents + { + private readonly global::Windows.Services.Store.StoreContext _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StoreContextEvents(global::Windows.Services.Store.StoreContext data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Store.StoreContext, object)> OfflineLicensesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Store.StoreContext, object)>(eventHandler => + { + void Handler(global::Windows.Services.Store.StoreContext sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OfflineLicensesChanged += x, x => _data.OfflineLicensesChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StorePackageLicenseEvents + { + private readonly global::Windows.Services.Store.StorePackageLicense _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StorePackageLicenseEvents(global::Windows.Services.Store.StorePackageLicense data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Store.StorePackageLicense, object)> LicenseLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Store.StorePackageLicense, object)>(eventHandler => + { + void Handler(global::Windows.Services.Store.StorePackageLicense sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LicenseLost += x, x => _data.LicenseLost -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StoreQueueItemEvents + { + private readonly global::Windows.Services.Store.StoreQueueItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StoreQueueItemEvents(global::Windows.Services.Store.StoreQueueItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Store.StoreQueueItem, global::Windows.Services.Store.StoreQueueItemCompletedEventArgs)> Completed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Store.StoreQueueItem, global::Windows.Services.Store.StoreQueueItemCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Services.Store.StoreQueueItem sender, global::Windows.Services.Store.StoreQueueItemCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Completed += x, x => _data.Completed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.Store.StoreQueueItem, object)> StatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.Store.StoreQueueItem, object)>(eventHandler => + { + void Handler(global::Windows.Services.Store.StoreQueueItem sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StatusChanged += x, x => _data.StatusChanged -= x); + } +} + +namespace Windows.Services.TargetedContent +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TargetedContentSubscriptionEvents Events(this global::Windows.Services.TargetedContent.TargetedContentSubscription item) => new TargetedContentSubscriptionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TargetedContentSubscriptionEvents + { + private readonly global::Windows.Services.TargetedContent.TargetedContentSubscription _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TargetedContentSubscriptionEvents(global::Windows.Services.TargetedContent.TargetedContentSubscription data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.TargetedContent.TargetedContentSubscription, global::Windows.Services.TargetedContent.TargetedContentAvailabilityChangedEventArgs)> AvailabilityChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.TargetedContent.TargetedContentSubscription, global::Windows.Services.TargetedContent.TargetedContentAvailabilityChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Services.TargetedContent.TargetedContentSubscription sender, global::Windows.Services.TargetedContent.TargetedContentAvailabilityChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AvailabilityChanged += x, x => _data.AvailabilityChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.TargetedContent.TargetedContentSubscription, global::Windows.Services.TargetedContent.TargetedContentChangedEventArgs)> ContentChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.TargetedContent.TargetedContentSubscription, global::Windows.Services.TargetedContent.TargetedContentChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Services.TargetedContent.TargetedContentSubscription sender, global::Windows.Services.TargetedContent.TargetedContentChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentChanged += x, x => _data.ContentChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Services.TargetedContent.TargetedContentSubscription, global::Windows.Services.TargetedContent.TargetedContentStateChangedEventArgs)> StateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Services.TargetedContent.TargetedContentSubscription, global::Windows.Services.TargetedContent.TargetedContentStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Services.TargetedContent.TargetedContentSubscription sender, global::Windows.Services.TargetedContent.TargetedContentStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StateChanged += x, x => _data.StateChanged -= x); + } +} + +namespace Windows.Storage +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ApplicationDataEvents Events(this global::Windows.Storage.ApplicationData item) => new ApplicationDataEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ApplicationDataCompositeValueEvents Events(this global::Windows.Storage.ApplicationDataCompositeValue item) => new ApplicationDataCompositeValueEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ApplicationDataContainerSettingsEvents Events(this global::Windows.Storage.ApplicationDataContainerSettings item) => new ApplicationDataContainerSettingsEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StorageLibraryEvents Events(this global::Windows.Storage.StorageLibrary item) => new StorageLibraryEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ApplicationDataEvents + { + private readonly global::Windows.Storage.ApplicationData _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ApplicationDataEvents(global::Windows.Storage.ApplicationData data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.ApplicationData, object)> DataChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.ApplicationData, object)>(eventHandler => + { + void Handler(global::Windows.Storage.ApplicationData sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DataChanged += x, x => _data.DataChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ApplicationDataCompositeValueEvents + { + private readonly global::Windows.Storage.ApplicationDataCompositeValue _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ApplicationDataCompositeValueEvents(global::Windows.Storage.ApplicationDataCompositeValue data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)> MapChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Collections.IObservableMap sender, global::Windows.Foundation.Collections.IMapChangedEventArgs event) => eventHandler((sender, event)); + return Handler; + } + + , x => _data.MapChanged += x, x => _data.MapChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ApplicationDataContainerSettingsEvents + { + private readonly global::Windows.Storage.ApplicationDataContainerSettings _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ApplicationDataContainerSettingsEvents(global::Windows.Storage.ApplicationDataContainerSettings data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)> MapChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Collections.IObservableMap, global::Windows.Foundation.Collections.IMapChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Collections.IObservableMap sender, global::Windows.Foundation.Collections.IMapChangedEventArgs event) => eventHandler((sender, event)); + return Handler; + } + + , x => _data.MapChanged += x, x => _data.MapChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StorageLibraryEvents + { + private readonly global::Windows.Storage.StorageLibrary _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StorageLibraryEvents(global::Windows.Storage.StorageLibrary data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.StorageLibrary, object)> DefinitionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.StorageLibrary, object)>(eventHandler => + { + void Handler(global::Windows.Storage.StorageLibrary sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DefinitionChanged += x, x => _data.DefinitionChanged -= x); + } +} + +namespace Windows.Storage.AccessCache +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StorageItemMostRecentlyUsedListEvents Events(this global::Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList item) => new StorageItemMostRecentlyUsedListEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StorageItemMostRecentlyUsedListEvents + { + private readonly global::Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StorageItemMostRecentlyUsedListEvents(global::Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList, global::Windows.Storage.AccessCache.ItemRemovedEventArgs)> ItemRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList, global::Windows.Storage.AccessCache.ItemRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList sender, global::Windows.Storage.AccessCache.ItemRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemRemoved += x, x => _data.ItemRemoved -= x); + } +} + +namespace Windows.Storage.BulkAccess +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FileInformationEvents Events(this global::Windows.Storage.BulkAccess.FileInformation item) => new FileInformationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FolderInformationEvents Events(this global::Windows.Storage.BulkAccess.FolderInformation item) => new FolderInformationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IStorageItemInformationEvents Events(this global::Windows.Storage.BulkAccess.IStorageItemInformation item) => new IStorageItemInformationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FileInformationEvents + { + private readonly global::Windows.Storage.BulkAccess.FileInformation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FileInformationEvents(global::Windows.Storage.BulkAccess.FileInformation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.BulkAccess.IStorageItemInformation, object)> PropertiesUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.BulkAccess.IStorageItemInformation, object)>(eventHandler => + { + void Handler(global::Windows.Storage.BulkAccess.IStorageItemInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PropertiesUpdated += x, x => _data.PropertiesUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.BulkAccess.IStorageItemInformation, object)> ThumbnailUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.BulkAccess.IStorageItemInformation, object)>(eventHandler => + { + void Handler(global::Windows.Storage.BulkAccess.IStorageItemInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ThumbnailUpdated += x, x => _data.ThumbnailUpdated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FolderInformationEvents + { + private readonly global::Windows.Storage.BulkAccess.FolderInformation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FolderInformationEvents(global::Windows.Storage.BulkAccess.FolderInformation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.BulkAccess.IStorageItemInformation, object)> PropertiesUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.BulkAccess.IStorageItemInformation, object)>(eventHandler => + { + void Handler(global::Windows.Storage.BulkAccess.IStorageItemInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PropertiesUpdated += x, x => _data.PropertiesUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.BulkAccess.IStorageItemInformation, object)> ThumbnailUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.BulkAccess.IStorageItemInformation, object)>(eventHandler => + { + void Handler(global::Windows.Storage.BulkAccess.IStorageItemInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ThumbnailUpdated += x, x => _data.ThumbnailUpdated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IStorageItemInformationEvents + { + private readonly global::Windows.Storage.BulkAccess.IStorageItemInformation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IStorageItemInformationEvents(global::Windows.Storage.BulkAccess.IStorageItemInformation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.BulkAccess.IStorageItemInformation, object)> PropertiesUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.BulkAccess.IStorageItemInformation, object)>(eventHandler => + { + void Handler(global::Windows.Storage.BulkAccess.IStorageItemInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PropertiesUpdated += x, x => _data.PropertiesUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.BulkAccess.IStorageItemInformation, object)> ThumbnailUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.BulkAccess.IStorageItemInformation, object)>(eventHandler => + { + void Handler(global::Windows.Storage.BulkAccess.IStorageItemInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ThumbnailUpdated += x, x => _data.ThumbnailUpdated -= x); + } +} + +namespace Windows.Storage.Pickers.Provider +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FileOpenPickerUIEvents Events(this global::Windows.Storage.Pickers.Provider.FileOpenPickerUI item) => new FileOpenPickerUIEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FileSavePickerUIEvents Events(this global::Windows.Storage.Pickers.Provider.FileSavePickerUI item) => new FileSavePickerUIEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FileOpenPickerUIEvents + { + private readonly global::Windows.Storage.Pickers.Provider.FileOpenPickerUI _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FileOpenPickerUIEvents(global::Windows.Storage.Pickers.Provider.FileOpenPickerUI data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Pickers.Provider.FileOpenPickerUI, global::Windows.Storage.Pickers.Provider.PickerClosingEventArgs)> Closing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Pickers.Provider.FileOpenPickerUI, global::Windows.Storage.Pickers.Provider.PickerClosingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Storage.Pickers.Provider.FileOpenPickerUI sender, global::Windows.Storage.Pickers.Provider.PickerClosingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closing += x, x => _data.Closing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Pickers.Provider.FileOpenPickerUI, global::Windows.Storage.Pickers.Provider.FileRemovedEventArgs)> FileRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Pickers.Provider.FileOpenPickerUI, global::Windows.Storage.Pickers.Provider.FileRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Storage.Pickers.Provider.FileOpenPickerUI sender, global::Windows.Storage.Pickers.Provider.FileRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FileRemoved += x, x => _data.FileRemoved -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FileSavePickerUIEvents + { + private readonly global::Windows.Storage.Pickers.Provider.FileSavePickerUI _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FileSavePickerUIEvents(global::Windows.Storage.Pickers.Provider.FileSavePickerUI data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Pickers.Provider.FileSavePickerUI, object)> FileNameChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Pickers.Provider.FileSavePickerUI, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Pickers.Provider.FileSavePickerUI sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FileNameChanged += x, x => _data.FileNameChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Pickers.Provider.FileSavePickerUI, global::Windows.Storage.Pickers.Provider.TargetFileRequestedEventArgs)> TargetFileRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Pickers.Provider.FileSavePickerUI, global::Windows.Storage.Pickers.Provider.TargetFileRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Storage.Pickers.Provider.FileSavePickerUI sender, global::Windows.Storage.Pickers.Provider.TargetFileRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TargetFileRequested += x, x => _data.TargetFileRequested -= x); + } +} + +namespace Windows.Storage.Provider +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CachedFileUpdaterUIEvents Events(this global::Windows.Storage.Provider.CachedFileUpdaterUI item) => new CachedFileUpdaterUIEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CachedFileUpdaterUIEvents + { + private readonly global::Windows.Storage.Provider.CachedFileUpdaterUI _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CachedFileUpdaterUIEvents(global::Windows.Storage.Provider.CachedFileUpdaterUI data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Provider.CachedFileUpdaterUI, global::Windows.Storage.Provider.FileUpdateRequestedEventArgs)> FileUpdateRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Provider.CachedFileUpdaterUI, global::Windows.Storage.Provider.FileUpdateRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Storage.Provider.CachedFileUpdaterUI sender, global::Windows.Storage.Provider.FileUpdateRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FileUpdateRequested += x, x => _data.FileUpdateRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Provider.CachedFileUpdaterUI, object)> UIRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Provider.CachedFileUpdaterUI, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Provider.CachedFileUpdaterUI sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UIRequested += x, x => _data.UIRequested -= x); + } +} + +namespace Windows.Storage.Search +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IStorageQueryResultBaseEvents Events(this global::Windows.Storage.Search.IStorageQueryResultBase item) => new IStorageQueryResultBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StorageFileQueryResultEvents Events(this global::Windows.Storage.Search.StorageFileQueryResult item) => new StorageFileQueryResultEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StorageFolderQueryResultEvents Events(this global::Windows.Storage.Search.StorageFolderQueryResult item) => new StorageFolderQueryResultEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StorageItemQueryResultEvents Events(this global::Windows.Storage.Search.StorageItemQueryResult item) => new StorageItemQueryResultEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IStorageQueryResultBaseEvents + { + private readonly global::Windows.Storage.Search.IStorageQueryResultBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IStorageQueryResultBaseEvents(global::Windows.Storage.Search.IStorageQueryResultBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Search.IStorageQueryResultBase, object)> ContentsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Search.IStorageQueryResultBase, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Search.IStorageQueryResultBase sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentsChanged += x, x => _data.ContentsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Search.IStorageQueryResultBase, object)> OptionsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Search.IStorageQueryResultBase, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Search.IStorageQueryResultBase sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OptionsChanged += x, x => _data.OptionsChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StorageFileQueryResultEvents + { + private readonly global::Windows.Storage.Search.StorageFileQueryResult _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StorageFileQueryResultEvents(global::Windows.Storage.Search.StorageFileQueryResult data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Search.IStorageQueryResultBase, object)> ContentsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Search.IStorageQueryResultBase, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Search.IStorageQueryResultBase sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentsChanged += x, x => _data.ContentsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Search.IStorageQueryResultBase, object)> OptionsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Search.IStorageQueryResultBase, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Search.IStorageQueryResultBase sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OptionsChanged += x, x => _data.OptionsChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StorageFolderQueryResultEvents + { + private readonly global::Windows.Storage.Search.StorageFolderQueryResult _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StorageFolderQueryResultEvents(global::Windows.Storage.Search.StorageFolderQueryResult data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Search.IStorageQueryResultBase, object)> ContentsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Search.IStorageQueryResultBase, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Search.IStorageQueryResultBase sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentsChanged += x, x => _data.ContentsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Search.IStorageQueryResultBase, object)> OptionsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Search.IStorageQueryResultBase, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Search.IStorageQueryResultBase sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OptionsChanged += x, x => _data.OptionsChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StorageItemQueryResultEvents + { + private readonly global::Windows.Storage.Search.StorageItemQueryResult _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StorageItemQueryResultEvents(global::Windows.Storage.Search.StorageItemQueryResult data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Search.IStorageQueryResultBase, object)> ContentsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Search.IStorageQueryResultBase, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Search.IStorageQueryResultBase sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentsChanged += x, x => _data.ContentsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Storage.Search.IStorageQueryResultBase, object)> OptionsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Storage.Search.IStorageQueryResultBase, object)>(eventHandler => + { + void Handler(global::Windows.Storage.Search.IStorageQueryResultBase sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OptionsChanged += x, x => _data.OptionsChanged -= x); + } +} + +namespace Windows.System +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppDiagnosticInfoWatcherEvents Events(this global::Windows.System.AppDiagnosticInfoWatcher item) => new AppDiagnosticInfoWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppResourceGroupInfoWatcherEvents Events(this global::Windows.System.AppResourceGroupInfoWatcher item) => new AppResourceGroupInfoWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DispatcherQueueEvents Events(this global::Windows.System.DispatcherQueue item) => new DispatcherQueueEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DispatcherQueueTimerEvents Events(this global::Windows.System.DispatcherQueueTimer item) => new DispatcherQueueTimerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UserWatcherEvents Events(this global::Windows.System.UserWatcher item) => new UserWatcherEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppDiagnosticInfoWatcherEvents + { + private readonly global::Windows.System.AppDiagnosticInfoWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppDiagnosticInfoWatcherEvents(global::Windows.System.AppDiagnosticInfoWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.AppDiagnosticInfoWatcher, global::Windows.System.AppDiagnosticInfoWatcherEventArgs)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.AppDiagnosticInfoWatcher, global::Windows.System.AppDiagnosticInfoWatcherEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.AppDiagnosticInfoWatcher sender, global::Windows.System.AppDiagnosticInfoWatcherEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.AppDiagnosticInfoWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.AppDiagnosticInfoWatcher, object)>(eventHandler => + { + void Handler(global::Windows.System.AppDiagnosticInfoWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.AppDiagnosticInfoWatcher, global::Windows.System.AppDiagnosticInfoWatcherEventArgs)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.AppDiagnosticInfoWatcher, global::Windows.System.AppDiagnosticInfoWatcherEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.AppDiagnosticInfoWatcher sender, global::Windows.System.AppDiagnosticInfoWatcherEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.AppDiagnosticInfoWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.AppDiagnosticInfoWatcher, object)>(eventHandler => + { + void Handler(global::Windows.System.AppDiagnosticInfoWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppResourceGroupInfoWatcherEvents + { + private readonly global::Windows.System.AppResourceGroupInfoWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppResourceGroupInfoWatcherEvents(global::Windows.System.AppResourceGroupInfoWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.AppResourceGroupInfoWatcher, global::Windows.System.AppResourceGroupInfoWatcherEventArgs)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.AppResourceGroupInfoWatcher, global::Windows.System.AppResourceGroupInfoWatcherEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.AppResourceGroupInfoWatcher sender, global::Windows.System.AppResourceGroupInfoWatcherEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.AppResourceGroupInfoWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.AppResourceGroupInfoWatcher, object)>(eventHandler => + { + void Handler(global::Windows.System.AppResourceGroupInfoWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.AppResourceGroupInfoWatcher, global::Windows.System.AppResourceGroupInfoWatcherExecutionStateChangedEventArgs)> ExecutionStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.AppResourceGroupInfoWatcher, global::Windows.System.AppResourceGroupInfoWatcherExecutionStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.AppResourceGroupInfoWatcher sender, global::Windows.System.AppResourceGroupInfoWatcherExecutionStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ExecutionStateChanged += x, x => _data.ExecutionStateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.AppResourceGroupInfoWatcher, global::Windows.System.AppResourceGroupInfoWatcherEventArgs)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.AppResourceGroupInfoWatcher, global::Windows.System.AppResourceGroupInfoWatcherEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.AppResourceGroupInfoWatcher sender, global::Windows.System.AppResourceGroupInfoWatcherEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.AppResourceGroupInfoWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.AppResourceGroupInfoWatcher, object)>(eventHandler => + { + void Handler(global::Windows.System.AppResourceGroupInfoWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DispatcherQueueEvents + { + private readonly global::Windows.System.DispatcherQueue _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DispatcherQueueEvents(global::Windows.System.DispatcherQueue data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.DispatcherQueue, object)> ShutdownCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.DispatcherQueue, object)>(eventHandler => + { + void Handler(global::Windows.System.DispatcherQueue sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ShutdownCompleted += x, x => _data.ShutdownCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.DispatcherQueue, global::Windows.System.DispatcherQueueShutdownStartingEventArgs)> ShutdownStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.DispatcherQueue, global::Windows.System.DispatcherQueueShutdownStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.DispatcherQueue sender, global::Windows.System.DispatcherQueueShutdownStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ShutdownStarting += x, x => _data.ShutdownStarting -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DispatcherQueueTimerEvents + { + private readonly global::Windows.System.DispatcherQueueTimer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DispatcherQueueTimerEvents(global::Windows.System.DispatcherQueueTimer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.DispatcherQueueTimer, object)> Tick => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.DispatcherQueueTimer, object)>(eventHandler => + { + void Handler(global::Windows.System.DispatcherQueueTimer sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Tick += x, x => _data.Tick -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UserWatcherEvents + { + private readonly global::Windows.System.UserWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UserWatcherEvents(global::Windows.System.UserWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.UserWatcher, global::Windows.System.UserChangedEventArgs)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.UserWatcher, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.UserWatcher sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.UserWatcher, global::Windows.System.UserChangedEventArgs)> AuthenticationStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.UserWatcher, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.UserWatcher sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AuthenticationStatusChanged += x, x => _data.AuthenticationStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.UserWatcher, global::Windows.System.UserAuthenticationStatusChangingEventArgs)> AuthenticationStatusChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.UserWatcher, global::Windows.System.UserAuthenticationStatusChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.UserWatcher sender, global::Windows.System.UserAuthenticationStatusChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AuthenticationStatusChanging += x, x => _data.AuthenticationStatusChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.UserWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.UserWatcher, object)>(eventHandler => + { + void Handler(global::Windows.System.UserWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.UserWatcher, global::Windows.System.UserChangedEventArgs)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.UserWatcher, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.UserWatcher sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.UserWatcher, object)> Stopped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.UserWatcher, object)>(eventHandler => + { + void Handler(global::Windows.System.UserWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Stopped += x, x => _data.Stopped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.UserWatcher, global::Windows.System.UserChangedEventArgs)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.UserWatcher, global::Windows.System.UserChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.UserWatcher sender, global::Windows.System.UserChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + } +} + +namespace Windows.System.Diagnostics.DevicePortal +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DevicePortalConnectionEvents Events(this global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnection item) => new DevicePortalConnectionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DevicePortalConnectionEvents + { + private readonly global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DevicePortalConnectionEvents(global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnection, global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnection, global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnection sender, global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnection, global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs)> RequestReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnection, global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnection sender, global::Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RequestReceived += x, x => _data.RequestReceived -= x); + } +} + +namespace Windows.System.Preview +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TwoPanelHingedDevicePosturePreviewEvents Events(this global::Windows.System.Preview.TwoPanelHingedDevicePosturePreview item) => new TwoPanelHingedDevicePosturePreviewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TwoPanelHingedDevicePosturePreviewEvents + { + private readonly global::Windows.System.Preview.TwoPanelHingedDevicePosturePreview _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TwoPanelHingedDevicePosturePreviewEvents(global::Windows.System.Preview.TwoPanelHingedDevicePosturePreview data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.Preview.TwoPanelHingedDevicePosturePreview, global::Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs)> PostureChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.Preview.TwoPanelHingedDevicePosturePreview, global::Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.Preview.TwoPanelHingedDevicePosturePreview sender, global::Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PostureChanged += x, x => _data.PostureChanged -= x); + } +} + +namespace Windows.System.RemoteSystems +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RemoteSystemSessionEvents Events(this global::Windows.System.RemoteSystems.RemoteSystemSession item) => new RemoteSystemSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RemoteSystemSessionControllerEvents Events(this global::Windows.System.RemoteSystems.RemoteSystemSessionController item) => new RemoteSystemSessionControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RemoteSystemSessionInvitationListenerEvents Events(this global::Windows.System.RemoteSystems.RemoteSystemSessionInvitationListener item) => new RemoteSystemSessionInvitationListenerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RemoteSystemSessionMessageChannelEvents Events(this global::Windows.System.RemoteSystems.RemoteSystemSessionMessageChannel item) => new RemoteSystemSessionMessageChannelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RemoteSystemSessionParticipantWatcherEvents Events(this global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher item) => new RemoteSystemSessionParticipantWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RemoteSystemSessionWatcherEvents Events(this global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher item) => new RemoteSystemSessionWatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RemoteSystemWatcherEvents Events(this global::Windows.System.RemoteSystems.RemoteSystemWatcher item) => new RemoteSystemWatcherEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RemoteSystemSessionEvents + { + private readonly global::Windows.System.RemoteSystems.RemoteSystemSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RemoteSystemSessionEvents(global::Windows.System.RemoteSystems.RemoteSystemSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSession, global::Windows.System.RemoteSystems.RemoteSystemSessionDisconnectedEventArgs)> Disconnected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSession, global::Windows.System.RemoteSystems.RemoteSystemSessionDisconnectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSession sender, global::Windows.System.RemoteSystems.RemoteSystemSessionDisconnectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Disconnected += x, x => _data.Disconnected -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RemoteSystemSessionControllerEvents + { + private readonly global::Windows.System.RemoteSystems.RemoteSystemSessionController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RemoteSystemSessionControllerEvents(global::Windows.System.RemoteSystems.RemoteSystemSessionController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSessionController, global::Windows.System.RemoteSystems.RemoteSystemSessionJoinRequestedEventArgs)> JoinRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSessionController, global::Windows.System.RemoteSystems.RemoteSystemSessionJoinRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSessionController sender, global::Windows.System.RemoteSystems.RemoteSystemSessionJoinRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.JoinRequested += x, x => _data.JoinRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RemoteSystemSessionInvitationListenerEvents + { + private readonly global::Windows.System.RemoteSystems.RemoteSystemSessionInvitationListener _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RemoteSystemSessionInvitationListenerEvents(global::Windows.System.RemoteSystems.RemoteSystemSessionInvitationListener data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSessionInvitationListener, global::Windows.System.RemoteSystems.RemoteSystemSessionInvitationReceivedEventArgs)> InvitationReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSessionInvitationListener, global::Windows.System.RemoteSystems.RemoteSystemSessionInvitationReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSessionInvitationListener sender, global::Windows.System.RemoteSystems.RemoteSystemSessionInvitationReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.InvitationReceived += x, x => _data.InvitationReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RemoteSystemSessionMessageChannelEvents + { + private readonly global::Windows.System.RemoteSystems.RemoteSystemSessionMessageChannel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RemoteSystemSessionMessageChannelEvents(global::Windows.System.RemoteSystems.RemoteSystemSessionMessageChannel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSessionMessageChannel, global::Windows.System.RemoteSystems.RemoteSystemSessionValueSetReceivedEventArgs)> ValueSetReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSessionMessageChannel, global::Windows.System.RemoteSystems.RemoteSystemSessionValueSetReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSessionMessageChannel sender, global::Windows.System.RemoteSystems.RemoteSystemSessionValueSetReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ValueSetReceived += x, x => _data.ValueSetReceived -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RemoteSystemSessionParticipantWatcherEvents + { + private readonly global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RemoteSystemSessionParticipantWatcherEvents(global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantAddedEventArgs)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher, object)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher, object)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantRemovedEventArgs)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemSessionParticipantRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RemoteSystemSessionWatcherEvents + { + private readonly global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RemoteSystemSessionWatcherEvents(global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionAddedEventArgs)> Added => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemSessionAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Added += x, x => _data.Added -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionRemovedEventArgs)> Removed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemSessionRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Removed += x, x => _data.Removed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionUpdatedEventArgs)> Updated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher, global::Windows.System.RemoteSystems.RemoteSystemSessionUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemSessionWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemSessionUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Updated += x, x => _data.Updated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RemoteSystemWatcherEvents + { + private readonly global::Windows.System.RemoteSystems.RemoteSystemWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RemoteSystemWatcherEvents(global::Windows.System.RemoteSystems.RemoteSystemWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemEnumerationCompletedEventArgs)> EnumerationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemEnumerationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemEnumerationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EnumerationCompleted += x, x => _data.EnumerationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemWatcherErrorOccurredEventArgs)> ErrorOccurred => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemWatcherErrorOccurredEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemWatcherErrorOccurredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ErrorOccurred += x, x => _data.ErrorOccurred -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemAddedEventArgs)> RemoteSystemAdded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemAddedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemAddedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RemoteSystemAdded += x, x => _data.RemoteSystemAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemRemovedEventArgs)> RemoteSystemRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemRemovedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemRemovedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RemoteSystemRemoved += x, x => _data.RemoteSystemRemoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemUpdatedEventArgs)> RemoteSystemUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.System.RemoteSystems.RemoteSystemWatcher, global::Windows.System.RemoteSystems.RemoteSystemUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.System.RemoteSystems.RemoteSystemWatcher sender, global::Windows.System.RemoteSystems.RemoteSystemUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RemoteSystemUpdated += x, x => _data.RemoteSystemUpdated -= x); + } +} + +namespace Windows.UI.Accessibility +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ScreenReaderServiceEvents Events(this global::Windows.UI.Accessibility.ScreenReaderService item) => new ScreenReaderServiceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ScreenReaderServiceEvents + { + private readonly global::Windows.UI.Accessibility.ScreenReaderService _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ScreenReaderServiceEvents(global::Windows.UI.Accessibility.ScreenReaderService data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Accessibility.ScreenReaderService, global::Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs)> ScreenReaderPositionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Accessibility.ScreenReaderService, global::Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Accessibility.ScreenReaderService sender, global::Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ScreenReaderPositionChanged += x, x => _data.ScreenReaderPositionChanged -= x); + } +} + +namespace Windows.UI.ApplicationSettings +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AccountsSettingsPaneEvents Events(this global::Windows.UI.ApplicationSettings.AccountsSettingsPane item) => new AccountsSettingsPaneEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SettingsPaneEvents Events(this global::Windows.UI.ApplicationSettings.SettingsPane item) => new SettingsPaneEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AccountsSettingsPaneEvents + { + private readonly global::Windows.UI.ApplicationSettings.AccountsSettingsPane _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AccountsSettingsPaneEvents(global::Windows.UI.ApplicationSettings.AccountsSettingsPane data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ApplicationSettings.AccountsSettingsPane, global::Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs)> AccountCommandsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ApplicationSettings.AccountsSettingsPane, global::Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.ApplicationSettings.AccountsSettingsPane sender, global::Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccountCommandsRequested += x, x => _data.AccountCommandsRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SettingsPaneEvents + { + private readonly global::Windows.UI.ApplicationSettings.SettingsPane _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SettingsPaneEvents(global::Windows.UI.ApplicationSettings.SettingsPane data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ApplicationSettings.SettingsPane, global::Windows.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs)> CommandsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ApplicationSettings.SettingsPane, global::Windows.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.ApplicationSettings.SettingsPane sender, global::Windows.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CommandsRequested += x, x => _data.CommandsRequested -= x); + } +} + +namespace Windows.UI.Composition +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CompositionCapabilitiesEvents Events(this global::Windows.UI.Composition.CompositionCapabilities item) => new CompositionCapabilitiesEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CompositionCommitBatchEvents Events(this global::Windows.UI.Composition.CompositionCommitBatch item) => new CompositionCommitBatchEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CompositionGraphicsDeviceEvents Events(this global::Windows.UI.Composition.CompositionGraphicsDevice item) => new CompositionGraphicsDeviceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CompositionScopedBatchEvents Events(this global::Windows.UI.Composition.CompositionScopedBatch item) => new CompositionScopedBatchEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CompositionCapabilitiesEvents + { + private readonly global::Windows.UI.Composition.CompositionCapabilities _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CompositionCapabilitiesEvents(global::Windows.UI.Composition.CompositionCapabilities data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Composition.CompositionCapabilities, object)> Changed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Composition.CompositionCapabilities, object)>(eventHandler => + { + void Handler(global::Windows.UI.Composition.CompositionCapabilities sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Changed += x, x => _data.Changed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CompositionCommitBatchEvents + { + private readonly global::Windows.UI.Composition.CompositionCommitBatch _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CompositionCommitBatchEvents(global::Windows.UI.Composition.CompositionCommitBatch data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Composition.CompositionBatchCompletedEventArgs>(x => _data.Completed += x, x => _data.Completed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CompositionGraphicsDeviceEvents + { + private readonly global::Windows.UI.Composition.CompositionGraphicsDevice _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CompositionGraphicsDeviceEvents(global::Windows.UI.Composition.CompositionGraphicsDevice data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Composition.CompositionGraphicsDevice, global::Windows.UI.Composition.RenderingDeviceReplacedEventArgs)> RenderingDeviceReplaced => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Composition.CompositionGraphicsDevice, global::Windows.UI.Composition.RenderingDeviceReplacedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Composition.CompositionGraphicsDevice sender, global::Windows.UI.Composition.RenderingDeviceReplacedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RenderingDeviceReplaced += x, x => _data.RenderingDeviceReplaced -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CompositionScopedBatchEvents + { + private readonly global::Windows.UI.Composition.CompositionScopedBatch _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CompositionScopedBatchEvents(global::Windows.UI.Composition.CompositionScopedBatch data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Composition.CompositionBatchCompletedEventArgs>(x => _data.Completed += x, x => _data.Completed -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.UI.Composition.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CompositorControllerEvents Events(this global::Windows.UI.Composition.Core.CompositorController item) => new CompositorControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CompositorControllerEvents + { + private readonly global::Windows.UI.Composition.Core.CompositorController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CompositorControllerEvents(global::Windows.UI.Composition.Core.CompositorController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Composition.Core.CompositorController, object)> CommitNeeded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Composition.Core.CompositorController, object)>(eventHandler => + { + void Handler(global::Windows.UI.Composition.Core.CompositorController sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CommitNeeded += x, x => _data.CommitNeeded -= x); + } +} + +namespace Windows.UI.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreAcceleratorKeysEvents Events(this global::Windows.UI.Core.CoreAcceleratorKeys item) => new CoreAcceleratorKeysEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreComponentInputSourceEvents Events(this global::Windows.UI.Core.CoreComponentInputSource item) => new CoreComponentInputSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreDispatcherEvents Events(this global::Windows.UI.Core.CoreDispatcher item) => new CoreDispatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreIndependentInputSourceEvents Events(this global::Windows.UI.Core.CoreIndependentInputSource item) => new CoreIndependentInputSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreWindowEvents Events(this global::Windows.UI.Core.CoreWindow item) => new CoreWindowEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreWindowDialogEvents Events(this global::Windows.UI.Core.CoreWindowDialog item) => new CoreWindowDialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreWindowFlyoutEvents Events(this global::Windows.UI.Core.CoreWindowFlyout item) => new CoreWindowFlyoutEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ICoreAcceleratorKeysEvents Events(this global::Windows.UI.Core.ICoreAcceleratorKeys item) => new ICoreAcceleratorKeysEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ICoreInputSourceBaseEvents Events(this global::Windows.UI.Core.ICoreInputSourceBase item) => new ICoreInputSourceBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ICorePointerInputSourceEvents Events(this global::Windows.UI.Core.ICorePointerInputSource item) => new ICorePointerInputSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ICorePointerRedirectorEvents Events(this global::Windows.UI.Core.ICorePointerRedirector item) => new ICorePointerRedirectorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ICoreWindowEvents Events(this global::Windows.UI.Core.ICoreWindow item) => new ICoreWindowEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SystemNavigationManagerEvents Events(this global::Windows.UI.Core.SystemNavigationManager item) => new SystemNavigationManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreAcceleratorKeysEvents + { + private readonly global::Windows.UI.Core.CoreAcceleratorKeys _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreAcceleratorKeysEvents(global::Windows.UI.Core.CoreAcceleratorKeys data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreDispatcher, global::Windows.UI.Core.AcceleratorKeyEventArgs)> AcceleratorKeyActivated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreDispatcher, global::Windows.UI.Core.AcceleratorKeyEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreDispatcher sender, global::Windows.UI.Core.AcceleratorKeyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AcceleratorKeyActivated += x, x => _data.AcceleratorKeyActivated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreComponentInputSourceEvents + { + private readonly global::Windows.UI.Core.CoreComponentInputSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreComponentInputSourceEvents(global::Windows.UI.Core.CoreComponentInputSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CharacterReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.CharacterReceivedEventArgs>(x => _data.CharacterReceived += x, x => _data.CharacterReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreComponentInputSource, global::Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs)> ClosestInteractiveBoundsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreComponentInputSource, global::Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreComponentInputSource sender, global::Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ClosestInteractiveBoundsRequested += x, x => _data.ClosestInteractiveBoundsRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.CoreWindowEventArgs>(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InputEnabled => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.InputEnabledEventArgs>(x => _data.InputEnabled += x, x => _data.InputEnabled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.KeyEventArgs>(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.KeyEventArgs>(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.CoreWindowEventArgs>(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerCaptureLost => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerCaptureLost += x, x => _data.PointerCaptureLost -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerEntered => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerEntered += x, x => _data.PointerEntered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerExited => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerExited += x, x => _data.PointerExited -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerMoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerMoved += x, x => _data.PointerMoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerPressed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerPressed += x, x => _data.PointerPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerReleased => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerReleased += x, x => _data.PointerReleased -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerWheelChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerWheelChanged += x, x => _data.PointerWheelChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchHitTesting => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.TouchHitTestingEventArgs>(x => _data.TouchHitTesting += x, x => _data.TouchHitTesting -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreDispatcherEvents + { + private readonly global::Windows.UI.Core.CoreDispatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreDispatcherEvents(global::Windows.UI.Core.CoreDispatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreDispatcher, global::Windows.UI.Core.AcceleratorKeyEventArgs)> AcceleratorKeyActivated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreDispatcher, global::Windows.UI.Core.AcceleratorKeyEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreDispatcher sender, global::Windows.UI.Core.AcceleratorKeyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AcceleratorKeyActivated += x, x => _data.AcceleratorKeyActivated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreIndependentInputSourceEvents + { + private readonly global::Windows.UI.Core.CoreIndependentInputSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreIndependentInputSourceEvents(global::Windows.UI.Core.CoreIndependentInputSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InputEnabled => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.InputEnabledEventArgs>(x => _data.InputEnabled += x, x => _data.InputEnabled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerCaptureLost => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerCaptureLost += x, x => _data.PointerCaptureLost -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerEntered => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerEntered += x, x => _data.PointerEntered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerExited => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerExited += x, x => _data.PointerExited -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerMoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerMoved += x, x => _data.PointerMoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerPressed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerPressed += x, x => _data.PointerPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerReleased => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerReleased += x, x => _data.PointerReleased -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerWheelChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerWheelChanged += x, x => _data.PointerWheelChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreWindowEvents + { + private readonly global::Windows.UI.Core.CoreWindow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreWindowEvents(global::Windows.UI.Core.CoreWindow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.WindowActivatedEventArgs)> Activated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.WindowActivatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.WindowActivatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Activated += x, x => _data.Activated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.AutomationProviderRequestedEventArgs)> AutomationProviderRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.AutomationProviderRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.AutomationProviderRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AutomationProviderRequested += x, x => _data.AutomationProviderRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CharacterReceivedEventArgs)> CharacterReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CharacterReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.CharacterReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CharacterReceived += x, x => _data.CharacterReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CoreWindowEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CoreWindowEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.CoreWindowEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs)> ClosestInteractiveBoundsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ClosestInteractiveBoundsRequested += x, x => _data.ClosestInteractiveBoundsRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.InputEnabledEventArgs)> InputEnabled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.InputEnabledEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.InputEnabledEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.InputEnabled += x, x => _data.InputEnabled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs)> KeyDown => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.KeyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.KeyDown += x, x => _data.KeyDown -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs)> KeyUp => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.KeyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.KeyUp += x, x => _data.KeyUp -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerCaptureLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerCaptureLost += x, x => _data.PointerCaptureLost -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerEntered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerEntered += x, x => _data.PointerEntered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerExited += x, x => _data.PointerExited -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerMoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerMoved += x, x => _data.PointerMoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerPressed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerPressed += x, x => _data.PointerPressed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerReleased => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerReleased += x, x => _data.PointerReleased -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)> PointerRoutedAway => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.ICorePointerRedirector sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerRoutedAway += x, x => _data.PointerRoutedAway -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)> PointerRoutedReleased => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.ICorePointerRedirector sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerRoutedReleased += x, x => _data.PointerRoutedReleased -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)> PointerRoutedTo => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.ICorePointerRedirector sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerRoutedTo += x, x => _data.PointerRoutedTo -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerWheelChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerWheelChanged += x, x => _data.PointerWheelChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, object)> ResizeCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, object)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ResizeCompleted += x, x => _data.ResizeCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, object)> ResizeStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, object)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ResizeStarted += x, x => _data.ResizeStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.WindowSizeChangedEventArgs)> SizeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.WindowSizeChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.WindowSizeChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SizeChanged += x, x => _data.SizeChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.TouchHitTestingEventArgs)> TouchHitTesting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.TouchHitTestingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.TouchHitTestingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TouchHitTesting += x, x => _data.TouchHitTesting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.VisibilityChangedEventArgs)> VisibilityChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.VisibilityChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.VisibilityChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VisibilityChanged += x, x => _data.VisibilityChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreWindowDialogEvents + { + private readonly global::Windows.UI.Core.CoreWindowDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreWindowDialogEvents(global::Windows.UI.Core.CoreWindowDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CoreWindowPopupShowingEventArgs)> Showing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CoreWindowPopupShowingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.CoreWindowPopupShowingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Showing += x, x => _data.Showing -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreWindowFlyoutEvents + { + private readonly global::Windows.UI.Core.CoreWindowFlyout _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreWindowFlyoutEvents(global::Windows.UI.Core.CoreWindowFlyout data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CoreWindowPopupShowingEventArgs)> Showing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CoreWindowPopupShowingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.CoreWindowPopupShowingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Showing += x, x => _data.Showing -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ICoreAcceleratorKeysEvents + { + private readonly global::Windows.UI.Core.ICoreAcceleratorKeys _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ICoreAcceleratorKeysEvents(global::Windows.UI.Core.ICoreAcceleratorKeys data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreDispatcher, global::Windows.UI.Core.AcceleratorKeyEventArgs)> AcceleratorKeyActivated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreDispatcher, global::Windows.UI.Core.AcceleratorKeyEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreDispatcher sender, global::Windows.UI.Core.AcceleratorKeyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AcceleratorKeyActivated += x, x => _data.AcceleratorKeyActivated -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ICoreInputSourceBaseEvents + { + private readonly global::Windows.UI.Core.ICoreInputSourceBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ICoreInputSourceBaseEvents(global::Windows.UI.Core.ICoreInputSourceBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InputEnabled => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.InputEnabledEventArgs>(x => _data.InputEnabled += x, x => _data.InputEnabled -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ICorePointerInputSourceEvents + { + private readonly global::Windows.UI.Core.ICorePointerInputSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ICorePointerInputSourceEvents(global::Windows.UI.Core.ICorePointerInputSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerCaptureLost => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerCaptureLost += x, x => _data.PointerCaptureLost -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerEntered => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerEntered += x, x => _data.PointerEntered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerExited => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerExited += x, x => _data.PointerExited -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerMoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerMoved += x, x => _data.PointerMoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerPressed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerPressed += x, x => _data.PointerPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerReleased => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerReleased += x, x => _data.PointerReleased -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerWheelChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.PointerEventArgs>(x => _data.PointerWheelChanged += x, x => _data.PointerWheelChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ICorePointerRedirectorEvents + { + private readonly global::Windows.UI.Core.ICorePointerRedirector _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ICorePointerRedirectorEvents(global::Windows.UI.Core.ICorePointerRedirector data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)> PointerRoutedAway => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.ICorePointerRedirector sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerRoutedAway += x, x => _data.PointerRoutedAway -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)> PointerRoutedReleased => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.ICorePointerRedirector sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerRoutedReleased += x, x => _data.PointerRoutedReleased -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)> PointerRoutedTo => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.ICorePointerRedirector, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.ICorePointerRedirector sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerRoutedTo += x, x => _data.PointerRoutedTo -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ICoreWindowEvents + { + private readonly global::Windows.UI.Core.ICoreWindow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ICoreWindowEvents(global::Windows.UI.Core.ICoreWindow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.WindowActivatedEventArgs)> Activated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.WindowActivatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.WindowActivatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Activated += x, x => _data.Activated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.AutomationProviderRequestedEventArgs)> AutomationProviderRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.AutomationProviderRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.AutomationProviderRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AutomationProviderRequested += x, x => _data.AutomationProviderRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CharacterReceivedEventArgs)> CharacterReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CharacterReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.CharacterReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CharacterReceived += x, x => _data.CharacterReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CoreWindowEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.CoreWindowEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.CoreWindowEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.InputEnabledEventArgs)> InputEnabled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.InputEnabledEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.InputEnabledEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.InputEnabled += x, x => _data.InputEnabled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs)> KeyDown => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.KeyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.KeyDown += x, x => _data.KeyDown -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs)> KeyUp => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.KeyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.KeyUp += x, x => _data.KeyUp -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerCaptureLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerCaptureLost += x, x => _data.PointerCaptureLost -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerEntered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerEntered += x, x => _data.PointerEntered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerExited += x, x => _data.PointerExited -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerMoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerMoved += x, x => _data.PointerMoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerPressed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerPressed += x, x => _data.PointerPressed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerReleased => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerReleased += x, x => _data.PointerReleased -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)> PointerWheelChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerWheelChanged += x, x => _data.PointerWheelChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.WindowSizeChangedEventArgs)> SizeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.WindowSizeChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.WindowSizeChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SizeChanged += x, x => _data.SizeChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.TouchHitTestingEventArgs)> TouchHitTesting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.TouchHitTestingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.TouchHitTestingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TouchHitTesting += x, x => _data.TouchHitTesting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.VisibilityChangedEventArgs)> VisibilityChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.VisibilityChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Core.CoreWindow sender, global::Windows.UI.Core.VisibilityChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VisibilityChanged += x, x => _data.VisibilityChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SystemNavigationManagerEvents + { + private readonly global::Windows.UI.Core.SystemNavigationManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SystemNavigationManagerEvents(global::Windows.UI.Core.SystemNavigationManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackRequested => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.BackRequestedEventArgs>(x => _data.BackRequested += x, x => _data.BackRequested -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.UI.Core.Preview +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SystemNavigationManagerPreviewEvents Events(this global::Windows.UI.Core.Preview.SystemNavigationManagerPreview item) => new SystemNavigationManagerPreviewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SystemNavigationManagerPreviewEvents + { + private readonly global::Windows.UI.Core.Preview.SystemNavigationManagerPreview _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SystemNavigationManagerPreviewEvents(global::Windows.UI.Core.Preview.SystemNavigationManagerPreview data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CloseRequested => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs>(x => _data.CloseRequested += x, x => _data.CloseRequested -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.UI.Input +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EdgeGestureEvents Events(this global::Windows.UI.Input.EdgeGesture item) => new EdgeGestureEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GestureRecognizerEvents Events(this global::Windows.UI.Input.GestureRecognizer item) => new GestureRecognizerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static KeyboardDeliveryInterceptorEvents Events(this global::Windows.UI.Input.KeyboardDeliveryInterceptor item) => new KeyboardDeliveryInterceptorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RadialControllerEvents Events(this global::Windows.UI.Input.RadialController item) => new RadialControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RadialControllerMenuItemEvents Events(this global::Windows.UI.Input.RadialControllerMenuItem item) => new RadialControllerMenuItemEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EdgeGestureEvents + { + private readonly global::Windows.UI.Input.EdgeGesture _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EdgeGestureEvents(global::Windows.UI.Input.EdgeGesture data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.EdgeGesture, global::Windows.UI.Input.EdgeGestureEventArgs)> Canceled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.EdgeGesture, global::Windows.UI.Input.EdgeGestureEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.EdgeGesture sender, global::Windows.UI.Input.EdgeGestureEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Canceled += x, x => _data.Canceled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.EdgeGesture, global::Windows.UI.Input.EdgeGestureEventArgs)> Completed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.EdgeGesture, global::Windows.UI.Input.EdgeGestureEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.EdgeGesture sender, global::Windows.UI.Input.EdgeGestureEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Completed += x, x => _data.Completed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.EdgeGesture, global::Windows.UI.Input.EdgeGestureEventArgs)> Starting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.EdgeGesture, global::Windows.UI.Input.EdgeGestureEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.EdgeGesture sender, global::Windows.UI.Input.EdgeGestureEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Starting += x, x => _data.Starting -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GestureRecognizerEvents + { + private readonly global::Windows.UI.Input.GestureRecognizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GestureRecognizerEvents(global::Windows.UI.Input.GestureRecognizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.CrossSlidingEventArgs)> CrossSliding => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.CrossSlidingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.GestureRecognizer sender, global::Windows.UI.Input.CrossSlidingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CrossSliding += x, x => _data.CrossSliding -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.DraggingEventArgs)> Dragging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.DraggingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.GestureRecognizer sender, global::Windows.UI.Input.DraggingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Dragging += x, x => _data.Dragging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.HoldingEventArgs)> Holding => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.HoldingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.GestureRecognizer sender, global::Windows.UI.Input.HoldingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Holding += x, x => _data.Holding -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.ManipulationCompletedEventArgs)> ManipulationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.ManipulationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.GestureRecognizer sender, global::Windows.UI.Input.ManipulationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ManipulationCompleted += x, x => _data.ManipulationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.ManipulationInertiaStartingEventArgs)> ManipulationInertiaStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.ManipulationInertiaStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.GestureRecognizer sender, global::Windows.UI.Input.ManipulationInertiaStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ManipulationInertiaStarting += x, x => _data.ManipulationInertiaStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.ManipulationStartedEventArgs)> ManipulationStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.ManipulationStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.GestureRecognizer sender, global::Windows.UI.Input.ManipulationStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ManipulationStarted += x, x => _data.ManipulationStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.ManipulationUpdatedEventArgs)> ManipulationUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.ManipulationUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.GestureRecognizer sender, global::Windows.UI.Input.ManipulationUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ManipulationUpdated += x, x => _data.ManipulationUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.RightTappedEventArgs)> RightTapped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.RightTappedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.GestureRecognizer sender, global::Windows.UI.Input.RightTappedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RightTapped += x, x => _data.RightTapped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.TappedEventArgs)> Tapped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.GestureRecognizer, global::Windows.UI.Input.TappedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.GestureRecognizer sender, global::Windows.UI.Input.TappedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Tapped += x, x => _data.Tapped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class KeyboardDeliveryInterceptorEvents + { + private readonly global::Windows.UI.Input.KeyboardDeliveryInterceptor _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public KeyboardDeliveryInterceptorEvents(global::Windows.UI.Input.KeyboardDeliveryInterceptor data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.KeyboardDeliveryInterceptor, global::Windows.UI.Core.KeyEventArgs)> KeyDown => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.KeyboardDeliveryInterceptor, global::Windows.UI.Core.KeyEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.KeyboardDeliveryInterceptor sender, global::Windows.UI.Core.KeyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.KeyDown += x, x => _data.KeyDown -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.KeyboardDeliveryInterceptor, global::Windows.UI.Core.KeyEventArgs)> KeyUp => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.KeyboardDeliveryInterceptor, global::Windows.UI.Core.KeyEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.KeyboardDeliveryInterceptor sender, global::Windows.UI.Core.KeyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.KeyUp += x, x => _data.KeyUp -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RadialControllerEvents + { + private readonly global::Windows.UI.Input.RadialController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RadialControllerEvents(global::Windows.UI.Input.RadialController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerButtonClickedEventArgs)> ButtonClicked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerButtonClickedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, global::Windows.UI.Input.RadialControllerButtonClickedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ButtonClicked += x, x => _data.ButtonClicked -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerButtonHoldingEventArgs)> ButtonHolding => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerButtonHoldingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, global::Windows.UI.Input.RadialControllerButtonHoldingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ButtonHolding += x, x => _data.ButtonHolding -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerButtonPressedEventArgs)> ButtonPressed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerButtonPressedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, global::Windows.UI.Input.RadialControllerButtonPressedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ButtonPressed += x, x => _data.ButtonPressed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerButtonReleasedEventArgs)> ButtonReleased => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerButtonReleasedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, global::Windows.UI.Input.RadialControllerButtonReleasedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ButtonReleased += x, x => _data.ButtonReleased -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerControlAcquiredEventArgs)> ControlAcquired => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerControlAcquiredEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, global::Windows.UI.Input.RadialControllerControlAcquiredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ControlAcquired += x, x => _data.ControlAcquired -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, object)> ControlLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, object)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ControlLost += x, x => _data.ControlLost -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerRotationChangedEventArgs)> RotationChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerRotationChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, global::Windows.UI.Input.RadialControllerRotationChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RotationChanged += x, x => _data.RotationChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerScreenContactContinuedEventArgs)> ScreenContactContinued => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerScreenContactContinuedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, global::Windows.UI.Input.RadialControllerScreenContactContinuedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ScreenContactContinued += x, x => _data.ScreenContactContinued -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, object)> ScreenContactEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, object)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ScreenContactEnded += x, x => _data.ScreenContactEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerScreenContactStartedEventArgs)> ScreenContactStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialController, global::Windows.UI.Input.RadialControllerScreenContactStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialController sender, global::Windows.UI.Input.RadialControllerScreenContactStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ScreenContactStarted += x, x => _data.ScreenContactStarted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RadialControllerMenuItemEvents + { + private readonly global::Windows.UI.Input.RadialControllerMenuItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RadialControllerMenuItemEvents(global::Windows.UI.Input.RadialControllerMenuItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.RadialControllerMenuItem, object)> Invoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.RadialControllerMenuItem, object)>(eventHandler => + { + void Handler(global::Windows.UI.Input.RadialControllerMenuItem sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Invoked += x, x => _data.Invoked -= x); + } +} + +namespace Windows.UI.Input.Inking +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InkPresenterEvents Events(this global::Windows.UI.Input.Inking.InkPresenter item) => new InkPresenterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InkStrokeInputEvents Events(this global::Windows.UI.Input.Inking.InkStrokeInput item) => new InkStrokeInputEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InkUnprocessedInputEvents Events(this global::Windows.UI.Input.Inking.InkUnprocessedInput item) => new InkUnprocessedInputEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InkPresenterEvents + { + private readonly global::Windows.UI.Input.Inking.InkPresenter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InkPresenterEvents(global::Windows.UI.Input.Inking.InkPresenter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkPresenter, global::Windows.UI.Input.Inking.InkStrokesCollectedEventArgs)> StrokesCollected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkPresenter, global::Windows.UI.Input.Inking.InkStrokesCollectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkPresenter sender, global::Windows.UI.Input.Inking.InkStrokesCollectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StrokesCollected += x, x => _data.StrokesCollected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkPresenter, global::Windows.UI.Input.Inking.InkStrokesErasedEventArgs)> StrokesErased => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkPresenter, global::Windows.UI.Input.Inking.InkStrokesErasedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkPresenter sender, global::Windows.UI.Input.Inking.InkStrokesErasedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StrokesErased += x, x => _data.StrokesErased -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InkStrokeInputEvents + { + private readonly global::Windows.UI.Input.Inking.InkStrokeInput _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InkStrokeInputEvents(global::Windows.UI.Input.Inking.InkStrokeInput data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkStrokeInput, global::Windows.UI.Core.PointerEventArgs)> StrokeCanceled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkStrokeInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkStrokeInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StrokeCanceled += x, x => _data.StrokeCanceled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkStrokeInput, global::Windows.UI.Core.PointerEventArgs)> StrokeContinued => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkStrokeInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkStrokeInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StrokeContinued += x, x => _data.StrokeContinued -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkStrokeInput, global::Windows.UI.Core.PointerEventArgs)> StrokeEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkStrokeInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkStrokeInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StrokeEnded += x, x => _data.StrokeEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkStrokeInput, global::Windows.UI.Core.PointerEventArgs)> StrokeStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkStrokeInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkStrokeInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.StrokeStarted += x, x => _data.StrokeStarted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InkUnprocessedInputEvents + { + private readonly global::Windows.UI.Input.Inking.InkUnprocessedInput _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InkUnprocessedInputEvents(global::Windows.UI.Input.Inking.InkUnprocessedInput data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)> PointerEntered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkUnprocessedInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerEntered += x, x => _data.PointerEntered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)> PointerExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkUnprocessedInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerExited += x, x => _data.PointerExited -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)> PointerHovered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkUnprocessedInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerHovered += x, x => _data.PointerHovered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)> PointerLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkUnprocessedInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerLost += x, x => _data.PointerLost -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)> PointerMoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkUnprocessedInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerMoved += x, x => _data.PointerMoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)> PointerPressed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkUnprocessedInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerPressed += x, x => _data.PointerPressed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)> PointerReleased => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.InkUnprocessedInput, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.InkUnprocessedInput sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerReleased += x, x => _data.PointerReleased -= x); + } +} + +namespace Windows.UI.Input.Inking.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreInkIndependentInputSourceEvents Events(this global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource item) => new CoreInkIndependentInputSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreWetStrokeUpdateSourceEvents Events(this global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource item) => new CoreWetStrokeUpdateSourceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreInkIndependentInputSourceEvents + { + private readonly global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreInkIndependentInputSourceEvents(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)> PointerEntering => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerEntering += x, x => _data.PointerEntering -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)> PointerExiting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerExiting += x, x => _data.PointerExiting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)> PointerHovering => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerHovering += x, x => _data.PointerHovering -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)> PointerLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerLost += x, x => _data.PointerLost -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)> PointerMoving => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerMoving += x, x => _data.PointerMoving -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)> PointerPressing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerPressing += x, x => _data.PointerPressing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)> PointerReleasing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource, global::Windows.UI.Core.PointerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource sender, global::Windows.UI.Core.PointerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PointerReleasing += x, x => _data.PointerReleasing -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreWetStrokeUpdateSourceEvents + { + private readonly global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreWetStrokeUpdateSourceEvents(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)> WetStrokeCanceled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource sender, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WetStrokeCanceled += x, x => _data.WetStrokeCanceled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)> WetStrokeCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource sender, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WetStrokeCompleted += x, x => _data.WetStrokeCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)> WetStrokeContinuing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource sender, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WetStrokeContinuing += x, x => _data.WetStrokeContinuing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)> WetStrokeStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource sender, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WetStrokeStarting += x, x => _data.WetStrokeStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)> WetStrokeStopping => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource sender, global::Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WetStrokeStopping += x, x => _data.WetStrokeStopping -= x); + } +} + +namespace Windows.UI.Input.Spatial +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpatialGestureRecognizerEvents Events(this global::Windows.UI.Input.Spatial.SpatialGestureRecognizer item) => new SpatialGestureRecognizerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SpatialInteractionManagerEvents Events(this global::Windows.UI.Input.Spatial.SpatialInteractionManager item) => new SpatialInteractionManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpatialGestureRecognizerEvents + { + private readonly global::Windows.UI.Input.Spatial.SpatialGestureRecognizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpatialGestureRecognizerEvents(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialHoldCanceledEventArgs)> HoldCanceled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialHoldCanceledEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialHoldCanceledEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HoldCanceled += x, x => _data.HoldCanceled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialHoldCompletedEventArgs)> HoldCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialHoldCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialHoldCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HoldCompleted += x, x => _data.HoldCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialHoldStartedEventArgs)> HoldStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialHoldStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialHoldStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HoldStarted += x, x => _data.HoldStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialManipulationCanceledEventArgs)> ManipulationCanceled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialManipulationCanceledEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialManipulationCanceledEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ManipulationCanceled += x, x => _data.ManipulationCanceled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialManipulationCompletedEventArgs)> ManipulationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialManipulationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialManipulationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ManipulationCompleted += x, x => _data.ManipulationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialManipulationStartedEventArgs)> ManipulationStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialManipulationStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialManipulationStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ManipulationStarted += x, x => _data.ManipulationStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialManipulationUpdatedEventArgs)> ManipulationUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialManipulationUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialManipulationUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ManipulationUpdated += x, x => _data.ManipulationUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialNavigationCanceledEventArgs)> NavigationCanceled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialNavigationCanceledEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialNavigationCanceledEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationCanceled += x, x => _data.NavigationCanceled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialNavigationCompletedEventArgs)> NavigationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialNavigationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialNavigationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationCompleted += x, x => _data.NavigationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialNavigationStartedEventArgs)> NavigationStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialNavigationStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialNavigationStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationStarted += x, x => _data.NavigationStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialNavigationUpdatedEventArgs)> NavigationUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialNavigationUpdatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialNavigationUpdatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationUpdated += x, x => _data.NavigationUpdated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialRecognitionEndedEventArgs)> RecognitionEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialRecognitionEndedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialRecognitionEndedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RecognitionEnded += x, x => _data.RecognitionEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialRecognitionStartedEventArgs)> RecognitionStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialRecognitionStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialRecognitionStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RecognitionStarted += x, x => _data.RecognitionStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialTappedEventArgs)> Tapped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialGestureRecognizer, global::Windows.UI.Input.Spatial.SpatialTappedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialGestureRecognizer sender, global::Windows.UI.Input.Spatial.SpatialTappedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Tapped += x, x => _data.Tapped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SpatialInteractionManagerEvents + { + private readonly global::Windows.UI.Input.Spatial.SpatialInteractionManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SpatialInteractionManagerEvents(global::Windows.UI.Input.Spatial.SpatialInteractionManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionDetectedEventArgs)> InteractionDetected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionDetectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialInteractionManager sender, global::Windows.UI.Input.Spatial.SpatialInteractionDetectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.InteractionDetected += x, x => _data.InteractionDetected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)> SourceDetected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialInteractionManager sender, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceDetected += x, x => _data.SourceDetected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)> SourceLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialInteractionManager sender, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceLost += x, x => _data.SourceLost -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)> SourcePressed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialInteractionManager sender, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourcePressed += x, x => _data.SourcePressed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)> SourceReleased => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialInteractionManager sender, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceReleased += x, x => _data.SourceReleased -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)> SourceUpdated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Input.Spatial.SpatialInteractionManager, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Input.Spatial.SpatialInteractionManager sender, global::Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SourceUpdated += x, x => _data.SourceUpdated -= x); + } +} + +namespace Windows.UI.Notifications +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToastNotificationEvents Events(this global::Windows.UI.Notifications.ToastNotification item) => new ToastNotificationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToastNotifierEvents Events(this global::Windows.UI.Notifications.ToastNotifier item) => new ToastNotifierEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToastNotificationEvents + { + private readonly global::Windows.UI.Notifications.ToastNotification _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToastNotificationEvents(global::Windows.UI.Notifications.ToastNotification data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Notifications.ToastNotification, object)> Activated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Notifications.ToastNotification, object)>(eventHandler => + { + void Handler(global::Windows.UI.Notifications.ToastNotification sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Activated += x, x => _data.Activated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Notifications.ToastNotification, global::Windows.UI.Notifications.ToastDismissedEventArgs)> Dismissed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Notifications.ToastNotification, global::Windows.UI.Notifications.ToastDismissedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Notifications.ToastNotification sender, global::Windows.UI.Notifications.ToastDismissedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Dismissed += x, x => _data.Dismissed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Notifications.ToastNotification, global::Windows.UI.Notifications.ToastFailedEventArgs)> Failed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Notifications.ToastNotification, global::Windows.UI.Notifications.ToastFailedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Notifications.ToastNotification sender, global::Windows.UI.Notifications.ToastFailedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Failed += x, x => _data.Failed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToastNotifierEvents + { + private readonly global::Windows.UI.Notifications.ToastNotifier _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToastNotifierEvents(global::Windows.UI.Notifications.ToastNotifier data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Notifications.ToastNotifier, global::Windows.UI.Notifications.ScheduledToastNotificationShowingEventArgs)> ScheduledToastNotificationShowing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Notifications.ToastNotifier, global::Windows.UI.Notifications.ScheduledToastNotificationShowingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Notifications.ToastNotifier sender, global::Windows.UI.Notifications.ScheduledToastNotificationShowingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ScheduledToastNotificationShowing += x, x => _data.ScheduledToastNotificationShowing -= x); + } +} + +namespace Windows.UI.Notifications.Management +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UserNotificationListenerEvents Events(this global::Windows.UI.Notifications.Management.UserNotificationListener item) => new UserNotificationListenerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UserNotificationListenerEvents + { + private readonly global::Windows.UI.Notifications.Management.UserNotificationListener _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UserNotificationListenerEvents(global::Windows.UI.Notifications.Management.UserNotificationListener data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Notifications.Management.UserNotificationListener, global::Windows.UI.Notifications.UserNotificationChangedEventArgs)> NotificationChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Notifications.Management.UserNotificationListener, global::Windows.UI.Notifications.UserNotificationChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Notifications.Management.UserNotificationListener sender, global::Windows.UI.Notifications.UserNotificationChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NotificationChanged += x, x => _data.NotificationChanged -= x); + } +} + +namespace Windows.UI.StartScreen +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SecondaryTileEvents Events(this global::Windows.UI.StartScreen.SecondaryTile item) => new SecondaryTileEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SecondaryTileEvents + { + private readonly global::Windows.UI.StartScreen.SecondaryTile _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SecondaryTileEvents(global::Windows.UI.StartScreen.SecondaryTile data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.StartScreen.SecondaryTile, global::Windows.UI.StartScreen.VisualElementsRequestedEventArgs)> VisualElementsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.StartScreen.SecondaryTile, global::Windows.UI.StartScreen.VisualElementsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.StartScreen.SecondaryTile sender, global::Windows.UI.StartScreen.VisualElementsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VisualElementsRequested += x, x => _data.VisualElementsRequested -= x); + } +} + +namespace Windows.UI.Text.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreTextEditContextEvents Events(this global::Windows.UI.Text.Core.CoreTextEditContext item) => new CoreTextEditContextEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreTextServicesManagerEvents Events(this global::Windows.UI.Text.Core.CoreTextServicesManager item) => new CoreTextServicesManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreTextEditContextEvents + { + private readonly global::Windows.UI.Text.Core.CoreTextEditContext _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreTextEditContextEvents(global::Windows.UI.Text.Core.CoreTextEditContext data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextCompositionCompletedEventArgs)> CompositionCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextCompositionCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, global::Windows.UI.Text.Core.CoreTextCompositionCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CompositionCompleted += x, x => _data.CompositionCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextCompositionStartedEventArgs)> CompositionStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextCompositionStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, global::Windows.UI.Text.Core.CoreTextCompositionStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CompositionStarted += x, x => _data.CompositionStarted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, object)> FocusRemoved => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, object)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FocusRemoved += x, x => _data.FocusRemoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextFormatUpdatingEventArgs)> FormatUpdating => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextFormatUpdatingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, global::Windows.UI.Text.Core.CoreTextFormatUpdatingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FormatUpdating += x, x => _data.FormatUpdating -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextLayoutRequestedEventArgs)> LayoutRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextLayoutRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, global::Windows.UI.Text.Core.CoreTextLayoutRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LayoutRequested += x, x => _data.LayoutRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, object)> NotifyFocusLeaveCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, object)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NotifyFocusLeaveCompleted += x, x => _data.NotifyFocusLeaveCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextSelectionRequestedEventArgs)> SelectionRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextSelectionRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, global::Windows.UI.Text.Core.CoreTextSelectionRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectionRequested += x, x => _data.SelectionRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextSelectionUpdatingEventArgs)> SelectionUpdating => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextSelectionUpdatingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, global::Windows.UI.Text.Core.CoreTextSelectionUpdatingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectionUpdating += x, x => _data.SelectionUpdating -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextTextRequestedEventArgs)> TextRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextTextRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, global::Windows.UI.Text.Core.CoreTextTextRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextRequested += x, x => _data.TextRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextTextUpdatingEventArgs)> TextUpdating => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextEditContext, global::Windows.UI.Text.Core.CoreTextTextUpdatingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextEditContext sender, global::Windows.UI.Text.Core.CoreTextTextUpdatingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextUpdating += x, x => _data.TextUpdating -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreTextServicesManagerEvents + { + private readonly global::Windows.UI.Text.Core.CoreTextServicesManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreTextServicesManagerEvents(global::Windows.UI.Text.Core.CoreTextServicesManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Text.Core.CoreTextServicesManager, object)> InputLanguageChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Text.Core.CoreTextServicesManager, object)>(eventHandler => + { + void Handler(global::Windows.UI.Text.Core.CoreTextServicesManager sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.InputLanguageChanged += x, x => _data.InputLanguageChanged -= x); + } +} + +namespace Windows.UI.ViewManagement +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AccessibilitySettingsEvents Events(this global::Windows.UI.ViewManagement.AccessibilitySettings item) => new AccessibilitySettingsEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ApplicationViewEvents Events(this global::Windows.UI.ViewManagement.ApplicationView item) => new ApplicationViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InputPaneEvents Events(this global::Windows.UI.ViewManagement.InputPane item) => new InputPaneEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StatusBarEvents Events(this global::Windows.UI.ViewManagement.StatusBar item) => new StatusBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UISettingsEvents Events(this global::Windows.UI.ViewManagement.UISettings item) => new UISettingsEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AccessibilitySettingsEvents + { + private readonly global::Windows.UI.ViewManagement.AccessibilitySettings _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AccessibilitySettingsEvents(global::Windows.UI.ViewManagement.AccessibilitySettings data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.AccessibilitySettings, object)> HighContrastChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.AccessibilitySettings, object)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.AccessibilitySettings sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HighContrastChanged += x, x => _data.HighContrastChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ApplicationViewEvents + { + private readonly global::Windows.UI.ViewManagement.ApplicationView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ApplicationViewEvents(global::Windows.UI.ViewManagement.ApplicationView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.ApplicationView, global::Windows.UI.ViewManagement.ApplicationViewConsolidatedEventArgs)> Consolidated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.ApplicationView, global::Windows.UI.ViewManagement.ApplicationViewConsolidatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.ApplicationView sender, global::Windows.UI.ViewManagement.ApplicationViewConsolidatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Consolidated += x, x => _data.Consolidated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.ApplicationView, object)> VisibleBoundsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.ApplicationView, object)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.ApplicationView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.VisibleBoundsChanged += x, x => _data.VisibleBoundsChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InputPaneEvents + { + private readonly global::Windows.UI.ViewManagement.InputPane _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InputPaneEvents(global::Windows.UI.ViewManagement.InputPane data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.InputPane, global::Windows.UI.ViewManagement.InputPaneVisibilityEventArgs)> Hiding => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.InputPane, global::Windows.UI.ViewManagement.InputPaneVisibilityEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.InputPane sender, global::Windows.UI.ViewManagement.InputPaneVisibilityEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Hiding += x, x => _data.Hiding -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.InputPane, global::Windows.UI.ViewManagement.InputPaneVisibilityEventArgs)> Showing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.InputPane, global::Windows.UI.ViewManagement.InputPaneVisibilityEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.InputPane sender, global::Windows.UI.ViewManagement.InputPaneVisibilityEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Showing += x, x => _data.Showing -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StatusBarEvents + { + private readonly global::Windows.UI.ViewManagement.StatusBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StatusBarEvents(global::Windows.UI.ViewManagement.StatusBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.StatusBar, object)> Hiding => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.StatusBar, object)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.StatusBar sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Hiding += x, x => _data.Hiding -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.StatusBar, object)> Showing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.StatusBar, object)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.StatusBar sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Showing += x, x => _data.Showing -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UISettingsEvents + { + private readonly global::Windows.UI.ViewManagement.UISettings _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UISettingsEvents(global::Windows.UI.ViewManagement.UISettings data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.UISettings, object)> AdvancedEffectsEnabledChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.UISettings, object)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.UISettings sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AdvancedEffectsEnabledChanged += x, x => _data.AdvancedEffectsEnabledChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.UISettings, object)> ColorValuesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.UISettings, object)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.UISettings sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ColorValuesChanged += x, x => _data.ColorValuesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.UISettings, object)> TextScaleFactorChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.UISettings, object)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.UISettings sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextScaleFactorChanged += x, x => _data.TextScaleFactorChanged -= x); + } +} + +namespace Windows.UI.ViewManagement.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CoreInputViewEvents Events(this global::Windows.UI.ViewManagement.Core.CoreInputView item) => new CoreInputViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CoreInputViewEvents + { + private readonly global::Windows.UI.ViewManagement.Core.CoreInputView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CoreInputViewEvents(global::Windows.UI.ViewManagement.Core.CoreInputView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.Core.CoreInputView, global::Windows.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs)> OcclusionsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.Core.CoreInputView, global::Windows.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.Core.CoreInputView sender, global::Windows.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OcclusionsChanged += x, x => _data.OcclusionsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.Core.CoreInputView, object)> XYFocusTransferredToPrimaryView => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.Core.CoreInputView, object)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.Core.CoreInputView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.XYFocusTransferredToPrimaryView += x, x => _data.XYFocusTransferredToPrimaryView -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.ViewManagement.Core.CoreInputView, global::Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs)> XYFocusTransferringFromPrimaryView => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.ViewManagement.Core.CoreInputView, global::Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.ViewManagement.Core.CoreInputView sender, global::Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.XYFocusTransferringFromPrimaryView += x, x => _data.XYFocusTransferringFromPrimaryView -= x); + } +} + +namespace Windows.UI.WebUI +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebUIBackgroundTaskInstanceRuntimeClassEvents Events(this global::Windows.UI.WebUI.WebUIBackgroundTaskInstanceRuntimeClass item) => new WebUIBackgroundTaskInstanceRuntimeClassEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebUIViewEvents Events(this global::Windows.UI.WebUI.WebUIView item) => new WebUIViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebUIBackgroundTaskInstanceRuntimeClassEvents + { + private readonly global::Windows.UI.WebUI.WebUIBackgroundTaskInstanceRuntimeClass _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebUIBackgroundTaskInstanceRuntimeClassEvents(global::Windows.UI.WebUI.WebUIBackgroundTaskInstanceRuntimeClass data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.ApplicationModel.Background.IBackgroundTaskInstance, global::Windows.ApplicationModel.Background.BackgroundTaskCancellationReason)> Canceled => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.ApplicationModel.Background.IBackgroundTaskInstance sender, global::Windows.ApplicationModel.Background.BackgroundTaskCancellationReason reason) => eventHandler((sender, reason)); + return Handler; + } + + , x => _data.Canceled += x, x => _data.Canceled -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebUIViewEvents + { + private readonly global::Windows.UI.WebUI.WebUIView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebUIViewEvents(global::Windows.UI.WebUI.WebUIView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.WebUI.WebUIView, global::Windows.ApplicationModel.Activation.IActivatedEventArgs)> Activated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.WebUI.WebUIView, global::Windows.ApplicationModel.Activation.IActivatedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.WebUI.WebUIView sender, global::Windows.ApplicationModel.Activation.IActivatedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Activated += x, x => _data.Activated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.WebUI.WebUIView, object)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.WebUI.WebUIView, object)>(eventHandler => + { + void Handler(global::Windows.UI.WebUI.WebUIView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, object)> ContainsFullScreenElementChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, object)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContainsFullScreenElementChanged += x, x => _data.ContainsFullScreenElementChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)> ContentLoading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentLoading += x, x => _data.ContentLoading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)> DOMContentLoaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DOMContentLoaded += x, x => _data.DOMContentLoaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)> FrameContentLoading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameContentLoading += x, x => _data.FrameContentLoading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)> FrameDOMContentLoaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameDOMContentLoaded += x, x => _data.FrameDOMContentLoaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)> FrameNavigationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameNavigationCompleted += x, x => _data.FrameNavigationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)> FrameNavigationStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameNavigationStarting += x, x => _data.FrameNavigationStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs)> LongRunningScriptDetected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LongRunningScriptDetected += x, x => _data.LongRunningScriptDetected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)> NavigationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationCompleted += x, x => _data.NavigationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)> NavigationStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationStarting += x, x => _data.NavigationStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs)> NewWindowRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NewWindowRequested += x, x => _data.NewWindowRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlPermissionRequestedEventArgs)> PermissionRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlPermissionRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlPermissionRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PermissionRequested += x, x => _data.PermissionRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlScriptNotifyEventArgs)> ScriptNotify => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlScriptNotifyEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlScriptNotifyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ScriptNotify += x, x => _data.ScriptNotify -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, object)> UnsafeContentWarningDisplaying => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, object)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnsafeContentWarningDisplaying += x, x => _data.UnsafeContentWarningDisplaying -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs)> UnsupportedUriSchemeIdentified => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnsupportedUriSchemeIdentified += x, x => _data.UnsupportedUriSchemeIdentified -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs)> UnviewableContentIdentified => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnviewableContentIdentified += x, x => _data.UnviewableContentIdentified -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs)> WebResourceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WebResourceRequested += x, x => _data.WebResourceRequested -= x); + } +} + +namespace Windows.UI.WebUI.Core +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebUICommandBarEvents Events(this global::Windows.UI.WebUI.Core.WebUICommandBar item) => new WebUICommandBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebUICommandBarConfirmationButtonEvents Events(this global::Windows.UI.WebUI.Core.WebUICommandBarConfirmationButton item) => new WebUICommandBarConfirmationButtonEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebUICommandBarIconButtonEvents Events(this global::Windows.UI.WebUI.Core.WebUICommandBarIconButton item) => new WebUICommandBarIconButtonEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebUICommandBarEvents + { + private readonly global::Windows.UI.WebUI.Core.WebUICommandBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebUICommandBarEvents(global::Windows.UI.WebUI.Core.WebUICommandBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuClosed => global::System.Reactive.Linq.Observable.FromEvent(x => _data.MenuClosed += x, x => _data.MenuClosed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuOpened => global::System.Reactive.Linq.Observable.FromEvent(x => _data.MenuOpened += x, x => _data.MenuOpened -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SizeChanged => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.UI.WebUI.Core.WebUICommandBarSizeChangedEventArgs eventArgs) => eventHandler(eventArgs); + return Handler; + } + + , x => _data.SizeChanged += x, x => _data.SizeChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebUICommandBarConfirmationButtonEvents + { + private readonly global::Windows.UI.WebUI.Core.WebUICommandBarConfirmationButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebUICommandBarConfirmationButtonEvents(global::Windows.UI.WebUI.Core.WebUICommandBarConfirmationButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.WebUI.Core.WebUICommandBarConfirmationButton, global::Windows.UI.WebUI.Core.WebUICommandBarItemInvokedEventArgs)> ItemInvoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.WebUI.Core.WebUICommandBarConfirmationButton, global::Windows.UI.WebUI.Core.WebUICommandBarItemInvokedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.WebUI.Core.WebUICommandBarConfirmationButton sender, global::Windows.UI.WebUI.Core.WebUICommandBarItemInvokedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemInvoked += x, x => _data.ItemInvoked -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebUICommandBarIconButtonEvents + { + private readonly global::Windows.UI.WebUI.Core.WebUICommandBarIconButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebUICommandBarIconButtonEvents(global::Windows.UI.WebUI.Core.WebUICommandBarIconButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.WebUI.Core.WebUICommandBarIconButton, global::Windows.UI.WebUI.Core.WebUICommandBarItemInvokedEventArgs)> ItemInvoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.WebUI.Core.WebUICommandBarIconButton, global::Windows.UI.WebUI.Core.WebUICommandBarItemInvokedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.WebUI.Core.WebUICommandBarIconButton sender, global::Windows.UI.WebUI.Core.WebUICommandBarItemInvokedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemInvoked += x, x => _data.ItemInvoked -= x); + } +} + +namespace Windows.UI.Xaml +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ApplicationEvents Events(this global::Windows.UI.Xaml.Application item) => new ApplicationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DebugSettingsEvents Events(this global::Windows.UI.Xaml.DebugSettings item) => new DebugSettingsEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DependencyObjectCollectionEvents Events(this global::Windows.UI.Xaml.DependencyObjectCollection item) => new DependencyObjectCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DispatcherTimerEvents Events(this global::Windows.UI.Xaml.DispatcherTimer item) => new DispatcherTimerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FrameworkElementEvents Events(this global::Windows.UI.Xaml.FrameworkElement item) => new FrameworkElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIElementEvents Events(this global::Windows.UI.Xaml.UIElement item) => new UIElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VisualStateGroupEvents Events(this global::Windows.UI.Xaml.VisualStateGroup item) => new VisualStateGroupEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WindowEvents Events(this global::Windows.UI.Xaml.Window item) => new WindowEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ApplicationEvents + { + private readonly global::Windows.UI.Xaml.Application _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ApplicationEvents(global::Windows.UI.Xaml.Application data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EnteredBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EnteredBackground += x, x => _data.EnteredBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LeavingBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LeavingBackground += x, x => _data.LeavingBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Resuming => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Resuming += x, x => _data.Resuming -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Suspending => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Suspending += x, x => _data.Suspending -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UnhandledException => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UnhandledException += x, x => _data.UnhandledException -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DebugSettingsEvents + { + private readonly global::Windows.UI.Xaml.DebugSettings _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DebugSettingsEvents(global::Windows.UI.Xaml.DebugSettings data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BindingFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BindingFailed += x, x => _data.BindingFailed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DependencyObjectCollectionEvents + { + private readonly global::Windows.UI.Xaml.DependencyObjectCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DependencyObjectCollectionEvents(global::Windows.UI.Xaml.DependencyObjectCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Collections.IObservableVector, global::Windows.Foundation.Collections.IVectorChangedEventArgs)> VectorChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Collections.IObservableVector, global::Windows.Foundation.Collections.IVectorChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Collections.IObservableVector sender, global::Windows.Foundation.Collections.IVectorChangedEventArgs event) => eventHandler((sender, event)); + return Handler; + } + + , x => _data.VectorChanged += x, x => _data.VectorChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DispatcherTimerEvents + { + private readonly global::Windows.UI.Xaml.DispatcherTimer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DispatcherTimerEvents(global::Windows.UI.Xaml.DispatcherTimer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Tick => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Tick += x, x => _data.Tick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FrameworkElementEvents + { + private readonly global::Windows.UI.Xaml.FrameworkElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FrameworkElementEvents(global::Windows.UI.Xaml.FrameworkElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.FrameworkElement, object)> ActualThemeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.FrameworkElement, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.FrameworkElement sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ActualThemeChanged += x, x => _data.ActualThemeChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.FrameworkElement, global::Windows.UI.Xaml.DataContextChangedEventArgs)> DataContextChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.FrameworkElement, global::Windows.UI.Xaml.DataContextChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DataContextChanged += x, x => _data.DataContextChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.FrameworkElement, global::Windows.UI.Xaml.EffectiveViewportChangedEventArgs)> EffectiveViewportChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.FrameworkElement, global::Windows.UI.Xaml.EffectiveViewportChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.EffectiveViewportChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EffectiveViewportChanged += x, x => _data.EffectiveViewportChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LayoutUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.LayoutUpdated += x, x => _data.LayoutUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Loaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Loaded += x, x => _data.Loaded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.FrameworkElement, object)> Loading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.FrameworkElement, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.FrameworkElement sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Loading += x, x => _data.Loading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SizeChanged += x, x => _data.SizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unloaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unloaded += x, x => _data.Unloaded -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIElementEvents + { + private readonly global::Windows.UI.Xaml.UIElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIElementEvents(global::Windows.UI.Xaml.UIElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.AccessKeyDisplayDismissedEventArgs)> AccessKeyDisplayDismissed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.AccessKeyDisplayDismissedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.Input.AccessKeyDisplayDismissedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccessKeyDisplayDismissed += x, x => _data.AccessKeyDisplayDismissed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.AccessKeyDisplayRequestedEventArgs)> AccessKeyDisplayRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.AccessKeyDisplayRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.Input.AccessKeyDisplayRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccessKeyDisplayRequested += x, x => _data.AccessKeyDisplayRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.AccessKeyInvokedEventArgs)> AccessKeyInvoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.AccessKeyInvokedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.Input.AccessKeyInvokedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccessKeyInvoked += x, x => _data.AccessKeyInvoked -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.BringIntoViewRequestedEventArgs)> BringIntoViewRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.BringIntoViewRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.BringIntoViewRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BringIntoViewRequested += x, x => _data.BringIntoViewRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.CharacterReceivedRoutedEventArgs)> CharacterReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.CharacterReceivedRoutedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.Input.CharacterReceivedRoutedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CharacterReceived += x, x => _data.CharacterReceived -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.RoutedEventArgs)> ContextCanceled => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.RoutedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.RoutedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContextCanceled += x, x => _data.ContextCanceled -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.ContextRequestedEventArgs)> ContextRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.ContextRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.Input.ContextRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContextRequested += x, x => _data.ContextRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleTapped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleTapped += x, x => _data.DoubleTapped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnter += x, x => _data.DragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.DragStartingEventArgs)> DragStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.DragStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.DragStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DragStarting += x, x => _data.DragStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Drop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Drop += x, x => _data.Drop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.DropCompletedEventArgs)> DropCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.DropCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.DropCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DropCompleted += x, x => _data.DropCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.GettingFocusEventArgs)> GettingFocus => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.GettingFocusEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.Input.GettingFocusEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GettingFocus += x, x => _data.GettingFocus -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Holding => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Holding += x, x => _data.Holding -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.LosingFocusEventArgs)> LosingFocus => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.LosingFocusEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.Input.LosingFocusEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LosingFocus += x, x => _data.LosingFocus -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ManipulationCompleted += x, x => _data.ManipulationCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationDelta => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ManipulationDelta += x, x => _data.ManipulationDelta -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationInertiaStarting => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ManipulationInertiaStarting += x, x => _data.ManipulationInertiaStarting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ManipulationStarted += x, x => _data.ManipulationStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationStarting => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ManipulationStarting += x, x => _data.ManipulationStarting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.NoFocusCandidateFoundEventArgs)> NoFocusCandidateFound => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.NoFocusCandidateFoundEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.Input.NoFocusCandidateFoundEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NoFocusCandidateFound += x, x => _data.NoFocusCandidateFound -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerCanceled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PointerCanceled += x, x => _data.PointerCanceled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerCaptureLost => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PointerCaptureLost += x, x => _data.PointerCaptureLost -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerEntered => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PointerEntered += x, x => _data.PointerEntered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerExited => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PointerExited += x, x => _data.PointerExited -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerMoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PointerMoved += x, x => _data.PointerMoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerPressed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PointerPressed += x, x => _data.PointerPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerReleased => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PointerReleased += x, x => _data.PointerReleased -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PointerWheelChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PointerWheelChanged += x, x => _data.PointerWheelChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyDown += x, x => _data.PreviewKeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyUp += x, x => _data.PreviewKeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.ProcessKeyboardAcceleratorEventArgs)> ProcessKeyboardAccelerators => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.UIElement, global::Windows.UI.Xaml.Input.ProcessKeyboardAcceleratorEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.UIElement sender, global::Windows.UI.Xaml.Input.ProcessKeyboardAcceleratorEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ProcessKeyboardAccelerators += x, x => _data.ProcessKeyboardAccelerators -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightTapped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightTapped += x, x => _data.RightTapped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Tapped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Tapped += x, x => _data.Tapped -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VisualStateGroupEvents + { + private readonly global::Windows.UI.Xaml.VisualStateGroup _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VisualStateGroupEvents(global::Windows.UI.Xaml.VisualStateGroup data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentStateChanged += x, x => _data.CurrentStateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentStateChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentStateChanging += x, x => _data.CurrentStateChanging -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WindowEvents + { + private readonly global::Windows.UI.Xaml.Window _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WindowEvents(global::Windows.UI.Xaml.Window data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SizeChanged += x, x => _data.SizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VisibilityChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.VisibilityChanged += x, x => _data.VisibilityChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.UI.Xaml.Controls +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AppBarEvents Events(this global::Windows.UI.Xaml.Controls.AppBar item) => new AppBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AutoSuggestBoxEvents Events(this global::Windows.UI.Xaml.Controls.AutoSuggestBox item) => new AutoSuggestBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CalendarDatePickerEvents Events(this global::Windows.UI.Xaml.Controls.CalendarDatePicker item) => new CalendarDatePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CalendarViewEvents Events(this global::Windows.UI.Xaml.Controls.CalendarView item) => new CalendarViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ColorPickerEvents Events(this global::Windows.UI.Xaml.Controls.ColorPicker item) => new ColorPickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ComboBoxEvents Events(this global::Windows.UI.Xaml.Controls.ComboBox item) => new ComboBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CommandBarEvents Events(this global::Windows.UI.Xaml.Controls.CommandBar item) => new CommandBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContentDialogEvents Events(this global::Windows.UI.Xaml.Controls.ContentDialog item) => new ContentDialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ControlEvents Events(this global::Windows.UI.Xaml.Controls.Control item) => new ControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DatePickerEvents Events(this global::Windows.UI.Xaml.Controls.DatePicker item) => new DatePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DatePickerFlyoutEvents Events(this global::Windows.UI.Xaml.Controls.DatePickerFlyout item) => new DatePickerFlyoutEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FrameEvents Events(this global::Windows.UI.Xaml.Controls.Frame item) => new FrameEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HandwritingViewEvents Events(this global::Windows.UI.Xaml.Controls.HandwritingView item) => new HandwritingViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HubEvents Events(this global::Windows.UI.Xaml.Controls.Hub item) => new HubEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ImageEvents Events(this global::Windows.UI.Xaml.Controls.Image item) => new ImageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InkToolbarEvents Events(this global::Windows.UI.Xaml.Controls.InkToolbar item) => new InkToolbarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InkToolbarFlyoutItemEvents Events(this global::Windows.UI.Xaml.Controls.InkToolbarFlyoutItem item) => new InkToolbarFlyoutItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ItemCollectionEvents Events(this global::Windows.UI.Xaml.Controls.ItemCollection item) => new ItemCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ItemContainerGeneratorEvents Events(this global::Windows.UI.Xaml.Controls.ItemContainerGenerator item) => new ItemContainerGeneratorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ItemsPresenterEvents Events(this global::Windows.UI.Xaml.Controls.ItemsPresenter item) => new ItemsPresenterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ListPickerFlyoutEvents Events(this global::Windows.UI.Xaml.Controls.ListPickerFlyout item) => new ListPickerFlyoutEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ListViewBaseEvents Events(this global::Windows.UI.Xaml.Controls.ListViewBase item) => new ListViewBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaElementEvents Events(this global::Windows.UI.Xaml.Controls.MediaElement item) => new MediaElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaTransportControlsEvents Events(this global::Windows.UI.Xaml.Controls.MediaTransportControls item) => new MediaTransportControlsEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MenuFlyoutItemEvents Events(this global::Windows.UI.Xaml.Controls.MenuFlyoutItem item) => new MenuFlyoutItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NavigationViewEvents Events(this global::Windows.UI.Xaml.Controls.NavigationView item) => new NavigationViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PasswordBoxEvents Events(this global::Windows.UI.Xaml.Controls.PasswordBox item) => new PasswordBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PickerFlyoutEvents Events(this global::Windows.UI.Xaml.Controls.PickerFlyout item) => new PickerFlyoutEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PivotEvents Events(this global::Windows.UI.Xaml.Controls.Pivot item) => new PivotEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RatingControlEvents Events(this global::Windows.UI.Xaml.Controls.RatingControl item) => new RatingControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RefreshContainerEvents Events(this global::Windows.UI.Xaml.Controls.RefreshContainer item) => new RefreshContainerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RefreshVisualizerEvents Events(this global::Windows.UI.Xaml.Controls.RefreshVisualizer item) => new RefreshVisualizerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RichEditBoxEvents Events(this global::Windows.UI.Xaml.Controls.RichEditBox item) => new RichEditBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RichTextBlockEvents Events(this global::Windows.UI.Xaml.Controls.RichTextBlock item) => new RichTextBlockEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RichTextBlockOverflowEvents Events(this global::Windows.UI.Xaml.Controls.RichTextBlockOverflow item) => new RichTextBlockOverflowEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ScrollViewerEvents Events(this global::Windows.UI.Xaml.Controls.ScrollViewer item) => new ScrollViewerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SearchBoxEvents Events(this global::Windows.UI.Xaml.Controls.SearchBox item) => new SearchBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SemanticZoomEvents Events(this global::Windows.UI.Xaml.Controls.SemanticZoom item) => new SemanticZoomEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SettingsFlyoutEvents Events(this global::Windows.UI.Xaml.Controls.SettingsFlyout item) => new SettingsFlyoutEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SplitButtonEvents Events(this global::Windows.UI.Xaml.Controls.SplitButton item) => new SplitButtonEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SplitViewEvents Events(this global::Windows.UI.Xaml.Controls.SplitView item) => new SplitViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StackPanelEvents Events(this global::Windows.UI.Xaml.Controls.StackPanel item) => new StackPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SwapChainPanelEvents Events(this global::Windows.UI.Xaml.Controls.SwapChainPanel item) => new SwapChainPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SwipeItemEvents Events(this global::Windows.UI.Xaml.Controls.SwipeItem item) => new SwipeItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TextBlockEvents Events(this global::Windows.UI.Xaml.Controls.TextBlock item) => new TextBlockEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TextBoxEvents Events(this global::Windows.UI.Xaml.Controls.TextBox item) => new TextBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TimePickerEvents Events(this global::Windows.UI.Xaml.Controls.TimePicker item) => new TimePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TimePickerFlyoutEvents Events(this global::Windows.UI.Xaml.Controls.TimePickerFlyout item) => new TimePickerFlyoutEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToggleSplitButtonEvents Events(this global::Windows.UI.Xaml.Controls.ToggleSplitButton item) => new ToggleSplitButtonEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToggleSwitchEvents Events(this global::Windows.UI.Xaml.Controls.ToggleSwitch item) => new ToggleSwitchEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolTipEvents Events(this global::Windows.UI.Xaml.Controls.ToolTip item) => new ToolTipEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TreeViewEvents Events(this global::Windows.UI.Xaml.Controls.TreeView item) => new TreeViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VirtualizingStackPanelEvents Events(this global::Windows.UI.Xaml.Controls.VirtualizingStackPanel item) => new VirtualizingStackPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebViewEvents Events(this global::Windows.UI.Xaml.Controls.WebView item) => new WebViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AppBarEvents + { + private readonly global::Windows.UI.Xaml.Controls.AppBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AppBarEvents(global::Windows.UI.Xaml.Controls.AppBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closing => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Closing += x, x => _data.Closing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opened => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Opened += x, x => _data.Opened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opening => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Opening += x, x => _data.Opening -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AutoSuggestBoxEvents + { + private readonly global::Windows.UI.Xaml.Controls.AutoSuggestBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AutoSuggestBoxEvents(global::Windows.UI.Xaml.Controls.AutoSuggestBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.AutoSuggestBox, global::Windows.UI.Xaml.Controls.AutoSuggestBoxQuerySubmittedEventArgs)> QuerySubmitted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.AutoSuggestBox, global::Windows.UI.Xaml.Controls.AutoSuggestBoxQuerySubmittedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.AutoSuggestBox sender, global::Windows.UI.Xaml.Controls.AutoSuggestBoxQuerySubmittedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.QuerySubmitted += x, x => _data.QuerySubmitted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.AutoSuggestBox, global::Windows.UI.Xaml.Controls.AutoSuggestBoxSuggestionChosenEventArgs)> SuggestionChosen => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.AutoSuggestBox, global::Windows.UI.Xaml.Controls.AutoSuggestBoxSuggestionChosenEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.AutoSuggestBox sender, global::Windows.UI.Xaml.Controls.AutoSuggestBoxSuggestionChosenEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SuggestionChosen += x, x => _data.SuggestionChosen -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.AutoSuggestBox, global::Windows.UI.Xaml.Controls.AutoSuggestBoxTextChangedEventArgs)> TextChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.AutoSuggestBox, global::Windows.UI.Xaml.Controls.AutoSuggestBoxTextChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.AutoSuggestBox sender, global::Windows.UI.Xaml.Controls.AutoSuggestBoxTextChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextChanged += x, x => _data.TextChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CalendarDatePickerEvents + { + private readonly global::Windows.UI.Xaml.Controls.CalendarDatePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CalendarDatePickerEvents(global::Windows.UI.Xaml.Controls.CalendarDatePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.CalendarView, global::Windows.UI.Xaml.Controls.CalendarViewDayItemChangingEventArgs)> CalendarViewDayItemChanging => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.CalendarView sender, global::Windows.UI.Xaml.Controls.CalendarViewDayItemChangingEventArgs e) => eventHandler((sender, e)); + return Handler; + } + + , x => _data.CalendarViewDayItemChanging += x, x => _data.CalendarViewDayItemChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.CalendarDatePicker, global::Windows.UI.Xaml.Controls.CalendarDatePickerDateChangedEventArgs)> DateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.CalendarDatePicker, global::Windows.UI.Xaml.Controls.CalendarDatePickerDateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.CalendarDatePicker sender, global::Windows.UI.Xaml.Controls.CalendarDatePickerDateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DateChanged += x, x => _data.DateChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opened => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Opened += x, x => _data.Opened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CalendarViewEvents + { + private readonly global::Windows.UI.Xaml.Controls.CalendarView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CalendarViewEvents(global::Windows.UI.Xaml.Controls.CalendarView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.CalendarView, global::Windows.UI.Xaml.Controls.CalendarViewDayItemChangingEventArgs)> CalendarViewDayItemChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.CalendarView, global::Windows.UI.Xaml.Controls.CalendarViewDayItemChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.CalendarView sender, global::Windows.UI.Xaml.Controls.CalendarViewDayItemChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CalendarViewDayItemChanging += x, x => _data.CalendarViewDayItemChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.CalendarView, global::Windows.UI.Xaml.Controls.CalendarViewSelectedDatesChangedEventArgs)> SelectedDatesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.CalendarView, global::Windows.UI.Xaml.Controls.CalendarViewSelectedDatesChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.CalendarView sender, global::Windows.UI.Xaml.Controls.CalendarViewSelectedDatesChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectedDatesChanged += x, x => _data.SelectedDatesChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ColorPickerEvents + { + private readonly global::Windows.UI.Xaml.Controls.ColorPicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ColorPickerEvents(global::Windows.UI.Xaml.Controls.ColorPicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ColorPicker, global::Windows.UI.Xaml.Controls.ColorChangedEventArgs)> ColorChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ColorPicker, global::Windows.UI.Xaml.Controls.ColorChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ColorPicker sender, global::Windows.UI.Xaml.Controls.ColorChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ColorChanged += x, x => _data.ColorChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ComboBoxEvents + { + private readonly global::Windows.UI.Xaml.Controls.ComboBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ComboBoxEvents(global::Windows.UI.Xaml.Controls.ComboBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownClosed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.DropDownClosed += x, x => _data.DropDownClosed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownOpened => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.DropDownOpened += x, x => _data.DropDownOpened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ComboBox, global::Windows.UI.Xaml.Controls.ComboBoxTextSubmittedEventArgs)> TextSubmitted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ComboBox, global::Windows.UI.Xaml.Controls.ComboBoxTextSubmittedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ComboBox sender, global::Windows.UI.Xaml.Controls.ComboBoxTextSubmittedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextSubmitted += x, x => _data.TextSubmitted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CommandBarEvents + { + private readonly global::Windows.UI.Xaml.Controls.CommandBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CommandBarEvents(global::Windows.UI.Xaml.Controls.CommandBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.CommandBar, global::Windows.UI.Xaml.Controls.DynamicOverflowItemsChangingEventArgs)> DynamicOverflowItemsChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.CommandBar, global::Windows.UI.Xaml.Controls.DynamicOverflowItemsChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.CommandBar sender, global::Windows.UI.Xaml.Controls.DynamicOverflowItemsChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DynamicOverflowItemsChanging += x, x => _data.DynamicOverflowItemsChanging -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContentDialogEvents + { + private readonly global::Windows.UI.Xaml.Controls.ContentDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContentDialogEvents(global::Windows.UI.Xaml.Controls.ContentDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogButtonClickEventArgs)> CloseButtonClick => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogButtonClickEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ContentDialog sender, global::Windows.UI.Xaml.Controls.ContentDialogButtonClickEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CloseButtonClick += x, x => _data.CloseButtonClick -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ContentDialog sender, global::Windows.UI.Xaml.Controls.ContentDialogClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogClosingEventArgs)> Closing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogClosingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ContentDialog sender, global::Windows.UI.Xaml.Controls.ContentDialogClosingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closing += x, x => _data.Closing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogOpenedEventArgs)> Opened => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogOpenedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ContentDialog sender, global::Windows.UI.Xaml.Controls.ContentDialogOpenedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Opened += x, x => _data.Opened -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogButtonClickEventArgs)> PrimaryButtonClick => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogButtonClickEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ContentDialog sender, global::Windows.UI.Xaml.Controls.ContentDialogButtonClickEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PrimaryButtonClick += x, x => _data.PrimaryButtonClick -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogButtonClickEventArgs)> SecondaryButtonClick => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ContentDialog, global::Windows.UI.Xaml.Controls.ContentDialogButtonClickEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ContentDialog sender, global::Windows.UI.Xaml.Controls.ContentDialogButtonClickEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SecondaryButtonClick += x, x => _data.SecondaryButtonClick -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ControlEvents + { + private readonly global::Windows.UI.Xaml.Controls.Control _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ControlEvents(global::Windows.UI.Xaml.Controls.Control data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Control, global::Windows.UI.Xaml.Controls.FocusDisengagedEventArgs)> FocusDisengaged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Control, global::Windows.UI.Xaml.Controls.FocusDisengagedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Control sender, global::Windows.UI.Xaml.Controls.FocusDisengagedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FocusDisengaged += x, x => _data.FocusDisengaged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Control, global::Windows.UI.Xaml.Controls.FocusEngagedEventArgs)> FocusEngaged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Control, global::Windows.UI.Xaml.Controls.FocusEngagedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Control sender, global::Windows.UI.Xaml.Controls.FocusEngagedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FocusEngaged += x, x => _data.FocusEngaged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsEnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsEnabledChanged += x, x => _data.IsEnabledChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DatePickerEvents + { + private readonly global::Windows.UI.Xaml.Controls.DatePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DatePickerEvents(global::Windows.UI.Xaml.Controls.DatePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Xaml.Controls.DatePickerValueChangedEventArgs>(x => _data.DateChanged += x, x => _data.DateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.DatePicker, global::Windows.UI.Xaml.Controls.DatePickerSelectedValueChangedEventArgs)> SelectedDateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.DatePicker, global::Windows.UI.Xaml.Controls.DatePickerSelectedValueChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.DatePicker sender, global::Windows.UI.Xaml.Controls.DatePickerSelectedValueChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectedDateChanged += x, x => _data.SelectedDateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DatePickerFlyoutEvents + { + private readonly global::Windows.UI.Xaml.Controls.DatePickerFlyout _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DatePickerFlyoutEvents(global::Windows.UI.Xaml.Controls.DatePickerFlyout data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.DatePickerFlyout, global::Windows.UI.Xaml.Controls.DatePickedEventArgs)> DatePicked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.DatePickerFlyout, global::Windows.UI.Xaml.Controls.DatePickedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.DatePickerFlyout sender, global::Windows.UI.Xaml.Controls.DatePickedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DatePicked += x, x => _data.DatePicked -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FrameEvents + { + private readonly global::Windows.UI.Xaml.Controls.Frame _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FrameEvents(global::Windows.UI.Xaml.Controls.Frame data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigated += x, x => _data.Navigated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigating += x, x => _data.Navigating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationFailed += x, x => _data.NavigationFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationStopped += x, x => _data.NavigationStopped -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HandwritingViewEvents + { + private readonly global::Windows.UI.Xaml.Controls.HandwritingView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HandwritingViewEvents(global::Windows.UI.Xaml.Controls.HandwritingView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.HandwritingView, global::Windows.UI.Xaml.Controls.HandwritingPanelClosedEventArgs)> Closed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.HandwritingView, global::Windows.UI.Xaml.Controls.HandwritingPanelClosedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.HandwritingView sender, global::Windows.UI.Xaml.Controls.HandwritingPanelClosedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closed += x, x => _data.Closed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.HandwritingView, global::Windows.UI.Xaml.Controls.HandwritingPanelOpenedEventArgs)> Opened => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.HandwritingView, global::Windows.UI.Xaml.Controls.HandwritingPanelOpenedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.HandwritingView sender, global::Windows.UI.Xaml.Controls.HandwritingPanelOpenedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Opened += x, x => _data.Opened -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HubEvents + { + private readonly global::Windows.UI.Xaml.Controls.Hub _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HubEvents(global::Windows.UI.Xaml.Controls.Hub data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SectionHeaderClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SectionHeaderClick += x, x => _data.SectionHeaderClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SectionsInViewChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SectionsInViewChanged += x, x => _data.SectionsInViewChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ImageEvents + { + private readonly global::Windows.UI.Xaml.Controls.Image _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ImageEvents(global::Windows.UI.Xaml.Controls.Image data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImageFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImageFailed += x, x => _data.ImageFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImageOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImageOpened += x, x => _data.ImageOpened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InkToolbarEvents + { + private readonly global::Windows.UI.Xaml.Controls.InkToolbar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InkToolbarEvents(global::Windows.UI.Xaml.Controls.InkToolbar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.InkToolbar, object)> ActiveToolChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.InkToolbar, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.InkToolbar sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ActiveToolChanged += x, x => _data.ActiveToolChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.InkToolbar, object)> EraseAllClicked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.InkToolbar, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.InkToolbar sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.EraseAllClicked += x, x => _data.EraseAllClicked -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.InkToolbar, object)> InkDrawingAttributesChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.InkToolbar, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.InkToolbar sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.InkDrawingAttributesChanged += x, x => _data.InkDrawingAttributesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.InkToolbar, object)> IsRulerButtonCheckedChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.InkToolbar, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.InkToolbar sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsRulerButtonCheckedChanged += x, x => _data.IsRulerButtonCheckedChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.InkToolbar, global::Windows.UI.Xaml.Controls.InkToolbarIsStencilButtonCheckedChangedEventArgs)> IsStencilButtonCheckedChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.InkToolbar, global::Windows.UI.Xaml.Controls.InkToolbarIsStencilButtonCheckedChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.InkToolbar sender, global::Windows.UI.Xaml.Controls.InkToolbarIsStencilButtonCheckedChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsStencilButtonCheckedChanged += x, x => _data.IsStencilButtonCheckedChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InkToolbarFlyoutItemEvents + { + private readonly global::Windows.UI.Xaml.Controls.InkToolbarFlyoutItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InkToolbarFlyoutItemEvents(global::Windows.UI.Xaml.Controls.InkToolbarFlyoutItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.InkToolbarFlyoutItem, object)> Checked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.InkToolbarFlyoutItem, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.InkToolbarFlyoutItem sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Checked += x, x => _data.Checked -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.InkToolbarFlyoutItem, object)> Unchecked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.InkToolbarFlyoutItem, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.InkToolbarFlyoutItem sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Unchecked += x, x => _data.Unchecked -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ItemCollectionEvents + { + private readonly global::Windows.UI.Xaml.Controls.ItemCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ItemCollectionEvents(global::Windows.UI.Xaml.Controls.ItemCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Foundation.Collections.IObservableVector, global::Windows.Foundation.Collections.IVectorChangedEventArgs)> VectorChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Foundation.Collections.IObservableVector, global::Windows.Foundation.Collections.IVectorChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Foundation.Collections.IObservableVector sender, global::Windows.Foundation.Collections.IVectorChangedEventArgs event) => eventHandler((sender, event)); + return Handler; + } + + , x => _data.VectorChanged += x, x => _data.VectorChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ItemContainerGeneratorEvents + { + private readonly global::Windows.UI.Xaml.Controls.ItemContainerGenerator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ItemContainerGeneratorEvents(global::Windows.UI.Xaml.Controls.ItemContainerGenerator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemsChanged += x, x => _data.ItemsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ItemsPresenterEvents + { + private readonly global::Windows.UI.Xaml.Controls.ItemsPresenter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ItemsPresenterEvents(global::Windows.UI.Xaml.Controls.ItemsPresenter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HorizontalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.HorizontalSnapPointsChanged += x, x => _data.HorizontalSnapPointsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VerticalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.VerticalSnapPointsChanged += x, x => _data.VerticalSnapPointsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ListPickerFlyoutEvents + { + private readonly global::Windows.UI.Xaml.Controls.ListPickerFlyout _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ListPickerFlyoutEvents(global::Windows.UI.Xaml.Controls.ListPickerFlyout data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ListPickerFlyout, global::Windows.UI.Xaml.Controls.ItemsPickedEventArgs)> ItemsPicked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ListPickerFlyout, global::Windows.UI.Xaml.Controls.ItemsPickedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ListPickerFlyout sender, global::Windows.UI.Xaml.Controls.ItemsPickedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemsPicked += x, x => _data.ItemsPicked -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ListViewBaseEvents + { + private readonly global::Windows.UI.Xaml.Controls.ListViewBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ListViewBaseEvents(global::Windows.UI.Xaml.Controls.ListViewBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ListViewBase, global::Windows.UI.Xaml.Controls.ChoosingGroupHeaderContainerEventArgs)> ChoosingGroupHeaderContainer => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ListViewBase, global::Windows.UI.Xaml.Controls.ChoosingGroupHeaderContainerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ListViewBase sender, global::Windows.UI.Xaml.Controls.ChoosingGroupHeaderContainerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ChoosingGroupHeaderContainer += x, x => _data.ChoosingGroupHeaderContainer -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ListViewBase, global::Windows.UI.Xaml.Controls.ChoosingItemContainerEventArgs)> ChoosingItemContainer => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ListViewBase, global::Windows.UI.Xaml.Controls.ChoosingItemContainerEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ListViewBase sender, global::Windows.UI.Xaml.Controls.ChoosingItemContainerEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ChoosingItemContainer += x, x => _data.ChoosingItemContainer -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ListViewBase, global::Windows.UI.Xaml.Controls.ContainerContentChangingEventArgs)> ContainerContentChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ListViewBase, global::Windows.UI.Xaml.Controls.ContainerContentChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ListViewBase sender, global::Windows.UI.Xaml.Controls.ContainerContentChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContainerContentChanging += x, x => _data.ContainerContentChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ListViewBase, global::Windows.UI.Xaml.Controls.DragItemsCompletedEventArgs)> DragItemsCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ListViewBase, global::Windows.UI.Xaml.Controls.DragItemsCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ListViewBase sender, global::Windows.UI.Xaml.Controls.DragItemsCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DragItemsCompleted += x, x => _data.DragItemsCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragItemsStarting => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragItemsStarting += x, x => _data.DragItemsStarting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemClick += x, x => _data.ItemClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaElementEvents + { + private readonly global::Windows.UI.Xaml.Controls.MediaElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaElementEvents(global::Windows.UI.Xaml.Controls.MediaElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferingProgressChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BufferingProgressChanged += x, x => _data.BufferingProgressChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentStateChanged += x, x => _data.CurrentStateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DownloadProgressChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DownloadProgressChanged += x, x => _data.DownloadProgressChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MarkerReached => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MarkerReached += x, x => _data.MarkerReached -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MediaEnded += x, x => _data.MediaEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MediaFailed += x, x => _data.MediaFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MediaOpened += x, x => _data.MediaOpened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.MediaElement, global::Windows.UI.Xaml.Media.PartialMediaFailureDetectedEventArgs)> PartialMediaFailureDetected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.MediaElement, global::Windows.UI.Xaml.Media.PartialMediaFailureDetectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.MediaElement sender, global::Windows.UI.Xaml.Media.PartialMediaFailureDetectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PartialMediaFailureDetected += x, x => _data.PartialMediaFailureDetected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RateChanged += x, x => _data.RateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SeekCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SeekCompleted += x, x => _data.SeekCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VolumeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.VolumeChanged += x, x => _data.VolumeChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaTransportControlsEvents + { + private readonly global::Windows.UI.Xaml.Controls.MediaTransportControls _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaTransportControlsEvents(global::Windows.UI.Xaml.Controls.MediaTransportControls data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.MediaTransportControls, global::Windows.UI.Xaml.Media.MediaTransportControlsThumbnailRequestedEventArgs)> ThumbnailRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.MediaTransportControls, global::Windows.UI.Xaml.Media.MediaTransportControlsThumbnailRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.MediaTransportControls sender, global::Windows.UI.Xaml.Media.MediaTransportControlsThumbnailRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ThumbnailRequested += x, x => _data.ThumbnailRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MenuFlyoutItemEvents + { + private readonly global::Windows.UI.Xaml.Controls.MenuFlyoutItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MenuFlyoutItemEvents(global::Windows.UI.Xaml.Controls.MenuFlyoutItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NavigationViewEvents + { + private readonly global::Windows.UI.Xaml.Controls.NavigationView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NavigationViewEvents(global::Windows.UI.Xaml.Controls.NavigationView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs)> BackRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.NavigationView sender, global::Windows.UI.Xaml.Controls.NavigationViewBackRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BackRequested += x, x => _data.BackRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewDisplayModeChangedEventArgs)> DisplayModeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewDisplayModeChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.NavigationView sender, global::Windows.UI.Xaml.Controls.NavigationViewDisplayModeChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DisplayModeChanged += x, x => _data.DisplayModeChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewItemInvokedEventArgs)> ItemInvoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewItemInvokedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.NavigationView sender, global::Windows.UI.Xaml.Controls.NavigationViewItemInvokedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemInvoked += x, x => _data.ItemInvoked -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.NavigationView, object)> PaneClosed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.NavigationView, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.NavigationView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PaneClosed += x, x => _data.PaneClosed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewPaneClosingEventArgs)> PaneClosing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewPaneClosingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.NavigationView sender, global::Windows.UI.Xaml.Controls.NavigationViewPaneClosingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PaneClosing += x, x => _data.PaneClosing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.NavigationView, object)> PaneOpened => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.NavigationView, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.NavigationView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PaneOpened += x, x => _data.PaneOpened -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.NavigationView, object)> PaneOpening => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.NavigationView, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.NavigationView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PaneOpening += x, x => _data.PaneOpening -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs)> SelectionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.NavigationView, global::Windows.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.NavigationView sender, global::Windows.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PasswordBoxEvents + { + private readonly global::Windows.UI.Xaml.Controls.PasswordBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PasswordBoxEvents(global::Windows.UI.Xaml.Controls.PasswordBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuOpening += x, x => _data.ContextMenuOpening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PasswordChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PasswordChanged += x, x => _data.PasswordChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.PasswordBox, global::Windows.UI.Xaml.Controls.PasswordBoxPasswordChangingEventArgs)> PasswordChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.PasswordBox, global::Windows.UI.Xaml.Controls.PasswordBoxPasswordChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.PasswordBox sender, global::Windows.UI.Xaml.Controls.PasswordBoxPasswordChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PasswordChanging += x, x => _data.PasswordChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paste => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paste += x, x => _data.Paste -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PickerFlyoutEvents + { + private readonly global::Windows.UI.Xaml.Controls.PickerFlyout _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PickerFlyoutEvents(global::Windows.UI.Xaml.Controls.PickerFlyout data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.PickerFlyout, global::Windows.UI.Xaml.Controls.PickerConfirmedEventArgs)> Confirmed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.PickerFlyout, global::Windows.UI.Xaml.Controls.PickerConfirmedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.PickerFlyout sender, global::Windows.UI.Xaml.Controls.PickerConfirmedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Confirmed += x, x => _data.Confirmed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PivotEvents + { + private readonly global::Windows.UI.Xaml.Controls.Pivot _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PivotEvents(global::Windows.UI.Xaml.Controls.Pivot data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Pivot, global::Windows.UI.Xaml.Controls.PivotItemEventArgs)> PivotItemLoaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Pivot, global::Windows.UI.Xaml.Controls.PivotItemEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Pivot sender, global::Windows.UI.Xaml.Controls.PivotItemEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PivotItemLoaded += x, x => _data.PivotItemLoaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Pivot, global::Windows.UI.Xaml.Controls.PivotItemEventArgs)> PivotItemLoading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Pivot, global::Windows.UI.Xaml.Controls.PivotItemEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Pivot sender, global::Windows.UI.Xaml.Controls.PivotItemEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PivotItemLoading += x, x => _data.PivotItemLoading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Pivot, global::Windows.UI.Xaml.Controls.PivotItemEventArgs)> PivotItemUnloaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Pivot, global::Windows.UI.Xaml.Controls.PivotItemEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Pivot sender, global::Windows.UI.Xaml.Controls.PivotItemEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PivotItemUnloaded += x, x => _data.PivotItemUnloaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Pivot, global::Windows.UI.Xaml.Controls.PivotItemEventArgs)> PivotItemUnloading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Pivot, global::Windows.UI.Xaml.Controls.PivotItemEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Pivot sender, global::Windows.UI.Xaml.Controls.PivotItemEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PivotItemUnloading += x, x => _data.PivotItemUnloading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RatingControlEvents + { + private readonly global::Windows.UI.Xaml.Controls.RatingControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RatingControlEvents(global::Windows.UI.Xaml.Controls.RatingControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RatingControl, object)> ValueChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RatingControl, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RatingControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ValueChanged += x, x => _data.ValueChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RefreshContainerEvents + { + private readonly global::Windows.UI.Xaml.Controls.RefreshContainer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RefreshContainerEvents(global::Windows.UI.Xaml.Controls.RefreshContainer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RefreshContainer, global::Windows.UI.Xaml.Controls.RefreshRequestedEventArgs)> RefreshRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RefreshContainer, global::Windows.UI.Xaml.Controls.RefreshRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RefreshContainer sender, global::Windows.UI.Xaml.Controls.RefreshRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RefreshRequested += x, x => _data.RefreshRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RefreshVisualizerEvents + { + private readonly global::Windows.UI.Xaml.Controls.RefreshVisualizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RefreshVisualizerEvents(global::Windows.UI.Xaml.Controls.RefreshVisualizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RefreshVisualizer, global::Windows.UI.Xaml.Controls.RefreshRequestedEventArgs)> RefreshRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RefreshVisualizer, global::Windows.UI.Xaml.Controls.RefreshRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RefreshVisualizer sender, global::Windows.UI.Xaml.Controls.RefreshRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RefreshRequested += x, x => _data.RefreshRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RefreshVisualizer, global::Windows.UI.Xaml.Controls.RefreshStateChangedEventArgs)> RefreshStateChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RefreshVisualizer, global::Windows.UI.Xaml.Controls.RefreshStateChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RefreshVisualizer sender, global::Windows.UI.Xaml.Controls.RefreshStateChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RefreshStateChanged += x, x => _data.RefreshStateChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RichEditBoxEvents + { + private readonly global::Windows.UI.Xaml.Controls.RichEditBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RichEditBoxEvents(global::Windows.UI.Xaml.Controls.RichEditBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.CandidateWindowBoundsChangedEventArgs)> CandidateWindowBoundsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.CandidateWindowBoundsChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Controls.CandidateWindowBoundsChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CandidateWindowBoundsChanged += x, x => _data.CandidateWindowBoundsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.ContentLinkChangedEventArgs)> ContentLinkChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.ContentLinkChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Controls.ContentLinkChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentLinkChanged += x, x => _data.ContentLinkChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Documents.ContentLinkInvokedEventArgs)> ContentLinkInvoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Documents.ContentLinkInvokedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Documents.ContentLinkInvokedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentLinkInvoked += x, x => _data.ContentLinkInvoked -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuOpening += x, x => _data.ContextMenuOpening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextControlCopyingToClipboardEventArgs)> CopyingToClipboard => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextControlCopyingToClipboardEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Controls.TextControlCopyingToClipboardEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CopyingToClipboard += x, x => _data.CopyingToClipboard -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextControlCuttingToClipboardEventArgs)> CuttingToClipboard => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextControlCuttingToClipboardEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Controls.TextControlCuttingToClipboardEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CuttingToClipboard += x, x => _data.CuttingToClipboard -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paste => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paste += x, x => _data.Paste -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.RichEditBoxSelectionChangingEventArgs)> SelectionChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.RichEditBoxSelectionChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Controls.RichEditBoxSelectionChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectionChanging += x, x => _data.SelectionChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.RichEditBoxTextChangingEventArgs)> TextChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.RichEditBoxTextChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Controls.RichEditBoxTextChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextChanging += x, x => _data.TextChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextCompositionChangedEventArgs)> TextCompositionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextCompositionChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Controls.TextCompositionChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextCompositionChanged += x, x => _data.TextCompositionChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextCompositionEndedEventArgs)> TextCompositionEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextCompositionEndedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Controls.TextCompositionEndedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextCompositionEnded += x, x => _data.TextCompositionEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextCompositionStartedEventArgs)> TextCompositionStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichEditBox, global::Windows.UI.Xaml.Controls.TextCompositionStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichEditBox sender, global::Windows.UI.Xaml.Controls.TextCompositionStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextCompositionStarted += x, x => _data.TextCompositionStarted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RichTextBlockEvents + { + private readonly global::Windows.UI.Xaml.Controls.RichTextBlock _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RichTextBlockEvents(global::Windows.UI.Xaml.Controls.RichTextBlock data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuOpening += x, x => _data.ContextMenuOpening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichTextBlock, global::Windows.UI.Xaml.Controls.IsTextTrimmedChangedEventArgs)> IsTextTrimmedChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichTextBlock, global::Windows.UI.Xaml.Controls.IsTextTrimmedChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichTextBlock sender, global::Windows.UI.Xaml.Controls.IsTextTrimmedChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsTextTrimmedChanged += x, x => _data.IsTextTrimmedChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RichTextBlockOverflowEvents + { + private readonly global::Windows.UI.Xaml.Controls.RichTextBlockOverflow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RichTextBlockOverflowEvents(global::Windows.UI.Xaml.Controls.RichTextBlockOverflow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.RichTextBlockOverflow, global::Windows.UI.Xaml.Controls.IsTextTrimmedChangedEventArgs)> IsTextTrimmedChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.RichTextBlockOverflow, global::Windows.UI.Xaml.Controls.IsTextTrimmedChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.RichTextBlockOverflow sender, global::Windows.UI.Xaml.Controls.IsTextTrimmedChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsTextTrimmedChanged += x, x => _data.IsTextTrimmedChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ScrollViewerEvents + { + private readonly global::Windows.UI.Xaml.Controls.ScrollViewer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ScrollViewerEvents(global::Windows.UI.Xaml.Controls.ScrollViewer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ScrollViewer, global::Windows.UI.Xaml.Controls.AnchorRequestedEventArgs)> AnchorRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ScrollViewer, global::Windows.UI.Xaml.Controls.AnchorRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ScrollViewer sender, global::Windows.UI.Xaml.Controls.AnchorRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AnchorRequested += x, x => _data.AnchorRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DirectManipulationCompleted => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.DirectManipulationCompleted += x, x => _data.DirectManipulationCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DirectManipulationStarted => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.DirectManipulationStarted += x, x => _data.DirectManipulationStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ViewChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Xaml.Controls.ScrollViewerViewChangedEventArgs>(x => _data.ViewChanged += x, x => _data.ViewChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ViewChanging => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Xaml.Controls.ScrollViewerViewChangingEventArgs>(x => _data.ViewChanging += x, x => _data.ViewChanging -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SearchBoxEvents + { + private readonly global::Windows.UI.Xaml.Controls.SearchBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SearchBoxEvents(global::Windows.UI.Xaml.Controls.SearchBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.RoutedEventArgs)> PrepareForFocusOnKeyboardInput => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.RoutedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SearchBox sender, global::Windows.UI.Xaml.RoutedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PrepareForFocusOnKeyboardInput += x, x => _data.PrepareForFocusOnKeyboardInput -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.Controls.SearchBoxQueryChangedEventArgs)> QueryChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.Controls.SearchBoxQueryChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SearchBox sender, global::Windows.UI.Xaml.Controls.SearchBoxQueryChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.QueryChanged += x, x => _data.QueryChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.Controls.SearchBoxQuerySubmittedEventArgs)> QuerySubmitted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.Controls.SearchBoxQuerySubmittedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SearchBox sender, global::Windows.UI.Xaml.Controls.SearchBoxQuerySubmittedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.QuerySubmitted += x, x => _data.QuerySubmitted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.Controls.SearchBoxResultSuggestionChosenEventArgs)> ResultSuggestionChosen => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.Controls.SearchBoxResultSuggestionChosenEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SearchBox sender, global::Windows.UI.Xaml.Controls.SearchBoxResultSuggestionChosenEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ResultSuggestionChosen += x, x => _data.ResultSuggestionChosen -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.Controls.SearchBoxSuggestionsRequestedEventArgs)> SuggestionsRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SearchBox, global::Windows.UI.Xaml.Controls.SearchBoxSuggestionsRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SearchBox sender, global::Windows.UI.Xaml.Controls.SearchBoxSuggestionsRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SuggestionsRequested += x, x => _data.SuggestionsRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SemanticZoomEvents + { + private readonly global::Windows.UI.Xaml.Controls.SemanticZoom _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SemanticZoomEvents(global::Windows.UI.Xaml.Controls.SemanticZoom data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ViewChangeCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ViewChangeCompleted += x, x => _data.ViewChangeCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ViewChangeStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ViewChangeStarted += x, x => _data.ViewChangeStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SettingsFlyoutEvents + { + private readonly global::Windows.UI.Xaml.Controls.SettingsFlyout _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SettingsFlyoutEvents(global::Windows.UI.Xaml.Controls.SettingsFlyout data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackClick += x, x => _data.BackClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SplitButtonEvents + { + private readonly global::Windows.UI.Xaml.Controls.SplitButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SplitButtonEvents(global::Windows.UI.Xaml.Controls.SplitButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SplitButton, global::Windows.UI.Xaml.Controls.SplitButtonClickEventArgs)> Click => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SplitButton, global::Windows.UI.Xaml.Controls.SplitButtonClickEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SplitButton sender, global::Windows.UI.Xaml.Controls.SplitButtonClickEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Click += x, x => _data.Click -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SplitViewEvents + { + private readonly global::Windows.UI.Xaml.Controls.SplitView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SplitViewEvents(global::Windows.UI.Xaml.Controls.SplitView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SplitView, object)> PaneClosed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SplitView, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SplitView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PaneClosed += x, x => _data.PaneClosed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SplitView, global::Windows.UI.Xaml.Controls.SplitViewPaneClosingEventArgs)> PaneClosing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SplitView, global::Windows.UI.Xaml.Controls.SplitViewPaneClosingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SplitView sender, global::Windows.UI.Xaml.Controls.SplitViewPaneClosingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PaneClosing += x, x => _data.PaneClosing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SplitView, object)> PaneOpened => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SplitView, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SplitView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PaneOpened += x, x => _data.PaneOpened -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SplitView, object)> PaneOpening => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SplitView, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SplitView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PaneOpening += x, x => _data.PaneOpening -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StackPanelEvents + { + private readonly global::Windows.UI.Xaml.Controls.StackPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StackPanelEvents(global::Windows.UI.Xaml.Controls.StackPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HorizontalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.HorizontalSnapPointsChanged += x, x => _data.HorizontalSnapPointsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VerticalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.VerticalSnapPointsChanged += x, x => _data.VerticalSnapPointsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SwapChainPanelEvents + { + private readonly global::Windows.UI.Xaml.Controls.SwapChainPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SwapChainPanelEvents(global::Windows.UI.Xaml.Controls.SwapChainPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SwapChainPanel, object)> CompositionScaleChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SwapChainPanel, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SwapChainPanel sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CompositionScaleChanged += x, x => _data.CompositionScaleChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SwipeItemEvents + { + private readonly global::Windows.UI.Xaml.Controls.SwipeItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SwipeItemEvents(global::Windows.UI.Xaml.Controls.SwipeItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.SwipeItem, global::Windows.UI.Xaml.Controls.SwipeItemInvokedEventArgs)> Invoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.SwipeItem, global::Windows.UI.Xaml.Controls.SwipeItemInvokedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.SwipeItem sender, global::Windows.UI.Xaml.Controls.SwipeItemInvokedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Invoked += x, x => _data.Invoked -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TextBlockEvents + { + private readonly global::Windows.UI.Xaml.Controls.TextBlock _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TextBlockEvents(global::Windows.UI.Xaml.Controls.TextBlock data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuOpening += x, x => _data.ContextMenuOpening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBlock, global::Windows.UI.Xaml.Controls.IsTextTrimmedChangedEventArgs)> IsTextTrimmedChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBlock, global::Windows.UI.Xaml.Controls.IsTextTrimmedChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBlock sender, global::Windows.UI.Xaml.Controls.IsTextTrimmedChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsTextTrimmedChanged += x, x => _data.IsTextTrimmedChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TextBoxEvents + { + private readonly global::Windows.UI.Xaml.Controls.TextBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TextBoxEvents(global::Windows.UI.Xaml.Controls.TextBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextBoxBeforeTextChangingEventArgs)> BeforeTextChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextBoxBeforeTextChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBox sender, global::Windows.UI.Xaml.Controls.TextBoxBeforeTextChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BeforeTextChanging += x, x => _data.BeforeTextChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.CandidateWindowBoundsChangedEventArgs)> CandidateWindowBoundsChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.CandidateWindowBoundsChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBox sender, global::Windows.UI.Xaml.Controls.CandidateWindowBoundsChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CandidateWindowBoundsChanged += x, x => _data.CandidateWindowBoundsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuOpening += x, x => _data.ContextMenuOpening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextControlCopyingToClipboardEventArgs)> CopyingToClipboard => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextControlCopyingToClipboardEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBox sender, global::Windows.UI.Xaml.Controls.TextControlCopyingToClipboardEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CopyingToClipboard += x, x => _data.CopyingToClipboard -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextControlCuttingToClipboardEventArgs)> CuttingToClipboard => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextControlCuttingToClipboardEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBox sender, global::Windows.UI.Xaml.Controls.TextControlCuttingToClipboardEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CuttingToClipboard += x, x => _data.CuttingToClipboard -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paste => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paste += x, x => _data.Paste -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextBoxSelectionChangingEventArgs)> SelectionChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextBoxSelectionChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBox sender, global::Windows.UI.Xaml.Controls.TextBoxSelectionChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectionChanging += x, x => _data.SelectionChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextBoxTextChangingEventArgs)> TextChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextBoxTextChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBox sender, global::Windows.UI.Xaml.Controls.TextBoxTextChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextChanging += x, x => _data.TextChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextCompositionChangedEventArgs)> TextCompositionChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextCompositionChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBox sender, global::Windows.UI.Xaml.Controls.TextCompositionChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextCompositionChanged += x, x => _data.TextCompositionChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextCompositionEndedEventArgs)> TextCompositionEnded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextCompositionEndedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBox sender, global::Windows.UI.Xaml.Controls.TextCompositionEndedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextCompositionEnded += x, x => _data.TextCompositionEnded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextCompositionStartedEventArgs)> TextCompositionStarted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TextBox, global::Windows.UI.Xaml.Controls.TextCompositionStartedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TextBox sender, global::Windows.UI.Xaml.Controls.TextCompositionStartedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TextCompositionStarted += x, x => _data.TextCompositionStarted -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TimePickerEvents + { + private readonly global::Windows.UI.Xaml.Controls.TimePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TimePickerEvents(global::Windows.UI.Xaml.Controls.TimePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TimePicker, global::Windows.UI.Xaml.Controls.TimePickerSelectedValueChangedEventArgs)> SelectedTimeChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TimePicker, global::Windows.UI.Xaml.Controls.TimePickerSelectedValueChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TimePicker sender, global::Windows.UI.Xaml.Controls.TimePickerSelectedValueChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SelectedTimeChanged += x, x => _data.SelectedTimeChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TimeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Xaml.Controls.TimePickerValueChangedEventArgs>(x => _data.TimeChanged += x, x => _data.TimeChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TimePickerFlyoutEvents + { + private readonly global::Windows.UI.Xaml.Controls.TimePickerFlyout _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TimePickerFlyoutEvents(global::Windows.UI.Xaml.Controls.TimePickerFlyout data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TimePickerFlyout, global::Windows.UI.Xaml.Controls.TimePickedEventArgs)> TimePicked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TimePickerFlyout, global::Windows.UI.Xaml.Controls.TimePickedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TimePickerFlyout sender, global::Windows.UI.Xaml.Controls.TimePickedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TimePicked += x, x => _data.TimePicked -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToggleSplitButtonEvents + { + private readonly global::Windows.UI.Xaml.Controls.ToggleSplitButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToggleSplitButtonEvents(global::Windows.UI.Xaml.Controls.ToggleSplitButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.ToggleSplitButton, global::Windows.UI.Xaml.Controls.ToggleSplitButtonIsCheckedChangedEventArgs)> IsCheckedChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.ToggleSplitButton, global::Windows.UI.Xaml.Controls.ToggleSplitButtonIsCheckedChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.ToggleSplitButton sender, global::Windows.UI.Xaml.Controls.ToggleSplitButtonIsCheckedChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.IsCheckedChanged += x, x => _data.IsCheckedChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToggleSwitchEvents + { + private readonly global::Windows.UI.Xaml.Controls.ToggleSwitch _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToggleSwitchEvents(global::Windows.UI.Xaml.Controls.ToggleSwitch data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Toggled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Toggled += x, x => _data.Toggled -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolTipEvents + { + private readonly global::Windows.UI.Xaml.Controls.ToolTip _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolTipEvents(global::Windows.UI.Xaml.Controls.ToolTip data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Opened += x, x => _data.Opened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TreeViewEvents + { + private readonly global::Windows.UI.Xaml.Controls.TreeView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TreeViewEvents(global::Windows.UI.Xaml.Controls.TreeView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewCollapsedEventArgs)> Collapsed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewCollapsedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TreeView sender, global::Windows.UI.Xaml.Controls.TreeViewCollapsedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Collapsed += x, x => _data.Collapsed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewDragItemsCompletedEventArgs)> DragItemsCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewDragItemsCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TreeView sender, global::Windows.UI.Xaml.Controls.TreeViewDragItemsCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DragItemsCompleted += x, x => _data.DragItemsCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewDragItemsStartingEventArgs)> DragItemsStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewDragItemsStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TreeView sender, global::Windows.UI.Xaml.Controls.TreeViewDragItemsStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DragItemsStarting += x, x => _data.DragItemsStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewExpandingEventArgs)> Expanding => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewExpandingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TreeView sender, global::Windows.UI.Xaml.Controls.TreeViewExpandingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Expanding += x, x => _data.Expanding -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewItemInvokedEventArgs)> ItemInvoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.TreeView, global::Windows.UI.Xaml.Controls.TreeViewItemInvokedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.TreeView sender, global::Windows.UI.Xaml.Controls.TreeViewItemInvokedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ItemInvoked += x, x => _data.ItemInvoked -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VirtualizingStackPanelEvents + { + private readonly global::Windows.UI.Xaml.Controls.VirtualizingStackPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VirtualizingStackPanelEvents(global::Windows.UI.Xaml.Controls.VirtualizingStackPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CleanUpVirtualizedItemEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CleanUpVirtualizedItemEvent += x, x => _data.CleanUpVirtualizedItemEvent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebViewEvents + { + private readonly global::Windows.UI.Xaml.Controls.WebView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebViewEvents(global::Windows.UI.Xaml.Controls.WebView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, object)> ContainsFullScreenElementChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContainsFullScreenElementChanged += x, x => _data.ContainsFullScreenElementChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewContentLoadingEventArgs)> ContentLoading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewContentLoadingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewContentLoadingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentLoading += x, x => _data.ContentLoading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewDOMContentLoadedEventArgs)> DOMContentLoaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewDOMContentLoadedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewDOMContentLoadedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DOMContentLoaded += x, x => _data.DOMContentLoaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewContentLoadingEventArgs)> FrameContentLoading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewContentLoadingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewContentLoadingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameContentLoading += x, x => _data.FrameContentLoading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewDOMContentLoadedEventArgs)> FrameDOMContentLoaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewDOMContentLoadedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewDOMContentLoadedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameDOMContentLoaded += x, x => _data.FrameDOMContentLoaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNavigationCompletedEventArgs)> FrameNavigationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNavigationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewNavigationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameNavigationCompleted += x, x => _data.FrameNavigationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs)> FrameNavigationStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameNavigationStarting += x, x => _data.FrameNavigationStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadCompleted += x, x => _data.LoadCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewLongRunningScriptDetectedEventArgs)> LongRunningScriptDetected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewLongRunningScriptDetectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewLongRunningScriptDetectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LongRunningScriptDetected += x, x => _data.LongRunningScriptDetected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNavigationCompletedEventArgs)> NavigationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNavigationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewNavigationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationCompleted += x, x => _data.NavigationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationFailed += x, x => _data.NavigationFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs)> NavigationStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewNavigationStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationStarting += x, x => _data.NavigationStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNewWindowRequestedEventArgs)> NewWindowRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewNewWindowRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewNewWindowRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NewWindowRequested += x, x => _data.NewWindowRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewPermissionRequestedEventArgs)> PermissionRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewPermissionRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewPermissionRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PermissionRequested += x, x => _data.PermissionRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScriptNotify => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScriptNotify += x, x => _data.ScriptNotify -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewSeparateProcessLostEventArgs)> SeparateProcessLost => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewSeparateProcessLostEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewSeparateProcessLostEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.SeparateProcessLost += x, x => _data.SeparateProcessLost -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, object)> UnsafeContentWarningDisplaying => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnsafeContentWarningDisplaying += x, x => _data.UnsafeContentWarningDisplaying -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewUnsupportedUriSchemeIdentifiedEventArgs)> UnsupportedUriSchemeIdentified => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewUnsupportedUriSchemeIdentifiedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewUnsupportedUriSchemeIdentifiedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnsupportedUriSchemeIdentified += x, x => _data.UnsupportedUriSchemeIdentified -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewUnviewableContentIdentifiedEventArgs)> UnviewableContentIdentified => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewUnviewableContentIdentifiedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewUnviewableContentIdentifiedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnviewableContentIdentified += x, x => _data.UnviewableContentIdentified -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewWebResourceRequestedEventArgs)> WebResourceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.WebView, global::Windows.UI.Xaml.Controls.WebViewWebResourceRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.WebView sender, global::Windows.UI.Xaml.Controls.WebViewWebResourceRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WebResourceRequested += x, x => _data.WebResourceRequested -= x); + } +} + +namespace Windows.UI.Xaml.Controls.Maps +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CustomMapTileDataSourceEvents Events(this global::Windows.UI.Xaml.Controls.Maps.CustomMapTileDataSource item) => new CustomMapTileDataSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HttpMapTileDataSourceEvents Events(this global::Windows.UI.Xaml.Controls.Maps.HttpMapTileDataSource item) => new HttpMapTileDataSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LocalMapTileDataSourceEvents Events(this global::Windows.UI.Xaml.Controls.Maps.LocalMapTileDataSource item) => new LocalMapTileDataSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MapControlEvents Events(this global::Windows.UI.Xaml.Controls.Maps.MapControl item) => new MapControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MapControlDataHelperEvents Events(this global::Windows.UI.Xaml.Controls.Maps.MapControlDataHelper item) => new MapControlDataHelperEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MapElementsLayerEvents Events(this global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer item) => new MapElementsLayerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MapSceneEvents Events(this global::Windows.UI.Xaml.Controls.Maps.MapScene item) => new MapSceneEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CustomMapTileDataSourceEvents + { + private readonly global::Windows.UI.Xaml.Controls.Maps.CustomMapTileDataSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CustomMapTileDataSourceEvents(global::Windows.UI.Xaml.Controls.Maps.CustomMapTileDataSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.CustomMapTileDataSource, global::Windows.UI.Xaml.Controls.Maps.MapTileBitmapRequestedEventArgs)> BitmapRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.CustomMapTileDataSource, global::Windows.UI.Xaml.Controls.Maps.MapTileBitmapRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.CustomMapTileDataSource sender, global::Windows.UI.Xaml.Controls.Maps.MapTileBitmapRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BitmapRequested += x, x => _data.BitmapRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HttpMapTileDataSourceEvents + { + private readonly global::Windows.UI.Xaml.Controls.Maps.HttpMapTileDataSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HttpMapTileDataSourceEvents(global::Windows.UI.Xaml.Controls.Maps.HttpMapTileDataSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.HttpMapTileDataSource, global::Windows.UI.Xaml.Controls.Maps.MapTileUriRequestedEventArgs)> UriRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.HttpMapTileDataSource, global::Windows.UI.Xaml.Controls.Maps.MapTileUriRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.HttpMapTileDataSource sender, global::Windows.UI.Xaml.Controls.Maps.MapTileUriRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UriRequested += x, x => _data.UriRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LocalMapTileDataSourceEvents + { + private readonly global::Windows.UI.Xaml.Controls.Maps.LocalMapTileDataSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LocalMapTileDataSourceEvents(global::Windows.UI.Xaml.Controls.Maps.LocalMapTileDataSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.LocalMapTileDataSource, global::Windows.UI.Xaml.Controls.Maps.MapTileUriRequestedEventArgs)> UriRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.LocalMapTileDataSource, global::Windows.UI.Xaml.Controls.Maps.MapTileUriRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.LocalMapTileDataSource sender, global::Windows.UI.Xaml.Controls.Maps.MapTileUriRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UriRequested += x, x => _data.UriRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MapControlEvents + { + private readonly global::Windows.UI.Xaml.Controls.Maps.MapControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MapControlEvents(global::Windows.UI.Xaml.Controls.Maps.MapControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapActualCameraChangedEventArgs)> ActualCameraChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapActualCameraChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapActualCameraChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ActualCameraChanged += x, x => _data.ActualCameraChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapActualCameraChangingEventArgs)> ActualCameraChanging => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapActualCameraChangingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapActualCameraChangingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ActualCameraChanging += x, x => _data.ActualCameraChanging -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, object)> CenterChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CenterChanged += x, x => _data.CenterChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapCustomExperienceChangedEventArgs)> CustomExperienceChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapCustomExperienceChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapCustomExperienceChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.CustomExperienceChanged += x, x => _data.CustomExperienceChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, object)> HeadingChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.HeadingChanged += x, x => _data.HeadingChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, object)> LoadingStatusChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LoadingStatusChanged += x, x => _data.LoadingStatusChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapContextRequestedEventArgs)> MapContextRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapContextRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapContextRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapContextRequested += x, x => _data.MapContextRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapInputEventArgs)> MapDoubleTapped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapInputEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapInputEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapDoubleTapped += x, x => _data.MapDoubleTapped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapElementClickEventArgs)> MapElementClick => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapElementClickEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapElementClickEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapElementClick += x, x => _data.MapElementClick -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapElementPointerEnteredEventArgs)> MapElementPointerEntered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapElementPointerEnteredEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapElementPointerEnteredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapElementPointerEntered += x, x => _data.MapElementPointerEntered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapElementPointerExitedEventArgs)> MapElementPointerExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapElementPointerExitedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapElementPointerExitedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapElementPointerExited += x, x => _data.MapElementPointerExited -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapInputEventArgs)> MapHolding => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapInputEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapInputEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapHolding += x, x => _data.MapHolding -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapRightTappedEventArgs)> MapRightTapped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapRightTappedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapRightTappedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapRightTapped += x, x => _data.MapRightTapped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapInputEventArgs)> MapTapped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapInputEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapInputEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapTapped += x, x => _data.MapTapped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, object)> PitchChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PitchChanged += x, x => _data.PitchChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapTargetCameraChangedEventArgs)> TargetCameraChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapTargetCameraChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapTargetCameraChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TargetCameraChanged += x, x => _data.TargetCameraChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, object)> TransformOriginChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TransformOriginChanged += x, x => _data.TransformOriginChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, object)> ZoomLevelChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ZoomLevelChanged += x, x => _data.ZoomLevelChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MapControlDataHelperEvents + { + private readonly global::Windows.UI.Xaml.Controls.Maps.MapControlDataHelper _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MapControlDataHelperEvents(global::Windows.UI.Xaml.Controls.Maps.MapControlDataHelper data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkClickEventArgs)> BusinessLandmarkClick => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkClickEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkClickEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BusinessLandmarkClick += x, x => _data.BusinessLandmarkClick -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerEnteredEventArgs)> BusinessLandmarkPointerEntered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerEnteredEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerEnteredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BusinessLandmarkPointerEntered += x, x => _data.BusinessLandmarkPointerEntered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerExitedEventArgs)> BusinessLandmarkPointerExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerExitedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerExitedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BusinessLandmarkPointerExited += x, x => _data.BusinessLandmarkPointerExited -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkRightTappedEventArgs)> BusinessLandmarkRightTapped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkRightTappedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkRightTappedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.BusinessLandmarkRightTapped += x, x => _data.BusinessLandmarkRightTapped -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureClickEventArgs)> TransitFeatureClick => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureClickEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureClickEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TransitFeatureClick += x, x => _data.TransitFeatureClick -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerEnteredEventArgs)> TransitFeaturePointerEntered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerEnteredEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerEnteredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TransitFeaturePointerEntered += x, x => _data.TransitFeaturePointerEntered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerExitedEventArgs)> TransitFeaturePointerExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerExitedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerExitedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TransitFeaturePointerExited += x, x => _data.TransitFeaturePointerExited -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureRightTappedEventArgs)> TransitFeatureRightTapped => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapControl, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureRightTappedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapControl sender, global::Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureRightTappedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TransitFeatureRightTapped += x, x => _data.TransitFeatureRightTapped -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MapElementsLayerEvents + { + private readonly global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MapElementsLayerEvents(global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerContextRequestedEventArgs)> MapContextRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerContextRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer sender, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerContextRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapContextRequested += x, x => _data.MapContextRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerClickEventArgs)> MapElementClick => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerClickEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer sender, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerClickEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapElementClick += x, x => _data.MapElementClick -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerEnteredEventArgs)> MapElementPointerEntered => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerEnteredEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer sender, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerEnteredEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapElementPointerEntered += x, x => _data.MapElementPointerEntered -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerExitedEventArgs)> MapElementPointerExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerExitedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapElementsLayer sender, global::Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerExitedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MapElementPointerExited += x, x => _data.MapElementPointerExited -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MapSceneEvents + { + private readonly global::Windows.UI.Xaml.Controls.Maps.MapScene _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MapSceneEvents(global::Windows.UI.Xaml.Controls.Maps.MapScene data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Maps.MapScene, global::Windows.UI.Xaml.Controls.Maps.MapTargetCameraChangedEventArgs)> TargetCameraChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Maps.MapScene, global::Windows.UI.Xaml.Controls.Maps.MapTargetCameraChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Maps.MapScene sender, global::Windows.UI.Xaml.Controls.Maps.MapTargetCameraChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TargetCameraChanged += x, x => _data.TargetCameraChanged -= x); + } +} + +namespace Windows.UI.Xaml.Controls.Primitives +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ButtonBaseEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.ButtonBase item) => new ButtonBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CarouselPanelEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.CarouselPanel item) => new CarouselPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ColorSpectrumEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.ColorSpectrum item) => new ColorSpectrumEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FlyoutBaseEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.FlyoutBase item) => new FlyoutBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IScrollSnapPointsInfoEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo item) => new IScrollSnapPointsInfoEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LoopingSelectorEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.LoopingSelector item) => new LoopingSelectorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LoopingSelectorPanelEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.LoopingSelectorPanel item) => new LoopingSelectorPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static OrientedVirtualizingPanelEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.OrientedVirtualizingPanel item) => new OrientedVirtualizingPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PivotPanelEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.PivotPanel item) => new PivotPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PopupEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.Popup item) => new PopupEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RangeBaseEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.RangeBase item) => new RangeBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ScrollBarEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.ScrollBar item) => new ScrollBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SelectorEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.Selector item) => new SelectorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ThumbEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.Thumb item) => new ThumbEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToggleButtonEvents Events(this global::Windows.UI.Xaml.Controls.Primitives.ToggleButton item) => new ToggleButtonEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ButtonBaseEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.ButtonBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ButtonBaseEvents(global::Windows.UI.Xaml.Controls.Primitives.ButtonBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CarouselPanelEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.CarouselPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CarouselPanelEvents(global::Windows.UI.Xaml.Controls.Primitives.CarouselPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HorizontalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.HorizontalSnapPointsChanged += x, x => _data.HorizontalSnapPointsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VerticalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.VerticalSnapPointsChanged += x, x => _data.VerticalSnapPointsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ColorSpectrumEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.ColorSpectrum _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ColorSpectrumEvents(global::Windows.UI.Xaml.Controls.Primitives.ColorSpectrum data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Primitives.ColorSpectrum, global::Windows.UI.Xaml.Controls.ColorChangedEventArgs)> ColorChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Primitives.ColorSpectrum, global::Windows.UI.Xaml.Controls.ColorChangedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Primitives.ColorSpectrum sender, global::Windows.UI.Xaml.Controls.ColorChangedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ColorChanged += x, x => _data.ColorChanged -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FlyoutBaseEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.FlyoutBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FlyoutBaseEvents(global::Windows.UI.Xaml.Controls.Primitives.FlyoutBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Controls.Primitives.FlyoutBase, global::Windows.UI.Xaml.Controls.Primitives.FlyoutBaseClosingEventArgs)> Closing => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Controls.Primitives.FlyoutBase, global::Windows.UI.Xaml.Controls.Primitives.FlyoutBaseClosingEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Controls.Primitives.FlyoutBase sender, global::Windows.UI.Xaml.Controls.Primitives.FlyoutBaseClosingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Closing += x, x => _data.Closing -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opened => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Opened += x, x => _data.Opened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opening => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Opening += x, x => _data.Opening -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IScrollSnapPointsInfoEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IScrollSnapPointsInfoEvents(global::Windows.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HorizontalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.HorizontalSnapPointsChanged += x, x => _data.HorizontalSnapPointsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VerticalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.VerticalSnapPointsChanged += x, x => _data.VerticalSnapPointsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LoopingSelectorEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.LoopingSelector _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LoopingSelectorEvents(global::Windows.UI.Xaml.Controls.Primitives.LoopingSelector data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LoopingSelectorPanelEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.LoopingSelectorPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LoopingSelectorPanelEvents(global::Windows.UI.Xaml.Controls.Primitives.LoopingSelectorPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HorizontalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.HorizontalSnapPointsChanged += x, x => _data.HorizontalSnapPointsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VerticalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.VerticalSnapPointsChanged += x, x => _data.VerticalSnapPointsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class OrientedVirtualizingPanelEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.OrientedVirtualizingPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public OrientedVirtualizingPanelEvents(global::Windows.UI.Xaml.Controls.Primitives.OrientedVirtualizingPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HorizontalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.HorizontalSnapPointsChanged += x, x => _data.HorizontalSnapPointsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VerticalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.VerticalSnapPointsChanged += x, x => _data.VerticalSnapPointsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PivotPanelEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.PivotPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PivotPanelEvents(global::Windows.UI.Xaml.Controls.Primitives.PivotPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HorizontalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.HorizontalSnapPointsChanged += x, x => _data.HorizontalSnapPointsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VerticalSnapPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.VerticalSnapPointsChanged += x, x => _data.VerticalSnapPointsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PopupEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.Popup _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PopupEvents(global::Windows.UI.Xaml.Controls.Primitives.Popup data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opened => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Opened += x, x => _data.Opened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RangeBaseEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.RangeBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RangeBaseEvents(global::Windows.UI.Xaml.Controls.Primitives.RangeBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ValueChanged += x, x => _data.ValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ScrollBarEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.ScrollBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ScrollBarEvents(global::Windows.UI.Xaml.Controls.Primitives.ScrollBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SelectorEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.Selector _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SelectorEvents(global::Windows.UI.Xaml.Controls.Primitives.Selector data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ThumbEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.Thumb _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ThumbEvents(global::Windows.UI.Xaml.Controls.Primitives.Thumb data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragCompleted += x, x => _data.DragCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragDelta => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragDelta += x, x => _data.DragDelta -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragStarted += x, x => _data.DragStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToggleButtonEvents + { + private readonly global::Windows.UI.Xaml.Controls.Primitives.ToggleButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToggleButtonEvents(global::Windows.UI.Xaml.Controls.Primitives.ToggleButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Checked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Checked += x, x => _data.Checked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Indeterminate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Indeterminate += x, x => _data.Indeterminate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unchecked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unchecked += x, x => _data.Unchecked -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.UI.Xaml.Documents +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContentLinkEvents Events(this global::Windows.UI.Xaml.Documents.ContentLink item) => new ContentLinkEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HyperlinkEvents Events(this global::Windows.UI.Xaml.Documents.Hyperlink item) => new HyperlinkEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TextElementEvents Events(this global::Windows.UI.Xaml.Documents.TextElement item) => new TextElementEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContentLinkEvents + { + private readonly global::Windows.UI.Xaml.Documents.ContentLink _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContentLinkEvents(global::Windows.UI.Xaml.Documents.ContentLink data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Documents.ContentLink, global::Windows.UI.Xaml.Documents.ContentLinkInvokedEventArgs)> Invoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Documents.ContentLink, global::Windows.UI.Xaml.Documents.ContentLinkInvokedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Documents.ContentLink sender, global::Windows.UI.Xaml.Documents.ContentLinkInvokedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Invoked += x, x => _data.Invoked -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HyperlinkEvents + { + private readonly global::Windows.UI.Xaml.Documents.Hyperlink _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HyperlinkEvents(global::Windows.UI.Xaml.Documents.Hyperlink data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Documents.Hyperlink, global::Windows.UI.Xaml.Documents.HyperlinkClickEventArgs)> Click => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Documents.Hyperlink, global::Windows.UI.Xaml.Documents.HyperlinkClickEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Documents.Hyperlink sender, global::Windows.UI.Xaml.Documents.HyperlinkClickEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Click += x, x => _data.Click -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TextElementEvents + { + private readonly global::Windows.UI.Xaml.Documents.TextElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TextElementEvents(global::Windows.UI.Xaml.Documents.TextElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Documents.TextElement, global::Windows.UI.Xaml.Input.AccessKeyDisplayDismissedEventArgs)> AccessKeyDisplayDismissed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Documents.TextElement, global::Windows.UI.Xaml.Input.AccessKeyDisplayDismissedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Documents.TextElement sender, global::Windows.UI.Xaml.Input.AccessKeyDisplayDismissedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccessKeyDisplayDismissed += x, x => _data.AccessKeyDisplayDismissed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Documents.TextElement, global::Windows.UI.Xaml.Input.AccessKeyDisplayRequestedEventArgs)> AccessKeyDisplayRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Documents.TextElement, global::Windows.UI.Xaml.Input.AccessKeyDisplayRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Documents.TextElement sender, global::Windows.UI.Xaml.Input.AccessKeyDisplayRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccessKeyDisplayRequested += x, x => _data.AccessKeyDisplayRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Documents.TextElement, global::Windows.UI.Xaml.Input.AccessKeyInvokedEventArgs)> AccessKeyInvoked => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Documents.TextElement, global::Windows.UI.Xaml.Input.AccessKeyInvokedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Documents.TextElement sender, global::Windows.UI.Xaml.Input.AccessKeyInvokedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AccessKeyInvoked += x, x => _data.AccessKeyInvoked -= x); + } +} + +namespace Windows.UI.Xaml.Hosting +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DesignerAppManagerEvents Events(this global::Windows.UI.Xaml.Hosting.DesignerAppManager item) => new DesignerAppManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DesktopWindowXamlSourceEvents Events(this global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSource item) => new DesktopWindowXamlSourceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DesignerAppManagerEvents + { + private readonly global::Windows.UI.Xaml.Hosting.DesignerAppManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DesignerAppManagerEvents(global::Windows.UI.Xaml.Hosting.DesignerAppManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Hosting.DesignerAppManager, global::Windows.UI.Xaml.Hosting.DesignerAppExitedEventArgs)> DesignerAppExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Hosting.DesignerAppManager, global::Windows.UI.Xaml.Hosting.DesignerAppExitedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Hosting.DesignerAppManager sender, global::Windows.UI.Xaml.Hosting.DesignerAppExitedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DesignerAppExited += x, x => _data.DesignerAppExited -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DesktopWindowXamlSourceEvents + { + private readonly global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DesktopWindowXamlSourceEvents(global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSource, global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSourceGotFocusEventArgs)> GotFocus => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSource, global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSourceGotFocusEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSource sender, global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSourceGotFocusEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GotFocus += x, x => _data.GotFocus -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSource, global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSourceTakeFocusRequestedEventArgs)> TakeFocusRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSource, global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSourceTakeFocusRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSource sender, global::Windows.UI.Xaml.Hosting.DesktopWindowXamlSourceTakeFocusRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.TakeFocusRequested += x, x => _data.TakeFocusRequested -= x); + } +} + +namespace Windows.UI.Xaml.Media +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ImageBrushEvents Events(this global::Windows.UI.Xaml.Media.ImageBrush item) => new ImageBrushEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LoadedImageSurfaceEvents Events(this global::Windows.UI.Xaml.Media.LoadedImageSurface item) => new LoadedImageSurfaceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ImageBrushEvents + { + private readonly global::Windows.UI.Xaml.Media.ImageBrush _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ImageBrushEvents(global::Windows.UI.Xaml.Media.ImageBrush data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImageFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImageFailed += x, x => _data.ImageFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImageOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImageOpened += x, x => _data.ImageOpened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LoadedImageSurfaceEvents + { + private readonly global::Windows.UI.Xaml.Media.LoadedImageSurface _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LoadedImageSurfaceEvents(global::Windows.UI.Xaml.Media.LoadedImageSurface data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Media.LoadedImageSurface, global::Windows.UI.Xaml.Media.LoadedImageSourceLoadCompletedEventArgs)> LoadCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Media.LoadedImageSurface, global::Windows.UI.Xaml.Media.LoadedImageSourceLoadCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Media.LoadedImageSurface sender, global::Windows.UI.Xaml.Media.LoadedImageSourceLoadCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LoadCompleted += x, x => _data.LoadCompleted -= x); + } +} + +namespace Windows.UI.Xaml.Media.Animation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ConnectedAnimationEvents Events(this global::Windows.UI.Xaml.Media.Animation.ConnectedAnimation item) => new ConnectedAnimationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TimelineEvents Events(this global::Windows.UI.Xaml.Media.Animation.Timeline item) => new TimelineEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ConnectedAnimationEvents + { + private readonly global::Windows.UI.Xaml.Media.Animation.ConnectedAnimation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ConnectedAnimationEvents(global::Windows.UI.Xaml.Media.Animation.ConnectedAnimation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Media.Animation.ConnectedAnimation, object)> Completed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Media.Animation.ConnectedAnimation, object)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Media.Animation.ConnectedAnimation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Completed += x, x => _data.Completed -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TimelineEvents + { + private readonly global::Windows.UI.Xaml.Media.Animation.Timeline _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TimelineEvents(global::Windows.UI.Xaml.Media.Animation.Timeline data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => _data.Completed += x, x => _data.Completed -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.UI.Xaml.Media.Imaging +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BitmapImageEvents Events(this global::Windows.UI.Xaml.Media.Imaging.BitmapImage item) => new BitmapImageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SvgImageSourceEvents Events(this global::Windows.UI.Xaml.Media.Imaging.SvgImageSource item) => new SvgImageSourceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BitmapImageEvents + { + private readonly global::Windows.UI.Xaml.Media.Imaging.BitmapImage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BitmapImageEvents(global::Windows.UI.Xaml.Media.Imaging.BitmapImage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DownloadProgress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DownloadProgress += x, x => _data.DownloadProgress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImageFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImageFailed += x, x => _data.ImageFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImageOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImageOpened += x, x => _data.ImageOpened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SvgImageSourceEvents + { + private readonly global::Windows.UI.Xaml.Media.Imaging.SvgImageSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SvgImageSourceEvents(global::Windows.UI.Xaml.Media.Imaging.SvgImageSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Media.Imaging.SvgImageSource, global::Windows.UI.Xaml.Media.Imaging.SvgImageSourceOpenedEventArgs)> Opened => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Media.Imaging.SvgImageSource, global::Windows.UI.Xaml.Media.Imaging.SvgImageSourceOpenedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Media.Imaging.SvgImageSource sender, global::Windows.UI.Xaml.Media.Imaging.SvgImageSourceOpenedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.Opened += x, x => _data.Opened -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.UI.Xaml.Media.Imaging.SvgImageSource, global::Windows.UI.Xaml.Media.Imaging.SvgImageSourceFailedEventArgs)> OpenFailed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.UI.Xaml.Media.Imaging.SvgImageSource, global::Windows.UI.Xaml.Media.Imaging.SvgImageSourceFailedEventArgs)>(eventHandler => + { + void Handler(global::Windows.UI.Xaml.Media.Imaging.SvgImageSource sender, global::Windows.UI.Xaml.Media.Imaging.SvgImageSourceFailedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.OpenFailed += x, x => _data.OpenFailed -= x); + } +} + +namespace Windows.UI.Xaml.Printing +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PrintDocumentEvents Events(this global::Windows.UI.Xaml.Printing.PrintDocument item) => new PrintDocumentEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PrintDocumentEvents + { + private readonly global::Windows.UI.Xaml.Printing.PrintDocument _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PrintDocumentEvents(global::Windows.UI.Xaml.Printing.PrintDocument data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AddPages => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AddPages += x, x => _data.AddPages -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GetPreviewPage => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GetPreviewPage += x, x => _data.GetPreviewPage -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paginate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paginate += x, x => _data.Paginate -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Web.Http.Diagnostics +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HttpDiagnosticProviderEvents Events(this global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider item) => new HttpDiagnosticProviderEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HttpDiagnosticProviderEvents + { + private readonly global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HttpDiagnosticProviderEvents(global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider, global::Windows.Web.Http.Diagnostics.HttpDiagnosticProviderRequestResponseCompletedEventArgs)> RequestResponseCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider, global::Windows.Web.Http.Diagnostics.HttpDiagnosticProviderRequestResponseCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider sender, global::Windows.Web.Http.Diagnostics.HttpDiagnosticProviderRequestResponseCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RequestResponseCompleted += x, x => _data.RequestResponseCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider, global::Windows.Web.Http.Diagnostics.HttpDiagnosticProviderRequestSentEventArgs)> RequestSent => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider, global::Windows.Web.Http.Diagnostics.HttpDiagnosticProviderRequestSentEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider sender, global::Windows.Web.Http.Diagnostics.HttpDiagnosticProviderRequestSentEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.RequestSent += x, x => _data.RequestSent -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider, global::Windows.Web.Http.Diagnostics.HttpDiagnosticProviderResponseReceivedEventArgs)> ResponseReceived => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider, global::Windows.Web.Http.Diagnostics.HttpDiagnosticProviderResponseReceivedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.Http.Diagnostics.HttpDiagnosticProvider sender, global::Windows.Web.Http.Diagnostics.HttpDiagnosticProviderResponseReceivedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ResponseReceived += x, x => _data.ResponseReceived -= x); + } +} + +namespace Windows.Web.Http.Filters +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HttpBaseProtocolFilterEvents Events(this global::Windows.Web.Http.Filters.HttpBaseProtocolFilter item) => new HttpBaseProtocolFilterEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HttpBaseProtocolFilterEvents + { + private readonly global::Windows.Web.Http.Filters.HttpBaseProtocolFilter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HttpBaseProtocolFilterEvents(global::Windows.Web.Http.Filters.HttpBaseProtocolFilter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.Http.Filters.HttpBaseProtocolFilter, global::Windows.Web.Http.Filters.HttpServerCustomValidationRequestedEventArgs)> ServerCustomValidationRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.Http.Filters.HttpBaseProtocolFilter, global::Windows.Web.Http.Filters.HttpServerCustomValidationRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.Http.Filters.HttpBaseProtocolFilter sender, global::Windows.Web.Http.Filters.HttpServerCustomValidationRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ServerCustomValidationRequested += x, x => _data.ServerCustomValidationRequested -= x); + } +} + +namespace Windows.Web.UI +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IWebViewControlEvents Events(this global::Windows.Web.UI.IWebViewControl item) => new IWebViewControlEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IWebViewControlEvents + { + private readonly global::Windows.Web.UI.IWebViewControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IWebViewControlEvents(global::Windows.Web.UI.IWebViewControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, object)> ContainsFullScreenElementChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, object)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContainsFullScreenElementChanged += x, x => _data.ContainsFullScreenElementChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)> ContentLoading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentLoading += x, x => _data.ContentLoading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)> DOMContentLoaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DOMContentLoaded += x, x => _data.DOMContentLoaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)> FrameContentLoading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameContentLoading += x, x => _data.FrameContentLoading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)> FrameDOMContentLoaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameDOMContentLoaded += x, x => _data.FrameDOMContentLoaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)> FrameNavigationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameNavigationCompleted += x, x => _data.FrameNavigationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)> FrameNavigationStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameNavigationStarting += x, x => _data.FrameNavigationStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs)> LongRunningScriptDetected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LongRunningScriptDetected += x, x => _data.LongRunningScriptDetected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)> NavigationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationCompleted += x, x => _data.NavigationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)> NavigationStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationStarting += x, x => _data.NavigationStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs)> NewWindowRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NewWindowRequested += x, x => _data.NewWindowRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlPermissionRequestedEventArgs)> PermissionRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlPermissionRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlPermissionRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PermissionRequested += x, x => _data.PermissionRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlScriptNotifyEventArgs)> ScriptNotify => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlScriptNotifyEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlScriptNotifyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ScriptNotify += x, x => _data.ScriptNotify -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, object)> UnsafeContentWarningDisplaying => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, object)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnsafeContentWarningDisplaying += x, x => _data.UnsafeContentWarningDisplaying -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs)> UnsupportedUriSchemeIdentified => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnsupportedUriSchemeIdentified += x, x => _data.UnsupportedUriSchemeIdentified -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs)> UnviewableContentIdentified => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnviewableContentIdentified += x, x => _data.UnviewableContentIdentified -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs)> WebResourceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WebResourceRequested += x, x => _data.WebResourceRequested -= x); + } +} + +namespace Windows.Web.UI.Interop +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebViewControlEvents Events(this global::Windows.Web.UI.Interop.WebViewControl item) => new WebViewControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebViewControlProcessEvents Events(this global::Windows.Web.UI.Interop.WebViewControlProcess item) => new WebViewControlProcessEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebViewControlEvents + { + private readonly global::Windows.Web.UI.Interop.WebViewControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebViewControlEvents(global::Windows.Web.UI.Interop.WebViewControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.Interop.WebViewControl, global::Windows.Web.UI.Interop.WebViewControlAcceleratorKeyPressedEventArgs)> AcceleratorKeyPressed => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.Interop.WebViewControl, global::Windows.Web.UI.Interop.WebViewControlAcceleratorKeyPressedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.Interop.WebViewControl sender, global::Windows.Web.UI.Interop.WebViewControlAcceleratorKeyPressedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.AcceleratorKeyPressed += x, x => _data.AcceleratorKeyPressed -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, object)> ContainsFullScreenElementChanged => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, object)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContainsFullScreenElementChanged += x, x => _data.ContainsFullScreenElementChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)> ContentLoading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ContentLoading += x, x => _data.ContentLoading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)> DOMContentLoaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.DOMContentLoaded += x, x => _data.DOMContentLoaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)> FrameContentLoading => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlContentLoadingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameContentLoading += x, x => _data.FrameContentLoading -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)> FrameDOMContentLoaded => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameDOMContentLoaded += x, x => _data.FrameDOMContentLoaded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)> FrameNavigationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameNavigationCompleted += x, x => _data.FrameNavigationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)> FrameNavigationStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.FrameNavigationStarting += x, x => _data.FrameNavigationStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.Interop.WebViewControl, object)> GotFocus => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.Interop.WebViewControl, object)>(eventHandler => + { + void Handler(global::Windows.Web.UI.Interop.WebViewControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.GotFocus += x, x => _data.GotFocus -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs)> LongRunningScriptDetected => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LongRunningScriptDetected += x, x => _data.LongRunningScriptDetected -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.Interop.WebViewControl, object)> LostFocus => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.Interop.WebViewControl, object)>(eventHandler => + { + void Handler(global::Windows.Web.UI.Interop.WebViewControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.LostFocus += x, x => _data.LostFocus -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.Interop.WebViewControl, global::Windows.Web.UI.Interop.WebViewControlMoveFocusRequestedEventArgs)> MoveFocusRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.Interop.WebViewControl, global::Windows.Web.UI.Interop.WebViewControlMoveFocusRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.Interop.WebViewControl sender, global::Windows.Web.UI.Interop.WebViewControlMoveFocusRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.MoveFocusRequested += x, x => _data.MoveFocusRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)> NavigationCompleted => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationCompletedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationCompleted += x, x => _data.NavigationCompleted -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)> NavigationStarting => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNavigationStartingEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NavigationStarting += x, x => _data.NavigationStarting -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs)> NewWindowRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.NewWindowRequested += x, x => _data.NewWindowRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlPermissionRequestedEventArgs)> PermissionRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlPermissionRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlPermissionRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.PermissionRequested += x, x => _data.PermissionRequested -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlScriptNotifyEventArgs)> ScriptNotify => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlScriptNotifyEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlScriptNotifyEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ScriptNotify += x, x => _data.ScriptNotify -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, object)> UnsafeContentWarningDisplaying => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, object)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnsafeContentWarningDisplaying += x, x => _data.UnsafeContentWarningDisplaying -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs)> UnsupportedUriSchemeIdentified => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnsupportedUriSchemeIdentified += x, x => _data.UnsupportedUriSchemeIdentified -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs)> UnviewableContentIdentified => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.UnviewableContentIdentified += x, x => _data.UnviewableContentIdentified -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs)> WebResourceRequested => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.IWebViewControl, global::Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs)>(eventHandler => + { + void Handler(global::Windows.Web.UI.IWebViewControl sender, global::Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.WebResourceRequested += x, x => _data.WebResourceRequested -= x); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebViewControlProcessEvents + { + private readonly global::Windows.Web.UI.Interop.WebViewControlProcess _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebViewControlProcessEvents(global::Windows.Web.UI.Interop.WebViewControlProcess data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable<(global::Windows.Web.UI.Interop.WebViewControlProcess, object)> ProcessExited => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Web.UI.Interop.WebViewControlProcess, object)>(eventHandler => + { + void Handler(global::Windows.Web.UI.Interop.WebViewControlProcess sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => _data.ProcessExited += x, x => _data.ProcessExited -= x); + } +} + +namespace Windows.ApplicationModel.Calls +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PhoneCallManagerCallStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.ApplicationModel.Calls.PhoneCallManager.CallStateChanged += x, x => global::Windows.ApplicationModel.Calls.PhoneCallManager.CallStateChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.ApplicationModel.Chat +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RcsManagerTransportListChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.ApplicationModel.Chat.RcsManager.TransportListChanged += x, x => global::Windows.ApplicationModel.Chat.RcsManager.TransportListChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.ApplicationModel.Core +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CoreApplicationBackgroundActivated => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs>(x => global::Windows.ApplicationModel.Core.CoreApplication.BackgroundActivated += x, x => global::Windows.ApplicationModel.Core.CoreApplication.BackgroundActivated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CoreApplicationEnteredBackground => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.ApplicationModel.EnteredBackgroundEventArgs>(x => global::Windows.ApplicationModel.Core.CoreApplication.EnteredBackground += x, x => global::Windows.ApplicationModel.Core.CoreApplication.EnteredBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CoreApplicationExiting => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.ApplicationModel.Core.CoreApplication.Exiting += x, x => global::Windows.ApplicationModel.Core.CoreApplication.Exiting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CoreApplicationLeavingBackground => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.ApplicationModel.LeavingBackgroundEventArgs>(x => global::Windows.ApplicationModel.Core.CoreApplication.LeavingBackground += x, x => global::Windows.ApplicationModel.Core.CoreApplication.LeavingBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CoreApplicationResuming => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.ApplicationModel.Core.CoreApplication.Resuming += x, x => global::Windows.ApplicationModel.Core.CoreApplication.Resuming -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CoreApplicationSuspending => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.ApplicationModel.SuspendingEventArgs>(x => global::Windows.ApplicationModel.Core.CoreApplication.Suspending += x, x => global::Windows.ApplicationModel.Core.CoreApplication.Suspending -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CoreApplicationUnhandledErrorDetected => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.ApplicationModel.Core.UnhandledErrorDetectedEventArgs>(x => global::Windows.ApplicationModel.Core.CoreApplication.UnhandledErrorDetected += x, x => global::Windows.ApplicationModel.Core.CoreApplication.UnhandledErrorDetected -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.ApplicationModel.DataTransfer +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ClipboardContentChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.ApplicationModel.DataTransfer.Clipboard.ContentChanged += x, x => global::Windows.ApplicationModel.DataTransfer.Clipboard.ContentChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ClipboardHistoryChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.ApplicationModel.DataTransfer.ClipboardHistoryChangedEventArgs>(x => global::Windows.ApplicationModel.DataTransfer.Clipboard.HistoryChanged += x, x => global::Windows.ApplicationModel.DataTransfer.Clipboard.HistoryChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ClipboardHistoryEnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.ApplicationModel.DataTransfer.Clipboard.HistoryEnabledChanged += x, x => global::Windows.ApplicationModel.DataTransfer.Clipboard.HistoryEnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ClipboardRoamingEnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.ApplicationModel.DataTransfer.Clipboard.RoamingEnabledChanged += x, x => global::Windows.ApplicationModel.DataTransfer.Clipboard.RoamingEnabledChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Foundation.Diagnostics +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AsyncCausalityTracerTracingStatusChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Foundation.Diagnostics.TracingStatusChangedEventArgs>(x => global::Windows.Foundation.Diagnostics.AsyncCausalityTracer.TracingStatusChanged += x, x => global::Windows.Foundation.Diagnostics.AsyncCausalityTracer.TracingStatusChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Gaming.Input +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ArcadeStickArcadeStickAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.ArcadeStick>(x => global::Windows.Gaming.Input.ArcadeStick.ArcadeStickAdded += x, x => global::Windows.Gaming.Input.ArcadeStick.ArcadeStickAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ArcadeStickArcadeStickRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.ArcadeStick>(x => global::Windows.Gaming.Input.ArcadeStick.ArcadeStickRemoved += x, x => global::Windows.Gaming.Input.ArcadeStick.ArcadeStickRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable FlightStickFlightStickAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.FlightStick>(x => global::Windows.Gaming.Input.FlightStick.FlightStickAdded += x, x => global::Windows.Gaming.Input.FlightStick.FlightStickAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable FlightStickFlightStickRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.FlightStick>(x => global::Windows.Gaming.Input.FlightStick.FlightStickRemoved += x, x => global::Windows.Gaming.Input.FlightStick.FlightStickRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable GamepadGamepadAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.Gamepad>(x => global::Windows.Gaming.Input.Gamepad.GamepadAdded += x, x => global::Windows.Gaming.Input.Gamepad.GamepadAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable GamepadGamepadRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.Gamepad>(x => global::Windows.Gaming.Input.Gamepad.GamepadRemoved += x, x => global::Windows.Gaming.Input.Gamepad.GamepadRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RacingWheelRacingWheelAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.RacingWheel>(x => global::Windows.Gaming.Input.RacingWheel.RacingWheelAdded += x, x => global::Windows.Gaming.Input.RacingWheel.RacingWheelAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RacingWheelRacingWheelRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.RacingWheel>(x => global::Windows.Gaming.Input.RacingWheel.RacingWheelRemoved += x, x => global::Windows.Gaming.Input.RacingWheel.RacingWheelRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RawGameControllerRawGameControllerAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.RawGameController>(x => global::Windows.Gaming.Input.RawGameController.RawGameControllerAdded += x, x => global::Windows.Gaming.Input.RawGameController.RawGameControllerAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RawGameControllerRawGameControllerRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.RawGameController>(x => global::Windows.Gaming.Input.RawGameController.RawGameControllerRemoved += x, x => global::Windows.Gaming.Input.RawGameController.RawGameControllerRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable UINavigationControllerUINavigationControllerAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.UINavigationController>(x => global::Windows.Gaming.Input.UINavigationController.UINavigationControllerAdded += x, x => global::Windows.Gaming.Input.UINavigationController.UINavigationControllerAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable UINavigationControllerUINavigationControllerRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Gaming.Input.UINavigationController>(x => global::Windows.Gaming.Input.UINavigationController.UINavigationControllerRemoved += x, x => global::Windows.Gaming.Input.UINavigationController.UINavigationControllerRemoved -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Gaming.Preview.GamesEnumeration +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable GameListGameAdded => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Gaming.Preview.GamesEnumeration.GameListEntry game) => eventHandler(game); + return Handler; + } + + , x => global::Windows.Gaming.Preview.GamesEnumeration.GameList.GameAdded += x, x => global::Windows.Gaming.Preview.GamesEnumeration.GameList.GameAdded -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable GameListGameRemoved => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(string identifier) => eventHandler(identifier); + return Handler; + } + + , x => global::Windows.Gaming.Preview.GamesEnumeration.GameList.GameRemoved += x, x => global::Windows.Gaming.Preview.GamesEnumeration.GameList.GameRemoved -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable GameListGameUpdated => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::Windows.Gaming.Preview.GamesEnumeration.GameListEntry game) => eventHandler(game); + return Handler; + } + + , x => global::Windows.Gaming.Preview.GamesEnumeration.GameList.GameUpdated += x, x => global::Windows.Gaming.Preview.GamesEnumeration.GameList.GameUpdated -= x); + } +} + +namespace Windows.Gaming.UI +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable GameBarIsInputRedirectedChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Gaming.UI.GameBar.IsInputRedirectedChanged += x, x => global::Windows.Gaming.UI.GameBar.IsInputRedirectedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable GameBarVisibilityChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Gaming.UI.GameBar.VisibilityChanged += x, x => global::Windows.Gaming.UI.GameBar.VisibilityChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Graphics.Display +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable<(global::Windows.Graphics.Display.DisplayInformation, object)> DisplayInformationDisplayContentsInvalidated => global::System.Reactive.Linq.Observable.FromEvent, (global::Windows.Graphics.Display.DisplayInformation, object)>(eventHandler => + { + void Handler(global::Windows.Graphics.Display.DisplayInformation sender, object args) => eventHandler((sender, args)); + return Handler; + } + + , x => global::Windows.Graphics.Display.DisplayInformation.DisplayContentsInvalidated += x, x => global::Windows.Graphics.Display.DisplayInformation.DisplayContentsInvalidated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable DisplayPropertiesColorProfileChanged => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(object sender) => eventHandler(sender); + return Handler; + } + + , x => global::Windows.Graphics.Display.DisplayProperties.ColorProfileChanged += x, x => global::Windows.Graphics.Display.DisplayProperties.ColorProfileChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable DisplayPropertiesDisplayContentsInvalidated => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(object sender) => eventHandler(sender); + return Handler; + } + + , x => global::Windows.Graphics.Display.DisplayProperties.DisplayContentsInvalidated += x, x => global::Windows.Graphics.Display.DisplayProperties.DisplayContentsInvalidated -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable DisplayPropertiesLogicalDpiChanged => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(object sender) => eventHandler(sender); + return Handler; + } + + , x => global::Windows.Graphics.Display.DisplayProperties.LogicalDpiChanged += x, x => global::Windows.Graphics.Display.DisplayProperties.LogicalDpiChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable DisplayPropertiesOrientationChanged => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(object sender) => eventHandler(sender); + return Handler; + } + + , x => global::Windows.Graphics.Display.DisplayProperties.OrientationChanged += x, x => global::Windows.Graphics.Display.DisplayProperties.OrientationChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable DisplayPropertiesStereoEnabledChanged => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(object sender) => eventHandler(sender); + return Handler; + } + + , x => global::Windows.Graphics.Display.DisplayProperties.StereoEnabledChanged += x, x => global::Windows.Graphics.Display.DisplayProperties.StereoEnabledChanged -= x); + } +} + +namespace Windows.Graphics.Holographic +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable HolographicSpaceIsAvailableChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Graphics.Holographic.HolographicSpace.IsAvailableChanged += x, x => global::Windows.Graphics.Holographic.HolographicSpace.IsAvailableChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Media +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlChannelDownPressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.ChannelDownPressed += x, x => global::Windows.Media.MediaControl.ChannelDownPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlChannelUpPressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.ChannelUpPressed += x, x => global::Windows.Media.MediaControl.ChannelUpPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlFastForwardPressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.FastForwardPressed += x, x => global::Windows.Media.MediaControl.FastForwardPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlNextTrackPressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.NextTrackPressed += x, x => global::Windows.Media.MediaControl.NextTrackPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlPausePressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.PausePressed += x, x => global::Windows.Media.MediaControl.PausePressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlPlayPauseTogglePressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.PlayPauseTogglePressed += x, x => global::Windows.Media.MediaControl.PlayPauseTogglePressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlPlayPressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.PlayPressed += x, x => global::Windows.Media.MediaControl.PlayPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlPreviousTrackPressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.PreviousTrackPressed += x, x => global::Windows.Media.MediaControl.PreviousTrackPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlRecordPressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.RecordPressed += x, x => global::Windows.Media.MediaControl.RecordPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlRewindPressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.RewindPressed += x, x => global::Windows.Media.MediaControl.RewindPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlSoundLevelChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.SoundLevelChanged += x, x => global::Windows.Media.MediaControl.SoundLevelChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaControlStopPressed => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.MediaControl.StopPressed += x, x => global::Windows.Media.MediaControl.StopPressed -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Media.Core.Preview +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SoundLevelBrokerSoundLevelChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Media.Core.Preview.SoundLevelBroker.SoundLevelChanged += x, x => global::Windows.Media.Core.Preview.SoundLevelBroker.SoundLevelChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Media.Devices +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaDeviceDefaultAudioCaptureDeviceChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Media.Devices.DefaultAudioCaptureDeviceChangedEventArgs>(x => global::Windows.Media.Devices.MediaDevice.DefaultAudioCaptureDeviceChanged += x, x => global::Windows.Media.Devices.MediaDevice.DefaultAudioCaptureDeviceChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MediaDeviceDefaultAudioRenderDeviceChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Media.Devices.DefaultAudioRenderDeviceChangedEventArgs>(x => global::Windows.Media.Devices.MediaDevice.DefaultAudioRenderDeviceChanged += x, x => global::Windows.Media.Devices.MediaDevice.DefaultAudioRenderDeviceChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Media.Playback +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable BackgroundMediaPlayerMessageReceivedFromBackground => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Media.Playback.MediaPlayerDataReceivedEventArgs>(x => global::Windows.Media.Playback.BackgroundMediaPlayer.MessageReceivedFromBackground += x, x => global::Windows.Media.Playback.BackgroundMediaPlayer.MessageReceivedFromBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable BackgroundMediaPlayerMessageReceivedFromForeground => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Media.Playback.MediaPlayerDataReceivedEventArgs>(x => global::Windows.Media.Playback.BackgroundMediaPlayer.MessageReceivedFromForeground += x, x => global::Windows.Media.Playback.BackgroundMediaPlayer.MessageReceivedFromForeground -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Networking.Connectivity +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable NetworkInformationNetworkStatusChanged => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(object sender) => eventHandler(sender); + return Handler; + } + + , x => global::Windows.Networking.Connectivity.NetworkInformation.NetworkStatusChanged += x, x => global::Windows.Networking.Connectivity.NetworkInformation.NetworkStatusChanged -= x); + } +} + +namespace Windows.Networking.NetworkOperators +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ESimManagerServiceInfoChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Networking.NetworkOperators.ESimManager.ServiceInfoChanged += x, x => global::Windows.Networking.NetworkOperators.ESimManager.ServiceInfoChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Networking.Proximity +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PeerFinderConnectionRequested => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Networking.Proximity.ConnectionRequestedEventArgs>(x => global::Windows.Networking.Proximity.PeerFinder.ConnectionRequested += x, x => global::Windows.Networking.Proximity.PeerFinder.ConnectionRequested -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PeerFinderTriggeredConnectionStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Networking.Proximity.TriggeredConnectionStateChangedEventArgs>(x => global::Windows.Networking.Proximity.PeerFinder.TriggeredConnectionStateChanged += x, x => global::Windows.Networking.Proximity.PeerFinder.TriggeredConnectionStateChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Perception.Spatial +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SpatialStageFrameOfReferenceCurrentChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Perception.Spatial.SpatialStageFrameOfReference.CurrentChanged += x, x => global::Windows.Perception.Spatial.SpatialStageFrameOfReference.CurrentChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Phone.System.Power +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PowerManagerPowerSavingModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Phone.System.Power.PowerManager.PowerSavingModeChanged += x, x => global::Windows.Phone.System.Power.PowerManager.PowerSavingModeChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Phone.UI.Input +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable HardwareButtonsBackPressed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Phone.UI.Input.BackPressedEventArgs>(x => global::Windows.Phone.UI.Input.HardwareButtons.BackPressed += x, x => global::Windows.Phone.UI.Input.HardwareButtons.BackPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable HardwareButtonsCameraHalfPressed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Phone.UI.Input.CameraEventArgs>(x => global::Windows.Phone.UI.Input.HardwareButtons.CameraHalfPressed += x, x => global::Windows.Phone.UI.Input.HardwareButtons.CameraHalfPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable HardwareButtonsCameraPressed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Phone.UI.Input.CameraEventArgs>(x => global::Windows.Phone.UI.Input.HardwareButtons.CameraPressed += x, x => global::Windows.Phone.UI.Input.HardwareButtons.CameraPressed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable HardwareButtonsCameraReleased => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Phone.UI.Input.CameraEventArgs>(x => global::Windows.Phone.UI.Input.HardwareButtons.CameraReleased += x, x => global::Windows.Phone.UI.Input.HardwareButtons.CameraReleased -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Security.Authentication.Identity.Provider +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SecondaryAuthenticationFactorAuthenticationAuthenticationStageChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs>(x => global::Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication.AuthenticationStageChanged += x, x => global::Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication.AuthenticationStageChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.Security.EnterpriseData +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ProtectionPolicyManagerPolicyChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.Security.EnterpriseData.ProtectionPolicyManager.PolicyChanged += x, x => global::Windows.Security.EnterpriseData.ProtectionPolicyManager.PolicyChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ProtectionPolicyManagerProtectedAccessResumed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Security.EnterpriseData.ProtectedAccessResumedEventArgs>(x => global::Windows.Security.EnterpriseData.ProtectionPolicyManager.ProtectedAccessResumed += x, x => global::Windows.Security.EnterpriseData.ProtectionPolicyManager.ProtectedAccessResumed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ProtectionPolicyManagerProtectedAccessSuspending => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Security.EnterpriseData.ProtectedAccessSuspendingEventArgs>(x => global::Windows.Security.EnterpriseData.ProtectionPolicyManager.ProtectedAccessSuspending += x, x => global::Windows.Security.EnterpriseData.ProtectionPolicyManager.ProtectedAccessSuspending -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ProtectionPolicyManagerProtectedContentRevoked => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.Security.EnterpriseData.ProtectedContentRevokedEventArgs>(x => global::Windows.Security.EnterpriseData.ProtectionPolicyManager.ProtectedContentRevoked += x, x => global::Windows.Security.EnterpriseData.ProtectionPolicyManager.ProtectedContentRevoked -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.System +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MemoryManagerAppMemoryUsageDecreased => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.MemoryManager.AppMemoryUsageDecreased += x, x => global::Windows.System.MemoryManager.AppMemoryUsageDecreased -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MemoryManagerAppMemoryUsageIncreased => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.MemoryManager.AppMemoryUsageIncreased += x, x => global::Windows.System.MemoryManager.AppMemoryUsageIncreased -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable MemoryManagerAppMemoryUsageLimitChanging => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.System.AppMemoryUsageLimitChangingEventArgs>(x => global::Windows.System.MemoryManager.AppMemoryUsageLimitChanging += x, x => global::Windows.System.MemoryManager.AppMemoryUsageLimitChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable UserDeviceAssociationUserDeviceAssociationChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.System.UserDeviceAssociationChangedEventArgs>(x => global::Windows.System.UserDeviceAssociation.UserDeviceAssociationChanged += x, x => global::Windows.System.UserDeviceAssociation.UserDeviceAssociationChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.System.Power +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable BackgroundEnergyManagerRecentEnergyUsageIncreased => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Power.BackgroundEnergyManager.RecentEnergyUsageIncreased += x, x => global::Windows.System.Power.BackgroundEnergyManager.RecentEnergyUsageIncreased -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable BackgroundEnergyManagerRecentEnergyUsageReturnedToLow => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Power.BackgroundEnergyManager.RecentEnergyUsageReturnedToLow += x, x => global::Windows.System.Power.BackgroundEnergyManager.RecentEnergyUsageReturnedToLow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ForegroundEnergyManagerRecentEnergyUsageIncreased => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Power.ForegroundEnergyManager.RecentEnergyUsageIncreased += x, x => global::Windows.System.Power.ForegroundEnergyManager.RecentEnergyUsageIncreased -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ForegroundEnergyManagerRecentEnergyUsageReturnedToLow => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Power.ForegroundEnergyManager.RecentEnergyUsageReturnedToLow += x, x => global::Windows.System.Power.ForegroundEnergyManager.RecentEnergyUsageReturnedToLow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PowerManagerBatteryStatusChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Power.PowerManager.BatteryStatusChanged += x, x => global::Windows.System.Power.PowerManager.BatteryStatusChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PowerManagerEnergySaverStatusChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Power.PowerManager.EnergySaverStatusChanged += x, x => global::Windows.System.Power.PowerManager.EnergySaverStatusChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PowerManagerPowerSupplyStatusChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Power.PowerManager.PowerSupplyStatusChanged += x, x => global::Windows.System.Power.PowerManager.PowerSupplyStatusChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PowerManagerRemainingChargePercentChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Power.PowerManager.RemainingChargePercentChanged += x, x => global::Windows.System.Power.PowerManager.RemainingChargePercentChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PowerManagerRemainingDischargeTimeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Power.PowerManager.RemainingDischargeTimeChanged += x, x => global::Windows.System.Power.PowerManager.RemainingDischargeTimeChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.System.Profile +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PlatformDiagnosticsAndUsageDataSettingsCollectionLevelChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Profile.PlatformDiagnosticsAndUsageDataSettings.CollectionLevelChanged += x, x => global::Windows.System.Profile.PlatformDiagnosticsAndUsageDataSettings.CollectionLevelChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemSetupInfoOutOfBoxExperienceStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Profile.SystemSetupInfo.OutOfBoxExperienceStateChanged += x, x => global::Windows.System.Profile.SystemSetupInfo.OutOfBoxExperienceStateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable WindowsIntegrityPolicyPolicyChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Profile.WindowsIntegrityPolicy.PolicyChanged += x, x => global::Windows.System.Profile.WindowsIntegrityPolicy.PolicyChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.System.Update +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemUpdateManagerStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.Update.SystemUpdateManager.StateChanged += x, x => global::Windows.System.Update.SystemUpdateManager.StateChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.System.UserProfile +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable UserInformationAccountPictureChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.System.UserProfile.UserInformation.AccountPictureChanged += x, x => global::Windows.System.UserProfile.UserInformation.AccountPictureChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.UI.ViewManagement +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ProjectionManagerProjectionDisplayAvailableChanged => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.UI.ViewManagement.ProjectionManager.ProjectionDisplayAvailableChanged += x, x => global::Windows.UI.ViewManagement.ProjectionManager.ProjectionDisplayAvailableChanged -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.UI.WebUI +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable WebUIApplicationActivated => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Windows.UI.WebUI.WebUIApplication.Activated += x, x => global::Windows.UI.WebUI.WebUIApplication.Activated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable WebUIApplicationBackgroundActivated => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Windows.UI.WebUI.WebUIApplication.BackgroundActivated += x, x => global::Windows.UI.WebUI.WebUIApplication.BackgroundActivated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable WebUIApplicationEnteredBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Windows.UI.WebUI.WebUIApplication.EnteredBackground += x, x => global::Windows.UI.WebUI.WebUIApplication.EnteredBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable WebUIApplicationLeavingBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Windows.UI.WebUI.WebUIApplication.LeavingBackground += x, x => global::Windows.UI.WebUI.WebUIApplication.LeavingBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable WebUIApplicationNavigated => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Windows.UI.WebUI.WebUIApplication.Navigated += x, x => global::Windows.UI.WebUI.WebUIApplication.Navigated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable WebUIApplicationNewWebUIViewCreated => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.WebUI.NewWebUIViewCreatedEventArgs>(x => global::Windows.UI.WebUI.WebUIApplication.NewWebUIViewCreated += x, x => global::Windows.UI.WebUI.WebUIApplication.NewWebUIViewCreated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable WebUIApplicationResuming => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(object sender) => eventHandler(sender); + return Handler; + } + + , x => global::Windows.UI.WebUI.WebUIApplication.Resuming += x, x => global::Windows.UI.WebUI.WebUIApplication.Resuming -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable WebUIApplicationSuspending => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Windows.UI.WebUI.WebUIApplication.Suspending += x, x => global::Windows.UI.WebUI.WebUIApplication.Suspending -= x).Select(x => x.EventArgs); + } +} + +namespace Windows.UI.Xaml.Media +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CompositionTargetRendered => global::System.Reactive.Linq.Observable.FromEventPattern, global::Windows.UI.Xaml.Media.RenderedEventArgs>(x => global::Windows.UI.Xaml.Media.CompositionTarget.Rendered += x, x => global::Windows.UI.Xaml.Media.CompositionTarget.Rendered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CompositionTargetRendering => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.UI.Xaml.Media.CompositionTarget.Rendering += x, x => global::Windows.UI.Xaml.Media.CompositionTarget.Rendering -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CompositionTargetSurfaceContentsLost => global::System.Reactive.Linq.Observable.FromEventPattern, object>(x => global::Windows.UI.Xaml.Media.CompositionTarget.SurfaceContentsLost += x, x => global::Windows.UI.Xaml.Media.CompositionTarget.SurfaceContentsLost -= x).Select(x => x.EventArgs); + } +} \ No newline at end of file diff --git a/src/Pharmacist.Tests/IntegrationTests/Approved/WPF.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/WPF.approved.txt new file mode 100644 index 0000000..8123011 --- /dev/null +++ b/src/Pharmacist.Tests/IntegrationTests/Approved/WPF.approved.txt @@ -0,0 +1,4474 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using global::System; +using global::System.Reactive; +using global::System.Reactive.Linq; +using global::System.Reactive.Subjects; + +using global::Pharmacist.Common; + +namespace Microsoft.Win32 +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FileDialogEvents Events(this global::Microsoft.Win32.FileDialog item) => new FileDialogEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FileDialogEvents + { + private readonly global::Microsoft.Win32.FileDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FileDialogEvents(global::Microsoft.Win32.FileDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FileOk => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FileOk += x, x => _data.FileOk -= x).Select(x => x.EventArgs); + } +} + +namespace System.ComponentModel +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ICollectionViewEvents Events(this global::System.ComponentModel.ICollectionView item) => new ICollectionViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ICollectionViewEvents + { + private readonly global::System.ComponentModel.ICollectionView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ICollectionViewEvents(global::System.ComponentModel.ICollectionView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentChanged += x, x => _data.CurrentChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentChanging += x, x => _data.CurrentChanging -= x).Select(x => x.EventArgs); + } +} + +namespace System.IO.Packaging +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PackageDigitalSignatureManagerEvents Events(this global::System.IO.Packaging.PackageDigitalSignatureManager item) => new PackageDigitalSignatureManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PackageDigitalSignatureManagerEvents + { + private readonly global::System.IO.Packaging.PackageDigitalSignatureManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PackageDigitalSignatureManagerEvents(global::System.IO.Packaging.PackageDigitalSignatureManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InvalidSignatureEvent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.InvalidSignatureEvent += x, x => _data.InvalidSignatureEvent -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ApplicationEvents Events(this global::System.Windows.Application item) => new ApplicationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContentElementEvents Events(this global::System.Windows.ContentElement item) => new ContentElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FrameworkContentElementEvents Events(this global::System.Windows.FrameworkContentElement item) => new FrameworkContentElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FrameworkElementEvents Events(this global::System.Windows.FrameworkElement item) => new FrameworkElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FreezableEvents Events(this global::System.Windows.Freezable item) => new FreezableEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IInputElementEvents Events(this global::System.Windows.IInputElement item) => new IInputElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PresentationSourceEvents Events(this global::System.Windows.PresentationSource item) => new PresentationSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIElementEvents Events(this global::System.Windows.UIElement item) => new UIElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIElement3DEvents Events(this global::System.Windows.UIElement3D item) => new UIElement3DEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VisualStateGroupEvents Events(this global::System.Windows.VisualStateGroup item) => new VisualStateGroupEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WindowEvents Events(this global::System.Windows.Window item) => new WindowEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ApplicationEvents + { + private readonly global::System.Windows.Application _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ApplicationEvents(global::System.Windows.Application data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Deactivated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Deactivated += x, x => _data.Deactivated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DispatcherUnhandledException => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DispatcherUnhandledException += x, x => _data.DispatcherUnhandledException -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Exit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Exit += x, x => _data.Exit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FragmentNavigation => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FragmentNavigation += x, x => _data.FragmentNavigation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadCompleted += x, x => _data.LoadCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigated += x, x => _data.Navigated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigating += x, x => _data.Navigating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationFailed += x, x => _data.NavigationFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationProgress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationProgress += x, x => _data.NavigationProgress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationStopped += x, x => _data.NavigationStopped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SessionEnding => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SessionEnding += x, x => _data.SessionEnding -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Startup => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Startup += x, x => _data.Startup -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContentElementEvents + { + private readonly global::System.Windows.ContentElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContentElementEvents(global::System.Windows.ContentElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnter += x, x => _data.DragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Drop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Drop += x, x => _data.Drop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FocusableChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FocusableChanged += x, x => _data.FocusableChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GiveFeedback += x, x => _data.GiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotKeyboardFocus += x, x => _data.GotKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotMouseCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotMouseCapture += x, x => _data.GotMouseCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotStylusCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotStylusCapture += x, x => _data.GotStylusCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotTouchCapture => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.GotTouchCapture += x, x => _data.GotTouchCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsEnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsEnabledChanged += x, x => _data.IsEnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsKeyboardFocusedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsKeyboardFocusedChanged += x, x => _data.IsKeyboardFocusedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsKeyboardFocusWithinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsKeyboardFocusWithinChanged += x, x => _data.IsKeyboardFocusWithinChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsMouseCapturedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsMouseCapturedChanged += x, x => _data.IsMouseCapturedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsMouseCaptureWithinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsMouseCaptureWithinChanged += x, x => _data.IsMouseCaptureWithinChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsMouseDirectlyOverChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsMouseDirectlyOverChanged += x, x => _data.IsMouseDirectlyOverChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsStylusCapturedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsStylusCapturedChanged += x, x => _data.IsStylusCapturedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsStylusCaptureWithinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsStylusCaptureWithinChanged += x, x => _data.IsStylusCaptureWithinChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsStylusDirectlyOverChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsStylusDirectlyOverChanged += x, x => _data.IsStylusDirectlyOverChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostKeyboardFocus += x, x => _data.LostKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostMouseCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostMouseCapture += x, x => _data.LostMouseCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostStylusCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostStylusCapture += x, x => _data.LostStylusCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostTouchCapture => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.LostTouchCapture += x, x => _data.LostTouchCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeftButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeftButtonDown += x, x => _data.MouseLeftButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeftButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeftButtonUp += x, x => _data.MouseLeftButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseRightButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseRightButtonDown += x, x => _data.MouseRightButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseRightButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseRightButtonUp += x, x => _data.MouseRightButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseWheel += x, x => _data.MouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDragEnter += x, x => _data.PreviewDragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDragLeave += x, x => _data.PreviewDragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDragOver += x, x => _data.PreviewDragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDrop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDrop += x, x => _data.PreviewDrop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewGiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewGiveFeedback += x, x => _data.PreviewGiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewGotKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewGotKeyboardFocus += x, x => _data.PreviewGotKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyDown += x, x => _data.PreviewKeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyUp += x, x => _data.PreviewKeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewLostKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewLostKeyboardFocus += x, x => _data.PreviewLostKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseDown += x, x => _data.PreviewMouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseLeftButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseLeftButtonDown += x, x => _data.PreviewMouseLeftButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseLeftButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseLeftButtonUp += x, x => _data.PreviewMouseLeftButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseMove += x, x => _data.PreviewMouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseRightButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseRightButtonDown += x, x => _data.PreviewMouseRightButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseRightButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseRightButtonUp += x, x => _data.PreviewMouseRightButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseUp += x, x => _data.PreviewMouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseWheel += x, x => _data.PreviewMouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewQueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewQueryContinueDrag += x, x => _data.PreviewQueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusButtonDown += x, x => _data.PreviewStylusButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusButtonUp += x, x => _data.PreviewStylusButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusDown += x, x => _data.PreviewStylusDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusInAirMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusInAirMove += x, x => _data.PreviewStylusInAirMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusInRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusInRange += x, x => _data.PreviewStylusInRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusMove += x, x => _data.PreviewStylusMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusOutOfRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusOutOfRange += x, x => _data.PreviewStylusOutOfRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusSystemGesture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusSystemGesture += x, x => _data.PreviewStylusSystemGesture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusUp += x, x => _data.PreviewStylusUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTextInput => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewTextInput += x, x => _data.PreviewTextInput -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTouchDown => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.PreviewTouchDown += x, x => _data.PreviewTouchDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTouchMove => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.PreviewTouchMove += x, x => _data.PreviewTouchMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTouchUp => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.PreviewTouchUp += x, x => _data.PreviewTouchUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryContinueDrag += x, x => _data.QueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryCursor => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryCursor += x, x => _data.QueryCursor -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusButtonDown += x, x => _data.StylusButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusButtonUp += x, x => _data.StylusButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusDown += x, x => _data.StylusDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusEnter += x, x => _data.StylusEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusInAirMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusInAirMove += x, x => _data.StylusInAirMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusInRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusInRange += x, x => _data.StylusInRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusLeave += x, x => _data.StylusLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusMove += x, x => _data.StylusMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusOutOfRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusOutOfRange += x, x => _data.StylusOutOfRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusSystemGesture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusSystemGesture += x, x => _data.StylusSystemGesture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusUp += x, x => _data.StylusUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextInput => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextInput += x, x => _data.TextInput -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDown => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchDown += x, x => _data.TouchDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchEnter => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchEnter += x, x => _data.TouchEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchLeave => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchLeave += x, x => _data.TouchLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchMove => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchMove += x, x => _data.TouchMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchUp => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchUp += x, x => _data.TouchUp -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FrameworkContentElementEvents + { + private readonly global::System.Windows.FrameworkContentElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FrameworkContentElementEvents(global::System.Windows.FrameworkContentElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuClosing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuClosing += x, x => _data.ContextMenuClosing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuOpening += x, x => _data.ContextMenuOpening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataContextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataContextChanged += x, x => _data.DataContextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Initialized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Initialized += x, x => _data.Initialized -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Loaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Loaded += x, x => _data.Loaded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SourceUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Data.DataTransferEventArgs>(x => _data.SourceUpdated += x, x => _data.SourceUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TargetUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Data.DataTransferEventArgs>(x => _data.TargetUpdated += x, x => _data.TargetUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ToolTipClosing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ToolTipClosing += x, x => _data.ToolTipClosing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ToolTipOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ToolTipOpening += x, x => _data.ToolTipOpening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unloaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unloaded += x, x => _data.Unloaded -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FrameworkElementEvents + { + private readonly global::System.Windows.FrameworkElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FrameworkElementEvents(global::System.Windows.FrameworkElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuClosing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuClosing += x, x => _data.ContextMenuClosing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuOpening += x, x => _data.ContextMenuOpening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataContextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataContextChanged += x, x => _data.DataContextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Initialized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Initialized += x, x => _data.Initialized -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Loaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Loaded += x, x => _data.Loaded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RequestBringIntoView => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RequestBringIntoView += x, x => _data.RequestBringIntoView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SizeChanged += x, x => _data.SizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SourceUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Data.DataTransferEventArgs>(x => _data.SourceUpdated += x, x => _data.SourceUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TargetUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Data.DataTransferEventArgs>(x => _data.TargetUpdated += x, x => _data.TargetUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ToolTipClosing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ToolTipClosing += x, x => _data.ToolTipClosing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ToolTipOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ToolTipOpening += x, x => _data.ToolTipOpening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unloaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unloaded += x, x => _data.Unloaded -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FreezableEvents + { + private readonly global::System.Windows.Freezable _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FreezableEvents(global::System.Windows.Freezable data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Changed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Changed += x, x => _data.Changed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IInputElementEvents + { + private readonly global::System.Windows.IInputElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IInputElementEvents(global::System.Windows.IInputElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotKeyboardFocus += x, x => _data.GotKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotMouseCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotMouseCapture += x, x => _data.GotMouseCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotStylusCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotStylusCapture += x, x => _data.GotStylusCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostKeyboardFocus += x, x => _data.LostKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostMouseCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostMouseCapture += x, x => _data.LostMouseCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostStylusCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostStylusCapture += x, x => _data.LostStylusCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeftButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeftButtonDown += x, x => _data.MouseLeftButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeftButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeftButtonUp += x, x => _data.MouseLeftButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseRightButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseRightButtonDown += x, x => _data.MouseRightButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseRightButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseRightButtonUp += x, x => _data.MouseRightButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseWheel += x, x => _data.MouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewGotKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewGotKeyboardFocus += x, x => _data.PreviewGotKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyDown += x, x => _data.PreviewKeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyUp += x, x => _data.PreviewKeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewLostKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewLostKeyboardFocus += x, x => _data.PreviewLostKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseLeftButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseLeftButtonDown += x, x => _data.PreviewMouseLeftButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseLeftButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseLeftButtonUp += x, x => _data.PreviewMouseLeftButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseMove += x, x => _data.PreviewMouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseRightButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseRightButtonDown += x, x => _data.PreviewMouseRightButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseRightButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseRightButtonUp += x, x => _data.PreviewMouseRightButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseWheel += x, x => _data.PreviewMouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusButtonDown += x, x => _data.PreviewStylusButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusButtonUp += x, x => _data.PreviewStylusButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusDown += x, x => _data.PreviewStylusDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusInAirMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusInAirMove += x, x => _data.PreviewStylusInAirMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusInRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusInRange += x, x => _data.PreviewStylusInRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusMove += x, x => _data.PreviewStylusMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusOutOfRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusOutOfRange += x, x => _data.PreviewStylusOutOfRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusSystemGesture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusSystemGesture += x, x => _data.PreviewStylusSystemGesture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusUp += x, x => _data.PreviewStylusUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTextInput => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewTextInput += x, x => _data.PreviewTextInput -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusButtonDown += x, x => _data.StylusButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusButtonUp += x, x => _data.StylusButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusDown += x, x => _data.StylusDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusEnter += x, x => _data.StylusEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusInAirMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusInAirMove += x, x => _data.StylusInAirMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusInRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusInRange += x, x => _data.StylusInRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusLeave += x, x => _data.StylusLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusMove += x, x => _data.StylusMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusOutOfRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusOutOfRange += x, x => _data.StylusOutOfRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusSystemGesture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusSystemGesture += x, x => _data.StylusSystemGesture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusUp += x, x => _data.StylusUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextInput => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextInput += x, x => _data.TextInput -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PresentationSourceEvents + { + private readonly global::System.Windows.PresentationSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PresentationSourceEvents(global::System.Windows.PresentationSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContentRendered => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContentRendered += x, x => _data.ContentRendered -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIElementEvents + { + private readonly global::System.Windows.UIElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIElementEvents(global::System.Windows.UIElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnter += x, x => _data.DragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Drop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Drop += x, x => _data.Drop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FocusableChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FocusableChanged += x, x => _data.FocusableChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GiveFeedback += x, x => _data.GiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotKeyboardFocus += x, x => _data.GotKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotMouseCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotMouseCapture += x, x => _data.GotMouseCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotStylusCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotStylusCapture += x, x => _data.GotStylusCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotTouchCapture => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.GotTouchCapture += x, x => _data.GotTouchCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsEnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsEnabledChanged += x, x => _data.IsEnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsHitTestVisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsHitTestVisibleChanged += x, x => _data.IsHitTestVisibleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsKeyboardFocusedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsKeyboardFocusedChanged += x, x => _data.IsKeyboardFocusedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsKeyboardFocusWithinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsKeyboardFocusWithinChanged += x, x => _data.IsKeyboardFocusWithinChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsMouseCapturedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsMouseCapturedChanged += x, x => _data.IsMouseCapturedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsMouseCaptureWithinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsMouseCaptureWithinChanged += x, x => _data.IsMouseCaptureWithinChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsMouseDirectlyOverChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsMouseDirectlyOverChanged += x, x => _data.IsMouseDirectlyOverChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsStylusCapturedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsStylusCapturedChanged += x, x => _data.IsStylusCapturedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsStylusCaptureWithinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsStylusCaptureWithinChanged += x, x => _data.IsStylusCaptureWithinChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsStylusDirectlyOverChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsStylusDirectlyOverChanged += x, x => _data.IsStylusDirectlyOverChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsVisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsVisibleChanged += x, x => _data.IsVisibleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LayoutUpdated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LayoutUpdated += x, x => _data.LayoutUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostKeyboardFocus += x, x => _data.LostKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostMouseCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostMouseCapture += x, x => _data.LostMouseCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostStylusCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostStylusCapture += x, x => _data.LostStylusCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostTouchCapture => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.LostTouchCapture += x, x => _data.LostTouchCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationBoundaryFeedback => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.ManipulationBoundaryFeedbackEventArgs>(x => _data.ManipulationBoundaryFeedback += x, x => _data.ManipulationBoundaryFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationCompleted => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.ManipulationCompletedEventArgs>(x => _data.ManipulationCompleted += x, x => _data.ManipulationCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationDelta => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.ManipulationDeltaEventArgs>(x => _data.ManipulationDelta += x, x => _data.ManipulationDelta -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationInertiaStarting => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.ManipulationInertiaStartingEventArgs>(x => _data.ManipulationInertiaStarting += x, x => _data.ManipulationInertiaStarting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationStarted => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.ManipulationStartedEventArgs>(x => _data.ManipulationStarted += x, x => _data.ManipulationStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ManipulationStarting => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.ManipulationStartingEventArgs>(x => _data.ManipulationStarting += x, x => _data.ManipulationStarting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeftButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeftButtonDown += x, x => _data.MouseLeftButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeftButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeftButtonUp += x, x => _data.MouseLeftButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseRightButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseRightButtonDown += x, x => _data.MouseRightButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseRightButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseRightButtonUp += x, x => _data.MouseRightButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseWheel += x, x => _data.MouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDragEnter += x, x => _data.PreviewDragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDragLeave += x, x => _data.PreviewDragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDragOver += x, x => _data.PreviewDragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDrop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDrop += x, x => _data.PreviewDrop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewGiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewGiveFeedback += x, x => _data.PreviewGiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewGotKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewGotKeyboardFocus += x, x => _data.PreviewGotKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyDown += x, x => _data.PreviewKeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyUp += x, x => _data.PreviewKeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewLostKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewLostKeyboardFocus += x, x => _data.PreviewLostKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseDown += x, x => _data.PreviewMouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseLeftButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseLeftButtonDown += x, x => _data.PreviewMouseLeftButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseLeftButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseLeftButtonUp += x, x => _data.PreviewMouseLeftButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseMove += x, x => _data.PreviewMouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseRightButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseRightButtonDown += x, x => _data.PreviewMouseRightButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseRightButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseRightButtonUp += x, x => _data.PreviewMouseRightButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseUp += x, x => _data.PreviewMouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseWheel += x, x => _data.PreviewMouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewQueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewQueryContinueDrag += x, x => _data.PreviewQueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusButtonDown += x, x => _data.PreviewStylusButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusButtonUp += x, x => _data.PreviewStylusButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusDown += x, x => _data.PreviewStylusDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusInAirMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusInAirMove += x, x => _data.PreviewStylusInAirMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusInRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusInRange += x, x => _data.PreviewStylusInRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusMove += x, x => _data.PreviewStylusMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusOutOfRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusOutOfRange += x, x => _data.PreviewStylusOutOfRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusSystemGesture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusSystemGesture += x, x => _data.PreviewStylusSystemGesture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusUp += x, x => _data.PreviewStylusUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTextInput => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewTextInput += x, x => _data.PreviewTextInput -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTouchDown => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.PreviewTouchDown += x, x => _data.PreviewTouchDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTouchMove => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.PreviewTouchMove += x, x => _data.PreviewTouchMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTouchUp => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.PreviewTouchUp += x, x => _data.PreviewTouchUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryContinueDrag += x, x => _data.QueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryCursor => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryCursor += x, x => _data.QueryCursor -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusButtonDown += x, x => _data.StylusButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusButtonUp += x, x => _data.StylusButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusDown += x, x => _data.StylusDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusEnter += x, x => _data.StylusEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusInAirMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusInAirMove += x, x => _data.StylusInAirMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusInRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusInRange += x, x => _data.StylusInRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusLeave += x, x => _data.StylusLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusMove += x, x => _data.StylusMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusOutOfRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusOutOfRange += x, x => _data.StylusOutOfRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusSystemGesture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusSystemGesture += x, x => _data.StylusSystemGesture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusUp += x, x => _data.StylusUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextInput => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextInput += x, x => _data.TextInput -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDown => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchDown += x, x => _data.TouchDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchEnter => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchEnter += x, x => _data.TouchEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchLeave => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchLeave += x, x => _data.TouchLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchMove => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchMove += x, x => _data.TouchMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchUp => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchUp += x, x => _data.TouchUp -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIElement3DEvents + { + private readonly global::System.Windows.UIElement3D _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIElement3DEvents(global::System.Windows.UIElement3D data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnter += x, x => _data.DragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Drop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Drop += x, x => _data.Drop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FocusableChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FocusableChanged += x, x => _data.FocusableChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GiveFeedback += x, x => _data.GiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotKeyboardFocus += x, x => _data.GotKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotMouseCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotMouseCapture += x, x => _data.GotMouseCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotStylusCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotStylusCapture += x, x => _data.GotStylusCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotTouchCapture => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.GotTouchCapture += x, x => _data.GotTouchCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsEnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsEnabledChanged += x, x => _data.IsEnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsHitTestVisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsHitTestVisibleChanged += x, x => _data.IsHitTestVisibleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsKeyboardFocusedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsKeyboardFocusedChanged += x, x => _data.IsKeyboardFocusedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsKeyboardFocusWithinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsKeyboardFocusWithinChanged += x, x => _data.IsKeyboardFocusWithinChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsMouseCapturedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsMouseCapturedChanged += x, x => _data.IsMouseCapturedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsMouseCaptureWithinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsMouseCaptureWithinChanged += x, x => _data.IsMouseCaptureWithinChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsMouseDirectlyOverChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsMouseDirectlyOverChanged += x, x => _data.IsMouseDirectlyOverChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsStylusCapturedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsStylusCapturedChanged += x, x => _data.IsStylusCapturedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsStylusCaptureWithinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsStylusCaptureWithinChanged += x, x => _data.IsStylusCaptureWithinChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsStylusDirectlyOverChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsStylusDirectlyOverChanged += x, x => _data.IsStylusDirectlyOverChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsVisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsVisibleChanged += x, x => _data.IsVisibleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostKeyboardFocus += x, x => _data.LostKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostMouseCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostMouseCapture += x, x => _data.LostMouseCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostStylusCapture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostStylusCapture += x, x => _data.LostStylusCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostTouchCapture => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.LostTouchCapture += x, x => _data.LostTouchCapture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeftButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeftButtonDown += x, x => _data.MouseLeftButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeftButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeftButtonUp += x, x => _data.MouseLeftButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseRightButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseRightButtonDown += x, x => _data.MouseRightButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseRightButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseRightButtonUp += x, x => _data.MouseRightButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseWheel += x, x => _data.MouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDragEnter += x, x => _data.PreviewDragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDragLeave += x, x => _data.PreviewDragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDragOver += x, x => _data.PreviewDragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewDrop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewDrop += x, x => _data.PreviewDrop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewGiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewGiveFeedback += x, x => _data.PreviewGiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewGotKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewGotKeyboardFocus += x, x => _data.PreviewGotKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyDown += x, x => _data.PreviewKeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyUp += x, x => _data.PreviewKeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewLostKeyboardFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewLostKeyboardFocus += x, x => _data.PreviewLostKeyboardFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseDown += x, x => _data.PreviewMouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseLeftButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseLeftButtonDown += x, x => _data.PreviewMouseLeftButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseLeftButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseLeftButtonUp += x, x => _data.PreviewMouseLeftButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseMove += x, x => _data.PreviewMouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseRightButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseRightButtonDown += x, x => _data.PreviewMouseRightButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseRightButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseRightButtonUp += x, x => _data.PreviewMouseRightButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseUp += x, x => _data.PreviewMouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseWheel += x, x => _data.PreviewMouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewQueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewQueryContinueDrag += x, x => _data.PreviewQueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusButtonDown += x, x => _data.PreviewStylusButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusButtonUp += x, x => _data.PreviewStylusButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusDown += x, x => _data.PreviewStylusDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusInAirMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusInAirMove += x, x => _data.PreviewStylusInAirMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusInRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusInRange += x, x => _data.PreviewStylusInRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusMove += x, x => _data.PreviewStylusMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusOutOfRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusOutOfRange += x, x => _data.PreviewStylusOutOfRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusSystemGesture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusSystemGesture += x, x => _data.PreviewStylusSystemGesture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewStylusUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewStylusUp += x, x => _data.PreviewStylusUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTextInput => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewTextInput += x, x => _data.PreviewTextInput -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTouchDown => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.PreviewTouchDown += x, x => _data.PreviewTouchDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTouchMove => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.PreviewTouchMove += x, x => _data.PreviewTouchMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewTouchUp => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.PreviewTouchUp += x, x => _data.PreviewTouchUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryContinueDrag += x, x => _data.QueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryCursor => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryCursor += x, x => _data.QueryCursor -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusButtonDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusButtonDown += x, x => _data.StylusButtonDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusButtonUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusButtonUp += x, x => _data.StylusButtonUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusDown += x, x => _data.StylusDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusEnter += x, x => _data.StylusEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusInAirMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusInAirMove += x, x => _data.StylusInAirMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusInRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusInRange += x, x => _data.StylusInRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusLeave += x, x => _data.StylusLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusMove += x, x => _data.StylusMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusOutOfRange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusOutOfRange += x, x => _data.StylusOutOfRange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusSystemGesture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusSystemGesture += x, x => _data.StylusSystemGesture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusUp += x, x => _data.StylusUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextInput => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextInput += x, x => _data.TextInput -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDown => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchDown += x, x => _data.TouchDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchEnter => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchEnter += x, x => _data.TouchEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchLeave => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchLeave += x, x => _data.TouchLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchMove => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchMove += x, x => _data.TouchMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchUp => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Input.TouchEventArgs>(x => _data.TouchUp += x, x => _data.TouchUp -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VisualStateGroupEvents + { + private readonly global::System.Windows.VisualStateGroup _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VisualStateGroupEvents(global::System.Windows.VisualStateGroup data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.VisualStateChangedEventArgs>(x => _data.CurrentStateChanged += x, x => _data.CurrentStateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentStateChanging => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.VisualStateChangedEventArgs>(x => _data.CurrentStateChanging += x, x => _data.CurrentStateChanging -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WindowEvents + { + private readonly global::System.Windows.Window _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WindowEvents(global::System.Windows.Window data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closing += x, x => _data.Closing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContentRendered => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContentRendered += x, x => _data.ContentRendered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Deactivated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Deactivated += x, x => _data.Deactivated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationChanged += x, x => _data.LocationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SourceInitialized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SourceInitialized += x, x => _data.SourceInitialized -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StateChanged += x, x => _data.StateChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Annotations +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AnnotationEvents Events(this global::System.Windows.Annotations.Annotation item) => new AnnotationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AnnotationEvents + { + private readonly global::System.Windows.Annotations.Annotation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AnnotationEvents(global::System.Windows.Annotations.Annotation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnchorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnchorChanged += x, x => _data.AnchorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AuthorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AuthorChanged += x, x => _data.AuthorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CargoChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CargoChanged += x, x => _data.CargoChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Annotations.Storage +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AnnotationStoreEvents Events(this global::System.Windows.Annotations.Storage.AnnotationStore item) => new AnnotationStoreEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AnnotationStoreEvents + { + private readonly global::System.Windows.Annotations.Storage.AnnotationStore _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AnnotationStoreEvents(global::System.Windows.Annotations.Storage.AnnotationStore data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnchorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnchorChanged += x, x => _data.AnchorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AuthorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AuthorChanged += x, x => _data.AuthorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CargoChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CargoChanged += x, x => _data.CargoChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StoreContentChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StoreContentChanged += x, x => _data.StoreContentChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Controls +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CalendarEvents Events(this global::System.Windows.Controls.Calendar item) => new CalendarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CalendarDateRangeEvents Events(this global::System.Windows.Controls.CalendarDateRange item) => new CalendarDateRangeEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ComboBoxEvents Events(this global::System.Windows.Controls.ComboBox item) => new ComboBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContextMenuEvents Events(this global::System.Windows.Controls.ContextMenu item) => new ContextMenuEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ControlEvents Events(this global::System.Windows.Controls.Control item) => new ControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridEvents Events(this global::System.Windows.Controls.DataGrid item) => new DataGridEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridCellEvents Events(this global::System.Windows.Controls.DataGridCell item) => new DataGridCellEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridColumnEvents Events(this global::System.Windows.Controls.DataGridColumn item) => new DataGridColumnEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridRowEvents Events(this global::System.Windows.Controls.DataGridRow item) => new DataGridRowEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DatePickerEvents Events(this global::System.Windows.Controls.DatePicker item) => new DatePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ExpanderEvents Events(this global::System.Windows.Controls.Expander item) => new ExpanderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FrameEvents Events(this global::System.Windows.Controls.Frame item) => new FrameEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ImageEvents Events(this global::System.Windows.Controls.Image item) => new ImageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InkCanvasEvents Events(this global::System.Windows.Controls.InkCanvas item) => new InkCanvasEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ItemContainerGeneratorEvents Events(this global::System.Windows.Controls.ItemContainerGenerator item) => new ItemContainerGeneratorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ListBoxItemEvents Events(this global::System.Windows.Controls.ListBoxItem item) => new ListBoxItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaElementEvents Events(this global::System.Windows.Controls.MediaElement item) => new MediaElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MenuItemEvents Events(this global::System.Windows.Controls.MenuItem item) => new MenuItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PasswordBoxEvents Events(this global::System.Windows.Controls.PasswordBox item) => new PasswordBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ScrollViewerEvents Events(this global::System.Windows.Controls.ScrollViewer item) => new ScrollViewerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolTipEvents Events(this global::System.Windows.Controls.ToolTip item) => new ToolTipEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TreeViewEvents Events(this global::System.Windows.Controls.TreeView item) => new TreeViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TreeViewItemEvents Events(this global::System.Windows.Controls.TreeViewItem item) => new TreeViewItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebBrowserEvents Events(this global::System.Windows.Controls.WebBrowser item) => new WebBrowserEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CalendarEvents + { + private readonly global::System.Windows.Controls.Calendar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CalendarEvents(global::System.Windows.Controls.Calendar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisplayDateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.CalendarDateChangedEventArgs>(x => _data.DisplayDateChanged += x, x => _data.DisplayDateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisplayModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.CalendarModeChangedEventArgs>(x => _data.DisplayModeChanged += x, x => _data.DisplayModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedDatesChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.SelectionChangedEventArgs>(x => _data.SelectedDatesChanged += x, x => _data.SelectedDatesChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.EventArgs>(x => _data.SelectionModeChanged += x, x => _data.SelectionModeChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CalendarDateRangeEvents + { + private readonly global::System.Windows.Controls.CalendarDateRange _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CalendarDateRangeEvents(global::System.Windows.Controls.CalendarDateRange data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyChanged += x, x => _data.PropertyChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ComboBoxEvents + { + private readonly global::System.Windows.Controls.ComboBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ComboBoxEvents(global::System.Windows.Controls.ComboBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownClosed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownClosed += x, x => _data.DropDownClosed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownOpened += x, x => _data.DropDownOpened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContextMenuEvents + { + private readonly global::System.Windows.Controls.ContextMenu _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContextMenuEvents(global::System.Windows.Controls.ContextMenu data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Opened += x, x => _data.Opened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ControlEvents + { + private readonly global::System.Windows.Controls.Control _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ControlEvents(global::System.Windows.Controls.Control data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewMouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewMouseDoubleClick += x, x => _data.PreviewMouseDoubleClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridEvents + { + private readonly global::System.Windows.Controls.DataGrid _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridEvents(global::System.Windows.Controls.DataGrid data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AddingNewItem => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.AddingNewItemEventArgs>(x => _data.AddingNewItem += x, x => _data.AddingNewItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoGeneratedColumns => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoGeneratedColumns += x, x => _data.AutoGeneratedColumns -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoGeneratingColumn => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridAutoGeneratingColumnEventArgs>(x => _data.AutoGeneratingColumn += x, x => _data.AutoGeneratingColumn -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeginningEdit => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridBeginningEditEventArgs>(x => _data.BeginningEdit += x, x => _data.BeginningEdit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellEditEnding => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridCellEditEndingEventArgs>(x => _data.CellEditEnding += x, x => _data.CellEditEnding -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnDisplayIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridColumnEventArgs>(x => _data.ColumnDisplayIndexChanged += x, x => _data.ColumnDisplayIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeaderDragCompleted => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.Primitives.DragCompletedEventArgs>(x => _data.ColumnHeaderDragCompleted += x, x => _data.ColumnHeaderDragCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeaderDragDelta => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.Primitives.DragDeltaEventArgs>(x => _data.ColumnHeaderDragDelta += x, x => _data.ColumnHeaderDragDelta -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeaderDragStarted => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.Primitives.DragStartedEventArgs>(x => _data.ColumnHeaderDragStarted += x, x => _data.ColumnHeaderDragStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnReordered => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridColumnEventArgs>(x => _data.ColumnReordered += x, x => _data.ColumnReordered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnReordering => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridColumnReorderingEventArgs>(x => _data.ColumnReordering += x, x => _data.ColumnReordering -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CopyingRowClipboardContent => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridRowClipboardEventArgs>(x => _data.CopyingRowClipboardContent += x, x => _data.CopyingRowClipboardContent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentCellChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.EventArgs>(x => _data.CurrentCellChanged += x, x => _data.CurrentCellChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InitializingNewItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.InitializingNewItem += x, x => _data.InitializingNewItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadingRow => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridRowEventArgs>(x => _data.LoadingRow += x, x => _data.LoadingRow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadingRowDetails => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridRowDetailsEventArgs>(x => _data.LoadingRowDetails += x, x => _data.LoadingRowDetails -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreparingCellForEdit => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridPreparingCellForEditEventArgs>(x => _data.PreparingCellForEdit += x, x => _data.PreparingCellForEdit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowDetailsVisibilityChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridRowDetailsEventArgs>(x => _data.RowDetailsVisibilityChanged += x, x => _data.RowDetailsVisibilityChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowEditEnding => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridRowEditEndingEventArgs>(x => _data.RowEditEnding += x, x => _data.RowEditEnding -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedCellsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedCellsChanged += x, x => _data.SelectedCellsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Sorting => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Sorting += x, x => _data.Sorting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UnloadingRow => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridRowEventArgs>(x => _data.UnloadingRow += x, x => _data.UnloadingRow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UnloadingRowDetails => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridRowDetailsEventArgs>(x => _data.UnloadingRowDetails += x, x => _data.UnloadingRowDetails -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridCellEvents + { + private readonly global::System.Windows.Controls.DataGridCell _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridCellEvents(global::System.Windows.Controls.DataGridCell data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Selected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Selected += x, x => _data.Selected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unselected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unselected += x, x => _data.Unselected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridColumnEvents + { + private readonly global::System.Windows.Controls.DataGridColumn _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridColumnEvents(global::System.Windows.Controls.DataGridColumn data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CopyingCellClipboardContent => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridCellClipboardEventArgs>(x => _data.CopyingCellClipboardContent += x, x => _data.CopyingCellClipboardContent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PastingCellClipboardContent => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DataGridCellClipboardEventArgs>(x => _data.PastingCellClipboardContent += x, x => _data.PastingCellClipboardContent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridRowEvents + { + private readonly global::System.Windows.Controls.DataGridRow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridRowEvents(global::System.Windows.Controls.DataGridRow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Selected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Selected += x, x => _data.Selected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unselected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unselected += x, x => _data.Unselected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DatePickerEvents + { + private readonly global::System.Windows.Controls.DatePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DatePickerEvents(global::System.Windows.Controls.DatePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CalendarClosed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CalendarClosed += x, x => _data.CalendarClosed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CalendarOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CalendarOpened += x, x => _data.CalendarOpened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DateValidationError => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.DatePickerDateValidationErrorEventArgs>(x => _data.DateValidationError += x, x => _data.DateValidationError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedDateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Controls.SelectionChangedEventArgs>(x => _data.SelectedDateChanged += x, x => _data.SelectedDateChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ExpanderEvents + { + private readonly global::System.Windows.Controls.Expander _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ExpanderEvents(global::System.Windows.Controls.Expander data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Collapsed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Collapsed += x, x => _data.Collapsed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Expanded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Expanded += x, x => _data.Expanded -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FrameEvents + { + private readonly global::System.Windows.Controls.Frame _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FrameEvents(global::System.Windows.Controls.Frame data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContentRendered => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContentRendered += x, x => _data.ContentRendered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FragmentNavigation => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FragmentNavigation += x, x => _data.FragmentNavigation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadCompleted += x, x => _data.LoadCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigated += x, x => _data.Navigated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigating += x, x => _data.Navigating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationFailed += x, x => _data.NavigationFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationProgress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationProgress += x, x => _data.NavigationProgress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationStopped += x, x => _data.NavigationStopped -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ImageEvents + { + private readonly global::System.Windows.Controls.Image _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ImageEvents(global::System.Windows.Controls.Image data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImageFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.ExceptionRoutedEventArgs>(x => _data.ImageFailed += x, x => _data.ImageFailed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InkCanvasEvents + { + private readonly global::System.Windows.Controls.InkCanvas _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InkCanvasEvents(global::System.Windows.Controls.InkCanvas data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ActiveEditingModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ActiveEditingModeChanged += x, x => _data.ActiveEditingModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DefaultDrawingAttributesReplaced => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DefaultDrawingAttributesReplaced += x, x => _data.DefaultDrawingAttributesReplaced -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingModeChanged += x, x => _data.EditingModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingModeInvertedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingModeInvertedChanged += x, x => _data.EditingModeInvertedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Gesture => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Gesture += x, x => _data.Gesture -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanging += x, x => _data.SelectionChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionMoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionMoved += x, x => _data.SelectionMoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionMoving => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionMoving += x, x => _data.SelectionMoving -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionResized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionResized += x, x => _data.SelectionResized -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionResizing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionResizing += x, x => _data.SelectionResizing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StrokeCollected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StrokeCollected += x, x => _data.StrokeCollected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StrokeErased => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StrokeErased += x, x => _data.StrokeErased -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StrokeErasing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StrokeErasing += x, x => _data.StrokeErasing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StrokesReplaced => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StrokesReplaced += x, x => _data.StrokesReplaced -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ItemContainerGeneratorEvents + { + private readonly global::System.Windows.Controls.ItemContainerGenerator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ItemContainerGeneratorEvents(global::System.Windows.Controls.ItemContainerGenerator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemsChanged += x, x => _data.ItemsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StatusChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StatusChanged += x, x => _data.StatusChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ListBoxItemEvents + { + private readonly global::System.Windows.Controls.ListBoxItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ListBoxItemEvents(global::System.Windows.Controls.ListBoxItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Selected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Selected += x, x => _data.Selected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unselected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unselected += x, x => _data.Unselected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaElementEvents + { + private readonly global::System.Windows.Controls.MediaElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaElementEvents(global::System.Windows.Controls.MediaElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferingEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BufferingEnded += x, x => _data.BufferingEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferingStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BufferingStarted += x, x => _data.BufferingStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MediaEnded += x, x => _data.MediaEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.ExceptionRoutedEventArgs>(x => _data.MediaFailed += x, x => _data.MediaFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MediaOpened += x, x => _data.MediaOpened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScriptCommand => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.MediaScriptCommandRoutedEventArgs>(x => _data.ScriptCommand += x, x => _data.ScriptCommand -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MenuItemEvents + { + private readonly global::System.Windows.Controls.MenuItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MenuItemEvents(global::System.Windows.Controls.MenuItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Checked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Checked += x, x => _data.Checked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SubmenuClosed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SubmenuClosed += x, x => _data.SubmenuClosed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SubmenuOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SubmenuOpened += x, x => _data.SubmenuOpened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unchecked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unchecked += x, x => _data.Unchecked -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PasswordBoxEvents + { + private readonly global::System.Windows.Controls.PasswordBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PasswordBoxEvents(global::System.Windows.Controls.PasswordBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PasswordChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PasswordChanged += x, x => _data.PasswordChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ScrollViewerEvents + { + private readonly global::System.Windows.Controls.ScrollViewer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ScrollViewerEvents(global::System.Windows.Controls.ScrollViewer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrollChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScrollChanged += x, x => _data.ScrollChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolTipEvents + { + private readonly global::System.Windows.Controls.ToolTip _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolTipEvents(global::System.Windows.Controls.ToolTip data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Opened += x, x => _data.Opened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TreeViewEvents + { + private readonly global::System.Windows.Controls.TreeView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TreeViewEvents(global::System.Windows.Controls.TreeView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable> SelectedItemChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.RoutedPropertyChangedEventArgs>(x => _data.SelectedItemChanged += x, x => _data.SelectedItemChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TreeViewItemEvents + { + private readonly global::System.Windows.Controls.TreeViewItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TreeViewItemEvents(global::System.Windows.Controls.TreeViewItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Collapsed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Collapsed += x, x => _data.Collapsed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Expanded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Expanded += x, x => _data.Expanded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Selected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Selected += x, x => _data.Selected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unselected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unselected += x, x => _data.Unselected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebBrowserEvents + { + private readonly global::System.Windows.Controls.WebBrowser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebBrowserEvents(global::System.Windows.Controls.WebBrowser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadCompleted += x, x => _data.LoadCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigated += x, x => _data.Navigated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigating += x, x => _data.Navigating -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Controls.Primitives +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ButtonBaseEvents Events(this global::System.Windows.Controls.Primitives.ButtonBase item) => new ButtonBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DocumentPageViewEvents Events(this global::System.Windows.Controls.Primitives.DocumentPageView item) => new DocumentPageViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DocumentViewerBaseEvents Events(this global::System.Windows.Controls.Primitives.DocumentViewerBase item) => new DocumentViewerBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PopupEvents Events(this global::System.Windows.Controls.Primitives.Popup item) => new PopupEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RangeBaseEvents Events(this global::System.Windows.Controls.Primitives.RangeBase item) => new RangeBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ScrollBarEvents Events(this global::System.Windows.Controls.Primitives.ScrollBar item) => new ScrollBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SelectorEvents Events(this global::System.Windows.Controls.Primitives.Selector item) => new SelectorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TextBoxBaseEvents Events(this global::System.Windows.Controls.Primitives.TextBoxBase item) => new TextBoxBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ThumbEvents Events(this global::System.Windows.Controls.Primitives.Thumb item) => new ThumbEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToggleButtonEvents Events(this global::System.Windows.Controls.Primitives.ToggleButton item) => new ToggleButtonEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ButtonBaseEvents + { + private readonly global::System.Windows.Controls.Primitives.ButtonBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ButtonBaseEvents(global::System.Windows.Controls.Primitives.ButtonBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DocumentPageViewEvents + { + private readonly global::System.Windows.Controls.Primitives.DocumentPageView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DocumentPageViewEvents(global::System.Windows.Controls.Primitives.DocumentPageView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PageConnected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PageConnected += x, x => _data.PageConnected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PageDisconnected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PageDisconnected += x, x => _data.PageDisconnected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DocumentViewerBaseEvents + { + private readonly global::System.Windows.Controls.Primitives.DocumentViewerBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DocumentViewerBaseEvents(global::System.Windows.Controls.Primitives.DocumentViewerBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PageViewsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PageViewsChanged += x, x => _data.PageViewsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PopupEvents + { + private readonly global::System.Windows.Controls.Primitives.Popup _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PopupEvents(global::System.Windows.Controls.Primitives.Popup data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Opened += x, x => _data.Opened -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RangeBaseEvents + { + private readonly global::System.Windows.Controls.Primitives.RangeBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RangeBaseEvents(global::System.Windows.Controls.Primitives.RangeBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable> ValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.RoutedPropertyChangedEventArgs>(x => _data.ValueChanged += x, x => _data.ValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ScrollBarEvents + { + private readonly global::System.Windows.Controls.Primitives.ScrollBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ScrollBarEvents(global::System.Windows.Controls.Primitives.ScrollBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SelectorEvents + { + private readonly global::System.Windows.Controls.Primitives.Selector _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SelectorEvents(global::System.Windows.Controls.Primitives.Selector data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TextBoxBaseEvents + { + private readonly global::System.Windows.Controls.Primitives.TextBoxBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TextBoxBaseEvents(global::System.Windows.Controls.Primitives.TextBoxBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ThumbEvents + { + private readonly global::System.Windows.Controls.Primitives.Thumb _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ThumbEvents(global::System.Windows.Controls.Primitives.Thumb data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragCompleted += x, x => _data.DragCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragDelta => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragDelta += x, x => _data.DragDelta -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragStarted += x, x => _data.DragStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToggleButtonEvents + { + private readonly global::System.Windows.Controls.Primitives.ToggleButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToggleButtonEvents(global::System.Windows.Controls.Primitives.ToggleButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Checked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Checked += x, x => _data.Checked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Indeterminate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Indeterminate += x, x => _data.Indeterminate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unchecked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unchecked += x, x => _data.Unchecked -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Data +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CollectionViewEvents Events(this global::System.Windows.Data.CollectionView item) => new CollectionViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CollectionViewSourceEvents Events(this global::System.Windows.Data.CollectionViewSource item) => new CollectionViewSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataSourceProviderEvents Events(this global::System.Windows.Data.DataSourceProvider item) => new DataSourceProviderEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CollectionViewEvents + { + private readonly global::System.Windows.Data.CollectionView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CollectionViewEvents(global::System.Windows.Data.CollectionView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentChanged += x, x => _data.CurrentChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentChanging += x, x => _data.CurrentChanging -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CollectionViewSourceEvents + { + private readonly global::System.Windows.Data.CollectionViewSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CollectionViewSourceEvents(global::System.Windows.Data.CollectionViewSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Filter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Filter += x, x => _data.Filter -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataSourceProviderEvents + { + private readonly global::System.Windows.Data.DataSourceProvider _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataSourceProviderEvents(global::System.Windows.Data.DataSourceProvider data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataChanged += x, x => _data.DataChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Documents +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DocumentPageEvents Events(this global::System.Windows.Documents.DocumentPage item) => new DocumentPageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DocumentPaginatorEvents Events(this global::System.Windows.Documents.DocumentPaginator item) => new DocumentPaginatorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DocumentReferenceCollectionEvents Events(this global::System.Windows.Documents.DocumentReferenceCollection item) => new DocumentReferenceCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DynamicDocumentPaginatorEvents Events(this global::System.Windows.Documents.DynamicDocumentPaginator item) => new DynamicDocumentPaginatorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HyperlinkEvents Events(this global::System.Windows.Documents.Hyperlink item) => new HyperlinkEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PageContentEvents Events(this global::System.Windows.Documents.PageContent item) => new PageContentEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TextRangeEvents Events(this global::System.Windows.Documents.TextRange item) => new TextRangeEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DocumentPageEvents + { + private readonly global::System.Windows.Documents.DocumentPage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DocumentPageEvents(global::System.Windows.Documents.DocumentPage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PageDestroyed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PageDestroyed += x, x => _data.PageDestroyed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DocumentPaginatorEvents + { + private readonly global::System.Windows.Documents.DocumentPaginator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DocumentPaginatorEvents(global::System.Windows.Documents.DocumentPaginator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ComputePageCountCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ComputePageCountCompleted += x, x => _data.ComputePageCountCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GetPageCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GetPageCompleted += x, x => _data.GetPageCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PagesChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PagesChanged += x, x => _data.PagesChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DocumentReferenceCollectionEvents + { + private readonly global::System.Windows.Documents.DocumentReferenceCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DocumentReferenceCollectionEvents(global::System.Windows.Documents.DocumentReferenceCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DynamicDocumentPaginatorEvents + { + private readonly global::System.Windows.Documents.DynamicDocumentPaginator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DynamicDocumentPaginatorEvents(global::System.Windows.Documents.DynamicDocumentPaginator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GetPageNumberCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GetPageNumberCompleted += x, x => _data.GetPageNumberCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaginationCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaginationCompleted += x, x => _data.PaginationCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaginationProgress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaginationProgress += x, x => _data.PaginationProgress -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HyperlinkEvents + { + private readonly global::System.Windows.Documents.Hyperlink _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HyperlinkEvents(global::System.Windows.Documents.Hyperlink data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RequestNavigate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RequestNavigate += x, x => _data.RequestNavigate -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PageContentEvents + { + private readonly global::System.Windows.Documents.PageContent _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PageContentEvents(global::System.Windows.Documents.PageContent data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GetPageRootCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GetPageRootCompleted += x, x => _data.GetPageRootCompleted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TextRangeEvents + { + private readonly global::System.Windows.Documents.TextRange _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TextRangeEvents(global::System.Windows.Documents.TextRange data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Changed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Changed += x, x => _data.Changed -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Documents.Serialization +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SerializerWriterEvents Events(this global::System.Windows.Documents.Serialization.SerializerWriter item) => new SerializerWriterEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SerializerWriterEvents + { + private readonly global::System.Windows.Documents.Serialization.SerializerWriter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SerializerWriterEvents(global::System.Windows.Documents.Serialization.SerializerWriter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WritingCancelled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WritingCancelled += x, x => _data.WritingCancelled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WritingCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WritingCompleted += x, x => _data.WritingCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WritingPrintTicketRequired => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WritingPrintTicketRequired += x, x => _data.WritingPrintTicketRequired -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WritingProgressChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WritingProgressChanged += x, x => _data.WritingProgressChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Ink +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DrawingAttributesEvents Events(this global::System.Windows.Ink.DrawingAttributes item) => new DrawingAttributesEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IncrementalLassoHitTesterEvents Events(this global::System.Windows.Ink.IncrementalLassoHitTester item) => new IncrementalLassoHitTesterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IncrementalStrokeHitTesterEvents Events(this global::System.Windows.Ink.IncrementalStrokeHitTester item) => new IncrementalStrokeHitTesterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StrokeEvents Events(this global::System.Windows.Ink.Stroke item) => new StrokeEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StrokeCollectionEvents Events(this global::System.Windows.Ink.StrokeCollection item) => new StrokeCollectionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DrawingAttributesEvents + { + private readonly global::System.Windows.Ink.DrawingAttributes _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DrawingAttributesEvents(global::System.Windows.Ink.DrawingAttributes data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AttributeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AttributeChanged += x, x => _data.AttributeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyDataChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyDataChanged += x, x => _data.PropertyDataChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IncrementalLassoHitTesterEvents + { + private readonly global::System.Windows.Ink.IncrementalLassoHitTester _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IncrementalLassoHitTesterEvents(global::System.Windows.Ink.IncrementalLassoHitTester data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IncrementalStrokeHitTesterEvents + { + private readonly global::System.Windows.Ink.IncrementalStrokeHitTester _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IncrementalStrokeHitTesterEvents(global::System.Windows.Ink.IncrementalStrokeHitTester data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StrokeHit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StrokeHit += x, x => _data.StrokeHit -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StrokeEvents + { + private readonly global::System.Windows.Ink.Stroke _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StrokeEvents(global::System.Windows.Ink.Stroke data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawingAttributesChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawingAttributesChanged += x, x => _data.DrawingAttributesChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawingAttributesReplaced => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawingAttributesReplaced += x, x => _data.DrawingAttributesReplaced -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Invalidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Invalidated += x, x => _data.Invalidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyDataChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyDataChanged += x, x => _data.PropertyDataChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusPointsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusPointsChanged += x, x => _data.StylusPointsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StylusPointsReplaced => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StylusPointsReplaced += x, x => _data.StylusPointsReplaced -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StrokeCollectionEvents + { + private readonly global::System.Windows.Ink.StrokeCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StrokeCollectionEvents(global::System.Windows.Ink.StrokeCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyDataChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyDataChanged += x, x => _data.PropertyDataChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StrokesChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StrokesChanged += x, x => _data.StrokesChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Interop +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static D3DImageEvents Events(this global::System.Windows.Interop.D3DImage item) => new D3DImageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HwndHostEvents Events(this global::System.Windows.Interop.HwndHost item) => new HwndHostEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HwndSourceEvents Events(this global::System.Windows.Interop.HwndSource item) => new HwndSourceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class D3DImageEvents + { + private readonly global::System.Windows.Interop.D3DImage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public D3DImageEvents(global::System.Windows.Interop.D3DImage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsFrontBufferAvailableChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsFrontBufferAvailableChanged += x, x => _data.IsFrontBufferAvailableChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HwndHostEvents + { + private readonly global::System.Windows.Interop.HwndHost _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HwndHostEvents(global::System.Windows.Interop.HwndHost data) + { + _data = data; + } + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HwndSourceEvents + { + private readonly global::System.Windows.Interop.HwndSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HwndSourceEvents(global::System.Windows.Interop.HwndSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoResized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoResized += x, x => _data.AutoResized -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Disposed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Disposed += x, x => _data.Disposed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SizeToContentChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SizeToContentChanged += x, x => _data.SizeToContentChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Markup +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static XamlReaderEvents Events(this global::System.Windows.Markup.XamlReader item) => new XamlReaderEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class XamlReaderEvents + { + private readonly global::System.Windows.Markup.XamlReader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public XamlReaderEvents(global::System.Windows.Markup.XamlReader data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadCompleted += x, x => _data.LoadCompleted -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Markup.Localizer +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BamlLocalizerEvents Events(this global::System.Windows.Markup.Localizer.BamlLocalizer item) => new BamlLocalizerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BamlLocalizerEvents + { + private readonly global::System.Windows.Markup.Localizer.BamlLocalizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BamlLocalizerEvents(global::System.Windows.Markup.Localizer.BamlLocalizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ErrorNotify => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ErrorNotify += x, x => _data.ErrorNotify -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Media +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MediaPlayerEvents Events(this global::System.Windows.Media.MediaPlayer item) => new MediaPlayerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MediaPlayerEvents + { + private readonly global::System.Windows.Media.MediaPlayer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MediaPlayerEvents(global::System.Windows.Media.MediaPlayer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferingEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BufferingEnded += x, x => _data.BufferingEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferingStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BufferingStarted += x, x => _data.BufferingStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MediaEnded += x, x => _data.MediaEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Media.ExceptionEventArgs>(x => _data.MediaFailed += x, x => _data.MediaFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MediaOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MediaOpened += x, x => _data.MediaOpened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScriptCommand => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Media.MediaScriptCommandEventArgs>(x => _data.ScriptCommand += x, x => _data.ScriptCommand -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Media.Animation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ClockEvents Events(this global::System.Windows.Media.Animation.Clock item) => new ClockEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TimelineEvents Events(this global::System.Windows.Media.Animation.Timeline item) => new TimelineEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ClockEvents + { + private readonly global::System.Windows.Media.Animation.Clock _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ClockEvents(global::System.Windows.Media.Animation.Clock data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Completed += x, x => _data.Completed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentGlobalSpeedInvalidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentGlobalSpeedInvalidated += x, x => _data.CurrentGlobalSpeedInvalidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentStateInvalidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentStateInvalidated += x, x => _data.CurrentStateInvalidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentTimeInvalidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentTimeInvalidated += x, x => _data.CurrentTimeInvalidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RemoveRequested => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RemoveRequested += x, x => _data.RemoveRequested -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TimelineEvents + { + private readonly global::System.Windows.Media.Animation.Timeline _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TimelineEvents(global::System.Windows.Media.Animation.Timeline data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Completed += x, x => _data.Completed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentGlobalSpeedInvalidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentGlobalSpeedInvalidated += x, x => _data.CurrentGlobalSpeedInvalidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentStateInvalidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentStateInvalidated += x, x => _data.CurrentStateInvalidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentTimeInvalidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentTimeInvalidated += x, x => _data.CurrentTimeInvalidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RemoveRequested => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RemoveRequested += x, x => _data.RemoveRequested -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Media.Effects +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PixelShaderEvents Events(this global::System.Windows.Media.Effects.PixelShader item) => new PixelShaderEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PixelShaderEvents + { + private readonly global::System.Windows.Media.Effects.PixelShader _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PixelShaderEvents(global::System.Windows.Media.Effects.PixelShader data) + { + _data = data; + } + } +} + +namespace System.Windows.Media.Imaging +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BitmapDecoderEvents Events(this global::System.Windows.Media.Imaging.BitmapDecoder item) => new BitmapDecoderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BitmapSourceEvents Events(this global::System.Windows.Media.Imaging.BitmapSource item) => new BitmapSourceEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BitmapDecoderEvents + { + private readonly global::System.Windows.Media.Imaging.BitmapDecoder _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BitmapDecoderEvents(global::System.Windows.Media.Imaging.BitmapDecoder data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DownloadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DownloadCompleted += x, x => _data.DownloadCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DownloadFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Media.ExceptionEventArgs>(x => _data.DownloadFailed += x, x => _data.DownloadFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DownloadProgress => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Media.Imaging.DownloadProgressEventArgs>(x => _data.DownloadProgress += x, x => _data.DownloadProgress -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BitmapSourceEvents + { + private readonly global::System.Windows.Media.Imaging.BitmapSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BitmapSourceEvents(global::System.Windows.Media.Imaging.BitmapSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecodeFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Media.ExceptionEventArgs>(x => _data.DecodeFailed += x, x => _data.DecodeFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DownloadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DownloadCompleted += x, x => _data.DownloadCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DownloadFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Media.ExceptionEventArgs>(x => _data.DownloadFailed += x, x => _data.DownloadFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DownloadProgress => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Media.Imaging.DownloadProgressEventArgs>(x => _data.DownloadProgress += x, x => _data.DownloadProgress -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Navigation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NavigationServiceEvents Events(this global::System.Windows.Navigation.NavigationService item) => new NavigationServiceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NavigationWindowEvents Events(this global::System.Windows.Navigation.NavigationWindow item) => new NavigationWindowEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NavigationServiceEvents + { + private readonly global::System.Windows.Navigation.NavigationService _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NavigationServiceEvents(global::System.Windows.Navigation.NavigationService data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FragmentNavigation => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FragmentNavigation += x, x => _data.FragmentNavigation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadCompleted += x, x => _data.LoadCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigated += x, x => _data.Navigated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigating += x, x => _data.Navigating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationFailed += x, x => _data.NavigationFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationProgress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationProgress += x, x => _data.NavigationProgress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationStopped += x, x => _data.NavigationStopped -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NavigationWindowEvents + { + private readonly global::System.Windows.Navigation.NavigationWindow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NavigationWindowEvents(global::System.Windows.Navigation.NavigationWindow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FragmentNavigation => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FragmentNavigation += x, x => _data.FragmentNavigation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadCompleted += x, x => _data.LoadCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigated += x, x => _data.Navigated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigating += x, x => _data.Navigating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationFailed += x, x => _data.NavigationFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationProgress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationProgress += x, x => _data.NavigationProgress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NavigationStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NavigationStopped += x, x => _data.NavigationStopped -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Shell +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static JumpListEvents Events(this global::System.Windows.Shell.JumpList item) => new JumpListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ThumbButtonInfoEvents Events(this global::System.Windows.Shell.ThumbButtonInfo item) => new ThumbButtonInfoEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class JumpListEvents + { + private readonly global::System.Windows.Shell.JumpList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public JumpListEvents(global::System.Windows.Shell.JumpList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable JumpItemsRejected => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Shell.JumpItemsRejectedEventArgs>(x => _data.JumpItemsRejected += x, x => _data.JumpItemsRejected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable JumpItemsRemovedByUser => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Shell.JumpItemsRemovedEventArgs>(x => _data.JumpItemsRemovedByUser += x, x => _data.JumpItemsRemovedByUser -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ThumbButtonInfoEvents + { + private readonly global::System.Windows.Shell.ThumbButtonInfo _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ThumbButtonInfoEvents(global::System.Windows.Shell.ThumbButtonInfo data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Threading +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DispatcherEvents Events(this global::System.Windows.Threading.Dispatcher item) => new DispatcherEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DispatcherHooksEvents Events(this global::System.Windows.Threading.DispatcherHooks item) => new DispatcherHooksEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DispatcherOperationEvents Events(this global::System.Windows.Threading.DispatcherOperation item) => new DispatcherOperationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DispatcherTimerEvents Events(this global::System.Windows.Threading.DispatcherTimer item) => new DispatcherTimerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DispatcherEvents + { + private readonly global::System.Windows.Threading.Dispatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DispatcherEvents(global::System.Windows.Threading.Dispatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ShutdownFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ShutdownFinished += x, x => _data.ShutdownFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ShutdownStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ShutdownStarted += x, x => _data.ShutdownStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UnhandledException => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UnhandledException += x, x => _data.UnhandledException -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UnhandledExceptionFilter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UnhandledExceptionFilter += x, x => _data.UnhandledExceptionFilter -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DispatcherHooksEvents + { + private readonly global::System.Windows.Threading.DispatcherHooks _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DispatcherHooksEvents(global::System.Windows.Threading.DispatcherHooks data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DispatcherInactive => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DispatcherInactive += x, x => _data.DispatcherInactive -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OperationAborted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OperationAborted += x, x => _data.OperationAborted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OperationCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OperationCompleted += x, x => _data.OperationCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OperationPosted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OperationPosted += x, x => _data.OperationPosted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OperationPriorityChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OperationPriorityChanged += x, x => _data.OperationPriorityChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OperationStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OperationStarted += x, x => _data.OperationStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DispatcherOperationEvents + { + private readonly global::System.Windows.Threading.DispatcherOperation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DispatcherOperationEvents(global::System.Windows.Threading.DispatcherOperation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Aborted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Aborted += x, x => _data.Aborted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Completed += x, x => _data.Completed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DispatcherTimerEvents + { + private readonly global::System.Windows.Threading.DispatcherTimer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DispatcherTimerEvents(global::System.Windows.Threading.DispatcherTimer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Tick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Tick += x, x => _data.Tick -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemParametersStaticPropertyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.SystemParameters.StaticPropertyChanged += x, x => global::System.Windows.SystemParameters.StaticPropertyChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Data +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable BindingOperationsCollectionRegistering => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Data.CollectionRegisteringEventArgs>(x => global::System.Windows.Data.BindingOperations.CollectionRegistering += x, x => global::System.Windows.Data.BindingOperations.CollectionRegistering -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable BindingOperationsCollectionViewRegistering => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Data.CollectionViewRegisteringEventArgs>(x => global::System.Windows.Data.BindingOperations.CollectionViewRegistering += x, x => global::System.Windows.Data.BindingOperations.CollectionViewRegistering -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Diagnostics +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable VisualDiagnosticsVisualTreeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Diagnostics.VisualTreeChangeEventArgs>(x => global::System.Windows.Diagnostics.VisualDiagnostics.VisualTreeChanged += x, x => global::System.Windows.Diagnostics.VisualDiagnostics.VisualTreeChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Interop +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ComponentDispatcherEnterThreadModal => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Interop.ComponentDispatcher.EnterThreadModal += x, x => global::System.Windows.Interop.ComponentDispatcher.EnterThreadModal -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ComponentDispatcherLeaveThreadModal => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Interop.ComponentDispatcher.LeaveThreadModal += x, x => global::System.Windows.Interop.ComponentDispatcher.LeaveThreadModal -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable<(global::System.Windows.Interop.MSG&, global::System.Boolean&)> ComponentDispatcherThreadFilterMessage => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::System.Windows.Interop.MSG& msg, global::System.Boolean& handled) => eventHandler((msg, handled)); + return Handler; + } + + , x => global::System.Windows.Interop.ComponentDispatcher.ThreadFilterMessage += x, x => global::System.Windows.Interop.ComponentDispatcher.ThreadFilterMessage -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ComponentDispatcherThreadIdle => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Interop.ComponentDispatcher.ThreadIdle += x, x => global::System.Windows.Interop.ComponentDispatcher.ThreadIdle -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable<(global::System.Windows.Interop.MSG&, global::System.Boolean&)> ComponentDispatcherThreadPreprocessMessage => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::System.Windows.Interop.MSG& msg, global::System.Boolean& handled) => eventHandler((msg, handled)); + return Handler; + } + + , x => global::System.Windows.Interop.ComponentDispatcher.ThreadPreprocessMessage += x, x => global::System.Windows.Interop.ComponentDispatcher.ThreadPreprocessMessage -= x); + } +} + +namespace System.Windows.Media +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable CompositionTargetRendering => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Media.CompositionTarget.Rendering += x, x => global::System.Windows.Media.CompositionTarget.Rendering -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RenderCapabilityTierChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Media.RenderCapability.TierChanged += x, x => global::System.Windows.Media.RenderCapability.TierChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Media.Effects +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable PixelShaderInvalidPixelShaderEncountered => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Media.Effects.PixelShader.InvalidPixelShaderEncountered += x, x => global::System.Windows.Media.Effects.PixelShader.InvalidPixelShaderEncountered -= x).Select(x => x.EventArgs); + } +} \ No newline at end of file diff --git a/src/Pharmacist.Tests/IntegrationTests/Approved/Winforms.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/Winforms.approved.txt new file mode 100644 index 0000000..12ec9f7 --- /dev/null +++ b/src/Pharmacist.Tests/IntegrationTests/Approved/Winforms.approved.txt @@ -0,0 +1,7133 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using global::System; +using global::System.Reactive; +using global::System.Reactive.Linq; +using global::System.Reactive.Subjects; + +using global::Pharmacist.Common; + +namespace System.ComponentModel +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BackgroundWorkerEvents Events(this global::System.ComponentModel.BackgroundWorker item) => new BackgroundWorkerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ComponentEvents Events(this global::System.ComponentModel.Component item) => new ComponentEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IBindingListEvents Events(this global::System.ComponentModel.IBindingList item) => new IBindingListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static IComponentEvents Events(this global::System.ComponentModel.IComponent item) => new IComponentEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static INotifyDataErrorInfoEvents Events(this global::System.ComponentModel.INotifyDataErrorInfo item) => new INotifyDataErrorInfoEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static INotifyPropertyChangedEvents Events(this global::System.ComponentModel.INotifyPropertyChanged item) => new INotifyPropertyChangedEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static INotifyPropertyChangingEvents Events(this global::System.ComponentModel.INotifyPropertyChanging item) => new INotifyPropertyChangingEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ISupportInitializeNotificationEvents Events(this global::System.ComponentModel.ISupportInitializeNotification item) => new ISupportInitializeNotificationEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MarshalByValueComponentEvents Events(this global::System.ComponentModel.MarshalByValueComponent item) => new MarshalByValueComponentEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BackgroundWorkerEvents + { + private readonly global::System.ComponentModel.BackgroundWorker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BackgroundWorkerEvents(global::System.ComponentModel.BackgroundWorker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoWork => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoWork += x, x => _data.DoWork -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ProgressChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ProgressChanged += x, x => _data.ProgressChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RunWorkerCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RunWorkerCompleted += x, x => _data.RunWorkerCompleted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ComponentEvents + { + private readonly global::System.ComponentModel.Component _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ComponentEvents(global::System.ComponentModel.Component data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Disposed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Disposed += x, x => _data.Disposed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IBindingListEvents + { + private readonly global::System.ComponentModel.IBindingList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IBindingListEvents(global::System.ComponentModel.IBindingList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ListChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ListChanged += x, x => _data.ListChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class IComponentEvents + { + private readonly global::System.ComponentModel.IComponent _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public IComponentEvents(global::System.ComponentModel.IComponent data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Disposed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Disposed += x, x => _data.Disposed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class INotifyDataErrorInfoEvents + { + private readonly global::System.ComponentModel.INotifyDataErrorInfo _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public INotifyDataErrorInfoEvents(global::System.ComponentModel.INotifyDataErrorInfo data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ErrorsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.ComponentModel.DataErrorsChangedEventArgs>(x => _data.ErrorsChanged += x, x => _data.ErrorsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class INotifyPropertyChangedEvents + { + private readonly global::System.ComponentModel.INotifyPropertyChanged _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public INotifyPropertyChangedEvents(global::System.ComponentModel.INotifyPropertyChanged data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyChanged += x, x => _data.PropertyChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class INotifyPropertyChangingEvents + { + private readonly global::System.ComponentModel.INotifyPropertyChanging _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public INotifyPropertyChangingEvents(global::System.ComponentModel.INotifyPropertyChanging data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyChanging += x, x => _data.PropertyChanging -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ISupportInitializeNotificationEvents + { + private readonly global::System.ComponentModel.ISupportInitializeNotification _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ISupportInitializeNotificationEvents(global::System.ComponentModel.ISupportInitializeNotification data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Initialized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Initialized += x, x => _data.Initialized -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MarshalByValueComponentEvents + { + private readonly global::System.ComponentModel.MarshalByValueComponent _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MarshalByValueComponentEvents(global::System.ComponentModel.MarshalByValueComponent data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Disposed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Disposed += x, x => _data.Disposed -= x).Select(x => x.EventArgs); + } +} + +namespace System.Data +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ConstraintCollectionEvents Events(this global::System.Data.ConstraintCollection item) => new ConstraintCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataColumnCollectionEvents Events(this global::System.Data.DataColumnCollection item) => new DataColumnCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataRelationCollectionEvents Events(this global::System.Data.DataRelationCollection item) => new DataRelationCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataRowViewEvents Events(this global::System.Data.DataRowView item) => new DataRowViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataSetEvents Events(this global::System.Data.DataSet item) => new DataSetEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataTableEvents Events(this global::System.Data.DataTable item) => new DataTableEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataTableCollectionEvents Events(this global::System.Data.DataTableCollection item) => new DataTableCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataViewEvents Events(this global::System.Data.DataView item) => new DataViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataViewManagerEvents Events(this global::System.Data.DataViewManager item) => new DataViewManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ConstraintCollectionEvents + { + private readonly global::System.Data.ConstraintCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ConstraintCollectionEvents(global::System.Data.ConstraintCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataColumnCollectionEvents + { + private readonly global::System.Data.DataColumnCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataColumnCollectionEvents(global::System.Data.DataColumnCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataRelationCollectionEvents + { + private readonly global::System.Data.DataRelationCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataRelationCollectionEvents(global::System.Data.DataRelationCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataRowViewEvents + { + private readonly global::System.Data.DataRowView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataRowViewEvents(global::System.Data.DataRowView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyChanged += x, x => _data.PropertyChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataSetEvents + { + private readonly global::System.Data.DataSet _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataSetEvents(global::System.Data.DataSet data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Initialized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Initialized += x, x => _data.Initialized -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MergeFailed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MergeFailed += x, x => _data.MergeFailed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataTableEvents + { + private readonly global::System.Data.DataTable _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataTableEvents(global::System.Data.DataTable data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnChanged += x, x => _data.ColumnChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnChanging += x, x => _data.ColumnChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Initialized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Initialized += x, x => _data.Initialized -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowChanged += x, x => _data.RowChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowChanging += x, x => _data.RowChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowDeleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowDeleted += x, x => _data.RowDeleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowDeleting => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowDeleting += x, x => _data.RowDeleting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TableCleared => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TableCleared += x, x => _data.TableCleared -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TableClearing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TableClearing += x, x => _data.TableClearing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TableNewRow => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TableNewRow += x, x => _data.TableNewRow -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataTableCollectionEvents + { + private readonly global::System.Data.DataTableCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataTableCollectionEvents(global::System.Data.DataTableCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanging += x, x => _data.CollectionChanging -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataViewEvents + { + private readonly global::System.Data.DataView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataViewEvents(global::System.Data.DataView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Initialized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Initialized += x, x => _data.Initialized -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ListChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ListChanged += x, x => _data.ListChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataViewManagerEvents + { + private readonly global::System.Data.DataViewManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataViewManagerEvents(global::System.Data.DataViewManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ListChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ListChanged += x, x => _data.ListChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Diagnostics +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EventLogEvents Events(this global::System.Diagnostics.EventLog item) => new EventLogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ProcessEvents Events(this global::System.Diagnostics.Process item) => new ProcessEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EventLogEvents + { + private readonly global::System.Diagnostics.EventLog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EventLogEvents(global::System.Diagnostics.EventLog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EntryWritten => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EntryWritten += x, x => _data.EntryWritten -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ProcessEvents + { + private readonly global::System.Diagnostics.Process _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ProcessEvents(global::System.Diagnostics.Process data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ErrorDataReceived => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ErrorDataReceived += x, x => _data.ErrorDataReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Exited => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Exited += x, x => _data.Exited -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OutputDataReceived => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OutputDataReceived += x, x => _data.OutputDataReceived -= x).Select(x => x.EventArgs); + } +} + +namespace System.IO +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FileSystemWatcherEvents Events(this global::System.IO.FileSystemWatcher item) => new FileSystemWatcherEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FileSystemWatcherEvents + { + private readonly global::System.IO.FileSystemWatcher _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FileSystemWatcherEvents(global::System.IO.FileSystemWatcher data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Changed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Changed += x, x => _data.Changed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Created => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Created += x, x => _data.Created -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Deleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Deleted += x, x => _data.Deleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Error => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Error += x, x => _data.Error -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Renamed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Renamed += x, x => _data.Renamed -= x).Select(x => x.EventArgs); + } +} + +namespace System.IO.Ports +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SerialPortEvents Events(this global::System.IO.Ports.SerialPort item) => new SerialPortEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SerialPortEvents + { + private readonly global::System.IO.Ports.SerialPort _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SerialPortEvents(global::System.IO.Ports.SerialPort data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataReceived => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataReceived += x, x => _data.DataReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ErrorReceived => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ErrorReceived += x, x => _data.ErrorReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PinChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PinChanged += x, x => _data.PinChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Messaging +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MessageQueueEvents Events(this global::System.Messaging.MessageQueue item) => new MessageQueueEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MessageQueueEvents + { + private readonly global::System.Messaging.MessageQueue _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MessageQueueEvents(global::System.Messaging.MessageQueue data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PeekCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PeekCompleted += x, x => _data.PeekCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceiveCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReceiveCompleted += x, x => _data.ReceiveCompleted -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Forms +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ApplicationContextEvents Events(this global::System.Windows.Forms.ApplicationContext item) => new ApplicationContextEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AutoCompleteStringCollectionEvents Events(this global::System.Windows.Forms.AutoCompleteStringCollection item) => new AutoCompleteStringCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AxHostEvents Events(this global::System.Windows.Forms.AxHost item) => new AxHostEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BindingEvents Events(this global::System.Windows.Forms.Binding item) => new BindingEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BindingContextEvents Events(this global::System.Windows.Forms.BindingContext item) => new BindingContextEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BindingManagerBaseEvents Events(this global::System.Windows.Forms.BindingManagerBase item) => new BindingManagerBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BindingNavigatorEvents Events(this global::System.Windows.Forms.BindingNavigator item) => new BindingNavigatorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BindingsCollectionEvents Events(this global::System.Windows.Forms.BindingsCollection item) => new BindingsCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static BindingSourceEvents Events(this global::System.Windows.Forms.BindingSource item) => new BindingSourceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ButtonEvents Events(this global::System.Windows.Forms.Button item) => new ButtonEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ButtonBaseEvents Events(this global::System.Windows.Forms.ButtonBase item) => new ButtonBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CheckBoxEvents Events(this global::System.Windows.Forms.CheckBox item) => new CheckBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CheckedListBoxEvents Events(this global::System.Windows.Forms.CheckedListBox item) => new CheckedListBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ComboBoxEvents Events(this global::System.Windows.Forms.ComboBox item) => new ComboBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CommonDialogEvents Events(this global::System.Windows.Forms.CommonDialog item) => new CommonDialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContainerControlEvents Events(this global::System.Windows.Forms.ContainerControl item) => new ContainerControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ContextMenuEvents Events(this global::System.Windows.Forms.ContextMenu item) => new ContextMenuEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ControlEvents Events(this global::System.Windows.Forms.Control item) => new ControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CurrencyManagerEvents Events(this global::System.Windows.Forms.CurrencyManager item) => new CurrencyManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridEvents Events(this global::System.Windows.Forms.DataGrid item) => new DataGridEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridBoolColumnEvents Events(this global::System.Windows.Forms.DataGridBoolColumn item) => new DataGridBoolColumnEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridColumnStyleEvents Events(this global::System.Windows.Forms.DataGridColumnStyle item) => new DataGridColumnStyleEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridTableStyleEvents Events(this global::System.Windows.Forms.DataGridTableStyle item) => new DataGridTableStyleEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridViewEvents Events(this global::System.Windows.Forms.DataGridView item) => new DataGridViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridViewCellCollectionEvents Events(this global::System.Windows.Forms.DataGridViewCellCollection item) => new DataGridViewCellCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridViewColumnEvents Events(this global::System.Windows.Forms.DataGridViewColumn item) => new DataGridViewColumnEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridViewColumnCollectionEvents Events(this global::System.Windows.Forms.DataGridViewColumnCollection item) => new DataGridViewColumnCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DataGridViewRowCollectionEvents Events(this global::System.Windows.Forms.DataGridViewRowCollection item) => new DataGridViewRowCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DateTimePickerEvents Events(this global::System.Windows.Forms.DateTimePicker item) => new DateTimePickerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static DomainUpDownEvents Events(this global::System.Windows.Forms.DomainUpDown item) => new DomainUpDownEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ErrorProviderEvents Events(this global::System.Windows.Forms.ErrorProvider item) => new ErrorProviderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FileDialogEvents Events(this global::System.Windows.Forms.FileDialog item) => new FileDialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FolderBrowserDialogEvents Events(this global::System.Windows.Forms.FolderBrowserDialog item) => new FolderBrowserDialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FontDialogEvents Events(this global::System.Windows.Forms.FontDialog item) => new FontDialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static FormEvents Events(this global::System.Windows.Forms.Form item) => new FormEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GridColumnStylesCollectionEvents Events(this global::System.Windows.Forms.GridColumnStylesCollection item) => new GridColumnStylesCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GridTableStylesCollectionEvents Events(this global::System.Windows.Forms.GridTableStylesCollection item) => new GridTableStylesCollectionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GroupBoxEvents Events(this global::System.Windows.Forms.GroupBox item) => new GroupBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HtmlDocumentEvents Events(this global::System.Windows.Forms.HtmlDocument item) => new HtmlDocumentEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HtmlElementEvents Events(this global::System.Windows.Forms.HtmlElement item) => new HtmlElementEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HtmlWindowEvents Events(this global::System.Windows.Forms.HtmlWindow item) => new HtmlWindowEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ImageListEvents Events(this global::System.Windows.Forms.ImageList item) => new ImageListEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LabelEvents Events(this global::System.Windows.Forms.Label item) => new LabelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static LinkLabelEvents Events(this global::System.Windows.Forms.LinkLabel item) => new LinkLabelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ListBoxEvents Events(this global::System.Windows.Forms.ListBox item) => new ListBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ListControlEvents Events(this global::System.Windows.Forms.ListControl item) => new ListControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ListViewEvents Events(this global::System.Windows.Forms.ListView item) => new ListViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MainMenuEvents Events(this global::System.Windows.Forms.MainMenu item) => new MainMenuEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MaskedTextBoxEvents Events(this global::System.Windows.Forms.MaskedTextBox item) => new MaskedTextBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MenuItemEvents Events(this global::System.Windows.Forms.MenuItem item) => new MenuItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MenuStripEvents Events(this global::System.Windows.Forms.MenuStrip item) => new MenuStripEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MonthCalendarEvents Events(this global::System.Windows.Forms.MonthCalendar item) => new MonthCalendarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NotifyIconEvents Events(this global::System.Windows.Forms.NotifyIcon item) => new NotifyIconEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NumericUpDownEvents Events(this global::System.Windows.Forms.NumericUpDown item) => new NumericUpDownEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PanelEvents Events(this global::System.Windows.Forms.Panel item) => new PanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PictureBoxEvents Events(this global::System.Windows.Forms.PictureBox item) => new PictureBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PrintPreviewControlEvents Events(this global::System.Windows.Forms.PrintPreviewControl item) => new PrintPreviewControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PrintPreviewDialogEvents Events(this global::System.Windows.Forms.PrintPreviewDialog item) => new PrintPreviewDialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ProgressBarEvents Events(this global::System.Windows.Forms.ProgressBar item) => new ProgressBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PropertyGridEvents Events(this global::System.Windows.Forms.PropertyGrid item) => new PropertyGridEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RadioButtonEvents Events(this global::System.Windows.Forms.RadioButton item) => new RadioButtonEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static RichTextBoxEvents Events(this global::System.Windows.Forms.RichTextBox item) => new RichTextBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ScrollableControlEvents Events(this global::System.Windows.Forms.ScrollableControl item) => new ScrollableControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ScrollBarEvents Events(this global::System.Windows.Forms.ScrollBar item) => new ScrollBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SplitContainerEvents Events(this global::System.Windows.Forms.SplitContainer item) => new SplitContainerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SplitterEvents Events(this global::System.Windows.Forms.Splitter item) => new SplitterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SplitterPanelEvents Events(this global::System.Windows.Forms.SplitterPanel item) => new SplitterPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StatusBarEvents Events(this global::System.Windows.Forms.StatusBar item) => new StatusBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static StatusStripEvents Events(this global::System.Windows.Forms.StatusStrip item) => new StatusStripEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TabControlEvents Events(this global::System.Windows.Forms.TabControl item) => new TabControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TableLayoutPanelEvents Events(this global::System.Windows.Forms.TableLayoutPanel item) => new TableLayoutPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TabPageEvents Events(this global::System.Windows.Forms.TabPage item) => new TabPageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TextBoxEvents Events(this global::System.Windows.Forms.TextBox item) => new TextBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TextBoxBaseEvents Events(this global::System.Windows.Forms.TextBoxBase item) => new TextBoxBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ThreadExceptionDialogEvents Events(this global::System.Windows.Forms.ThreadExceptionDialog item) => new ThreadExceptionDialogEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TimerEvents Events(this global::System.Windows.Forms.Timer item) => new TimerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolBarEvents Events(this global::System.Windows.Forms.ToolBar item) => new ToolBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripEvents Events(this global::System.Windows.Forms.ToolStrip item) => new ToolStripEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripButtonEvents Events(this global::System.Windows.Forms.ToolStripButton item) => new ToolStripButtonEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripComboBoxEvents Events(this global::System.Windows.Forms.ToolStripComboBox item) => new ToolStripComboBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripContainerEvents Events(this global::System.Windows.Forms.ToolStripContainer item) => new ToolStripContainerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripContentPanelEvents Events(this global::System.Windows.Forms.ToolStripContentPanel item) => new ToolStripContentPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripControlHostEvents Events(this global::System.Windows.Forms.ToolStripControlHost item) => new ToolStripControlHostEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripDropDownEvents Events(this global::System.Windows.Forms.ToolStripDropDown item) => new ToolStripDropDownEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripDropDownItemEvents Events(this global::System.Windows.Forms.ToolStripDropDownItem item) => new ToolStripDropDownItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripItemEvents Events(this global::System.Windows.Forms.ToolStripItem item) => new ToolStripItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripMenuItemEvents Events(this global::System.Windows.Forms.ToolStripMenuItem item) => new ToolStripMenuItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripPanelEvents Events(this global::System.Windows.Forms.ToolStripPanel item) => new ToolStripPanelEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripProgressBarEvents Events(this global::System.Windows.Forms.ToolStripProgressBar item) => new ToolStripProgressBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripRendererEvents Events(this global::System.Windows.Forms.ToolStripRenderer item) => new ToolStripRendererEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripSeparatorEvents Events(this global::System.Windows.Forms.ToolStripSeparator item) => new ToolStripSeparatorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripSplitButtonEvents Events(this global::System.Windows.Forms.ToolStripSplitButton item) => new ToolStripSplitButtonEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolStripTextBoxEvents Events(this global::System.Windows.Forms.ToolStripTextBox item) => new ToolStripTextBoxEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ToolTipEvents Events(this global::System.Windows.Forms.ToolTip item) => new ToolTipEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TrackBarEvents Events(this global::System.Windows.Forms.TrackBar item) => new TrackBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static TreeViewEvents Events(this global::System.Windows.Forms.TreeView item) => new TreeViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UpDownBaseEvents Events(this global::System.Windows.Forms.UpDownBase item) => new UpDownBaseEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UserControlEvents Events(this global::System.Windows.Forms.UserControl item) => new UserControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static VScrollBarEvents Events(this global::System.Windows.Forms.VScrollBar item) => new VScrollBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebBrowserEvents Events(this global::System.Windows.Forms.WebBrowser item) => new WebBrowserEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static WebBrowserBaseEvents Events(this global::System.Windows.Forms.WebBrowserBase item) => new WebBrowserBaseEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ApplicationContextEvents + { + private readonly global::System.Windows.Forms.ApplicationContext _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ApplicationContextEvents(global::System.Windows.Forms.ApplicationContext data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ThreadExit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ThreadExit += x, x => _data.ThreadExit -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AutoCompleteStringCollectionEvents + { + private readonly global::System.Windows.Forms.AutoCompleteStringCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AutoCompleteStringCollectionEvents(global::System.Windows.Forms.AutoCompleteStringCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AxHostEvents + { + private readonly global::System.Windows.Forms.AxHost _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AxHostEvents(global::System.Windows.Forms.AxHost data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BindingContextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BindingContextChanged += x, x => _data.BindingContextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChangeUICues => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ChangeUICues += x, x => _data.ChangeUICues -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuChanged += x, x => _data.ContextMenuChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CursorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CursorChanged += x, x => _data.CursorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragDrop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragDrop += x, x => _data.DragDrop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnter += x, x => _data.DragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EnabledChanged += x, x => _data.EnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GiveFeedback += x, x => _data.GiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HelpRequested => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HelpRequested += x, x => _data.HelpRequested -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Layout => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Layout += x, x => _data.Layout -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseHover => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseHover += x, x => _data.MouseHover -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseWheel += x, x => _data.MouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryAccessibilityHelp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryAccessibilityHelp += x, x => _data.QueryAccessibilityHelp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryContinueDrag += x, x => _data.QueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftChanged += x, x => _data.RightToLeftChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StyleChanged += x, x => _data.StyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BindingEvents + { + private readonly global::System.Windows.Forms.Binding _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BindingEvents(global::System.Windows.Forms.Binding data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BindingComplete => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BindingComplete += x, x => _data.BindingComplete -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Format => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Format += x, x => _data.Format -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Parse => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Parse += x, x => _data.Parse -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BindingContextEvents + { + private readonly global::System.Windows.Forms.BindingContext _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BindingContextEvents(global::System.Windows.Forms.BindingContext data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BindingManagerBaseEvents + { + private readonly global::System.Windows.Forms.BindingManagerBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BindingManagerBaseEvents(global::System.Windows.Forms.BindingManagerBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BindingComplete => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BindingComplete += x, x => _data.BindingComplete -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentChanged += x, x => _data.CurrentChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentItemChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentItemChanged += x, x => _data.CurrentItemChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataError => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataError += x, x => _data.DataError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PositionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PositionChanged += x, x => _data.PositionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BindingNavigatorEvents + { + private readonly global::System.Windows.Forms.BindingNavigator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BindingNavigatorEvents(global::System.Windows.Forms.BindingNavigator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RefreshItems => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RefreshItems += x, x => _data.RefreshItems -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BindingsCollectionEvents + { + private readonly global::System.Windows.Forms.BindingsCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BindingsCollectionEvents(global::System.Windows.Forms.BindingsCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanging += x, x => _data.CollectionChanging -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class BindingSourceEvents + { + private readonly global::System.Windows.Forms.BindingSource _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public BindingSourceEvents(global::System.Windows.Forms.BindingSource data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AddingNew => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AddingNew += x, x => _data.AddingNew -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BindingComplete => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BindingComplete += x, x => _data.BindingComplete -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentChanged += x, x => _data.CurrentChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentItemChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentItemChanged += x, x => _data.CurrentItemChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataError => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataError += x, x => _data.DataError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataMemberChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataMemberChanged += x, x => _data.DataMemberChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataSourceChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataSourceChanged += x, x => _data.DataSourceChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ListChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ListChanged += x, x => _data.ListChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PositionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PositionChanged += x, x => _data.PositionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ButtonEvents + { + private readonly global::System.Windows.Forms.Button _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ButtonEvents(global::System.Windows.Forms.Button data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ButtonBaseEvents + { + private readonly global::System.Windows.Forms.ButtonBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ButtonBaseEvents(global::System.Windows.Forms.ButtonBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CheckBoxEvents + { + private readonly global::System.Windows.Forms.CheckBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CheckBoxEvents(global::System.Windows.Forms.CheckBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AppearanceChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AppearanceChanged += x, x => _data.AppearanceChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CheckedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CheckedChanged += x, x => _data.CheckedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CheckStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CheckStateChanged += x, x => _data.CheckStateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CheckedListBoxEvents + { + private readonly global::System.Windows.Forms.CheckedListBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CheckedListBoxEvents(global::System.Windows.Forms.CheckedListBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataSourceChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataSourceChanged += x, x => _data.DataSourceChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisplayMemberChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DisplayMemberChanged += x, x => _data.DisplayMemberChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawItem += x, x => _data.DrawItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemCheck => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemCheck += x, x => _data.ItemCheck -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MeasureItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MeasureItem += x, x => _data.MeasureItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueMemberChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ValueMemberChanged += x, x => _data.ValueMemberChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ComboBoxEvents + { + private readonly global::System.Windows.Forms.ComboBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ComboBoxEvents(global::System.Windows.Forms.ComboBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawItem += x, x => _data.DrawItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDown += x, x => _data.DropDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownClosed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownClosed += x, x => _data.DropDownClosed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownStyleChanged += x, x => _data.DropDownStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MeasureItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MeasureItem += x, x => _data.MeasureItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedIndexChanged += x, x => _data.SelectedIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChangeCommitted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChangeCommitted += x, x => _data.SelectionChangeCommitted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextUpdate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextUpdate += x, x => _data.TextUpdate -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CommonDialogEvents + { + private readonly global::System.Windows.Forms.CommonDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CommonDialogEvents(global::System.Windows.Forms.CommonDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HelpRequest => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HelpRequest += x, x => _data.HelpRequest -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContainerControlEvents + { + private readonly global::System.Windows.Forms.ContainerControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContainerControlEvents(global::System.Windows.Forms.ContainerControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoValidateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoValidateChanged += x, x => _data.AutoValidateChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ContextMenuEvents + { + private readonly global::System.Windows.Forms.ContextMenu _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ContextMenuEvents(global::System.Windows.Forms.ContextMenu data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Collapse => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Collapse += x, x => _data.Collapse -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Popup => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Popup += x, x => _data.Popup -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ControlEvents + { + private readonly global::System.Windows.Forms.Control _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ControlEvents(global::System.Windows.Forms.Control data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BindingContextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BindingContextChanged += x, x => _data.BindingContextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CausesValidationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CausesValidationChanged += x, x => _data.CausesValidationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChangeUICues => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ChangeUICues += x, x => _data.ChangeUICues -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ClientSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ClientSizeChanged += x, x => _data.ClientSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuChanged += x, x => _data.ContextMenuChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuStripChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuStripChanged += x, x => _data.ContextMenuStripChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ControlAdded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ControlAdded += x, x => _data.ControlAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ControlRemoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ControlRemoved += x, x => _data.ControlRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CursorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CursorChanged += x, x => _data.CursorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DockChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DockChanged += x, x => _data.DockChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragDrop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragDrop += x, x => _data.DragDrop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnter += x, x => _data.DragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EnabledChanged += x, x => _data.EnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Enter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Enter += x, x => _data.Enter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GiveFeedback += x, x => _data.GiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HandleCreated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HandleCreated += x, x => _data.HandleCreated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HandleDestroyed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HandleDestroyed += x, x => _data.HandleDestroyed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HelpRequested => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HelpRequested += x, x => _data.HelpRequested -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Invalidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Invalidated += x, x => _data.Invalidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Layout => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Layout += x, x => _data.Layout -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Leave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Leave += x, x => _data.Leave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationChanged += x, x => _data.LocationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MarginChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MarginChanged += x, x => _data.MarginChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseCaptureChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseCaptureChanged += x, x => _data.MouseCaptureChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseHover => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseHover += x, x => _data.MouseHover -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseWheel += x, x => _data.MouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Move => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Move += x, x => _data.Move -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ParentChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ParentChanged += x, x => _data.ParentChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreviewKeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreviewKeyDown += x, x => _data.PreviewKeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryAccessibilityHelp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryAccessibilityHelp += x, x => _data.QueryAccessibilityHelp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryContinueDrag += x, x => _data.QueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RegionChanged += x, x => _data.RegionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Resize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Resize += x, x => _data.Resize -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftChanged += x, x => _data.RightToLeftChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SizeChanged += x, x => _data.SizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StyleChanged += x, x => _data.StyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SystemColorsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SystemColorsChanged += x, x => _data.SystemColorsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabIndexChanged += x, x => _data.TabIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Validated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Validated += x, x => _data.Validated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Validating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Validating += x, x => _data.Validating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.VisibleChanged += x, x => _data.VisibleChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CurrencyManagerEvents + { + private readonly global::System.Windows.Forms.CurrencyManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CurrencyManagerEvents(global::System.Windows.Forms.CurrencyManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemChanged += x, x => _data.ItemChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ListChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ListChanged += x, x => _data.ListChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MetaDataChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MetaDataChanged += x, x => _data.MetaDataChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridEvents + { + private readonly global::System.Windows.Forms.DataGrid _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridEvents(global::System.Windows.Forms.DataGrid data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllowNavigationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllowNavigationChanged += x, x => _data.AllowNavigationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackButtonClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackButtonClick += x, x => _data.BackButtonClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundColorChanged += x, x => _data.BackgroundColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BorderStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BorderStyleChanged += x, x => _data.BorderStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CaptionVisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CaptionVisibleChanged += x, x => _data.CaptionVisibleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentCellChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentCellChanged += x, x => _data.CurrentCellChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CursorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CursorChanged += x, x => _data.CursorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataSourceChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataSourceChanged += x, x => _data.DataSourceChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FlatModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FlatModeChanged += x, x => _data.FlatModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigate += x, x => _data.Navigate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ParentRowsLabelStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ParentRowsLabelStyleChanged += x, x => _data.ParentRowsLabelStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ParentRowsVisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ParentRowsVisibleChanged += x, x => _data.ParentRowsVisibleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadOnlyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReadOnlyChanged += x, x => _data.ReadOnlyChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ShowParentDetailsButtonClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ShowParentDetailsButtonClick += x, x => _data.ShowParentDetailsButtonClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridBoolColumnEvents + { + private readonly global::System.Windows.Forms.DataGridBoolColumn _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridBoolColumnEvents(global::System.Windows.Forms.DataGridBoolColumn data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllowNullChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllowNullChanged += x, x => _data.AllowNullChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FalseValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FalseValueChanged += x, x => _data.FalseValueChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TrueValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TrueValueChanged += x, x => _data.TrueValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridColumnStyleEvents + { + private readonly global::System.Windows.Forms.DataGridColumnStyle _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridColumnStyleEvents(global::System.Windows.Forms.DataGridColumnStyle data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AlignmentChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AlignmentChanged += x, x => _data.AlignmentChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HeaderTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HeaderTextChanged += x, x => _data.HeaderTextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MappingNameChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MappingNameChanged += x, x => _data.MappingNameChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NullTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NullTextChanged += x, x => _data.NullTextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyDescriptorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyDescriptorChanged += x, x => _data.PropertyDescriptorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadOnlyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReadOnlyChanged += x, x => _data.ReadOnlyChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WidthChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WidthChanged += x, x => _data.WidthChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridTableStyleEvents + { + private readonly global::System.Windows.Forms.DataGridTableStyle _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridTableStyleEvents(global::System.Windows.Forms.DataGridTableStyle data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllowSortingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllowSortingChanged += x, x => _data.AllowSortingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AlternatingBackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AlternatingBackColorChanged += x, x => _data.AlternatingBackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeadersVisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnHeadersVisibleChanged += x, x => _data.ColumnHeadersVisibleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GridLineColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GridLineColorChanged += x, x => _data.GridLineColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GridLineStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GridLineStyleChanged += x, x => _data.GridLineStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HeaderBackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HeaderBackColorChanged += x, x => _data.HeaderBackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HeaderFontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HeaderFontChanged += x, x => _data.HeaderFontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HeaderForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HeaderForeColorChanged += x, x => _data.HeaderForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LinkColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LinkColorChanged += x, x => _data.LinkColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LinkHoverColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LinkHoverColorChanged += x, x => _data.LinkHoverColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MappingNameChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MappingNameChanged += x, x => _data.MappingNameChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreferredColumnWidthChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreferredColumnWidthChanged += x, x => _data.PreferredColumnWidthChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PreferredRowHeightChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PreferredRowHeightChanged += x, x => _data.PreferredRowHeightChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadOnlyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReadOnlyChanged += x, x => _data.ReadOnlyChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeadersVisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeadersVisibleChanged += x, x => _data.RowHeadersVisibleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeaderWidthChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeaderWidthChanged += x, x => _data.RowHeaderWidthChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionBackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionBackColorChanged += x, x => _data.SelectionBackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionForeColorChanged += x, x => _data.SelectionForeColorChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridViewEvents + { + private readonly global::System.Windows.Forms.DataGridView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridViewEvents(global::System.Windows.Forms.DataGridView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllowUserToAddRowsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllowUserToAddRowsChanged += x, x => _data.AllowUserToAddRowsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllowUserToDeleteRowsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllowUserToDeleteRowsChanged += x, x => _data.AllowUserToDeleteRowsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllowUserToOrderColumnsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllowUserToOrderColumnsChanged += x, x => _data.AllowUserToOrderColumnsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllowUserToResizeColumnsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllowUserToResizeColumnsChanged += x, x => _data.AllowUserToResizeColumnsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllowUserToResizeRowsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllowUserToResizeRowsChanged += x, x => _data.AllowUserToResizeRowsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AlternatingRowsDefaultCellStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AlternatingRowsDefaultCellStyleChanged += x, x => _data.AlternatingRowsDefaultCellStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoGenerateColumnsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoGenerateColumnsChanged += x, x => _data.AutoGenerateColumnsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeColumnModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeColumnModeChanged += x, x => _data.AutoSizeColumnModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeColumnsModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeColumnsModeChanged += x, x => _data.AutoSizeColumnsModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeRowsModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeRowsModeChanged += x, x => _data.AutoSizeRowsModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundColorChanged += x, x => _data.BackgroundColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BorderStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BorderStyleChanged += x, x => _data.BorderStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CancelRowEdit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CancelRowEdit += x, x => _data.CancelRowEdit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellBeginEdit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellBeginEdit += x, x => _data.CellBeginEdit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellBorderStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellBorderStyleChanged += x, x => _data.CellBorderStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellClick += x, x => _data.CellClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellContentClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellContentClick += x, x => _data.CellContentClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellContentDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellContentDoubleClick += x, x => _data.CellContentDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellContextMenuStripChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellContextMenuStripChanged += x, x => _data.CellContextMenuStripChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellContextMenuStripNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellContextMenuStripNeeded += x, x => _data.CellContextMenuStripNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellDoubleClick += x, x => _data.CellDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellEndEdit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellEndEdit += x, x => _data.CellEndEdit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellEnter += x, x => _data.CellEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellErrorTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellErrorTextChanged += x, x => _data.CellErrorTextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellErrorTextNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellErrorTextNeeded += x, x => _data.CellErrorTextNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellFormatting => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellFormatting += x, x => _data.CellFormatting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellLeave += x, x => _data.CellLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellMouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellMouseClick += x, x => _data.CellMouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellMouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellMouseDoubleClick += x, x => _data.CellMouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellMouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellMouseDown += x, x => _data.CellMouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellMouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellMouseEnter += x, x => _data.CellMouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellMouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellMouseLeave += x, x => _data.CellMouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellMouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellMouseMove += x, x => _data.CellMouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellMouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellMouseUp += x, x => _data.CellMouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellPainting => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellPainting += x, x => _data.CellPainting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellParsing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellParsing += x, x => _data.CellParsing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellStateChanged += x, x => _data.CellStateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellStyleChanged += x, x => _data.CellStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellStyleContentChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellStyleContentChanged += x, x => _data.CellStyleContentChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellToolTipTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellToolTipTextChanged += x, x => _data.CellToolTipTextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellToolTipTextNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellToolTipTextNeeded += x, x => _data.CellToolTipTextNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellValidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellValidated += x, x => _data.CellValidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellValidating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellValidating += x, x => _data.CellValidating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellValueChanged += x, x => _data.CellValueChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellValueNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellValueNeeded += x, x => _data.CellValueNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellValuePushed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellValuePushed += x, x => _data.CellValuePushed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnAdded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnAdded += x, x => _data.ColumnAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnContextMenuStripChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnContextMenuStripChanged += x, x => _data.ColumnContextMenuStripChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnDataPropertyNameChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnDataPropertyNameChanged += x, x => _data.ColumnDataPropertyNameChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnDefaultCellStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnDefaultCellStyleChanged += x, x => _data.ColumnDefaultCellStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnDisplayIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnDisplayIndexChanged += x, x => _data.ColumnDisplayIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnDividerDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnDividerDoubleClick += x, x => _data.ColumnDividerDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnDividerWidthChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnDividerWidthChanged += x, x => _data.ColumnDividerWidthChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeaderCellChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnHeaderCellChanged += x, x => _data.ColumnHeaderCellChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeaderMouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnHeaderMouseClick += x, x => _data.ColumnHeaderMouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeaderMouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnHeaderMouseDoubleClick += x, x => _data.ColumnHeaderMouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeadersBorderStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnHeadersBorderStyleChanged += x, x => _data.ColumnHeadersBorderStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeadersDefaultCellStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnHeadersDefaultCellStyleChanged += x, x => _data.ColumnHeadersDefaultCellStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeadersHeightChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnHeadersHeightChanged += x, x => _data.ColumnHeadersHeightChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnHeadersHeightSizeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnHeadersHeightSizeModeChanged += x, x => _data.ColumnHeadersHeightSizeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnMinimumWidthChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnMinimumWidthChanged += x, x => _data.ColumnMinimumWidthChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnNameChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnNameChanged += x, x => _data.ColumnNameChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnRemoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnRemoved += x, x => _data.ColumnRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnSortModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnSortModeChanged += x, x => _data.ColumnSortModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnStateChanged += x, x => _data.ColumnStateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnToolTipTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnToolTipTextChanged += x, x => _data.ColumnToolTipTextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnWidthChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnWidthChanged += x, x => _data.ColumnWidthChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentCellChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentCellChanged += x, x => _data.CurrentCellChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CurrentCellDirtyStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CurrentCellDirtyStateChanged += x, x => _data.CurrentCellDirtyStateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataBindingComplete => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataBindingComplete += x, x => _data.DataBindingComplete -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataError => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataError += x, x => _data.DataError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataMemberChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataMemberChanged += x, x => _data.DataMemberChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataSourceChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataSourceChanged += x, x => _data.DataSourceChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DefaultCellStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DefaultCellStyleChanged += x, x => _data.DefaultCellStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DefaultValuesNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DefaultValuesNeeded += x, x => _data.DefaultValuesNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingControlShowing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingControlShowing += x, x => _data.EditingControlShowing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditModeChanged += x, x => _data.EditModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GridColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GridColorChanged += x, x => _data.GridColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MultiSelectChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MultiSelectChanged += x, x => _data.MultiSelectChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NewRowNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NewRowNeeded += x, x => _data.NewRowNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadOnlyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReadOnlyChanged += x, x => _data.ReadOnlyChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowContextMenuStripChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowContextMenuStripChanged += x, x => _data.RowContextMenuStripChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowContextMenuStripNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowContextMenuStripNeeded += x, x => _data.RowContextMenuStripNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowDefaultCellStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowDefaultCellStyleChanged += x, x => _data.RowDefaultCellStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowDirtyStateNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowDirtyStateNeeded += x, x => _data.RowDirtyStateNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowDividerDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowDividerDoubleClick += x, x => _data.RowDividerDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowDividerHeightChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowDividerHeightChanged += x, x => _data.RowDividerHeightChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowEnter += x, x => _data.RowEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowErrorTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowErrorTextChanged += x, x => _data.RowErrorTextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowErrorTextNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowErrorTextNeeded += x, x => _data.RowErrorTextNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeaderCellChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeaderCellChanged += x, x => _data.RowHeaderCellChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeaderMouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeaderMouseClick += x, x => _data.RowHeaderMouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeaderMouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeaderMouseDoubleClick += x, x => _data.RowHeaderMouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeadersBorderStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeadersBorderStyleChanged += x, x => _data.RowHeadersBorderStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeadersDefaultCellStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeadersDefaultCellStyleChanged += x, x => _data.RowHeadersDefaultCellStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeadersWidthChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeadersWidthChanged += x, x => _data.RowHeadersWidthChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeadersWidthSizeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeadersWidthSizeModeChanged += x, x => _data.RowHeadersWidthSizeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeightChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeightChanged += x, x => _data.RowHeightChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeightInfoNeeded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeightInfoNeeded += x, x => _data.RowHeightInfoNeeded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowHeightInfoPushed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowHeightInfoPushed += x, x => _data.RowHeightInfoPushed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowLeave += x, x => _data.RowLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowMinimumHeightChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowMinimumHeightChanged += x, x => _data.RowMinimumHeightChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowPostPaint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowPostPaint += x, x => _data.RowPostPaint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowPrePaint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowPrePaint += x, x => _data.RowPrePaint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowsAdded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowsAdded += x, x => _data.RowsAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowsDefaultCellStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowsDefaultCellStyleChanged += x, x => _data.RowsDefaultCellStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowsRemoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowsRemoved += x, x => _data.RowsRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowStateChanged += x, x => _data.RowStateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowUnshared => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowUnshared += x, x => _data.RowUnshared -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowValidated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowValidated += x, x => _data.RowValidated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RowValidating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RowValidating += x, x => _data.RowValidating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SortCompare => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SortCompare += x, x => _data.SortCompare -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Sorted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Sorted += x, x => _data.Sorted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StyleChanged += x, x => _data.StyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UserAddedRow => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UserAddedRow += x, x => _data.UserAddedRow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UserDeletedRow => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UserDeletedRow += x, x => _data.UserDeletedRow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UserDeletingRow => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UserDeletingRow += x, x => _data.UserDeletingRow -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridViewCellCollectionEvents + { + private readonly global::System.Windows.Forms.DataGridViewCellCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridViewCellCollectionEvents(global::System.Windows.Forms.DataGridViewCellCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridViewColumnEvents + { + private readonly global::System.Windows.Forms.DataGridViewColumn _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridViewColumnEvents(global::System.Windows.Forms.DataGridViewColumn data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Disposed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Disposed += x, x => _data.Disposed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridViewColumnCollectionEvents + { + private readonly global::System.Windows.Forms.DataGridViewColumnCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridViewColumnCollectionEvents(global::System.Windows.Forms.DataGridViewColumnCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DataGridViewRowCollectionEvents + { + private readonly global::System.Windows.Forms.DataGridViewRowCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DataGridViewRowCollectionEvents(global::System.Windows.Forms.DataGridViewRowCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DateTimePickerEvents + { + private readonly global::System.Windows.Forms.DateTimePicker _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DateTimePickerEvents(global::System.Windows.Forms.DateTimePicker data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CloseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CloseUp += x, x => _data.CloseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDown += x, x => _data.DropDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FormatChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FormatChanged += x, x => _data.FormatChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ValueChanged += x, x => _data.ValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class DomainUpDownEvents + { + private readonly global::System.Windows.Forms.DomainUpDown _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public DomainUpDownEvents(global::System.Windows.Forms.DomainUpDown data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedItemChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedItemChanged += x, x => _data.SelectedItemChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ErrorProviderEvents + { + private readonly global::System.Windows.Forms.ErrorProvider _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ErrorProviderEvents(global::System.Windows.Forms.ErrorProvider data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftChanged += x, x => _data.RightToLeftChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FileDialogEvents + { + private readonly global::System.Windows.Forms.FileDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FileDialogEvents(global::System.Windows.Forms.FileDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FileOk => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FileOk += x, x => _data.FileOk -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FolderBrowserDialogEvents + { + private readonly global::System.Windows.Forms.FolderBrowserDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FolderBrowserDialogEvents(global::System.Windows.Forms.FolderBrowserDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HelpRequest => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HelpRequest += x, x => _data.HelpRequest -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FontDialogEvents + { + private readonly global::System.Windows.Forms.FontDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FontDialogEvents(global::System.Windows.Forms.FontDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Apply => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Apply += x, x => _data.Apply -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class FormEvents + { + private readonly global::System.Windows.Forms.Form _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public FormEvents(global::System.Windows.Forms.Form data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Activated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Activated += x, x => _data.Activated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoValidateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoValidateChanged += x, x => _data.AutoValidateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closing += x, x => _data.Closing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Deactivate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Deactivate += x, x => _data.Deactivate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FormClosed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FormClosed += x, x => _data.FormClosed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FormClosing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FormClosing += x, x => _data.FormClosing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HelpButtonClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HelpButtonClicked += x, x => _data.HelpButtonClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InputLanguageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.InputLanguageChanged += x, x => _data.InputLanguageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InputLanguageChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.InputLanguageChanging += x, x => _data.InputLanguageChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Load => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Load += x, x => _data.Load -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MarginChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MarginChanged += x, x => _data.MarginChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MaximizedBoundsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MaximizedBoundsChanged += x, x => _data.MaximizedBoundsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MaximumSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MaximumSizeChanged += x, x => _data.MaximumSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MdiChildActivate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MdiChildActivate += x, x => _data.MdiChildActivate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuComplete => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MenuComplete += x, x => _data.MenuComplete -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuStart => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MenuStart += x, x => _data.MenuStart -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MinimumSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MinimumSizeChanged += x, x => _data.MinimumSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ResizeBegin => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ResizeBegin += x, x => _data.ResizeBegin -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ResizeEnd => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ResizeEnd += x, x => _data.ResizeEnd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Shown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Shown += x, x => _data.Shown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabIndexChanged += x, x => _data.TabIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GridColumnStylesCollectionEvents + { + private readonly global::System.Windows.Forms.GridColumnStylesCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GridColumnStylesCollectionEvents(global::System.Windows.Forms.GridColumnStylesCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GridTableStylesCollectionEvents + { + private readonly global::System.Windows.Forms.GridTableStylesCollection _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GridTableStylesCollectionEvents(global::System.Windows.Forms.GridTableStylesCollection data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CollectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CollectionChanged += x, x => _data.CollectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GroupBoxEvents + { + private readonly global::System.Windows.Forms.GroupBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GroupBoxEvents(global::System.Windows.Forms.GroupBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HtmlDocumentEvents + { + private readonly global::System.Windows.Forms.HtmlDocument _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HtmlDocumentEvents(global::System.Windows.Forms.HtmlDocument data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuShowing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuShowing += x, x => _data.ContextMenuShowing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Focusing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Focusing += x, x => _data.Focusing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LosingFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LosingFocus += x, x => _data.LosingFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseOver += x, x => _data.MouseOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Stop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Stop += x, x => _data.Stop -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HtmlElementEvents + { + private readonly global::System.Windows.Forms.HtmlElement _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HtmlElementEvents(global::System.Windows.Forms.HtmlElement data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Drag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Drag += x, x => _data.Drag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnd => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnd += x, x => _data.DragEnd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Focusing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Focusing += x, x => _data.Focusing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LosingFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LosingFocus += x, x => _data.LosingFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseOver += x, x => _data.MouseOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HtmlWindowEvents + { + private readonly global::System.Windows.Forms.HtmlWindow _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HtmlWindowEvents(global::System.Windows.Forms.HtmlWindow data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Error => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Error += x, x => _data.Error -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Load => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Load += x, x => _data.Load -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Resize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Resize += x, x => _data.Resize -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Unload => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Unload += x, x => _data.Unload -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ImageListEvents + { + private readonly global::System.Windows.Forms.ImageList _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ImageListEvents(global::System.Windows.Forms.ImageList data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RecreateHandle => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RecreateHandle += x, x => _data.RecreateHandle -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LabelEvents + { + private readonly global::System.Windows.Forms.Label _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LabelEvents(global::System.Windows.Forms.Label data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextAlignChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextAlignChanged += x, x => _data.TextAlignChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class LinkLabelEvents + { + private readonly global::System.Windows.Forms.LinkLabel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public LinkLabelEvents(global::System.Windows.Forms.LinkLabel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LinkClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LinkClicked += x, x => _data.LinkClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ListBoxEvents + { + private readonly global::System.Windows.Forms.ListBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ListBoxEvents(global::System.Windows.Forms.ListBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawItem += x, x => _data.DrawItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MeasureItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MeasureItem += x, x => _data.MeasureItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedIndexChanged += x, x => _data.SelectedIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ListControlEvents + { + private readonly global::System.Windows.Forms.ListControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ListControlEvents(global::System.Windows.Forms.ListControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataSourceChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DataSourceChanged += x, x => _data.DataSourceChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisplayMemberChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DisplayMemberChanged += x, x => _data.DisplayMemberChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Format => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Format += x, x => _data.Format -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FormatInfoChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FormatInfoChanged += x, x => _data.FormatInfoChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FormatStringChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FormatStringChanged += x, x => _data.FormatStringChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FormattingEnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FormattingEnabledChanged += x, x => _data.FormattingEnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedValueChanged += x, x => _data.SelectedValueChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueMemberChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ValueMemberChanged += x, x => _data.ValueMemberChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ListViewEvents + { + private readonly global::System.Windows.Forms.ListView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ListViewEvents(global::System.Windows.Forms.ListView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AfterLabelEdit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AfterLabelEdit += x, x => _data.AfterLabelEdit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeforeLabelEdit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeforeLabelEdit += x, x => _data.BeforeLabelEdit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CacheVirtualItems => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CacheVirtualItems += x, x => _data.CacheVirtualItems -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnClick += x, x => _data.ColumnClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnReordered => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnReordered += x, x => _data.ColumnReordered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnWidthChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnWidthChanged += x, x => _data.ColumnWidthChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ColumnWidthChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ColumnWidthChanging += x, x => _data.ColumnWidthChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawColumnHeader => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawColumnHeader += x, x => _data.DrawColumnHeader -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawItem += x, x => _data.DrawItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawSubItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawSubItem += x, x => _data.DrawSubItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemActivate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemActivate += x, x => _data.ItemActivate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemCheck => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemCheck += x, x => _data.ItemCheck -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemChecked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemChecked += x, x => _data.ItemChecked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemDrag += x, x => _data.ItemDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemMouseHover => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemMouseHover += x, x => _data.ItemMouseHover -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemSelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemSelectionChanged += x, x => _data.ItemSelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RetrieveVirtualItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RetrieveVirtualItem += x, x => _data.RetrieveVirtualItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchForVirtualItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchForVirtualItem += x, x => _data.SearchForVirtualItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedIndexChanged += x, x => _data.SelectedIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VirtualItemsSelectionRangeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.VirtualItemsSelectionRangeChanged += x, x => _data.VirtualItemsSelectionRangeChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MainMenuEvents + { + private readonly global::System.Windows.Forms.MainMenu _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MainMenuEvents(global::System.Windows.Forms.MainMenu data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Collapse => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Collapse += x, x => _data.Collapse -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MaskedTextBoxEvents + { + private readonly global::System.Windows.Forms.MaskedTextBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MaskedTextBoxEvents(global::System.Windows.Forms.MaskedTextBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AcceptsTabChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AcceptsTabChanged += x, x => _data.AcceptsTabChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsOverwriteModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsOverwriteModeChanged += x, x => _data.IsOverwriteModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MaskChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MaskChanged += x, x => _data.MaskChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MaskInputRejected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MaskInputRejected += x, x => _data.MaskInputRejected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MultilineChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MultilineChanged += x, x => _data.MultilineChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextAlignChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextAlignChanged += x, x => _data.TextAlignChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TypeValidationCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TypeValidationCompleted += x, x => _data.TypeValidationCompleted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MenuItemEvents + { + private readonly global::System.Windows.Forms.MenuItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MenuItemEvents(global::System.Windows.Forms.MenuItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawItem += x, x => _data.DrawItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MeasureItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MeasureItem += x, x => _data.MeasureItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Popup => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Popup += x, x => _data.Popup -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Select => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Select += x, x => _data.Select -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MenuStripEvents + { + private readonly global::System.Windows.Forms.MenuStrip _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MenuStripEvents(global::System.Windows.Forms.MenuStrip data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuActivate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MenuActivate += x, x => _data.MenuActivate -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MenuDeactivate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MenuDeactivate += x, x => _data.MenuDeactivate -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MonthCalendarEvents + { + private readonly global::System.Windows.Forms.MonthCalendar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MonthCalendarEvents(global::System.Windows.Forms.MonthCalendar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DateChanged += x, x => _data.DateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DateSelected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DateSelected += x, x => _data.DateSelected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NotifyIconEvents + { + private readonly global::System.Windows.Forms.NotifyIcon _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NotifyIconEvents(global::System.Windows.Forms.NotifyIcon data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BalloonTipClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BalloonTipClicked += x, x => _data.BalloonTipClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BalloonTipClosed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BalloonTipClosed += x, x => _data.BalloonTipClosed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BalloonTipShown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BalloonTipShown += x, x => _data.BalloonTipShown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NumericUpDownEvents + { + private readonly global::System.Windows.Forms.NumericUpDown _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NumericUpDownEvents(global::System.Windows.Forms.NumericUpDown data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ValueChanged += x, x => _data.ValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PanelEvents + { + private readonly global::System.Windows.Forms.Panel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PanelEvents(global::System.Windows.Forms.Panel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PictureBoxEvents + { + private readonly global::System.Windows.Forms.PictureBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PictureBoxEvents(global::System.Windows.Forms.PictureBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CausesValidationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CausesValidationChanged += x, x => _data.CausesValidationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Enter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Enter += x, x => _data.Enter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Leave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Leave += x, x => _data.Leave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadCompleted += x, x => _data.LoadCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadProgressChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadProgressChanged += x, x => _data.LoadProgressChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftChanged += x, x => _data.RightToLeftChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SizeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SizeModeChanged += x, x => _data.SizeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabIndexChanged += x, x => _data.TabIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PrintPreviewControlEvents + { + private readonly global::System.Windows.Forms.PrintPreviewControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PrintPreviewControlEvents(global::System.Windows.Forms.PrintPreviewControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StartPageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StartPageChanged += x, x => _data.StartPageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PrintPreviewDialogEvents + { + private readonly global::System.Windows.Forms.PrintPreviewDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PrintPreviewDialogEvents(global::System.Windows.Forms.PrintPreviewDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoValidateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoValidateChanged += x, x => _data.AutoValidateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CausesValidationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CausesValidationChanged += x, x => _data.CausesValidationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuChanged += x, x => _data.ContextMenuChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuStripChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuStripChanged += x, x => _data.ContextMenuStripChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CursorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CursorChanged += x, x => _data.CursorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DockChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DockChanged += x, x => _data.DockChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EnabledChanged += x, x => _data.EnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationChanged += x, x => _data.LocationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MarginChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MarginChanged += x, x => _data.MarginChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MaximumSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MaximumSizeChanged += x, x => _data.MaximumSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MinimumSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MinimumSizeChanged += x, x => _data.MinimumSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftChanged += x, x => _data.RightToLeftChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SizeChanged += x, x => _data.SizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.VisibleChanged += x, x => _data.VisibleChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ProgressBarEvents + { + private readonly global::System.Windows.Forms.ProgressBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ProgressBarEvents(global::System.Windows.Forms.ProgressBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CausesValidationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CausesValidationChanged += x, x => _data.CausesValidationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Enter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Enter += x, x => _data.Enter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Leave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Leave += x, x => _data.Leave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PropertyGridEvents + { + private readonly global::System.Windows.Forms.PropertyGrid _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PropertyGridEvents(global::System.Windows.Forms.PropertyGrid data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertySortChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertySortChanged += x, x => _data.PropertySortChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyTabChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyTabChanged += x, x => _data.PropertyTabChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PropertyValueChanged += x, x => _data.PropertyValueChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedGridItemChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedGridItemChanged += x, x => _data.SelectedGridItemChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedObjectsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedObjectsChanged += x, x => _data.SelectedObjectsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RadioButtonEvents + { + private readonly global::System.Windows.Forms.RadioButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RadioButtonEvents(global::System.Windows.Forms.RadioButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AppearanceChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AppearanceChanged += x, x => _data.AppearanceChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CheckedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CheckedChanged += x, x => _data.CheckedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class RichTextBoxEvents + { + private readonly global::System.Windows.Forms.RichTextBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public RichTextBoxEvents(global::System.Windows.Forms.RichTextBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContentsResized => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContentsResized += x, x => _data.ContentsResized -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragDrop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragDrop += x, x => _data.DragDrop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnter += x, x => _data.DragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GiveFeedback += x, x => _data.GiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HScroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HScroll += x, x => _data.HScroll -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeChange => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeChange += x, x => _data.ImeChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LinkClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LinkClicked += x, x => _data.LinkClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Protected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Protected += x, x => _data.Protected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryContinueDrag += x, x => _data.QueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VScroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.VScroll += x, x => _data.VScroll -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ScrollableControlEvents + { + private readonly global::System.Windows.Forms.ScrollableControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ScrollableControlEvents(global::System.Windows.Forms.ScrollableControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ScrollBarEvents + { + private readonly global::System.Windows.Forms.ScrollBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ScrollBarEvents(global::System.Windows.Forms.ScrollBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ValueChanged += x, x => _data.ValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SplitContainerEvents + { + private readonly global::System.Windows.Forms.SplitContainer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SplitContainerEvents(global::System.Windows.Forms.SplitContainer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ControlAdded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ControlAdded += x, x => _data.ControlAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ControlRemoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ControlRemoved += x, x => _data.ControlRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SplitterMoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SplitterMoved += x, x => _data.SplitterMoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SplitterMoving => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SplitterMoving += x, x => _data.SplitterMoving -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SplitterEvents + { + private readonly global::System.Windows.Forms.Splitter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SplitterEvents(global::System.Windows.Forms.Splitter data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Enter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Enter += x, x => _data.Enter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Leave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Leave += x, x => _data.Leave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SplitterMoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SplitterMoved += x, x => _data.SplitterMoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SplitterMoving => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SplitterMoving += x, x => _data.SplitterMoving -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SplitterPanelEvents + { + private readonly global::System.Windows.Forms.SplitterPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SplitterPanelEvents(global::System.Windows.Forms.SplitterPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DockChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DockChanged += x, x => _data.DockChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationChanged += x, x => _data.LocationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabIndexChanged += x, x => _data.TabIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.VisibleChanged += x, x => _data.VisibleChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StatusBarEvents + { + private readonly global::System.Windows.Forms.StatusBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StatusBarEvents(global::System.Windows.Forms.StatusBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawItem += x, x => _data.DrawItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PanelClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PanelClick += x, x => _data.PanelClick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class StatusStripEvents + { + private readonly global::System.Windows.Forms.StatusStrip _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public StatusStripEvents(global::System.Windows.Forms.StatusStrip data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TabControlEvents + { + private readonly global::System.Windows.Forms.TabControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TabControlEvents(global::System.Windows.Forms.TabControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Deselected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Deselected += x, x => _data.Deselected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Deselecting => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Deselecting += x, x => _data.Deselecting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawItem => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawItem += x, x => _data.DrawItem -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Selected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Selected += x, x => _data.Selected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedIndexChanged += x, x => _data.SelectedIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Selecting => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Selecting += x, x => _data.Selecting -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TableLayoutPanelEvents + { + private readonly global::System.Windows.Forms.TableLayoutPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TableLayoutPanelEvents(global::System.Windows.Forms.TableLayoutPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CellPaint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CellPaint += x, x => _data.CellPaint -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TabPageEvents + { + private readonly global::System.Windows.Forms.TabPage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TabPageEvents(global::System.Windows.Forms.TabPage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DockChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DockChanged += x, x => _data.DockChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EnabledChanged += x, x => _data.EnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationChanged += x, x => _data.LocationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabIndexChanged += x, x => _data.TabIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.VisibleChanged += x, x => _data.VisibleChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TextBoxEvents + { + private readonly global::System.Windows.Forms.TextBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TextBoxEvents(global::System.Windows.Forms.TextBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextAlignChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextAlignChanged += x, x => _data.TextAlignChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TextBoxBaseEvents + { + private readonly global::System.Windows.Forms.TextBoxBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TextBoxBaseEvents(global::System.Windows.Forms.TextBoxBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AcceptsTabChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AcceptsTabChanged += x, x => _data.AcceptsTabChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BorderStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BorderStyleChanged += x, x => _data.BorderStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HideSelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HideSelectionChanged += x, x => _data.HideSelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ModifiedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ModifiedChanged += x, x => _data.ModifiedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MultilineChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MultilineChanged += x, x => _data.MultilineChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadOnlyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReadOnlyChanged += x, x => _data.ReadOnlyChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ThreadExceptionDialogEvents + { + private readonly global::System.Windows.Forms.ThreadExceptionDialog _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ThreadExceptionDialogEvents(global::System.Windows.Forms.ThreadExceptionDialog data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TimerEvents + { + private readonly global::System.Windows.Forms.Timer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TimerEvents(global::System.Windows.Forms.Timer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Tick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Tick += x, x => _data.Tick -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolBarEvents + { + private readonly global::System.Windows.Forms.ToolBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolBarEvents(global::System.Windows.Forms.ToolBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ButtonClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ButtonClick += x, x => _data.ButtonClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ButtonDropDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ButtonDropDown += x, x => _data.ButtonDropDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftChanged += x, x => _data.RightToLeftChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripEvents + { + private readonly global::System.Windows.Forms.ToolStrip _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripEvents(global::System.Windows.Forms.ToolStrip data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeginDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeginDrag += x, x => _data.BeginDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CausesValidationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CausesValidationChanged += x, x => _data.CausesValidationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ControlAdded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ControlAdded += x, x => _data.ControlAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ControlRemoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ControlRemoved += x, x => _data.ControlRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CursorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CursorChanged += x, x => _data.CursorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EndDrag += x, x => _data.EndDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemAdded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemAdded += x, x => _data.ItemAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemClicked += x, x => _data.ItemClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemRemoved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemRemoved += x, x => _data.ItemRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LayoutCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LayoutCompleted += x, x => _data.LayoutCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LayoutStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LayoutStyleChanged += x, x => _data.LayoutStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaintGrip => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaintGrip += x, x => _data.PaintGrip -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RendererChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RendererChanged += x, x => _data.RendererChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripButtonEvents + { + private readonly global::System.Windows.Forms.ToolStripButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripButtonEvents(global::System.Windows.Forms.ToolStripButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CheckedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CheckedChanged += x, x => _data.CheckedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CheckStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CheckStateChanged += x, x => _data.CheckStateChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripComboBoxEvents + { + private readonly global::System.Windows.Forms.ToolStripComboBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripComboBoxEvents(global::System.Windows.Forms.ToolStripComboBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDown += x, x => _data.DropDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownClosed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownClosed += x, x => _data.DropDownClosed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownStyleChanged += x, x => _data.DropDownStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectedIndexChanged += x, x => _data.SelectedIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextUpdate => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextUpdate += x, x => _data.TextUpdate -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripContainerEvents + { + private readonly global::System.Windows.Forms.ToolStripContainer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripContainerEvents(global::System.Windows.Forms.ToolStripContainer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CausesValidationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CausesValidationChanged += x, x => _data.CausesValidationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuStripChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuStripChanged += x, x => _data.ContextMenuStripChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CursorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CursorChanged += x, x => _data.CursorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripContentPanelEvents + { + private readonly global::System.Windows.Forms.ToolStripContentPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripContentPanelEvents(global::System.Windows.Forms.ToolStripContentPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CausesValidationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CausesValidationChanged += x, x => _data.CausesValidationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DockChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DockChanged += x, x => _data.DockChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Load => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Load += x, x => _data.Load -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationChanged += x, x => _data.LocationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RendererChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RendererChanged += x, x => _data.RendererChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabIndexChanged += x, x => _data.TabIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripControlHostEvents + { + private readonly global::System.Windows.Forms.ToolStripControlHost _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripControlHostEvents(global::System.Windows.Forms.ToolStripControlHost data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisplayStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DisplayStyleChanged += x, x => _data.DisplayStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Enter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Enter += x, x => _data.Enter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GotFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GotFocus += x, x => _data.GotFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Leave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Leave += x, x => _data.Leave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LostFocus => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LostFocus += x, x => _data.LostFocus -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Validated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Validated += x, x => _data.Validated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Validating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Validating += x, x => _data.Validating -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripDropDownEvents + { + private readonly global::System.Windows.Forms.ToolStripDropDown _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripDropDownEvents(global::System.Windows.Forms.ToolStripDropDown data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BindingContextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BindingContextChanged += x, x => _data.BindingContextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChangeUICues => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ChangeUICues += x, x => _data.ChangeUICues -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closed += x, x => _data.Closed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Closing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Closing += x, x => _data.Closing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuChanged += x, x => _data.ContextMenuChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ContextMenuStripChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ContextMenuStripChanged += x, x => _data.ContextMenuStripChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DockChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DockChanged += x, x => _data.DockChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Enter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Enter += x, x => _data.Enter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GiveFeedback += x, x => _data.GiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HelpRequested => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HelpRequested += x, x => _data.HelpRequested -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Leave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Leave += x, x => _data.Leave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Opened += x, x => _data.Opened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Opening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Opening += x, x => _data.Opening -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RegionChanged += x, x => _data.RegionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StyleChanged += x, x => _data.StyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabIndexChanged += x, x => _data.TabIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Validated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Validated += x, x => _data.Validated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Validating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Validating += x, x => _data.Validating -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripDropDownItemEvents + { + private readonly global::System.Windows.Forms.ToolStripDropDownItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripDropDownItemEvents(global::System.Windows.Forms.ToolStripDropDownItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownClosed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownClosed += x, x => _data.DropDownClosed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownItemClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownItemClicked += x, x => _data.DropDownItemClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownOpened => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownOpened += x, x => _data.DropDownOpened -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DropDownOpening => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DropDownOpening += x, x => _data.DropDownOpening -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripItemEvents + { + private readonly global::System.Windows.Forms.ToolStripItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripItemEvents(global::System.Windows.Forms.ToolStripItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AvailableChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AvailableChanged += x, x => _data.AvailableChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisplayStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DisplayStyleChanged += x, x => _data.DisplayStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragDrop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragDrop += x, x => _data.DragDrop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnter += x, x => _data.DragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EnabledChanged += x, x => _data.EnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GiveFeedback += x, x => _data.GiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationChanged += x, x => _data.LocationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseHover => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseHover += x, x => _data.MouseHover -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OwnerChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OwnerChanged += x, x => _data.OwnerChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryAccessibilityHelp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryAccessibilityHelp += x, x => _data.QueryAccessibilityHelp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryContinueDrag += x, x => _data.QueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftChanged += x, x => _data.RightToLeftChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable VisibleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.VisibleChanged += x, x => _data.VisibleChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripMenuItemEvents + { + private readonly global::System.Windows.Forms.ToolStripMenuItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripMenuItemEvents(global::System.Windows.Forms.ToolStripMenuItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CheckedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CheckedChanged += x, x => _data.CheckedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CheckStateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CheckStateChanged += x, x => _data.CheckStateChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripPanelEvents + { + private readonly global::System.Windows.Forms.ToolStripPanel _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripPanelEvents(global::System.Windows.Forms.ToolStripPanel data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RendererChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RendererChanged += x, x => _data.RendererChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabIndexChanged += x, x => _data.TabIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TabStopChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TabStopChanged += x, x => _data.TabStopChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripProgressBarEvents + { + private readonly global::System.Windows.Forms.ToolStripProgressBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripProgressBarEvents(global::System.Windows.Forms.ToolStripProgressBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationChanged += x, x => _data.LocationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OwnerChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OwnerChanged += x, x => _data.OwnerChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Validated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Validated += x, x => _data.Validated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Validating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Validating += x, x => _data.Validating -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripRendererEvents + { + private readonly global::System.Windows.Forms.ToolStripRenderer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripRendererEvents(global::System.Windows.Forms.ToolStripRenderer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderArrow => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderArrow += x, x => _data.RenderArrow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderButtonBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderButtonBackground += x, x => _data.RenderButtonBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderDropDownButtonBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderDropDownButtonBackground += x, x => _data.RenderDropDownButtonBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderGrip => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderGrip += x, x => _data.RenderGrip -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderImageMargin => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderImageMargin += x, x => _data.RenderImageMargin -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderItemBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderItemBackground += x, x => _data.RenderItemBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderItemCheck => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderItemCheck += x, x => _data.RenderItemCheck -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderItemImage => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderItemImage += x, x => _data.RenderItemImage -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderItemText => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderItemText += x, x => _data.RenderItemText -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderLabelBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderLabelBackground += x, x => _data.RenderLabelBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderMenuItemBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderMenuItemBackground += x, x => _data.RenderMenuItemBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderOverflowButtonBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderOverflowButtonBackground += x, x => _data.RenderOverflowButtonBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderSeparator => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderSeparator += x, x => _data.RenderSeparator -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderSplitButtonBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderSplitButtonBackground += x, x => _data.RenderSplitButtonBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderStatusStripSizingGrip => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderStatusStripSizingGrip += x, x => _data.RenderStatusStripSizingGrip -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderToolStripBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderToolStripBackground += x, x => _data.RenderToolStripBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderToolStripBorder => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderToolStripBorder += x, x => _data.RenderToolStripBorder -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderToolStripContentPanelBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderToolStripContentPanelBackground += x, x => _data.RenderToolStripContentPanelBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderToolStripPanelBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderToolStripPanelBackground += x, x => _data.RenderToolStripPanelBackground -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RenderToolStripStatusLabelBackground => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RenderToolStripStatusLabelBackground += x, x => _data.RenderToolStripStatusLabelBackground -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripSeparatorEvents + { + private readonly global::System.Windows.Forms.ToolStripSeparator _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripSeparatorEvents(global::System.Windows.Forms.ToolStripSeparator data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisplayStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DisplayStyleChanged += x, x => _data.DisplayStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EnabledChanged += x, x => _data.EnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripSplitButtonEvents + { + private readonly global::System.Windows.Forms.ToolStripSplitButton _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripSplitButtonEvents(global::System.Windows.Forms.ToolStripSplitButton data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ButtonClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ButtonClick += x, x => _data.ButtonClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ButtonDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ButtonDoubleClick += x, x => _data.ButtonDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DefaultItemChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DefaultItemChanged += x, x => _data.DefaultItemChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolStripTextBoxEvents + { + private readonly global::System.Windows.Forms.ToolStripTextBox _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolStripTextBoxEvents(global::System.Windows.Forms.ToolStripTextBox data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AcceptsTabChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AcceptsTabChanged += x, x => _data.AcceptsTabChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BorderStyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BorderStyleChanged += x, x => _data.BorderStyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HideSelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HideSelectionChanged += x, x => _data.HideSelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ModifiedChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ModifiedChanged += x, x => _data.ModifiedChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MultilineChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MultilineChanged += x, x => _data.MultilineChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadOnlyChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReadOnlyChanged += x, x => _data.ReadOnlyChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextBoxTextAlignChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextBoxTextAlignChanged += x, x => _data.TextBoxTextAlignChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ToolTipEvents + { + private readonly global::System.Windows.Forms.ToolTip _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ToolTipEvents(global::System.Windows.Forms.ToolTip data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Draw => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Draw += x, x => _data.Draw -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Popup => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Popup += x, x => _data.Popup -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TrackBarEvents + { + private readonly global::System.Windows.Forms.TrackBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TrackBarEvents(global::System.Windows.Forms.TrackBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scroll => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scroll += x, x => _data.Scroll -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ValueChanged += x, x => _data.ValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class TreeViewEvents + { + private readonly global::System.Windows.Forms.TreeView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public TreeViewEvents(global::System.Windows.Forms.TreeView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AfterCheck => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AfterCheck += x, x => _data.AfterCheck -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AfterCollapse => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AfterCollapse += x, x => _data.AfterCollapse -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AfterExpand => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AfterExpand += x, x => _data.AfterExpand -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AfterLabelEdit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AfterLabelEdit += x, x => _data.AfterLabelEdit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AfterSelect => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AfterSelect += x, x => _data.AfterSelect -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeforeCheck => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeforeCheck += x, x => _data.BeforeCheck -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeforeCollapse => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeforeCollapse += x, x => _data.BeforeCollapse -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeforeExpand => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeforeExpand += x, x => _data.BeforeExpand -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeforeLabelEdit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeforeLabelEdit += x, x => _data.BeforeLabelEdit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeforeSelect => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeforeSelect += x, x => _data.BeforeSelect -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawNode => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DrawNode += x, x => _data.DrawNode -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ItemDrag += x, x => _data.ItemDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NodeMouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NodeMouseClick += x, x => _data.NodeMouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NodeMouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NodeMouseDoubleClick += x, x => _data.NodeMouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NodeMouseHover => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NodeMouseHover += x, x => _data.NodeMouseHover -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftLayoutChanged += x, x => _data.RightToLeftLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UpDownBaseEvents + { + private readonly global::System.Windows.Forms.UpDownBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UpDownBaseEvents(global::System.Windows.Forms.UpDownBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseHover => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseHover += x, x => _data.MouseHover -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UserControlEvents + { + private readonly global::System.Windows.Forms.UserControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UserControlEvents(global::System.Windows.Forms.UserControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoSizeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoSizeChanged += x, x => _data.AutoSizeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AutoValidateChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AutoValidateChanged += x, x => _data.AutoValidateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Load => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Load += x, x => _data.Load -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class VScrollBarEvents + { + private readonly global::System.Windows.Forms.VScrollBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public VScrollBarEvents(global::System.Windows.Forms.VScrollBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftChanged += x, x => _data.RightToLeftChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebBrowserEvents + { + private readonly global::System.Windows.Forms.WebBrowser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebBrowserEvents(global::System.Windows.Forms.WebBrowser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CanGoBackChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CanGoBackChanged += x, x => _data.CanGoBackChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CanGoForwardChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CanGoForwardChanged += x, x => _data.CanGoForwardChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DocumentCompleted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DocumentCompleted += x, x => _data.DocumentCompleted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DocumentTitleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DocumentTitleChanged += x, x => _data.DocumentTitleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EncryptionLevelChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EncryptionLevelChanged += x, x => _data.EncryptionLevelChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FileDownload => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FileDownload += x, x => _data.FileDownload -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigated += x, x => _data.Navigated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Navigating => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Navigating += x, x => _data.Navigating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NewWindow => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.NewWindow += x, x => _data.NewWindow -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaddingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaddingChanged += x, x => _data.PaddingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ProgressChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ProgressChanged += x, x => _data.ProgressChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StatusTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StatusTextChanged += x, x => _data.StatusTextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class WebBrowserBaseEvents + { + private readonly global::System.Windows.Forms.WebBrowserBase _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public WebBrowserBaseEvents(global::System.Windows.Forms.WebBrowserBase data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackColorChanged += x, x => _data.BackColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageChanged += x, x => _data.BackgroundImageChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BackgroundImageLayoutChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BackgroundImageLayoutChanged += x, x => _data.BackgroundImageLayoutChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BindingContextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BindingContextChanged += x, x => _data.BindingContextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChangeUICues => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ChangeUICues += x, x => _data.ChangeUICues -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Click => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Click += x, x => _data.Click -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CursorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CursorChanged += x, x => _data.CursorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DoubleClick += x, x => _data.DoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragDrop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragDrop += x, x => _data.DragDrop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragEnter += x, x => _data.DragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragLeave += x, x => _data.DragLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DragOver => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DragOver += x, x => _data.DragOver -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EnabledChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EnabledChanged += x, x => _data.EnabledChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Enter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Enter += x, x => _data.Enter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FontChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FontChanged += x, x => _data.FontChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ForeColorChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ForeColorChanged += x, x => _data.ForeColorChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GiveFeedback => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.GiveFeedback += x, x => _data.GiveFeedback -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HelpRequested => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.HelpRequested += x, x => _data.HelpRequested -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ImeModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ImeModeChanged += x, x => _data.ImeModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyDown += x, x => _data.KeyDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyPress => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyPress += x, x => _data.KeyPress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable KeyUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.KeyUp += x, x => _data.KeyUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Layout => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Layout += x, x => _data.Layout -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Leave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Leave += x, x => _data.Leave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseCaptureChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseCaptureChanged += x, x => _data.MouseCaptureChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseClick += x, x => _data.MouseClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDoubleClick => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDoubleClick += x, x => _data.MouseDoubleClick -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseDown += x, x => _data.MouseDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseEnter += x, x => _data.MouseEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseHover => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseHover += x, x => _data.MouseHover -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseLeave => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseLeave += x, x => _data.MouseLeave -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseMove => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseMove += x, x => _data.MouseMove -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseUp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseUp += x, x => _data.MouseUp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MouseWheel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MouseWheel += x, x => _data.MouseWheel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Paint => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Paint += x, x => _data.Paint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryAccessibilityHelp => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryAccessibilityHelp += x, x => _data.QueryAccessibilityHelp -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable QueryContinueDrag => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.QueryContinueDrag += x, x => _data.QueryContinueDrag -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RightToLeftChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RightToLeftChanged += x, x => _data.RightToLeftChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StyleChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StyleChanged += x, x => _data.StyleChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } +} + +namespace System.Windows.Forms.DataVisualization.Charting +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ChartEvents Events(this global::System.Windows.Forms.DataVisualization.Charting.Chart item) => new ChartEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ChartEvents + { + private readonly global::System.Windows.Forms.DataVisualization.Charting.Chart _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ChartEvents(global::System.Windows.Forms.DataVisualization.Charting.Chart data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnnotationPlaced => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnnotationPlaced += x, x => _data.AnnotationPlaced -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnnotationPositionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnnotationPositionChanged += x, x => _data.AnnotationPositionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnnotationPositionChanging => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.AnnotationPositionChangingEventArgs>(x => _data.AnnotationPositionChanging += x, x => _data.AnnotationPositionChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnnotationSelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnnotationSelectionChanged += x, x => _data.AnnotationSelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnnotationTextChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnnotationTextChanged += x, x => _data.AnnotationTextChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AxisScrollBarClicked => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.ScrollBarEventArgs>(x => _data.AxisScrollBarClicked += x, x => _data.AxisScrollBarClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AxisViewChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.ViewEventArgs>(x => _data.AxisViewChanged += x, x => _data.AxisViewChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AxisViewChanging => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.ViewEventArgs>(x => _data.AxisViewChanging += x, x => _data.AxisViewChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CursorPositionChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.CursorEventArgs>(x => _data.CursorPositionChanged += x, x => _data.CursorPositionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CursorPositionChanging => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.CursorEventArgs>(x => _data.CursorPositionChanging += x, x => _data.CursorPositionChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Customize => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Customize += x, x => _data.Customize -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CustomizeLegend => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.CustomizeLegendEventArgs>(x => _data.CustomizeLegend += x, x => _data.CustomizeLegend -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FormatNumber => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.FormatNumberEventArgs>(x => _data.FormatNumber += x, x => _data.FormatNumber -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable GetToolTipText => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.ToolTipEventArgs>(x => _data.GetToolTipText += x, x => _data.GetToolTipText -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PostPaint => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>(x => _data.PostPaint += x, x => _data.PostPaint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PrePaint => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs>(x => _data.PrePaint += x, x => _data.PrePaint -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionRangeChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.CursorEventArgs>(x => _data.SelectionRangeChanged += x, x => _data.SelectionRangeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionRangeChanging => global::System.Reactive.Linq.Observable.FromEventPattern, global::System.Windows.Forms.DataVisualization.Charting.CursorEventArgs>(x => _data.SelectionRangeChanging += x, x => _data.SelectionRangeChanging -= x).Select(x => x.EventArgs); + } +} + +namespace Microsoft.Win32 +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsDisplaySettingsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.DisplaySettingsChanged += x, x => global::Microsoft.Win32.SystemEvents.DisplaySettingsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsDisplaySettingsChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.DisplaySettingsChanging += x, x => global::Microsoft.Win32.SystemEvents.DisplaySettingsChanging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsEventsThreadShutdown => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.EventsThreadShutdown += x, x => global::Microsoft.Win32.SystemEvents.EventsThreadShutdown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsInstalledFontsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.InstalledFontsChanged += x, x => global::Microsoft.Win32.SystemEvents.InstalledFontsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("This event has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202", false)] + public static global::System.IObservable SystemEventsLowMemory => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.LowMemory += x, x => global::Microsoft.Win32.SystemEvents.LowMemory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsPaletteChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.PaletteChanged += x, x => global::Microsoft.Win32.SystemEvents.PaletteChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsPowerModeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.PowerModeChanged += x, x => global::Microsoft.Win32.SystemEvents.PowerModeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsSessionEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.SessionEnded += x, x => global::Microsoft.Win32.SystemEvents.SessionEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsSessionEnding => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.SessionEnding += x, x => global::Microsoft.Win32.SystemEvents.SessionEnding -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsSessionSwitch => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.SessionSwitch += x, x => global::Microsoft.Win32.SystemEvents.SessionSwitch -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsTimeChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.TimeChanged += x, x => global::Microsoft.Win32.SystemEvents.TimeChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsTimerElapsed => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.TimerElapsed += x, x => global::Microsoft.Win32.SystemEvents.TimerElapsed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsUserPreferenceChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.UserPreferenceChanged += x, x => global::Microsoft.Win32.SystemEvents.UserPreferenceChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable SystemEventsUserPreferenceChanging => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::Microsoft.Win32.SystemEvents.UserPreferenceChanging += x, x => global::Microsoft.Win32.SystemEvents.UserPreferenceChanging -= x).Select(x => x.EventArgs); + } +} + +namespace System.ComponentModel +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable TypeDescriptorRefreshed => global::System.Reactive.Linq.Observable.FromEvent(eventHandler => + { + void Handler(global::System.ComponentModel.RefreshEventArgs e) => eventHandler(e); + return Handler; + } + + , x => global::System.ComponentModel.TypeDescriptor.Refreshed += x, x => global::System.ComponentModel.TypeDescriptor.Refreshed -= x); + } +} + +namespace System.Windows.Forms +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ApplicationApplicationExit => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Forms.Application.ApplicationExit += x, x => global::System.Windows.Forms.Application.ApplicationExit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ApplicationEnterThreadModal => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Forms.Application.EnterThreadModal += x, x => global::System.Windows.Forms.Application.EnterThreadModal -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ApplicationIdle => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Forms.Application.Idle += x, x => global::System.Windows.Forms.Application.Idle -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ApplicationLeaveThreadModal => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Forms.Application.LeaveThreadModal += x, x => global::System.Windows.Forms.Application.LeaveThreadModal -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ApplicationThreadException => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Forms.Application.ThreadException += x, x => global::System.Windows.Forms.Application.ThreadException -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ApplicationThreadExit => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Forms.Application.ThreadExit += x, x => global::System.Windows.Forms.Application.ThreadExit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable ToolStripManagerRendererChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::System.Windows.Forms.ToolStripManager.RendererChanged += x, x => global::System.Windows.Forms.ToolStripManager.RendererChanged -= x).Select(x => x.EventArgs); + } +} \ No newline at end of file diff --git a/src/Pharmacist.Tests/IntegrationTests/Xamarin.Essentials.1.1.0.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/Xamarin.Essentials.1.1.0.approved.txt similarity index 100% rename from src/Pharmacist.Tests/IntegrationTests/Xamarin.Essentials.1.1.0.approved.txt rename to src/Pharmacist.Tests/IntegrationTests/Approved/Xamarin.Essentials.1.1.0.approved.txt diff --git a/src/Pharmacist.Tests/IntegrationTests/Xamarin.Forms.4.0.0.482894.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/Xamarin.Forms.4.0.0.482894.approved.txt similarity index 100% rename from src/Pharmacist.Tests/IntegrationTests/Xamarin.Forms.4.0.0.482894.approved.txt rename to src/Pharmacist.Tests/IntegrationTests/Approved/Xamarin.Forms.4.0.0.482894.approved.txt diff --git a/src/Pharmacist.Tests/IntegrationTests/Approved/iOS.approved.txt b/src/Pharmacist.Tests/IntegrationTests/Approved/iOS.approved.txt new file mode 100644 index 0000000..3c47c5f --- /dev/null +++ b/src/Pharmacist.Tests/IntegrationTests/Approved/iOS.approved.txt @@ -0,0 +1,11435 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +using global::System; +using global::System.Reactive; +using global::System.Reactive.Linq; +using global::System.Reactive.Subjects; + +using global::Pharmacist.Common; + +namespace AddressBook +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ABAddressBookEvents Events(this global::AddressBook.ABAddressBook item) => new ABAddressBookEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ABAddressBookEvents + { + private readonly global::AddressBook.ABAddressBook _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ABAddressBookEvents(global::AddressBook.ABAddressBook data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ExternalChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::AddressBook.ExternalChangeEventArgs>(x => _data.ExternalChange += x, x => _data.ExternalChange -= x).Select(x => x.EventArgs); + } +} + +namespace AddressBookUI +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ABNewPersonViewControllerEvents Events(this global::AddressBookUI.ABNewPersonViewController item) => new ABNewPersonViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ABPeoplePickerNavigationControllerEvents Events(this global::AddressBookUI.ABPeoplePickerNavigationController item) => new ABPeoplePickerNavigationControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ABPersonViewControllerEvents Events(this global::AddressBookUI.ABPersonViewController item) => new ABPersonViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ABUnknownPersonViewControllerEvents Events(this global::AddressBookUI.ABUnknownPersonViewController item) => new ABUnknownPersonViewControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ABNewPersonViewControllerEvents + { + private readonly global::AddressBookUI.ABNewPersonViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ABNewPersonViewControllerEvents(global::AddressBookUI.ABNewPersonViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NewPersonComplete => global::System.Reactive.Linq.Observable.FromEventPattern, global::AddressBookUI.ABNewPersonCompleteEventArgs>(x => _data.NewPersonComplete += x, x => _data.NewPersonComplete -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ABPeoplePickerNavigationControllerEvents + { + private readonly global::AddressBookUI.ABPeoplePickerNavigationController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ABPeoplePickerNavigationControllerEvents(global::AddressBookUI.ABPeoplePickerNavigationController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Cancelled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Cancelled += x, x => _data.Cancelled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformAction => global::System.Reactive.Linq.Observable.FromEventPattern, global::AddressBookUI.ABPeoplePickerPerformActionEventArgs>(x => _data.PerformAction += x, x => _data.PerformAction -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformAction2 => global::System.Reactive.Linq.Observable.FromEventPattern, global::AddressBookUI.ABPeoplePickerPerformAction2EventArgs>(x => _data.PerformAction2 += x, x => _data.PerformAction2 -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectPerson => global::System.Reactive.Linq.Observable.FromEventPattern, global::AddressBookUI.ABPeoplePickerSelectPersonEventArgs>(x => _data.SelectPerson += x, x => _data.SelectPerson -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectPerson2 => global::System.Reactive.Linq.Observable.FromEventPattern, global::AddressBookUI.ABPeoplePickerSelectPerson2EventArgs>(x => _data.SelectPerson2 += x, x => _data.SelectPerson2 -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ABPersonViewControllerEvents + { + private readonly global::AddressBookUI.ABPersonViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ABPersonViewControllerEvents(global::AddressBookUI.ABPersonViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformDefaultAction => global::System.Reactive.Linq.Observable.FromEventPattern, global::AddressBookUI.ABPersonViewPerformDefaultActionEventArgs>(x => _data.PerformDefaultAction += x, x => _data.PerformDefaultAction -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ABUnknownPersonViewControllerEvents + { + private readonly global::AddressBookUI.ABUnknownPersonViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ABUnknownPersonViewControllerEvents(global::AddressBookUI.ABUnknownPersonViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformDefaultAction => global::System.Reactive.Linq.Observable.FromEventPattern, global::AddressBookUI.ABPersonViewPerformDefaultActionEventArgs>(x => _data.PerformDefaultAction += x, x => _data.PerformDefaultAction -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PersonCreated => global::System.Reactive.Linq.Observable.FromEventPattern, global::AddressBookUI.ABUnknownPersonCreatedEventArgs>(x => _data.PersonCreated += x, x => _data.PersonCreated -= x).Select(x => x.EventArgs); + } +} + +namespace AudioToolbox +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AudioConverterEvents Events(this global::AudioToolbox.AudioConverter item) => new AudioConverterEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static InputAudioQueueEvents Events(this global::AudioToolbox.InputAudioQueue item) => new InputAudioQueueEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static OutputAudioQueueEvents Events(this global::AudioToolbox.OutputAudioQueue item) => new OutputAudioQueueEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AudioConverterEvents + { + private readonly global::AudioToolbox.AudioConverter _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AudioConverterEvents(global::AudioToolbox.AudioConverter data) + { + _data = data; + } + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class InputAudioQueueEvents + { + private readonly global::AudioToolbox.InputAudioQueue _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public InputAudioQueueEvents(global::AudioToolbox.InputAudioQueue data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InputCompleted => global::System.Reactive.Linq.Observable.FromEventPattern, global::AudioToolbox.InputCompletedEventArgs>(x => _data.InputCompleted += x, x => _data.InputCompleted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class OutputAudioQueueEvents + { + private readonly global::AudioToolbox.OutputAudioQueue _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public OutputAudioQueueEvents(global::AudioToolbox.OutputAudioQueue data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BufferCompleted => global::System.Reactive.Linq.Observable.FromEventPattern, global::AudioToolbox.BufferCompletedEventArgs>(x => _data.BufferCompleted += x, x => _data.BufferCompleted -= x).Select(x => x.EventArgs); + } +} + +namespace AVFoundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AVAudioPlayerEvents Events(this global::AVFoundation.AVAudioPlayer item) => new AVAudioPlayerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AVAudioRecorderEvents Events(this global::AVFoundation.AVAudioRecorder item) => new AVAudioRecorderEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AVAudioSessionEvents Events(this global::AVFoundation.AVAudioSession item) => new AVAudioSessionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static AVSpeechSynthesizerEvents Events(this global::AVFoundation.AVSpeechSynthesizer item) => new AVSpeechSynthesizerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AVAudioPlayerEvents + { + private readonly global::AVFoundation.AVAudioPlayer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AVAudioPlayerEvents(global::AVFoundation.AVAudioPlayer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeginInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeginInterruption += x, x => _data.BeginInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecoderError => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVErrorEventArgs>(x => _data.DecoderError += x, x => _data.DecoderError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EndInterruption += x, x => _data.EndInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FinishedPlaying => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVStatusEventArgs>(x => _data.FinishedPlaying += x, x => _data.FinishedPlaying -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AVAudioRecorderEvents + { + private readonly global::AVFoundation.AVAudioRecorder _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AVAudioRecorderEvents(global::AVFoundation.AVAudioRecorder data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeginInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeginInterruption += x, x => _data.BeginInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EncoderError => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVErrorEventArgs>(x => _data.EncoderError += x, x => _data.EncoderError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EndInterruption += x, x => _data.EndInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FinishedRecording => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVStatusEventArgs>(x => _data.FinishedRecording += x, x => _data.FinishedRecording -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AVAudioSessionEvents + { + private readonly global::AVFoundation.AVAudioSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AVAudioSessionEvents(global::AVFoundation.AVAudioSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Deprecated since iOS 6, Use 'AVAudioSession.Notification.ObserveInterruption' instead.", false)] + public global::System.IObservable BeginInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BeginInterruption += x, x => _data.BeginInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Deprecated since iOS 6, Use 'AVAudioSession.Notification.ObserveAudioRouteChange'.", false)] + public global::System.IObservable CategoryChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVCategoryEventArgs>(x => _data.CategoryChanged += x, x => _data.CategoryChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Deprecated since iOS 6, Use 'AVAudioSession.Notification.ObserveInterruption' instead.", false)] + public global::System.IObservable EndInterruption => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EndInterruption += x, x => _data.EndInterruption -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Deprecated since iOS 6, Use 'AVAudioSession.Notification.ObserveAudioRouteChange'.", false)] + public global::System.IObservable InputAvailabilityChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVStatusEventArgs>(x => _data.InputAvailabilityChanged += x, x => _data.InputAvailabilityChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Use 'AVAudioSession.Notification.ObserveAudioRouteChange', this event does nothing.", false)] + public global::System.IObservable InputChannelsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVChannelsEventArgs>(x => _data.InputChannelsChanged += x, x => _data.InputChannelsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Use 'AVAudioSession.Notification.ObserveAudioRouteChange', this event does nothing.", false)] + public global::System.IObservable OutputChannelsChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVChannelsEventArgs>(x => _data.OutputChannelsChanged += x, x => _data.OutputChannelsChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + [global::System.ObsoleteAttribute("Deprecated since iOS 6, Use 'AVAudioSession.Notification.ObserveAudioRouteChange'.", false)] + public global::System.IObservable SampleRateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSampleRateEventArgs>(x => _data.SampleRateChanged += x, x => _data.SampleRateChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class AVSpeechSynthesizerEvents + { + private readonly global::AVFoundation.AVSpeechSynthesizer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public AVSpeechSynthesizerEvents(global::AVFoundation.AVSpeechSynthesizer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidCancelSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidCancelSpeechUtterance += x, x => _data.DidCancelSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidContinueSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidContinueSpeechUtterance += x, x => _data.DidContinueSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidFinishSpeechUtterance += x, x => _data.DidFinishSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPauseSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidPauseSpeechUtterance += x, x => _data.DidPauseSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidStartSpeechUtterance => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerUteranceEventArgs>(x => _data.DidStartSpeechUtterance += x, x => _data.DidStartSpeechUtterance -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillSpeakRangeOfSpeechString => global::System.Reactive.Linq.Observable.FromEventPattern, global::AVFoundation.AVSpeechSynthesizerWillSpeakEventArgs>(x => _data.WillSpeakRangeOfSpeechString += x, x => _data.WillSpeakRangeOfSpeechString -= x).Select(x => x.EventArgs); + } +} + +namespace CoreAnimation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CAAnimationEvents Events(this global::CoreAnimation.CAAnimation item) => new CAAnimationEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CAAnimationEvents + { + private readonly global::CoreAnimation.CAAnimation _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CAAnimationEvents(global::CoreAnimation.CAAnimation data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AnimationStarted += x, x => _data.AnimationStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AnimationStopped => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreAnimation.CAAnimationStateEventArgs>(x => _data.AnimationStopped += x, x => _data.AnimationStopped -= x).Select(x => x.EventArgs); + } +} + +namespace CoreBluetooth +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CBCentralManagerEvents Events(this global::CoreBluetooth.CBCentralManager item) => new CBCentralManagerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CBPeripheralEvents Events(this global::CoreBluetooth.CBPeripheral item) => new CBPeripheralEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CBPeripheralManagerEvents Events(this global::CoreBluetooth.CBPeripheralManager item) => new CBPeripheralManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CBCentralManagerEvents + { + private readonly global::CoreBluetooth.CBCentralManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CBCentralManagerEvents(global::CoreBluetooth.CBCentralManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ConnectedPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralEventArgs>(x => _data.ConnectedPeripheral += x, x => _data.ConnectedPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DisconnectedPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralErrorEventArgs>(x => _data.DisconnectedPeripheral += x, x => _data.DisconnectedPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBDiscoveredPeripheralEventArgs>(x => _data.DiscoveredPeripheral += x, x => _data.DiscoveredPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FailedToConnectPeripheral => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralErrorEventArgs>(x => _data.FailedToConnectPeripheral += x, x => _data.FailedToConnectPeripheral -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RetrievedConnectedPeripherals => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralsEventArgs>(x => _data.RetrievedConnectedPeripherals += x, x => _data.RetrievedConnectedPeripherals -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RetrievedPeripherals => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralsEventArgs>(x => _data.RetrievedPeripherals += x, x => _data.RetrievedPeripherals -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedState => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UpdatedState += x, x => _data.UpdatedState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillRestoreState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBWillRestoreEventArgs>(x => _data.WillRestoreState += x, x => _data.WillRestoreState -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CBPeripheralEvents + { + private readonly global::CoreBluetooth.CBPeripheral _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CBPeripheralEvents(global::CoreBluetooth.CBPeripheral data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidOpenL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralOpenL2CapChannelEventArgs>(x => _data.DidOpenL2CapChannel += x, x => _data.DidOpenL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredCharacteristic => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBServiceEventArgs>(x => _data.DiscoveredCharacteristic += x, x => _data.DiscoveredCharacteristic -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredDescriptor => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.DiscoveredDescriptor += x, x => _data.DiscoveredDescriptor -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredIncludedService => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBServiceEventArgs>(x => _data.DiscoveredIncludedService += x, x => _data.DiscoveredIncludedService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DiscoveredService => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.DiscoveredService += x, x => _data.DiscoveredService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable InvalidatedService => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.InvalidatedService += x, x => _data.InvalidatedService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IsReadyToSendWriteWithoutResponse => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.IsReadyToSendWriteWithoutResponse += x, x => _data.IsReadyToSendWriteWithoutResponse -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ModifiedServices => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralServicesEventArgs>(x => _data.ModifiedServices += x, x => _data.ModifiedServices -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RssiRead => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBRssiEventArgs>(x => _data.RssiRead += x, x => _data.RssiRead -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RssiUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.RssiUpdated += x, x => _data.RssiUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedCharacterteristicValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.UpdatedCharacterteristicValue += x, x => _data.UpdatedCharacterteristicValue -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedName => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UpdatedName += x, x => _data.UpdatedName -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedNotificationState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.UpdatedNotificationState += x, x => _data.UpdatedNotificationState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBDescriptorEventArgs>(x => _data.UpdatedValue += x, x => _data.UpdatedValue -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WroteCharacteristicValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBCharacteristicEventArgs>(x => _data.WroteCharacteristicValue += x, x => _data.WroteCharacteristicValue -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WroteDescriptorValue => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBDescriptorEventArgs>(x => _data.WroteDescriptorValue += x, x => _data.WroteDescriptorValue -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CBPeripheralManagerEvents + { + private readonly global::CoreBluetooth.CBPeripheralManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CBPeripheralManagerEvents(global::CoreBluetooth.CBPeripheralManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AdvertisingStarted => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.AdvertisingStarted += x, x => _data.AdvertisingStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CharacteristicSubscribed => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerSubscriptionEventArgs>(x => _data.CharacteristicSubscribed += x, x => _data.CharacteristicSubscribed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CharacteristicUnsubscribed => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerSubscriptionEventArgs>(x => _data.CharacteristicUnsubscribed += x, x => _data.CharacteristicUnsubscribed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidOpenL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerOpenL2CapChannelEventArgs>(x => _data.DidOpenL2CapChannel += x, x => _data.DidOpenL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPublishL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerL2CapChannelOperationEventArgs>(x => _data.DidPublishL2CapChannel += x, x => _data.DidPublishL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUnpublishL2CapChannel => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerL2CapChannelOperationEventArgs>(x => _data.DidUnpublishL2CapChannel += x, x => _data.DidUnpublishL2CapChannel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadRequestReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBATTRequestEventArgs>(x => _data.ReadRequestReceived += x, x => _data.ReadRequestReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadyToUpdateSubscribers => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ReadyToUpdateSubscribers += x, x => _data.ReadyToUpdateSubscribers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ServiceAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBPeripheralManagerServiceEventArgs>(x => _data.ServiceAdded += x, x => _data.ServiceAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StateUpdated => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.StateUpdated += x, x => _data.StateUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillRestoreState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBWillRestoreEventArgs>(x => _data.WillRestoreState += x, x => _data.WillRestoreState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WriteRequestsReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreBluetooth.CBATTRequestsEventArgs>(x => _data.WriteRequestsReceived += x, x => _data.WriteRequestsReceived -= x).Select(x => x.EventArgs); + } +} + +namespace CoreFoundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CFSocketEvents Events(this global::CoreFoundation.CFSocket item) => new CFSocketEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CFStreamEvents Events(this global::CoreFoundation.CFStream item) => new CFStreamEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CFSocketEvents + { + private readonly global::CoreFoundation.CFSocket _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CFSocketEvents(global::CoreFoundation.CFSocket data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AcceptEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketAcceptEventArgs>(x => _data.AcceptEvent += x, x => _data.AcceptEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ConnectEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketConnectEventArgs>(x => _data.ConnectEvent += x, x => _data.ConnectEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketDataEventArgs>(x => _data.DataEvent += x, x => _data.DataEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReadEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketReadEventArgs>(x => _data.ReadEvent += x, x => _data.ReadEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WriteEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFSocket.CFSocketWriteEventArgs>(x => _data.WriteEvent += x, x => _data.WriteEvent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CFStreamEvents + { + private readonly global::CoreFoundation.CFStream _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CFStreamEvents(global::CoreFoundation.CFStream data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CanAcceptBytesEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.CanAcceptBytesEvent += x, x => _data.CanAcceptBytesEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ClosedEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.ClosedEvent += x, x => _data.ClosedEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ErrorEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.ErrorEvent += x, x => _data.ErrorEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HasBytesAvailableEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.HasBytesAvailableEvent += x, x => _data.HasBytesAvailableEvent -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OpenCompletedEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreFoundation.CFStream.StreamEventArgs>(x => _data.OpenCompletedEvent += x, x => _data.OpenCompletedEvent -= x).Select(x => x.EventArgs); + } +} + +namespace CoreLocation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static CLLocationManagerEvents Events(this global::CoreLocation.CLLocationManager item) => new CLLocationManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class CLLocationManagerEvents + { + private readonly global::CoreLocation.CLLocationManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public CLLocationManagerEvents(global::CoreLocation.CLLocationManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AuthorizationChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLAuthorizationChangedEventArgs>(x => _data.AuthorizationChanged += x, x => _data.AuthorizationChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DeferredUpdatesFinished => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.DeferredUpdatesFinished += x, x => _data.DeferredUpdatesFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDetermineState => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionStateDeterminedEventArgs>(x => _data.DidDetermineState += x, x => _data.DidDetermineState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRangeBeacons => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionBeaconsRangedEventArgs>(x => _data.DidRangeBeacons += x, x => _data.DidRangeBeacons -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidStartMonitoringForRegion => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionEventArgs>(x => _data.DidStartMonitoringForRegion += x, x => _data.DidStartMonitoringForRegion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidVisit => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLVisitedEventArgs>(x => _data.DidVisit += x, x => _data.DidVisit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Failed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.Failed += x, x => _data.Failed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationsUpdated => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLLocationsUpdatedEventArgs>(x => _data.LocationsUpdated += x, x => _data.LocationsUpdated -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationUpdatesPaused => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationUpdatesPaused += x, x => _data.LocationUpdatesPaused -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocationUpdatesResumed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocationUpdatesResumed += x, x => _data.LocationUpdatesResumed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MonitoringFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionErrorEventArgs>(x => _data.MonitoringFailed += x, x => _data.MonitoringFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RangingBeaconsDidFailForRegion => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionBeaconsFailedEventArgs>(x => _data.RangingBeaconsDidFailForRegion += x, x => _data.RangingBeaconsDidFailForRegion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionEntered => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionEventArgs>(x => _data.RegionEntered += x, x => _data.RegionEntered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionLeft => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLRegionEventArgs>(x => _data.RegionLeft += x, x => _data.RegionLeft -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedHeading => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLHeadingUpdatedEventArgs>(x => _data.UpdatedHeading += x, x => _data.UpdatedHeading -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedLocation => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreLocation.CLLocationUpdatedEventArgs>(x => _data.UpdatedLocation += x, x => _data.UpdatedLocation -= x).Select(x => x.EventArgs); + } +} + +namespace CoreMidi +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MidiClientEvents Events(this global::CoreMidi.MidiClient item) => new MidiClientEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MidiEndpointEvents Events(this global::CoreMidi.MidiEndpoint item) => new MidiEndpointEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MidiPortEvents Events(this global::CoreMidi.MidiPort item) => new MidiPortEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MidiClientEvents + { + private readonly global::CoreMidi.MidiClient _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MidiClientEvents(global::CoreMidi.MidiClient data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable IOError => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.IOErrorEventArgs>(x => _data.IOError += x, x => _data.IOError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ObjectAdded => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.ObjectAddedOrRemovedEventArgs>(x => _data.ObjectAdded += x, x => _data.ObjectAdded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ObjectRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.ObjectAddedOrRemovedEventArgs>(x => _data.ObjectRemoved += x, x => _data.ObjectRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PropertyChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.ObjectPropertyChangedEventArgs>(x => _data.PropertyChanged += x, x => _data.PropertyChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SerialPortOwnerChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SerialPortOwnerChanged += x, x => _data.SerialPortOwnerChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SetupChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SetupChanged += x, x => _data.SetupChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ThruConnectionsChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ThruConnectionsChanged += x, x => _data.ThruConnectionsChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MidiEndpointEvents + { + private readonly global::CoreMidi.MidiEndpoint _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MidiEndpointEvents(global::CoreMidi.MidiEndpoint data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MessageReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.MidiPacketsEventArgs>(x => _data.MessageReceived += x, x => _data.MessageReceived -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MidiPortEvents + { + private readonly global::CoreMidi.MidiPort _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MidiPortEvents(global::CoreMidi.MidiPort data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MessageReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::CoreMidi.MidiPacketsEventArgs>(x => _data.MessageReceived += x, x => _data.MessageReceived -= x).Select(x => x.EventArgs); + } +} + +namespace EventKitUI +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EKCalendarChooserEvents Events(this global::EventKitUI.EKCalendarChooser item) => new EKCalendarChooserEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EKEventEditViewControllerEvents Events(this global::EventKitUI.EKEventEditViewController item) => new EKEventEditViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EKEventViewControllerEvents Events(this global::EventKitUI.EKEventViewController item) => new EKEventViewControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EKCalendarChooserEvents + { + private readonly global::EventKitUI.EKCalendarChooser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EKCalendarChooserEvents(global::EventKitUI.EKCalendarChooser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Cancelled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Cancelled += x, x => _data.Cancelled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EKEventEditViewControllerEvents + { + private readonly global::EventKitUI.EKEventEditViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EKEventEditViewControllerEvents(global::EventKitUI.EKEventEditViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completed => global::System.Reactive.Linq.Observable.FromEventPattern, global::EventKitUI.EKEventEditEventArgs>(x => _data.Completed += x, x => _data.Completed -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EKEventViewControllerEvents + { + private readonly global::EventKitUI.EKEventViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EKEventViewControllerEvents(global::EventKitUI.EKEventViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Completed => global::System.Reactive.Linq.Observable.FromEventPattern, global::EventKitUI.EKEventViewEventArgs>(x => _data.Completed += x, x => _data.Completed -= x).Select(x => x.EventArgs); + } +} + +namespace ExternalAccessory +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EAAccessoryEvents Events(this global::ExternalAccessory.EAAccessory item) => new EAAccessoryEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static EAWiFiUnconfiguredAccessoryBrowserEvents Events(this global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser item) => new EAWiFiUnconfiguredAccessoryBrowserEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EAAccessoryEvents + { + private readonly global::ExternalAccessory.EAAccessory _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EAAccessoryEvents(global::ExternalAccessory.EAAccessory data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Disconnected => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Disconnected += x, x => _data.Disconnected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class EAWiFiUnconfiguredAccessoryBrowserEvents + { + private readonly global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public EAWiFiUnconfiguredAccessoryBrowserEvents(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindUnconfiguredAccessories => global::System.Reactive.Linq.Observable.FromEventPattern, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowserEventArgs>(x => _data.DidFindUnconfiguredAccessories += x, x => _data.DidFindUnconfiguredAccessories -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishConfiguringAccessory => global::System.Reactive.Linq.Observable.FromEventPattern, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryDidFinishEventArgs>(x => _data.DidFinishConfiguringAccessory += x, x => _data.DidFinishConfiguringAccessory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveUnconfiguredAccessories => global::System.Reactive.Linq.Observable.FromEventPattern, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowserEventArgs>(x => _data.DidRemoveUnconfiguredAccessories += x, x => _data.DidRemoveUnconfiguredAccessories -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateState => global::System.Reactive.Linq.Observable.FromEventPattern, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryEventArgs>(x => _data.DidUpdateState += x, x => _data.DidUpdateState -= x).Select(x => x.EventArgs); + } +} + +namespace Foundation +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSCacheEvents Events(this global::Foundation.NSCache item) => new NSCacheEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSKeyedArchiverEvents Events(this global::Foundation.NSKeyedArchiver item) => new NSKeyedArchiverEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSKeyedUnarchiverEvents Events(this global::Foundation.NSKeyedUnarchiver item) => new NSKeyedUnarchiverEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSNetServiceEvents Events(this global::Foundation.NSNetService item) => new NSNetServiceEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSNetServiceBrowserEvents Events(this global::Foundation.NSNetServiceBrowser item) => new NSNetServiceBrowserEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSStreamEvents Events(this global::Foundation.NSStream item) => new NSStreamEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSCacheEvents + { + private readonly global::Foundation.NSCache _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSCacheEvents(global::Foundation.NSCache data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEvictObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSObjectEventArgs>(x => _data.WillEvictObject += x, x => _data.WillEvictObject -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSKeyedArchiverEvents + { + private readonly global::Foundation.NSKeyedArchiver _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSKeyedArchiverEvents(global::Foundation.NSKeyedArchiver data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EncodedObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSObjectEventArgs>(x => _data.EncodedObject += x, x => _data.EncodedObject -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finishing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finishing += x, x => _data.Finishing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReplacingObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSArchiveReplaceEventArgs>(x => _data.ReplacingObject += x, x => _data.ReplacingObject -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSKeyedUnarchiverEvents + { + private readonly global::Foundation.NSKeyedUnarchiver _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSKeyedUnarchiverEvents(global::Foundation.NSKeyedUnarchiver data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finishing => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finishing += x, x => _data.Finishing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReplacingObject => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSArchiveReplaceEventArgs>(x => _data.ReplacingObject += x, x => _data.ReplacingObject -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSNetServiceEvents + { + private readonly global::Foundation.NSNetService _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSNetServiceEvents(global::Foundation.NSNetService data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AddressResolved => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AddressResolved += x, x => _data.AddressResolved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAcceptConnection => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceConnectionEventArgs>(x => _data.DidAcceptConnection += x, x => _data.DidAcceptConnection -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Published => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Published += x, x => _data.Published -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PublishFailure => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceErrorEventArgs>(x => _data.PublishFailure += x, x => _data.PublishFailure -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ResolveFailure => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceErrorEventArgs>(x => _data.ResolveFailure += x, x => _data.ResolveFailure -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Stopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Stopped += x, x => _data.Stopped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UpdatedTxtRecordData => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceDataEventArgs>(x => _data.UpdatedTxtRecordData += x, x => _data.UpdatedTxtRecordData -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPublish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillPublish += x, x => _data.WillPublish -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillResolve => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillResolve += x, x => _data.WillResolve -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSNetServiceBrowserEvents + { + private readonly global::Foundation.NSNetServiceBrowser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSNetServiceBrowserEvents(global::Foundation.NSNetServiceBrowser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DomainRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetDomainEventArgs>(x => _data.DomainRemoved += x, x => _data.DomainRemoved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FoundDomain => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetDomainEventArgs>(x => _data.FoundDomain += x, x => _data.FoundDomain -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FoundService => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceEventArgs>(x => _data.FoundService += x, x => _data.FoundService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable NotSearched => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceErrorEventArgs>(x => _data.NotSearched += x, x => _data.NotSearched -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchStarted += x, x => _data.SearchStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchStopped += x, x => _data.SearchStopped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ServiceRemoved => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSNetServiceEventArgs>(x => _data.ServiceRemoved += x, x => _data.ServiceRemoved -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSStreamEvents + { + private readonly global::Foundation.NSStream _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSStreamEvents(global::Foundation.NSStream data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnEvent => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSStreamEventArgs>(x => _data.OnEvent += x, x => _data.OnEvent -= x).Select(x => x.EventArgs); + } +} + +namespace GameKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKAchievementViewControllerEvents Events(this global::GameKit.GKAchievementViewController item) => new GKAchievementViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKChallengeEventHandlerEvents Events(this global::GameKit.GKChallengeEventHandler item) => new GKChallengeEventHandlerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKFriendRequestComposeViewControllerEvents Events(this global::GameKit.GKFriendRequestComposeViewController item) => new GKFriendRequestComposeViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKGameCenterViewControllerEvents Events(this global::GameKit.GKGameCenterViewController item) => new GKGameCenterViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKLeaderboardViewControllerEvents Events(this global::GameKit.GKLeaderboardViewController item) => new GKLeaderboardViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKMatchEvents Events(this global::GameKit.GKMatch item) => new GKMatchEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKMatchmakerViewControllerEvents Events(this global::GameKit.GKMatchmakerViewController item) => new GKMatchmakerViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GKSessionEvents Events(this global::GameKit.GKSession item) => new GKSessionEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKAchievementViewControllerEvents + { + private readonly global::GameKit.GKAchievementViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKAchievementViewControllerEvents(global::GameKit.GKAchievementViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFinish += x, x => _data.DidFinish -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKChallengeEventHandlerEvents + { + private readonly global::GameKit.GKChallengeEventHandler _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKChallengeEventHandlerEvents(global::GameKit.GKChallengeEventHandler data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocalPlayerCompletedChallenge => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocalPlayerCompletedChallenge += x, x => _data.LocalPlayerCompletedChallenge -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocalPlayerReceivedChallenge => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocalPlayerReceivedChallenge += x, x => _data.LocalPlayerReceivedChallenge -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LocalPlayerSelectedChallenge => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LocalPlayerSelectedChallenge += x, x => _data.LocalPlayerSelectedChallenge -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RemotePlayerCompletedChallenge => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RemotePlayerCompletedChallenge += x, x => _data.RemotePlayerCompletedChallenge -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKFriendRequestComposeViewControllerEvents + { + private readonly global::GameKit.GKFriendRequestComposeViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKFriendRequestComposeViewControllerEvents(global::GameKit.GKFriendRequestComposeViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFinish += x, x => _data.DidFinish -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKGameCenterViewControllerEvents + { + private readonly global::GameKit.GKGameCenterViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKGameCenterViewControllerEvents(global::GameKit.GKGameCenterViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKLeaderboardViewControllerEvents + { + private readonly global::GameKit.GKLeaderboardViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKLeaderboardViewControllerEvents(global::GameKit.GKLeaderboardViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFinish += x, x => _data.DidFinish -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKMatchEvents + { + private readonly global::GameKit.GKMatch _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKMatchEvents(global::GameKit.GKMatch data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataReceived => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKDataEventArgs>(x => _data.DataReceived += x, x => _data.DataReceived -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataReceivedForRecipient => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKDataReceivedForRecipientEventArgs>(x => _data.DataReceivedForRecipient += x, x => _data.DataReceivedForRecipient -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DataReceivedFromPlayer => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchReceivedDataFromRemotePlayerEventArgs>(x => _data.DataReceivedFromPlayer += x, x => _data.DataReceivedFromPlayer -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Failed => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKErrorEventArgs>(x => _data.Failed += x, x => _data.Failed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StateChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKStateEventArgs>(x => _data.StateChanged += x, x => _data.StateChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable StateChangedForPlayer => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchConnectionChangedEventArgs>(x => _data.StateChangedForPlayer += x, x => _data.StateChangedForPlayer -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKMatchmakerViewControllerEvents + { + private readonly global::GameKit.GKMatchmakerViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKMatchmakerViewControllerEvents(global::GameKit.GKMatchmakerViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailWithError => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKErrorEventArgs>(x => _data.DidFailWithError += x, x => _data.DidFailWithError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindHostedPlayers => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchmakingPlayersEventArgs>(x => _data.DidFindHostedPlayers += x, x => _data.DidFindHostedPlayers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindMatch => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchEventArgs>(x => _data.DidFindMatch += x, x => _data.DidFindMatch -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindPlayers => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKPlayersEventArgs>(x => _data.DidFindPlayers += x, x => _data.DidFindPlayers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable HostedPlayerDidAccept => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKMatchmakingPlayerEventArgs>(x => _data.HostedPlayerDidAccept += x, x => _data.HostedPlayerDidAccept -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceivedAcceptFromHostedPlayer => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKPlayerEventArgs>(x => _data.ReceivedAcceptFromHostedPlayer += x, x => _data.ReceivedAcceptFromHostedPlayer -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WasCancelled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WasCancelled += x, x => _data.WasCancelled -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GKSessionEvents + { + private readonly global::GameKit.GKSession _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GKSessionEvents(global::GameKit.GKSession data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ConnectionFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKPeerConnectionEventArgs>(x => _data.ConnectionFailed += x, x => _data.ConnectionFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ConnectionRequest => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKPeerConnectionEventArgs>(x => _data.ConnectionRequest += x, x => _data.ConnectionRequest -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Failed => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKPeerConnectionEventArgs>(x => _data.Failed += x, x => _data.Failed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PeerChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKPeerChangedStateEventArgs>(x => _data.PeerChanged += x, x => _data.PeerChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceiveData => global::System.Reactive.Linq.Observable.FromEventPattern, global::GameKit.GKDataReceivedEventArgs>(x => _data.ReceiveData += x, x => _data.ReceiveData -= x).Select(x => x.EventArgs); + } +} + +namespace GLKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static GLKViewEvents Events(this global::GLKit.GLKView item) => new GLKViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class GLKViewEvents + { + private readonly global::GLKit.GLKView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public GLKViewEvents(global::GLKit.GLKView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DrawInRect => global::System.Reactive.Linq.Observable.FromEventPattern, global::GLKit.GLKViewDrawEventArgs>(x => _data.DrawInRect += x, x => _data.DrawInRect -= x).Select(x => x.EventArgs); + } +} + +namespace HomeKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HMAccessoryEvents Events(this global::HomeKit.HMAccessory item) => new HMAccessoryEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HMAccessoryBrowserEvents Events(this global::HomeKit.HMAccessoryBrowser item) => new HMAccessoryBrowserEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HMHomeEvents Events(this global::HomeKit.HMHome item) => new HMHomeEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static HMHomeManagerEvents Events(this global::HomeKit.HMHomeManager item) => new HMHomeManagerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HMAccessoryEvents + { + private readonly global::HomeKit.HMAccessory _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HMAccessoryEvents(global::HomeKit.HMAccessory data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddProfile => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryProfileEventArgs>(x => _data.DidAddProfile += x, x => _data.DidAddProfile -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveProfile => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryProfileEventArgs>(x => _data.DidRemoveProfile += x, x => _data.DidRemoveProfile -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateAssociatedServiceType => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryUpdateEventArgs>(x => _data.DidUpdateAssociatedServiceType += x, x => _data.DidUpdateAssociatedServiceType -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateFirmwareVersion => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryFirmwareVersionEventArgs>(x => _data.DidUpdateFirmwareVersion += x, x => _data.DidUpdateFirmwareVersion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateName => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateName += x, x => _data.DidUpdateName -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForService => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryUpdateEventArgs>(x => _data.DidUpdateNameForService += x, x => _data.DidUpdateNameForService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateReachability => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateReachability += x, x => _data.DidUpdateReachability -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateServices => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateServices += x, x => _data.DidUpdateServices -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateValueForCharacteristic => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryServiceUpdateCharacteristicEventArgs>(x => _data.DidUpdateValueForCharacteristic += x, x => _data.DidUpdateValueForCharacteristic -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HMAccessoryBrowserEvents + { + private readonly global::HomeKit.HMAccessoryBrowser _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HMAccessoryBrowserEvents(global::HomeKit.HMAccessoryBrowser data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFindNewAccessory => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryBrowserEventArgs>(x => _data.DidFindNewAccessory += x, x => _data.DidFindNewAccessory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveNewAccessory => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMAccessoryBrowserEventArgs>(x => _data.DidRemoveNewAccessory += x, x => _data.DidRemoveNewAccessory -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HMHomeEvents + { + private readonly global::HomeKit.HMHome _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HMHomeEvents(global::HomeKit.HMHome data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddAccessory => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeAccessoryEventArgs>(x => _data.DidAddAccessory += x, x => _data.DidAddAccessory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddActionSet => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeActionSetEventArgs>(x => _data.DidAddActionSet += x, x => _data.DidAddActionSet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddRoom => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomEventArgs>(x => _data.DidAddRoom += x, x => _data.DidAddRoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddRoomToZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomZoneEventArgs>(x => _data.DidAddRoomToZone += x, x => _data.DidAddRoomToZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddService => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceServiceGroupEventArgs>(x => _data.DidAddService += x, x => _data.DidAddService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddServiceGroup => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceGroupEventArgs>(x => _data.DidAddServiceGroup += x, x => _data.DidAddServiceGroup -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddTrigger => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeTriggerEventArgs>(x => _data.DidAddTrigger += x, x => _data.DidAddTrigger -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddUser => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeUserEventArgs>(x => _data.DidAddUser += x, x => _data.DidAddUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeZoneEventArgs>(x => _data.DidAddZone += x, x => _data.DidAddZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEncounterError => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeErrorAccessoryEventArgs>(x => _data.DidEncounterError += x, x => _data.DidEncounterError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveAccessory => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeAccessoryEventArgs>(x => _data.DidRemoveAccessory += x, x => _data.DidRemoveAccessory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveActionSet => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeActionSetEventArgs>(x => _data.DidRemoveActionSet += x, x => _data.DidRemoveActionSet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveRoom => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomEventArgs>(x => _data.DidRemoveRoom += x, x => _data.DidRemoveRoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveRoomFromZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomZoneEventArgs>(x => _data.DidRemoveRoomFromZone += x, x => _data.DidRemoveRoomFromZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveService => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceServiceGroupEventArgs>(x => _data.DidRemoveService += x, x => _data.DidRemoveService -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveServiceGroup => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceGroupEventArgs>(x => _data.DidRemoveServiceGroup += x, x => _data.DidRemoveServiceGroup -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveTrigger => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeTriggerEventArgs>(x => _data.DidRemoveTrigger += x, x => _data.DidRemoveTrigger -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveUser => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeUserEventArgs>(x => _data.DidRemoveUser += x, x => _data.DidRemoveUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeZoneEventArgs>(x => _data.DidRemoveZone += x, x => _data.DidRemoveZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUnblockAccessory => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeAccessoryEventArgs>(x => _data.DidUnblockAccessory += x, x => _data.DidUnblockAccessory -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateAccessControlForCurrentUser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateAccessControlForCurrentUser += x, x => _data.DidUpdateAccessControlForCurrentUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateActionsForActionSet => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeActionSetEventArgs>(x => _data.DidUpdateActionsForActionSet += x, x => _data.DidUpdateActionsForActionSet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateHomeHubState => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeHubStateEventArgs>(x => _data.DidUpdateHomeHubState += x, x => _data.DidUpdateHomeHubState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForActionSet => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeActionSetEventArgs>(x => _data.DidUpdateNameForActionSet += x, x => _data.DidUpdateNameForActionSet -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForHome => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateNameForHome += x, x => _data.DidUpdateNameForHome -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForRoom => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomEventArgs>(x => _data.DidUpdateNameForRoom += x, x => _data.DidUpdateNameForRoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForServiceGroup => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeServiceGroupEventArgs>(x => _data.DidUpdateNameForServiceGroup += x, x => _data.DidUpdateNameForServiceGroup -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForTrigger => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeTriggerEventArgs>(x => _data.DidUpdateNameForTrigger += x, x => _data.DidUpdateNameForTrigger -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateNameForZone => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeZoneEventArgs>(x => _data.DidUpdateNameForZone += x, x => _data.DidUpdateNameForZone -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateRoom => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeRoomAccessoryEventArgs>(x => _data.DidUpdateRoom += x, x => _data.DidUpdateRoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateTrigger => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeTriggerEventArgs>(x => _data.DidUpdateTrigger += x, x => _data.DidUpdateTrigger -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class HMHomeManagerEvents + { + private readonly global::HomeKit.HMHomeManager _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public HMHomeManagerEvents(global::HomeKit.HMHomeManager data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddHome => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeManagerEventArgs>(x => _data.DidAddHome += x, x => _data.DidAddHome -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidRemoveHome => global::System.Reactive.Linq.Observable.FromEventPattern, global::HomeKit.HMHomeManagerEventArgs>(x => _data.DidRemoveHome += x, x => _data.DidRemoveHome -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateHomes => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdateHomes += x, x => _data.DidUpdateHomes -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdatePrimaryHome => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUpdatePrimaryHome += x, x => _data.DidUpdatePrimaryHome -= x).Select(x => x.EventArgs); + } +} + +namespace iAd +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ADBannerViewEvents Events(this global::iAd.ADBannerView item) => new ADBannerViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static ADInterstitialAdEvents Events(this global::iAd.ADInterstitialAd item) => new ADInterstitialAdEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ADBannerViewEvents + { + private readonly global::iAd.ADBannerView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ADBannerViewEvents(global::iAd.ADBannerView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ActionFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ActionFinished += x, x => _data.ActionFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AdLoaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AdLoaded += x, x => _data.AdLoaded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FailedToReceiveAd => global::System.Reactive.Linq.Observable.FromEventPattern, global::iAd.AdErrorEventArgs>(x => _data.FailedToReceiveAd += x, x => _data.FailedToReceiveAd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillLoad => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillLoad += x, x => _data.WillLoad -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class ADInterstitialAdEvents + { + private readonly global::iAd.ADInterstitialAd _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public ADInterstitialAdEvents(global::iAd.ADInterstitialAd data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ActionFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ActionFinished += x, x => _data.ActionFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AdLoaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AdLoaded += x, x => _data.AdLoaded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AdUnloaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AdUnloaded += x, x => _data.AdUnloaded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FailedToReceiveAd => global::System.Reactive.Linq.Observable.FromEventPattern, global::iAd.ADErrorEventArgs>(x => _data.FailedToReceiveAd += x, x => _data.FailedToReceiveAd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillLoad => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillLoad += x, x => _data.WillLoad -= x).Select(x => x.EventArgs); + } +} + +namespace MapKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MKMapViewEvents Events(this global::MapKit.MKMapView item) => new MKMapViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MKMapViewEvents + { + private readonly global::MapKit.MKMapView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MKMapViewEvents(global::MapKit.MKMapView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CalloutAccessoryControlTapped => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewAccessoryTappedEventArgs>(x => _data.CalloutAccessoryControlTapped += x, x => _data.CalloutAccessoryControlTapped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ChangedDragState => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewDragStateEventArgs>(x => _data.ChangedDragState += x, x => _data.ChangedDragState -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddAnnotationViews => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewAnnotationEventArgs>(x => _data.DidAddAnnotationViews += x, x => _data.DidAddAnnotationViews -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddOverlayRenderers => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKDidAddOverlayRenderersEventArgs>(x => _data.DidAddOverlayRenderers += x, x => _data.DidAddOverlayRenderers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAddOverlayViews => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKOverlayViewsEventArgs>(x => _data.DidAddOverlayViews += x, x => _data.DidAddOverlayViews -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeUserTrackingMode => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MMapViewUserTrackingEventArgs>(x => _data.DidChangeUserTrackingMode += x, x => _data.DidChangeUserTrackingMode -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeVisibleRegion => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeVisibleRegion += x, x => _data.DidChangeVisibleRegion -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDeselectAnnotationView => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKAnnotationViewEventArgs>(x => _data.DidDeselectAnnotationView += x, x => _data.DidDeselectAnnotationView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFailToLocateUser => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.DidFailToLocateUser += x, x => _data.DidFailToLocateUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishRenderingMap => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKDidFinishRenderingMapEventArgs>(x => _data.DidFinishRenderingMap += x, x => _data.DidFinishRenderingMap -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectAnnotationView => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKAnnotationViewEventArgs>(x => _data.DidSelectAnnotationView += x, x => _data.DidSelectAnnotationView -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidStopLocatingUser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidStopLocatingUser += x, x => _data.DidStopLocatingUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateUserLocation => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKUserLocationEventArgs>(x => _data.DidUpdateUserLocation += x, x => _data.DidUpdateUserLocation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadingMapFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.LoadingMapFailed += x, x => _data.LoadingMapFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MapLoaded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MapLoaded += x, x => _data.MapLoaded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewChangeEventArgs>(x => _data.RegionChanged += x, x => _data.RegionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RegionWillChange => global::System.Reactive.Linq.Observable.FromEventPattern, global::MapKit.MKMapViewChangeEventArgs>(x => _data.RegionWillChange += x, x => _data.RegionWillChange -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartLoadingMap => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartLoadingMap += x, x => _data.WillStartLoadingMap -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartLocatingUser => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartLocatingUser += x, x => _data.WillStartLocatingUser -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartRenderingMap => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartRenderingMap += x, x => _data.WillStartRenderingMap -= x).Select(x => x.EventArgs); + } +} + +namespace MediaPlayer +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MPMediaPickerControllerEvents Events(this global::MediaPlayer.MPMediaPickerController item) => new MPMediaPickerControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MPMediaPickerControllerEvents + { + private readonly global::MediaPlayer.MPMediaPickerController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MPMediaPickerControllerEvents(global::MediaPlayer.MPMediaPickerController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidCancel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidCancel += x, x => _data.DidCancel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemsPicked => global::System.Reactive.Linq.Observable.FromEventPattern, global::MediaPlayer.ItemsPickedEventArgs>(x => _data.ItemsPicked += x, x => _data.ItemsPicked -= x).Select(x => x.EventArgs); + } +} + +namespace MessageUI +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MFMailComposeViewControllerEvents Events(this global::MessageUI.MFMailComposeViewController item) => new MFMailComposeViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static MFMessageComposeViewControllerEvents Events(this global::MessageUI.MFMessageComposeViewController item) => new MFMessageComposeViewControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MFMailComposeViewControllerEvents + { + private readonly global::MessageUI.MFMailComposeViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MFMailComposeViewControllerEvents(global::MessageUI.MFMailComposeViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern, global::MessageUI.MFComposeResultEventArgs>(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class MFMessageComposeViewControllerEvents + { + private readonly global::MessageUI.MFMessageComposeViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public MFMessageComposeViewControllerEvents(global::MessageUI.MFMessageComposeViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern, global::MessageUI.MFMessageComposeResultEventArgs>(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + } +} + +namespace PassKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PKAddPassesViewControllerEvents Events(this global::PassKit.PKAddPassesViewController item) => new PKAddPassesViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PKPaymentAuthorizationViewControllerEvents Events(this global::PassKit.PKPaymentAuthorizationViewController item) => new PKPaymentAuthorizationViewControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PKAddPassesViewControllerEvents + { + private readonly global::PassKit.PKAddPassesViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PKAddPassesViewControllerEvents(global::PassKit.PKAddPassesViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PKPaymentAuthorizationViewControllerEvents + { + private readonly global::PassKit.PKPaymentAuthorizationViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PKPaymentAuthorizationViewControllerEvents(global::PassKit.PKPaymentAuthorizationViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAuthorizePayment => global::System.Reactive.Linq.Observable.FromEventPattern, global::PassKit.PKPaymentAuthorizationEventArgs>(x => _data.DidAuthorizePayment += x, x => _data.DidAuthorizePayment -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidAuthorizePayment2 => global::System.Reactive.Linq.Observable.FromEventPattern, global::PassKit.PKPaymentAuthorizationResultEventArgs>(x => _data.DidAuthorizePayment2 += x, x => _data.DidAuthorizePayment2 -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectPaymentMethod => global::System.Reactive.Linq.Observable.FromEventPattern, global::PassKit.PKPaymentMethodSelectedEventArgs>(x => _data.DidSelectPaymentMethod += x, x => _data.DidSelectPaymentMethod -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectPaymentMethod2 => global::System.Reactive.Linq.Observable.FromEventPattern, global::PassKit.PKPaymentRequestPaymentMethodUpdateEventArgs>(x => _data.DidSelectPaymentMethod2 += x, x => _data.DidSelectPaymentMethod2 -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectShippingAddress => global::System.Reactive.Linq.Observable.FromEventPattern, global::PassKit.PKPaymentShippingAddressSelectedEventArgs>(x => _data.DidSelectShippingAddress += x, x => _data.DidSelectShippingAddress -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectShippingContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::PassKit.PKPaymentSelectedContactEventArgs>(x => _data.DidSelectShippingContact += x, x => _data.DidSelectShippingContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectShippingContact2 => global::System.Reactive.Linq.Observable.FromEventPattern, global::PassKit.PKPaymentRequestShippingContactUpdateEventArgs>(x => _data.DidSelectShippingContact2 += x, x => _data.DidSelectShippingContact2 -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectShippingMethod => global::System.Reactive.Linq.Observable.FromEventPattern, global::PassKit.PKPaymentShippingMethodSelectedEventArgs>(x => _data.DidSelectShippingMethod += x, x => _data.DidSelectShippingMethod -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidSelectShippingMethod2 => global::System.Reactive.Linq.Observable.FromEventPattern, global::PassKit.PKPaymentRequestShippingMethodUpdateEventArgs>(x => _data.DidSelectShippingMethod2 += x, x => _data.DidSelectShippingMethod2 -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PaymentAuthorizationViewControllerDidFinish => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PaymentAuthorizationViewControllerDidFinish += x, x => _data.PaymentAuthorizationViewControllerDidFinish -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillAuthorizePayment => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillAuthorizePayment += x, x => _data.WillAuthorizePayment -= x).Select(x => x.EventArgs); + } +} + +namespace PdfKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PdfDocumentEvents Events(this global::PdfKit.PdfDocument item) => new PdfDocumentEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static PdfViewEvents Events(this global::PdfKit.PdfView item) => new PdfViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PdfDocumentEvents + { + private readonly global::PdfKit.PdfDocument _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PdfDocumentEvents(global::PdfKit.PdfDocument data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBeginDocumentFind => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidBeginDocumentFind += x, x => _data.DidBeginDocumentFind -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidMatchString => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidMatchString += x, x => _data.DidMatchString -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUnlock => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidUnlock += x, x => _data.DidUnlock -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FindFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.FindFinished += x, x => _data.FindFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable MatchFound => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.MatchFound += x, x => _data.MatchFound -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PageFindFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PageFindFinished += x, x => _data.PageFindFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PageFindStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PageFindStarted += x, x => _data.PageFindStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class PdfViewEvents + { + private readonly global::PdfKit.PdfView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public PdfViewEvents(global::PdfKit.PdfView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OpenPdf => global::System.Reactive.Linq.Observable.FromEventPattern, global::PdfKit.PdfViewActionEventArgs>(x => _data.OpenPdf += x, x => _data.OpenPdf -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformFind => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PerformFind += x, x => _data.PerformFind -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PerformGoToPage => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PerformGoToPage += x, x => _data.PerformGoToPage -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillClickOnLink => global::System.Reactive.Linq.Observable.FromEventPattern, global::PdfKit.PdfViewUrlEventArgs>(x => _data.WillClickOnLink += x, x => _data.WillClickOnLink -= x).Select(x => x.EventArgs); + } +} + +namespace QuickLook +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static QLPreviewControllerEvents Events(this global::QuickLook.QLPreviewController item) => new QLPreviewControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class QLPreviewControllerEvents + { + private readonly global::QuickLook.QLPreviewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public QLPreviewControllerEvents(global::QuickLook.QLPreviewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDismiss => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidDismiss += x, x => _data.DidDismiss -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillDismiss => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillDismiss += x, x => _data.WillDismiss -= x).Select(x => x.EventArgs); + } +} + +namespace SceneKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SCNPhysicsWorldEvents Events(this global::SceneKit.SCNPhysicsWorld item) => new SCNPhysicsWorldEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SCNPhysicsWorldEvents + { + private readonly global::SceneKit.SCNPhysicsWorld _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SCNPhysicsWorldEvents(global::SceneKit.SCNPhysicsWorld data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBeginContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::SceneKit.SCNPhysicsContactEventArgs>(x => _data.DidBeginContact += x, x => _data.DidBeginContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::SceneKit.SCNPhysicsContactEventArgs>(x => _data.DidEndContact += x, x => _data.DidEndContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::SceneKit.SCNPhysicsContactEventArgs>(x => _data.DidUpdateContact += x, x => _data.DidUpdateContact -= x).Select(x => x.EventArgs); + } +} + +namespace SpriteKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKPhysicsWorldEvents Events(this global::SpriteKit.SKPhysicsWorld item) => new SKPhysicsWorldEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKPhysicsWorldEvents + { + private readonly global::SpriteKit.SKPhysicsWorld _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKPhysicsWorldEvents(global::SpriteKit.SKPhysicsWorld data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBeginContact => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidBeginContact += x, x => _data.DidBeginContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndContact => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidEndContact += x, x => _data.DidEndContact -= x).Select(x => x.EventArgs); + } +} + +namespace StoreKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKProductsRequestEvents Events(this global::StoreKit.SKProductsRequest item) => new SKProductsRequestEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKRequestEvents Events(this global::StoreKit.SKRequest item) => new SKRequestEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static SKStoreProductViewControllerEvents Events(this global::StoreKit.SKStoreProductViewController item) => new SKStoreProductViewControllerEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKProductsRequestEvents + { + private readonly global::StoreKit.SKProductsRequest _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKProductsRequestEvents(global::StoreKit.SKProductsRequest data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ReceivedResponse => global::System.Reactive.Linq.Observable.FromEventPattern, global::StoreKit.SKProductsRequestResponseEventArgs>(x => _data.ReceivedResponse += x, x => _data.ReceivedResponse -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKRequestEvents + { + private readonly global::StoreKit.SKRequest _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKRequestEvents(global::StoreKit.SKRequest data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RequestFailed => global::System.Reactive.Linq.Observable.FromEventPattern, global::StoreKit.SKRequestErrorEventArgs>(x => _data.RequestFailed += x, x => _data.RequestFailed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable RequestFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.RequestFinished += x, x => _data.RequestFinished -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class SKStoreProductViewControllerEvents + { + private readonly global::StoreKit.SKStoreProductViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public SKStoreProductViewControllerEvents(global::StoreKit.SKStoreProductViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Finished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Finished += x, x => _data.Finished -= x).Select(x => x.EventArgs); + } +} + +namespace UIKit +{ + /// + /// A class that contains extension methods to wrap events for classes contained within the namespace. + /// + public static class EventExtensions + { + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static NSTextStorageEvents Events(this global::UIKit.NSTextStorage item) => new NSTextStorageEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIAccelerometerEvents Events(this global::UIKit.UIAccelerometer item) => new UIAccelerometerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIActionSheetEvents Events(this global::UIKit.UIActionSheet item) => new UIActionSheetEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIAlertViewEvents Events(this global::UIKit.UIAlertView item) => new UIAlertViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIBarButtonItemEvents Events(this global::UIKit.UIBarButtonItem item) => new UIBarButtonItemEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UICollisionBehaviorEvents Events(this global::UIKit.UICollisionBehavior item) => new UICollisionBehaviorEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIControlEvents Events(this global::UIKit.UIControl item) => new UIControlEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIDocumentInteractionControllerEvents Events(this global::UIKit.UIDocumentInteractionController item) => new UIDocumentInteractionControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIDocumentMenuViewControllerEvents Events(this global::UIKit.UIDocumentMenuViewController item) => new UIDocumentMenuViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIDocumentPickerViewControllerEvents Events(this global::UIKit.UIDocumentPickerViewController item) => new UIDocumentPickerViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIImagePickerControllerEvents Events(this global::UIKit.UIImagePickerController item) => new UIImagePickerControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIPageViewControllerEvents Events(this global::UIKit.UIPageViewController item) => new UIPageViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIPopoverControllerEvents Events(this global::UIKit.UIPopoverController item) => new UIPopoverControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIPopoverPresentationControllerEvents Events(this global::UIKit.UIPopoverPresentationController item) => new UIPopoverPresentationControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIPreviewInteractionEvents Events(this global::UIKit.UIPreviewInteraction item) => new UIPreviewInteractionEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIPrintInteractionControllerEvents Events(this global::UIKit.UIPrintInteractionController item) => new UIPrintInteractionControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIScrollViewEvents Events(this global::UIKit.UIScrollView item) => new UIScrollViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UISearchBarEvents Events(this global::UIKit.UISearchBar item) => new UISearchBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UISplitViewControllerEvents Events(this global::UIKit.UISplitViewController item) => new UISplitViewControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UITabBarEvents Events(this global::UIKit.UITabBar item) => new UITabBarEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UITabBarControllerEvents Events(this global::UIKit.UITabBarController item) => new UITabBarControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UITextFieldEvents Events(this global::UIKit.UITextField item) => new UITextFieldEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UITextViewEvents Events(this global::UIKit.UITextView item) => new UITextViewEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIVideoEditorControllerEvents Events(this global::UIKit.UIVideoEditorController item) => new UIVideoEditorControllerEvents(item); + /// + /// A wrapper class which wraps all the events contained within the class. + /// + public static UIWebViewEvents Events(this global::UIKit.UIWebView item) => new UIWebViewEvents(item); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class NSTextStorageEvents + { + private readonly global::UIKit.NSTextStorage _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public NSTextStorageEvents(global::UIKit.NSTextStorage data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidProcessEditing => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.NSTextStorageEventArgs>(x => _data.DidProcessEditing += x, x => _data.DidProcessEditing -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillProcessEditing => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.NSTextStorageEventArgs>(x => _data.WillProcessEditing += x, x => _data.WillProcessEditing -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIAccelerometerEvents + { + private readonly global::UIKit.UIAccelerometer _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIAccelerometerEvents(global::UIKit.UIAccelerometer data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Acceleration => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIAccelerometerEventArgs>(x => _data.Acceleration += x, x => _data.Acceleration -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIActionSheetEvents + { + private readonly global::UIKit.UIActionSheet _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIActionSheetEvents(global::UIKit.UIActionSheet data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Canceled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Canceled += x, x => _data.Canceled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Clicked => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIButtonEventArgs>(x => _data.Clicked += x, x => _data.Clicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Dismissed => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIButtonEventArgs>(x => _data.Dismissed += x, x => _data.Dismissed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Presented => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Presented += x, x => _data.Presented -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillDismiss => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIButtonEventArgs>(x => _data.WillDismiss += x, x => _data.WillDismiss -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPresent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillPresent += x, x => _data.WillPresent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIAlertViewEvents + { + private readonly global::UIKit.UIAlertView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIAlertViewEvents(global::UIKit.UIAlertView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Canceled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Canceled += x, x => _data.Canceled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Clicked => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIButtonEventArgs>(x => _data.Clicked += x, x => _data.Clicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Dismissed => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIButtonEventArgs>(x => _data.Dismissed += x, x => _data.Dismissed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Presented => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Presented += x, x => _data.Presented -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillDismiss => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIButtonEventArgs>(x => _data.WillDismiss += x, x => _data.WillDismiss -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPresent => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillPresent += x, x => _data.WillPresent -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIBarButtonItemEvents + { + private readonly global::UIKit.UIBarButtonItem _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIBarButtonItemEvents(global::UIKit.UIBarButtonItem data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Clicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Clicked += x, x => _data.Clicked -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UICollisionBehaviorEvents + { + private readonly global::UIKit.UICollisionBehavior _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UICollisionBehaviorEvents(global::UIKit.UICollisionBehavior data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeganBoundaryContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UICollisionBeganBoundaryContactEventArgs>(x => _data.BeganBoundaryContact += x, x => _data.BeganBoundaryContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BeganContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UICollisionBeganContactEventArgs>(x => _data.BeganContact += x, x => _data.BeganContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndedBoundaryContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UICollisionEndedBoundaryContactEventArgs>(x => _data.EndedBoundaryContact += x, x => _data.EndedBoundaryContact -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndedContact => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UICollisionEndedContactEventArgs>(x => _data.EndedContact += x, x => _data.EndedContact -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIControlEvents + { + private readonly global::UIKit.UIControl _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIControlEvents(global::UIKit.UIControl data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllEditingEvents => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllEditingEvents += x, x => _data.AllEditingEvents -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllEvents => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllEvents += x, x => _data.AllEvents -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable AllTouchEvents => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.AllTouchEvents += x, x => _data.AllTouchEvents -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingChanged += x, x => _data.EditingChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingDidBegin => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingDidBegin += x, x => _data.EditingDidBegin -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingDidEnd => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingDidEnd += x, x => _data.EditingDidEnd -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EditingDidEndOnExit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.EditingDidEndOnExit += x, x => _data.EditingDidEndOnExit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PrimaryActionTriggered => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PrimaryActionTriggered += x, x => _data.PrimaryActionTriggered -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchCancel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchCancel += x, x => _data.TouchCancel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDown => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDown += x, x => _data.TouchDown -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDownRepeat => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDownRepeat += x, x => _data.TouchDownRepeat -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDragEnter => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDragEnter += x, x => _data.TouchDragEnter -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDragExit => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDragExit += x, x => _data.TouchDragExit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDragInside => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDragInside += x, x => _data.TouchDragInside -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchDragOutside => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchDragOutside += x, x => _data.TouchDragOutside -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchUpInside => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchUpInside += x, x => _data.TouchUpInside -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TouchUpOutside => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.TouchUpOutside += x, x => _data.TouchUpOutside -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ValueChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ValueChanged += x, x => _data.ValueChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIDocumentInteractionControllerEvents + { + private readonly global::UIKit.UIDocumentInteractionController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIDocumentInteractionControllerEvents(global::UIKit.UIDocumentInteractionController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDismissOpenInMenu => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidDismissOpenInMenu += x, x => _data.DidDismissOpenInMenu -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDismissOptionsMenu => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidDismissOptionsMenu += x, x => _data.DidDismissOptionsMenu -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndPreview => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidEndPreview += x, x => _data.DidEndPreview -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndSendingToApplication => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIDocumentSendingToApplicationEventArgs>(x => _data.DidEndSendingToApplication += x, x => _data.DidEndSendingToApplication -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillBeginPreview => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillBeginPreview += x, x => _data.WillBeginPreview -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillBeginSendingToApplication => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIDocumentSendingToApplicationEventArgs>(x => _data.WillBeginSendingToApplication += x, x => _data.WillBeginSendingToApplication -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPresentOpenInMenu => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillPresentOpenInMenu += x, x => _data.WillPresentOpenInMenu -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPresentOptionsMenu => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillPresentOptionsMenu += x, x => _data.WillPresentOptionsMenu -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIDocumentMenuViewControllerEvents + { + private readonly global::UIKit.UIDocumentMenuViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIDocumentMenuViewControllerEvents(global::UIKit.UIDocumentMenuViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPickDocumentPicker => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIDocumentMenuDocumentPickedEventArgs>(x => _data.DidPickDocumentPicker += x, x => _data.DidPickDocumentPicker -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WasCancelled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WasCancelled += x, x => _data.WasCancelled -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIDocumentPickerViewControllerEvents + { + private readonly global::UIKit.UIDocumentPickerViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIDocumentPickerViewControllerEvents(global::UIKit.UIDocumentPickerViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPickDocument => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIDocumentPickedEventArgs>(x => _data.DidPickDocument += x, x => _data.DidPickDocument -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPickDocumentAtUrls => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIDocumentPickedAtUrlsEventArgs>(x => _data.DidPickDocumentAtUrls += x, x => _data.DidPickDocumentAtUrls -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WasCancelled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WasCancelled += x, x => _data.WasCancelled -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIImagePickerControllerEvents + { + private readonly global::UIKit.UIImagePickerController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIImagePickerControllerEvents(global::UIKit.UIImagePickerController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Canceled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Canceled += x, x => _data.Canceled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FinishedPickingImage => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIImagePickerImagePickedEventArgs>(x => _data.FinishedPickingImage += x, x => _data.FinishedPickingImage -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FinishedPickingMedia => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIImagePickerMediaPickedEventArgs>(x => _data.FinishedPickingMedia += x, x => _data.FinishedPickingMedia -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIPageViewControllerEvents + { + private readonly global::UIKit.UIPageViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIPageViewControllerEvents(global::UIKit.UIPageViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishAnimating => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIPageViewFinishedAnimationEventArgs>(x => _data.DidFinishAnimating += x, x => _data.DidFinishAnimating -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillTransition => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIPageViewControllerTransitionEventArgs>(x => _data.WillTransition += x, x => _data.WillTransition -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIPopoverControllerEvents + { + private readonly global::UIKit.UIPopoverController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIPopoverControllerEvents(global::UIKit.UIPopoverController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDismiss => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidDismiss += x, x => _data.DidDismiss -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillReposition => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIPopoverControllerRepositionEventArgs>(x => _data.WillReposition += x, x => _data.WillReposition -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIPopoverPresentationControllerEvents + { + private readonly global::UIKit.UIPopoverPresentationController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIPopoverPresentationControllerEvents(global::UIKit.UIPopoverPresentationController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDismiss => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidDismiss += x, x => _data.DidDismiss -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable PrepareForPresentation => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.PrepareForPresentation += x, x => _data.PrepareForPresentation -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillReposition => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIPopoverPresentationControllerRepositionEventArgs>(x => _data.WillReposition += x, x => _data.WillReposition -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIPreviewInteractionEvents + { + private readonly global::UIKit.UIPreviewInteraction _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIPreviewInteractionEvents(global::UIKit.UIPreviewInteraction data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidCancel => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidCancel += x, x => _data.DidCancel -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdateCommit => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.NSPreviewInteractionPreviewUpdateEventArgs>(x => _data.DidUpdateCommit += x, x => _data.DidUpdateCommit -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidUpdatePreviewTransition => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.NSPreviewInteractionPreviewUpdateEventArgs>(x => _data.DidUpdatePreviewTransition += x, x => _data.DidUpdatePreviewTransition -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIPrintInteractionControllerEvents + { + private readonly global::UIKit.UIPrintInteractionController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIPrintInteractionControllerEvents(global::UIKit.UIPrintInteractionController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidDismissPrinterOptions => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidDismissPrinterOptions += x, x => _data.DidDismissPrinterOptions -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidFinishJob => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidFinishJob += x, x => _data.DidFinishJob -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidPresentPrinterOptions => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidPresentPrinterOptions += x, x => _data.DidPresentPrinterOptions -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillDismissPrinterOptions => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillDismissPrinterOptions += x, x => _data.WillDismissPrinterOptions -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPresentPrinterOptions => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillPresentPrinterOptions += x, x => _data.WillPresentPrinterOptions -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillStartJob => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.WillStartJob += x, x => _data.WillStartJob -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIScrollViewEvents + { + private readonly global::UIKit.UIScrollView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIScrollViewEvents(global::UIKit.UIScrollView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecelerationEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DecelerationEnded += x, x => _data.DecelerationEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DecelerationStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DecelerationStarted += x, x => _data.DecelerationStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidChangeAdjustedContentInset => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidChangeAdjustedContentInset += x, x => _data.DidChangeAdjustedContentInset -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidZoom => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DidZoom += x, x => _data.DidZoom -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DraggingEnded => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.DraggingEventArgs>(x => _data.DraggingEnded += x, x => _data.DraggingEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DraggingStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.DraggingStarted += x, x => _data.DraggingStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrollAnimationEnded => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScrollAnimationEnded += x, x => _data.ScrollAnimationEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Scrolled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Scrolled += x, x => _data.Scrolled -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ScrolledToTop => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ScrolledToTop += x, x => _data.ScrolledToTop -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEndDragging => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.WillEndDraggingEventArgs>(x => _data.WillEndDragging += x, x => _data.WillEndDragging -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ZoomingEnded => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.ZoomingEndedEventArgs>(x => _data.ZoomingEnded += x, x => _data.ZoomingEnded -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ZoomingStarted => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIScrollViewZoomingEventArgs>(x => _data.ZoomingStarted += x, x => _data.ZoomingStarted -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UISearchBarEvents + { + private readonly global::UIKit.UISearchBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UISearchBarEvents(global::UIKit.UISearchBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable BookmarkButtonClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.BookmarkButtonClicked += x, x => _data.BookmarkButtonClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable CancelButtonClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.CancelButtonClicked += x, x => _data.CancelButtonClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ListButtonClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.ListButtonClicked += x, x => _data.ListButtonClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnEditingStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OnEditingStarted += x, x => _data.OnEditingStarted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnEditingStopped => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.OnEditingStopped += x, x => _data.OnEditingStopped -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SearchButtonClicked => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SearchButtonClicked += x, x => _data.SearchButtonClicked -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectedScopeButtonIndexChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UISearchBarButtonIndexEventArgs>(x => _data.SelectedScopeButtonIndexChanged += x, x => _data.SelectedScopeButtonIndexChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable TextChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UISearchBarTextChangedEventArgs>(x => _data.TextChanged += x, x => _data.TextChanged -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UISplitViewControllerEvents + { + private readonly global::UIKit.UISplitViewController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UISplitViewControllerEvents(global::UIKit.UISplitViewController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillChangeDisplayMode => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UISplitViewControllerDisplayModeEventArgs>(x => _data.WillChangeDisplayMode += x, x => _data.WillChangeDisplayMode -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillHideViewController => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UISplitViewHideEventArgs>(x => _data.WillHideViewController += x, x => _data.WillHideViewController -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillPresentViewController => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UISplitViewPresentEventArgs>(x => _data.WillPresentViewController += x, x => _data.WillPresentViewController -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillShowViewController => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UISplitViewShowEventArgs>(x => _data.WillShowViewController += x, x => _data.WillShowViewController -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UITabBarEvents + { + private readonly global::UIKit.UITabBar _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UITabBarEvents(global::UIKit.UITabBar data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidBeginCustomizingItems => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarItemsEventArgs>(x => _data.DidBeginCustomizingItems += x, x => _data.DidBeginCustomizingItems -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable DidEndCustomizingItems => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarFinalItemsEventArgs>(x => _data.DidEndCustomizingItems += x, x => _data.DidEndCustomizingItems -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ItemSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarItemEventArgs>(x => _data.ItemSelected += x, x => _data.ItemSelected -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillBeginCustomizingItems => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarItemsEventArgs>(x => _data.WillBeginCustomizingItems += x, x => _data.WillBeginCustomizingItems -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable WillEndCustomizingItems => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarFinalItemsEventArgs>(x => _data.WillEndCustomizingItems += x, x => _data.WillEndCustomizingItems -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UITabBarControllerEvents + { + private readonly global::UIKit.UITabBarController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UITabBarControllerEvents(global::UIKit.UITabBarController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable FinishedCustomizingViewControllers => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarCustomizeChangeEventArgs>(x => _data.FinishedCustomizingViewControllers += x, x => _data.FinishedCustomizingViewControllers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnCustomizingViewControllers => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarCustomizeEventArgs>(x => _data.OnCustomizingViewControllers += x, x => _data.OnCustomizingViewControllers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable OnEndCustomizingViewControllers => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarCustomizeChangeEventArgs>(x => _data.OnEndCustomizingViewControllers += x, x => _data.OnEndCustomizingViewControllers -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable ViewControllerSelected => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITabBarSelectionEventArgs>(x => _data.ViewControllerSelected += x, x => _data.ViewControllerSelected -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UITextFieldEvents + { + private readonly global::UIKit.UITextField _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UITextFieldEvents(global::UIKit.UITextField data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Ended => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Ended += x, x => _data.Ended -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable EndedWithReason => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UITextFieldEditingEndedEventArgs>(x => _data.EndedWithReason += x, x => _data.EndedWithReason -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Started => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Started += x, x => _data.Started -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UITextViewEvents + { + private readonly global::UIKit.UITextView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UITextViewEvents(global::UIKit.UITextView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Changed => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Changed += x, x => _data.Changed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Ended => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Ended += x, x => _data.Ended -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable SelectionChanged => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.SelectionChanged += x, x => _data.SelectionChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Started => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.Started += x, x => _data.Started -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIVideoEditorControllerEvents + { + private readonly global::UIKit.UIVideoEditorController _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIVideoEditorControllerEvents(global::UIKit.UIVideoEditorController data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Failed => global::System.Reactive.Linq.Observable.FromEventPattern, global::Foundation.NSErrorEventArgs>(x => _data.Failed += x, x => _data.Failed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable Saved => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIPathEventArgs>(x => _data.Saved += x, x => _data.Saved -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable UserCancelled => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.UserCancelled += x, x => _data.UserCancelled -= x).Select(x => x.EventArgs); + } + + /// + /// A class which wraps the events contained within the class as observables. + /// + public class UIWebViewEvents + { + private readonly global::UIKit.UIWebView _data; + /// + /// Initializes a new instance of the class. + /// + /// The class that is being wrapped. + public UIWebViewEvents(global::UIKit.UIWebView data) + { + _data = data; + } + + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadError => global::System.Reactive.Linq.Observable.FromEventPattern, global::UIKit.UIWebErrorArgs>(x => _data.LoadError += x, x => _data.LoadError -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadFinished => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadFinished += x, x => _data.LoadFinished -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public global::System.IObservable LoadStarted => global::System.Reactive.Linq.Observable.FromEventPattern(x => _data.LoadStarted += x, x => _data.LoadStarted -= x).Select(x => x.EventArgs); + } +} + +namespace AudioToolbox +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionAudioInputBecameAvailable => global::System.Reactive.Linq.Observable.FromEvent, bool>(eventHandler => + { + void Handler(bool obj) => eventHandler(obj); + return Handler; + } + + , x => global::AudioToolbox.AudioSession.AudioInputBecameAvailable += x, x => global::AudioToolbox.AudioSession.AudioInputBecameAvailable -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionAudioRouteChanged => global::System.Reactive.Linq.Observable.FromEventPattern, global::AudioToolbox.AudioSessionRouteChangeEventArgs>(x => global::AudioToolbox.AudioSession.AudioRouteChanged += x, x => global::AudioToolbox.AudioSession.AudioRouteChanged -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionCurrentHardwareOutputVolumeChanged => global::System.Reactive.Linq.Observable.FromEvent, float>(eventHandler => + { + void Handler(float obj) => eventHandler(obj); + return Handler; + } + + , x => global::AudioToolbox.AudioSession.CurrentHardwareOutputVolumeChanged += x, x => global::AudioToolbox.AudioSession.CurrentHardwareOutputVolumeChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionInputGainBecameAvailable => global::System.Reactive.Linq.Observable.FromEvent, bool>(eventHandler => + { + void Handler(bool obj) => eventHandler(obj); + return Handler; + } + + , x => global::AudioToolbox.AudioSession.InputGainBecameAvailable += x, x => global::AudioToolbox.AudioSession.InputGainBecameAvailable -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionInputGainScalarChanged => global::System.Reactive.Linq.Observable.FromEvent, float>(eventHandler => + { + void Handler(float obj) => eventHandler(obj); + return Handler; + } + + , x => global::AudioToolbox.AudioSession.InputGainScalarChanged += x, x => global::AudioToolbox.AudioSession.InputGainScalarChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionInputSourcesChanged => global::System.Reactive.Linq.Observable.FromEvent, global::AudioToolbox.AccessoryInfo[]>(eventHandler => + { + void Handler(global::AudioToolbox.AccessoryInfo[] obj) => eventHandler(obj); + return Handler; + } + + , x => global::AudioToolbox.AudioSession.InputSourcesChanged += x, x => global::AudioToolbox.AudioSession.InputSourcesChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionInterrupted => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::AudioToolbox.AudioSession.Interrupted += x, x => global::AudioToolbox.AudioSession.Interrupted -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionOutputDestinationsChanged => global::System.Reactive.Linq.Observable.FromEvent, global::AudioToolbox.AccessoryInfo[]>(eventHandler => + { + void Handler(global::AudioToolbox.AccessoryInfo[] obj) => eventHandler(obj); + return Handler; + } + + , x => global::AudioToolbox.AudioSession.OutputDestinationsChanged += x, x => global::AudioToolbox.AudioSession.OutputDestinationsChanged -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionResumed => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::AudioToolbox.AudioSession.Resumed += x, x => global::AudioToolbox.AudioSession.Resumed -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable AudioSessionServerDied => global::System.Reactive.Linq.Observable.FromEvent, bool>(eventHandler => + { + void Handler(bool obj) => eventHandler(obj); + return Handler; + } + + , x => global::AudioToolbox.AudioSession.ServerDied += x, x => global::AudioToolbox.AudioSession.ServerDied -= x); + } +} + +namespace ObjCRuntime +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RuntimeMarshalManagedException => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::ObjCRuntime.Runtime.MarshalManagedException += x, x => global::ObjCRuntime.Runtime.MarshalManagedException -= x).Select(x => x.EventArgs); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable RuntimeMarshalObjectiveCException => global::System.Reactive.Linq.Observable.FromEventPattern(x => global::ObjCRuntime.Runtime.MarshalObjectiveCException += x, x => global::ObjCRuntime.Runtime.MarshalObjectiveCException -= x).Select(x => x.EventArgs); + } +} + +namespace UIKit +{ + /// + /// A class that contains extension methods to wrap events contained within static classes within the namespace. + /// + public static class Events + { + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable UIViewAnimationWillEnd => global::System.Reactive.Linq.Observable.FromEvent(x => global::UIKit.UIView.AnimationWillEnd += x, x => global::UIKit.UIView.AnimationWillEnd -= x); + /// + /// Gets an observable which signals when the event triggers. + /// + public static global::System.IObservable UIViewAnimationWillStart => global::System.Reactive.Linq.Observable.FromEvent(x => global::UIKit.UIView.AnimationWillStart += x, x => global::UIKit.UIView.AnimationWillStart -= x); + } +} + +namespace AddressBookUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class ABNewPersonViewControllerDelegateRx : global::AddressBookUI.ABNewPersonViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AddressBookUI.ABNewPersonViewController controller, global::AddressBook.ABPerson person)> _didCompleteWithNewPerson = new Pharmacist.Common.SingleAwaitSubject<(global::AddressBookUI.ABNewPersonViewController controller, global::AddressBook.ABPerson person)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AddressBookUI.ABNewPersonViewController controller, global::AddressBook.ABPerson person)> DidCompleteWithNewPersonObs => _didCompleteWithNewPerson; + /// + public override void DidCompleteWithNewPerson(global::AddressBookUI.ABNewPersonViewController controller, global::AddressBook.ABPerson person) => _didCompleteWithNewPerson.OnNext((controller, person)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class ABPeoplePickerNavigationControllerDelegateRx : global::AddressBookUI.ABPeoplePickerNavigationControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _cancelled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AddressBookUI.ABPeoplePickerNavigationController peoplePicker, global::AddressBook.ABPerson selectedPerson, int propertyId, int identifier)> _didSelectPerson = new Pharmacist.Common.SingleAwaitSubject<(global::AddressBookUI.ABPeoplePickerNavigationController peoplePicker, global::AddressBook.ABPerson selectedPerson, int propertyId, int identifier)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CancelledObs => _cancelled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AddressBookUI.ABPeoplePickerNavigationController peoplePicker, global::AddressBook.ABPerson selectedPerson, int propertyId, int identifier)> DidSelectPersonObs => _didSelectPerson; + /// + public override void Cancelled(global::AddressBookUI.ABPeoplePickerNavigationController peoplePicker) => _cancelled.OnNext(peoplePicker); + /// + public override void DidSelectPerson(global::AddressBookUI.ABPeoplePickerNavigationController peoplePicker, global::AddressBook.ABPerson selectedPerson, int propertyId, int identifier) => _didSelectPerson.OnNext((peoplePicker, selectedPerson, propertyId, identifier)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class ABUnknownPersonViewControllerDelegateRx : global::AddressBookUI.ABUnknownPersonViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AddressBookUI.ABUnknownPersonViewController unknownPersonView, global::AddressBook.ABPerson person)> _didResolveToPerson = new Pharmacist.Common.SingleAwaitSubject<(global::AddressBookUI.ABUnknownPersonViewController unknownPersonView, global::AddressBook.ABPerson person)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AddressBookUI.ABUnknownPersonViewController unknownPersonView, global::AddressBook.ABPerson person)> DidResolveToPersonObs => _didResolveToPerson; + /// + public override void DidResolveToPerson(global::AddressBookUI.ABUnknownPersonViewController unknownPersonView, global::AddressBook.ABPerson person) => _didResolveToPerson.OnNext((unknownPersonView, person)); + } +} + +namespace ARKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class ARSCNViewDelegateRx : global::ARKit.ARSCNViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARCamera camera)> _cameraDidChangeTrackingState = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARCamera camera)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)> _didAddNode = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _didApplyAnimations = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)> _didApplyConstraints = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::Foundation.NSError error)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer)> _didOutputAudioSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)> _didRemoveNode = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> _didRenderScene = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _didSimulatePhysics = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)> _didUpdateNode = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _interruptionEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _update = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasInterrupted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> _willRenderScene = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)> _willUpdateNode = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::ARKit.ARCamera camera)> CameraDidChangeTrackingStateObs => _cameraDidChangeTrackingState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)> DidAddNodeObs => _didAddNode; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> DidApplyAnimationsObs => _didApplyAnimations; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)> DidApplyConstraintsObs => _didApplyConstraints; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::Foundation.NSError error)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer)> DidOutputAudioSampleBufferObs => _didOutputAudioSampleBuffer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)> DidRemoveNodeObs => _didRemoveNode; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> DidRenderSceneObs => _didRenderScene; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> DidSimulatePhysicsObs => _didSimulatePhysics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)> DidUpdateNodeObs => _didUpdateNode; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable InterruptionEndedObs => _interruptionEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> UpdateObs => _update; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasInterruptedObs => _wasInterrupted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> WillRenderSceneObs => _willRenderScene; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor)> WillUpdateNodeObs => _willUpdateNode; + /// + public override void CameraDidChangeTrackingState(global::ARKit.ARSession session, global::ARKit.ARCamera camera) => _cameraDidChangeTrackingState.OnNext((session, camera)); + /// + public override void DidAddNode(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor) => _didAddNode.OnNext((renderer, node, anchor)); + /// + public override void DidApplyAnimations(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _didApplyAnimations.OnNext((renderer, timeInSeconds)); + /// + public override void DidApplyConstraints(global::SceneKit.ISCNSceneRenderer renderer, double atTime) => _didApplyConstraints.OnNext((renderer, atTime)); + /// + public override void DidFail(global::ARKit.ARSession session, global::Foundation.NSError error) => _didFail.OnNext((session, error)); + /// + public override void DidOutputAudioSampleBuffer(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer) => _didOutputAudioSampleBuffer.OnNext((session, audioSampleBuffer)); + /// + public override void DidRemoveNode(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor) => _didRemoveNode.OnNext((renderer, node, anchor)); + /// + public override void DidRenderScene(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds) => _didRenderScene.OnNext((renderer, scene, timeInSeconds)); + /// + public override void DidSimulatePhysics(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _didSimulatePhysics.OnNext((renderer, timeInSeconds)); + /// + public override void DidUpdateNode(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor) => _didUpdateNode.OnNext((renderer, node, anchor)); + /// + public override void InterruptionEnded(global::ARKit.ARSession session) => _interruptionEnded.OnNext(session); + /// + public override void Update(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _update.OnNext((renderer, timeInSeconds)); + /// + public override void WasInterrupted(global::ARKit.ARSession session) => _wasInterrupted.OnNext(session); + /// + public override void WillRenderScene(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds) => _willRenderScene.OnNext((renderer, scene, timeInSeconds)); + /// + public override void WillUpdateNode(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNNode node, global::ARKit.ARAnchor anchor) => _willUpdateNode.OnNext((renderer, node, anchor)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class ARSessionDelegateRx : global::ARKit.ARSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARCamera camera)> _cameraDidChangeTrackingState = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARCamera camera)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors)> _didAddAnchors = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::Foundation.NSError error)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer)> _didOutputAudioSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors)> _didRemoveAnchors = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors)> _didUpdateAnchors = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARFrame frame)> _didUpdateFrame = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARFrame frame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _interruptionEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasInterrupted = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::ARKit.ARCamera camera)> CameraDidChangeTrackingStateObs => _cameraDidChangeTrackingState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors)> DidAddAnchorsObs => _didAddAnchors; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::Foundation.NSError error)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer)> DidOutputAudioSampleBufferObs => _didOutputAudioSampleBuffer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors)> DidRemoveAnchorsObs => _didRemoveAnchors; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors)> DidUpdateAnchorsObs => _didUpdateAnchors; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::ARKit.ARFrame frame)> DidUpdateFrameObs => _didUpdateFrame; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable InterruptionEndedObs => _interruptionEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasInterruptedObs => _wasInterrupted; + /// + public override void CameraDidChangeTrackingState(global::ARKit.ARSession session, global::ARKit.ARCamera camera) => _cameraDidChangeTrackingState.OnNext((session, camera)); + /// + public override void DidAddAnchors(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors) => _didAddAnchors.OnNext((session, anchors)); + /// + public override void DidFail(global::ARKit.ARSession session, global::Foundation.NSError error) => _didFail.OnNext((session, error)); + /// + public override void DidOutputAudioSampleBuffer(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer) => _didOutputAudioSampleBuffer.OnNext((session, audioSampleBuffer)); + /// + public override void DidRemoveAnchors(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors) => _didRemoveAnchors.OnNext((session, anchors)); + /// + public override void DidUpdateAnchors(global::ARKit.ARSession session, global::ARKit.ARAnchor[] anchors) => _didUpdateAnchors.OnNext((session, anchors)); + /// + public override void DidUpdateFrame(global::ARKit.ARSession session, global::ARKit.ARFrame frame) => _didUpdateFrame.OnNext((session, frame)); + /// + public override void InterruptionEnded(global::ARKit.ARSession session) => _interruptionEnded.OnNext(session); + /// + public override void WasInterrupted(global::ARKit.ARSession session) => _wasInterrupted.OnNext(session); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class ARSKViewDelegateRx : global::ARKit.ARSKViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARCamera camera)> _cameraDidChangeTrackingState = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::ARKit.ARCamera camera)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)> _didAddNode = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::Foundation.NSError error)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer)> _didOutputAudioSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)> _didRemoveNode = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)> _didUpdateNode = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _interruptionEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasInterrupted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)> _willUpdateNode = new Pharmacist.Common.SingleAwaitSubject<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::ARKit.ARCamera camera)> CameraDidChangeTrackingStateObs => _cameraDidChangeTrackingState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)> DidAddNodeObs => _didAddNode; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::Foundation.NSError error)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer)> DidOutputAudioSampleBufferObs => _didOutputAudioSampleBuffer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)> DidRemoveNodeObs => _didRemoveNode; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)> DidUpdateNodeObs => _didUpdateNode; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable InterruptionEndedObs => _interruptionEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasInterruptedObs => _wasInterrupted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor)> WillUpdateNodeObs => _willUpdateNode; + /// + public override void CameraDidChangeTrackingState(global::ARKit.ARSession session, global::ARKit.ARCamera camera) => _cameraDidChangeTrackingState.OnNext((session, camera)); + /// + public override void DidAddNode(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor) => _didAddNode.OnNext((view, node, anchor)); + /// + public override void DidFail(global::ARKit.ARSession session, global::Foundation.NSError error) => _didFail.OnNext((session, error)); + /// + public override void DidOutputAudioSampleBuffer(global::ARKit.ARSession session, global::CoreMedia.CMSampleBuffer audioSampleBuffer) => _didOutputAudioSampleBuffer.OnNext((session, audioSampleBuffer)); + /// + public override void DidRemoveNode(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor) => _didRemoveNode.OnNext((view, node, anchor)); + /// + public override void DidUpdateNode(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor) => _didUpdateNode.OnNext((view, node, anchor)); + /// + public override void InterruptionEnded(global::ARKit.ARSession session) => _interruptionEnded.OnNext(session); + /// + public override void WasInterrupted(global::ARKit.ARSession session) => _wasInterrupted.OnNext(session); + /// + public override void WillUpdateNode(global::ARKit.ARSKView view, global::SpriteKit.SKNode node, global::ARKit.ARAnchor anchor) => _willUpdateNode.OnNext((view, node, anchor)); + } +} + +namespace AVFoundation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVAssetDownloadDelegateRx : global::AVFoundation.AVAssetDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::AVFoundation.AVMediaSelection mediaSelection)> _didCompleteForMediaSelection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::AVFoundation.AVMediaSelection mediaSelection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> _didCompleteWithError = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> _didFinishCollectingMetrics = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::Foundation.NSUrl location)> _didFinishDownloadingToUrl = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::Foundation.NSUrl location)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::CoreMedia.CMTimeRange timeRange, global::Foundation.NSValue[] loadedTimeRanges, global::CoreMedia.CMTimeRange timeRangeExpectedToLoad, global::AVFoundation.AVMediaSelection mediaSelection)> _didLoadTimeRange = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::CoreMedia.CMTimeRange timeRange, global::Foundation.NSValue[] loadedTimeRanges, global::CoreMedia.CMTimeRange timeRangeExpectedToLoad, global::AVFoundation.AVMediaSelection mediaSelection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::AVFoundation.AVMediaSelection resolvedMediaSelection)> _didResolveMediaSelection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::AVFoundation.AVMediaSelection resolvedMediaSelection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> _didSendBodyData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> _needNewBodyStream = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)> _taskIsWaitingForConnectivity = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)> _willBeginDelayedRequest = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::Foundation.NSUrl location)> _willDownloadToUrl = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::Foundation.NSUrl location)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> _willPerformHttpRedirection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::AVFoundation.AVMediaSelection mediaSelection)> DidCompleteForMediaSelectionObs => _didCompleteForMediaSelection; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> DidCompleteWithErrorObs => _didCompleteWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> DidFinishCollectingMetricsObs => _didFinishCollectingMetrics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::Foundation.NSUrl location)> DidFinishDownloadingToUrlObs => _didFinishDownloadingToUrl; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::CoreMedia.CMTimeRange timeRange, global::Foundation.NSValue[] loadedTimeRanges, global::CoreMedia.CMTimeRange timeRangeExpectedToLoad, global::AVFoundation.AVMediaSelection mediaSelection)> DidLoadTimeRangeObs => _didLoadTimeRange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveChallengeObs => _didReceiveChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::AVFoundation.AVMediaSelection resolvedMediaSelection)> DidResolveMediaSelectionObs => _didResolveMediaSelection; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> DidSendBodyDataObs => _didSendBodyData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> NeedNewBodyStreamObs => _needNewBodyStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)> TaskIsWaitingForConnectivityObs => _taskIsWaitingForConnectivity; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)> WillBeginDelayedRequestObs => _willBeginDelayedRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::Foundation.NSUrl location)> WillDownloadToUrlObs => _willDownloadToUrl; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> WillPerformHttpRedirectionObs => _willPerformHttpRedirection; + /// + public override void DidCompleteForMediaSelection(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::AVFoundation.AVMediaSelection mediaSelection) => _didCompleteForMediaSelection.OnNext((session, aggregateAssetDownloadTask, mediaSelection)); + /// + public override void DidCompleteWithError(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error) => _didCompleteWithError.OnNext((session, task, error)); + /// + public override void DidFinishCollectingMetrics(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics) => _didFinishCollectingMetrics.OnNext((session, task, metrics)); + /// + public override void DidFinishDownloadingToUrl(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::Foundation.NSUrl location) => _didFinishDownloadingToUrl.OnNext((session, assetDownloadTask, location)); + /// + public override void DidLoadTimeRange(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::CoreMedia.CMTimeRange timeRange, global::Foundation.NSValue[] loadedTimeRanges, global::CoreMedia.CMTimeRange timeRangeExpectedToLoad, global::AVFoundation.AVMediaSelection mediaSelection) => _didLoadTimeRange.OnNext((session, aggregateAssetDownloadTask, timeRange, loadedTimeRanges, timeRangeExpectedToLoad, mediaSelection)); + /// + public override void DidReceiveChallenge(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveChallenge.OnNext((session, task, challenge, completionHandler)); + /// + public override void DidResolveMediaSelection(global::Foundation.NSUrlSession session, global::AVFoundation.AVAssetDownloadTask assetDownloadTask, global::AVFoundation.AVMediaSelection resolvedMediaSelection) => _didResolveMediaSelection.OnNext((session, assetDownloadTask, resolvedMediaSelection)); + /// + public override void DidSendBodyData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend) => _didSendBodyData.OnNext((session, task, bytesSent, totalBytesSent, totalBytesExpectedToSend)); + /// + public override void NeedNewBodyStream(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler) => _needNewBodyStream.OnNext((session, task, completionHandler)); + /// + public override void TaskIsWaitingForConnectivity(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task) => _taskIsWaitingForConnectivity.OnNext((session, task)); + /// + public override void WillBeginDelayedRequest(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler) => _willBeginDelayedRequest.OnNext((session, task, request, completionHandler)); + /// + public override void WillDownloadToUrl(global::Foundation.NSUrlSession session, global::AVFoundation.AVAggregateAssetDownloadTask aggregateAssetDownloadTask, global::Foundation.NSUrl location) => _willDownloadToUrl.OnNext((session, aggregateAssetDownloadTask, location)); + /// + public override void WillPerformHttpRedirection(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler) => _willPerformHttpRedirection.OnNext((session, task, response, newRequest, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVAssetResourceLoaderDelegateRx : global::AVFoundation.AVAssetResourceLoaderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge)> _didCancelAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest)> _didCancelLoadingRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge)> DidCancelAuthenticationChallengeObs => _didCancelAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest)> DidCancelLoadingRequestObs => _didCancelLoadingRequest; + /// + public override void DidCancelAuthenticationChallenge(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::Foundation.NSUrlAuthenticationChallenge authenticationChallenge) => _didCancelAuthenticationChallenge.OnNext((resourceLoader, authenticationChallenge)); + /// + public override void DidCancelLoadingRequest(global::AVFoundation.AVAssetResourceLoader resourceLoader, global::AVFoundation.AVAssetResourceLoadingRequest loadingRequest) => _didCancelLoadingRequest.OnNext((resourceLoader, loadingRequest)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVAudioPlayerDelegateRx : global::AVFoundation.AVAudioPlayerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _beginInterruption = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error)> _decoderError = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::AVFoundation.AVAudioSessionInterruptionFlags flags)> _endInterruption = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, global::AVFoundation.AVAudioSessionInterruptionFlags flags)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, bool flag)> _finishedPlaying = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioPlayer player, bool flag)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable BeginInterruptionObs => _beginInterruption; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error)> DecoderErrorObs => _decoderError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioPlayer player, global::AVFoundation.AVAudioSessionInterruptionFlags flags)> EndInterruptionObs => _endInterruption; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioPlayer player, bool flag)> FinishedPlayingObs => _finishedPlaying; + /// + public override void BeginInterruption(global::AVFoundation.AVAudioPlayer player) => _beginInterruption.OnNext(player); + /// + public override void DecoderError(global::AVFoundation.AVAudioPlayer player, global::Foundation.NSError error) => _decoderError.OnNext((player, error)); + /// + public override void EndInterruption(global::AVFoundation.AVAudioPlayer player, global::AVFoundation.AVAudioSessionInterruptionFlags flags) => _endInterruption.OnNext((player, flags)); + /// + public override void FinishedPlaying(global::AVFoundation.AVAudioPlayer player, bool flag) => _finishedPlaying.OnNext((player, flag)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVAudioRecorderDelegateRx : global::AVFoundation.AVAudioRecorderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _beginInterruption = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, global::Foundation.NSError error)> _encoderError = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, global::AVFoundation.AVAudioSessionInterruptionFlags flags)> _endInterruption = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, global::AVFoundation.AVAudioSessionInterruptionFlags flags)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, bool flag)> _finishedRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVAudioRecorder recorder, bool flag)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable BeginInterruptionObs => _beginInterruption; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioRecorder recorder, global::Foundation.NSError error)> EncoderErrorObs => _encoderError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioRecorder recorder, global::AVFoundation.AVAudioSessionInterruptionFlags flags)> EndInterruptionObs => _endInterruption; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVAudioRecorder recorder, bool flag)> FinishedRecordingObs => _finishedRecording; + /// + public override void BeginInterruption(global::AVFoundation.AVAudioRecorder recorder) => _beginInterruption.OnNext(recorder); + /// + public override void EncoderError(global::AVFoundation.AVAudioRecorder recorder, global::Foundation.NSError error) => _encoderError.OnNext((recorder, error)); + /// + public override void EndInterruption(global::AVFoundation.AVAudioRecorder recorder, global::AVFoundation.AVAudioSessionInterruptionFlags flags) => _endInterruption.OnNext((recorder, flags)); + /// + public override void FinishedRecording(global::AVFoundation.AVAudioRecorder recorder, bool flag) => _finishedRecording.OnNext((recorder, flag)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVAudioSessionDelegateRx : global::AVFoundation.AVAudioSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _beginInterruption = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _endInterruption = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _inputIsAvailableChanged = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable BeginInterruptionObs => _beginInterruption; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EndInterruptionObs => _endInterruption; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable InputIsAvailableChangedObs => _inputIsAvailableChanged; + /// + public override void BeginInterruption() => _beginInterruption.OnNext(global::System.Reactive.Unit.Default); + /// + public override void EndInterruption(global::AVFoundation.AVAudioSessionInterruptionFlags flags) => _endInterruption.OnNext(flags); + /// + public override void InputIsAvailableChanged(bool isInputAvailable) => _inputIsAvailableChanged.OnNext(isInputAvailable); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVCaptureAudioDataOutputSampleBufferDelegateRx : global::AVFoundation.AVCaptureAudioDataOutputSampleBufferDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> _didDropSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> _didOutputSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + [global::System.ObsoleteAttribute("This member only exists for 'AVCaptureVideoDataOutputSampleBufferDelegate'.", false)] + public global::System.IObservable<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> DidDropSampleBufferObs => _didDropSampleBuffer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> DidOutputSampleBufferObs => _didOutputSampleBuffer; + /// + [global::System.ObsoleteAttribute("This member only exists for 'AVCaptureVideoDataOutputSampleBufferDelegate'.", false)] + public override void DidDropSampleBuffer(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection) => _didDropSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + /// + public override void DidOutputSampleBuffer(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection) => _didOutputSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVCaptureDataOutputSynchronizerDelegateRx : global::AVFoundation.AVCaptureDataOutputSynchronizerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureDataOutputSynchronizer synchronizer, global::AVFoundation.AVCaptureSynchronizedDataCollection synchronizedDataCollection)> _didOutputSynchronizedDataCollection = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureDataOutputSynchronizer synchronizer, global::AVFoundation.AVCaptureSynchronizedDataCollection synchronizedDataCollection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureDataOutputSynchronizer synchronizer, global::AVFoundation.AVCaptureSynchronizedDataCollection synchronizedDataCollection)> DidOutputSynchronizedDataCollectionObs => _didOutputSynchronizedDataCollection; + /// + public override void DidOutputSynchronizedDataCollection(global::AVFoundation.AVCaptureDataOutputSynchronizer synchronizer, global::AVFoundation.AVCaptureSynchronizedDataCollection synchronizedDataCollection) => _didOutputSynchronizedDataCollection.OnNext((synchronizer, synchronizedDataCollection)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVCaptureDepthDataOutputDelegateRx : global::AVFoundation.AVCaptureDepthDataOutputDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureDepthDataOutput output, global::AVFoundation.AVDepthData depthData, global::CoreMedia.CMTime timestamp, global::AVFoundation.AVCaptureConnection connection, global::AVFoundation.AVCaptureOutputDataDroppedReason reason)> _didDropDepthData = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureDepthDataOutput output, global::AVFoundation.AVDepthData depthData, global::CoreMedia.CMTime timestamp, global::AVFoundation.AVCaptureConnection connection, global::AVFoundation.AVCaptureOutputDataDroppedReason reason)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureDepthDataOutput output, global::AVFoundation.AVDepthData depthData, global::CoreMedia.CMTime timestamp, global::AVFoundation.AVCaptureConnection connection)> _didOutputDepthData = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureDepthDataOutput output, global::AVFoundation.AVDepthData depthData, global::CoreMedia.CMTime timestamp, global::AVFoundation.AVCaptureConnection connection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureDepthDataOutput output, global::AVFoundation.AVDepthData depthData, global::CoreMedia.CMTime timestamp, global::AVFoundation.AVCaptureConnection connection, global::AVFoundation.AVCaptureOutputDataDroppedReason reason)> DidDropDepthDataObs => _didDropDepthData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureDepthDataOutput output, global::AVFoundation.AVDepthData depthData, global::CoreMedia.CMTime timestamp, global::AVFoundation.AVCaptureConnection connection)> DidOutputDepthDataObs => _didOutputDepthData; + /// + public override void DidDropDepthData(global::AVFoundation.AVCaptureDepthDataOutput output, global::AVFoundation.AVDepthData depthData, global::CoreMedia.CMTime timestamp, global::AVFoundation.AVCaptureConnection connection, global::AVFoundation.AVCaptureOutputDataDroppedReason reason) => _didDropDepthData.OnNext((output, depthData, timestamp, connection, reason)); + /// + public override void DidOutputDepthData(global::AVFoundation.AVCaptureDepthDataOutput output, global::AVFoundation.AVDepthData depthData, global::CoreMedia.CMTime timestamp, global::AVFoundation.AVCaptureConnection connection) => _didOutputDepthData.OnNext((output, depthData, timestamp, connection)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVCaptureFileOutputRecordingDelegateRx : global::AVFoundation.AVCaptureFileOutputRecordingDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections)> _didStartRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections, global::Foundation.NSError error)> _finishedRecording = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections)> DidStartRecordingObs => _didStartRecording; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections, global::Foundation.NSError error)> FinishedRecordingObs => _finishedRecording; + /// + public override void DidStartRecording(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections) => _didStartRecording.OnNext((captureOutput, outputFileUrl, connections)); + /// + public override void FinishedRecording(global::AVFoundation.AVCaptureFileOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::Foundation.NSObject[] connections, global::Foundation.NSError error) => _finishedRecording.OnNext((captureOutput, outputFileUrl, connections, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVCaptureMetadataOutputObjectsDelegateRx : global::AVFoundation.AVCaptureMetadataOutputObjectsDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureMetadataOutput captureOutput, global::AVFoundation.AVMetadataObject[] metadataObjects, global::AVFoundation.AVCaptureConnection connection)> _didOutputMetadataObjects = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureMetadataOutput captureOutput, global::AVFoundation.AVMetadataObject[] metadataObjects, global::AVFoundation.AVCaptureConnection connection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureMetadataOutput captureOutput, global::AVFoundation.AVMetadataObject[] metadataObjects, global::AVFoundation.AVCaptureConnection connection)> DidOutputMetadataObjectsObs => _didOutputMetadataObjects; + /// + public override void DidOutputMetadataObjects(global::AVFoundation.AVCaptureMetadataOutput captureOutput, global::AVFoundation.AVMetadataObject[] metadataObjects, global::AVFoundation.AVCaptureConnection connection) => _didOutputMetadataObjects.OnNext((captureOutput, metadataObjects, connection)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVCapturePhotoCaptureDelegateRx : global::AVFoundation.AVCapturePhotoCaptureDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)> _didCapturePhoto = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::Foundation.NSError error)> _didFinishCapture = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::CoreMedia.CMTime duration, global::CoreMedia.CMTime photoDisplayTime, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::Foundation.NSError error)> _didFinishProcessingLivePhotoMovie = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::CoreMedia.CMTime duration, global::CoreMedia.CMTime photoDisplayTime, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::CoreMedia.CMSampleBuffer photoSampleBuffer, global::CoreMedia.CMSampleBuffer previewPhotoSampleBuffer, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::AVFoundation.AVCaptureBracketedStillImageSettings bracketSettings, global::Foundation.NSError error)> _didFinishProcessingPhoto = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::CoreMedia.CMSampleBuffer photoSampleBuffer, global::CoreMedia.CMSampleBuffer previewPhotoSampleBuffer, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::AVFoundation.AVCaptureBracketedStillImageSettings bracketSettings, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::CoreMedia.CMSampleBuffer rawSampleBuffer, global::CoreMedia.CMSampleBuffer previewPhotoSampleBuffer, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::AVFoundation.AVCaptureBracketedStillImageSettings bracketSettings, global::Foundation.NSError error)> _didFinishProcessingRawPhoto = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::CoreMedia.CMSampleBuffer rawSampleBuffer, global::CoreMedia.CMSampleBuffer previewPhotoSampleBuffer, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::AVFoundation.AVCaptureBracketedStillImageSettings bracketSettings, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)> _didFinishRecordingLivePhotoMovie = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)> _willBeginCapture = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)> _willCapturePhoto = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)> DidCapturePhotoObs => _didCapturePhoto; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::Foundation.NSError error)> DidFinishCaptureObs => _didFinishCapture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::CoreMedia.CMTime duration, global::CoreMedia.CMTime photoDisplayTime, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::Foundation.NSError error)> DidFinishProcessingLivePhotoMovieObs => _didFinishProcessingLivePhotoMovie; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::CoreMedia.CMSampleBuffer photoSampleBuffer, global::CoreMedia.CMSampleBuffer previewPhotoSampleBuffer, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::AVFoundation.AVCaptureBracketedStillImageSettings bracketSettings, global::Foundation.NSError error)> DidFinishProcessingPhotoObs => _didFinishProcessingPhoto; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::CoreMedia.CMSampleBuffer rawSampleBuffer, global::CoreMedia.CMSampleBuffer previewPhotoSampleBuffer, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::AVFoundation.AVCaptureBracketedStillImageSettings bracketSettings, global::Foundation.NSError error)> DidFinishProcessingRawPhotoObs => _didFinishProcessingRawPhoto; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)> DidFinishRecordingLivePhotoMovieObs => _didFinishRecordingLivePhotoMovie; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)> WillBeginCaptureObs => _willBeginCapture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings)> WillCapturePhotoObs => _willCapturePhoto; + /// + public override void DidCapturePhoto(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings) => _didCapturePhoto.OnNext((captureOutput, resolvedSettings)); + /// + public override void DidFinishCapture(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::Foundation.NSError error) => _didFinishCapture.OnNext((captureOutput, resolvedSettings, error)); + /// + public override void DidFinishProcessingLivePhotoMovie(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::CoreMedia.CMTime duration, global::CoreMedia.CMTime photoDisplayTime, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::Foundation.NSError error) => _didFinishProcessingLivePhotoMovie.OnNext((captureOutput, outputFileUrl, duration, photoDisplayTime, resolvedSettings, error)); + /// + public override void DidFinishProcessingPhoto(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::CoreMedia.CMSampleBuffer photoSampleBuffer, global::CoreMedia.CMSampleBuffer previewPhotoSampleBuffer, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::AVFoundation.AVCaptureBracketedStillImageSettings bracketSettings, global::Foundation.NSError error) => _didFinishProcessingPhoto.OnNext((captureOutput, photoSampleBuffer, previewPhotoSampleBuffer, resolvedSettings, bracketSettings, error)); + /// + public override void DidFinishProcessingRawPhoto(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::CoreMedia.CMSampleBuffer rawSampleBuffer, global::CoreMedia.CMSampleBuffer previewPhotoSampleBuffer, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings, global::AVFoundation.AVCaptureBracketedStillImageSettings bracketSettings, global::Foundation.NSError error) => _didFinishProcessingRawPhoto.OnNext((captureOutput, rawSampleBuffer, previewPhotoSampleBuffer, resolvedSettings, bracketSettings, error)); + /// + public override void DidFinishRecordingLivePhotoMovie(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::Foundation.NSUrl outputFileUrl, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings) => _didFinishRecordingLivePhotoMovie.OnNext((captureOutput, outputFileUrl, resolvedSettings)); + /// + public override void WillBeginCapture(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings) => _willBeginCapture.OnNext((captureOutput, resolvedSettings)); + /// + public override void WillCapturePhoto(global::AVFoundation.AVCapturePhotoOutput captureOutput, global::AVFoundation.AVCaptureResolvedPhotoSettings resolvedSettings) => _willCapturePhoto.OnNext((captureOutput, resolvedSettings)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVCaptureVideoDataOutputSampleBufferDelegateRx : global::AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> _didDropSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> _didOutputSampleBuffer = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> DidDropSampleBufferObs => _didDropSampleBuffer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection)> DidOutputSampleBufferObs => _didOutputSampleBuffer; + /// + public override void DidDropSampleBuffer(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection) => _didDropSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + /// + public override void DidOutputSampleBuffer(global::AVFoundation.AVCaptureOutput captureOutput, global::CoreMedia.CMSampleBuffer sampleBuffer, global::AVFoundation.AVCaptureConnection connection) => _didOutputSampleBuffer.OnNext((captureOutput, sampleBuffer, connection)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVContentKeySessionDelegateRx : global::AVFoundation.AVContentKeySessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didGenerateExpiredSessionReport = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> _didProvideContentKeyRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest)> _didProvidePersistableContentKeyRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> _didProvideRenewingContentKeyRequest = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> _didSucceed = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::Foundation.NSData persistableContentKey, global::Foundation.NSObject keyIdentifier)> _didUpdate = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVContentKeySession session, global::Foundation.NSData persistableContentKey, global::Foundation.NSObject keyIdentifier)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeObs => _didChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidGenerateExpiredSessionReportObs => _didGenerateExpiredSessionReport; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> DidProvideContentKeyRequestObs => _didProvideContentKeyRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest)> DidProvidePersistableContentKeyRequestObs => _didProvidePersistableContentKeyRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> DidProvideRenewingContentKeyRequestObs => _didProvideRenewingContentKeyRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest)> DidSucceedObs => _didSucceed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVContentKeySession session, global::Foundation.NSData persistableContentKey, global::Foundation.NSObject keyIdentifier)> DidUpdateObs => _didUpdate; + /// + public override void DidChange(global::AVFoundation.AVContentKeySession session) => _didChange.OnNext(session); + /// + public override void DidFail(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest, global::Foundation.NSError err) => _didFail.OnNext((session, keyRequest, err)); + /// + public override void DidGenerateExpiredSessionReport(global::AVFoundation.AVContentKeySession session) => _didGenerateExpiredSessionReport.OnNext(session); + /// + public override void DidProvideContentKeyRequest(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest) => _didProvideContentKeyRequest.OnNext((session, keyRequest)); + /// + public override void DidProvidePersistableContentKeyRequest(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVPersistableContentKeyRequest keyRequest) => _didProvidePersistableContentKeyRequest.OnNext((session, keyRequest)); + /// + public override void DidProvideRenewingContentKeyRequest(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest) => _didProvideRenewingContentKeyRequest.OnNext((session, keyRequest)); + /// + public override void DidSucceed(global::AVFoundation.AVContentKeySession session, global::AVFoundation.AVContentKeyRequest keyRequest) => _didSucceed.OnNext((session, keyRequest)); + /// + public override void DidUpdate(global::AVFoundation.AVContentKeySession session, global::Foundation.NSData persistableContentKey, global::Foundation.NSObject keyIdentifier) => _didUpdate.OnNext((session, persistableContentKey, keyIdentifier)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class AVPlayerItemMetadataCollectorPushDelegateRx : global::AVFoundation.AVPlayerItemMetadataCollectorPushDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups)> _didCollectDateRange = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups)> DidCollectDateRangeObs => _didCollectDateRange; + /// + public override void DidCollectDateRange(global::AVFoundation.AVPlayerItemMetadataCollector metadataCollector, global::AVFoundation.AVDateRangeMetadataGroup[] metadataGroups, global::Foundation.NSIndexSet indexesOfNewGroups, global::Foundation.NSIndexSet indexesOfModifiedGroups) => _didCollectDateRange.OnNext((metadataCollector, metadataGroups, indexesOfNewGroups, indexesOfModifiedGroups)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerItemMetadataOutputPushDelegateRx : global::AVFoundation.AVPlayerItemMetadataOutputPushDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track)> _didOutputTimedMetadataGroups = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _outputSequenceWasFlushed = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track)> DidOutputTimedMetadataGroupsObs => _didOutputTimedMetadataGroups; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputSequenceWasFlushedObs => _outputSequenceWasFlushed; + /// + public override void DidOutputTimedMetadataGroups(global::AVFoundation.AVPlayerItemMetadataOutput output, global::AVFoundation.AVTimedMetadataGroup[] groups, global::AVFoundation.AVPlayerItemTrack track) => _didOutputTimedMetadataGroups.OnNext((output, groups, track)); + /// + public override void OutputSequenceWasFlushed(global::AVFoundation.AVPlayerItemOutput output) => _outputSequenceWasFlushed.OnNext(output); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerItemOutputPullDelegateRx : global::AVFoundation.AVPlayerItemOutputPullDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _outputMediaDataWillChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _outputSequenceWasFlushed = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputMediaDataWillChangeObs => _outputMediaDataWillChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputSequenceWasFlushedObs => _outputSequenceWasFlushed; + /// + public override void OutputMediaDataWillChange(global::AVFoundation.AVPlayerItemOutput sender) => _outputMediaDataWillChange.OnNext(sender); + /// + public override void OutputSequenceWasFlushed(global::AVFoundation.AVPlayerItemOutput output) => _outputSequenceWasFlushed.OnNext(output); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerItemOutputPushDelegateRx : global::AVFoundation.AVPlayerItemOutputPushDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _outputSequenceWasFlushed = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OutputSequenceWasFlushedObs => _outputSequenceWasFlushed; + /// + public override void OutputSequenceWasFlushed(global::AVFoundation.AVPlayerItemOutput output) => _outputSequenceWasFlushed.OnNext(output); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVSpeechSynthesizerDelegateRx : global::AVFoundation.AVSpeechSynthesizerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didCancelSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didContinueSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didFinishSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didPauseSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> _didStartSpeechUtterance = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::Foundation.NSRange characterRange, global::AVFoundation.AVSpeechUtterance utterance)> _willSpeakRangeOfSpeechString = new Pharmacist.Common.SingleAwaitSubject<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::Foundation.NSRange characterRange, global::AVFoundation.AVSpeechUtterance utterance)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidCancelSpeechUtteranceObs => _didCancelSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidContinueSpeechUtteranceObs => _didContinueSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidFinishSpeechUtteranceObs => _didFinishSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidPauseSpeechUtteranceObs => _didPauseSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance)> DidStartSpeechUtteranceObs => _didStartSpeechUtterance; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::Foundation.NSRange characterRange, global::AVFoundation.AVSpeechUtterance utterance)> WillSpeakRangeOfSpeechStringObs => _willSpeakRangeOfSpeechString; + /// + public override void DidCancelSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didCancelSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void DidContinueSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didContinueSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void DidFinishSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didFinishSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void DidPauseSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didPauseSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void DidStartSpeechUtterance(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::AVFoundation.AVSpeechUtterance utterance) => _didStartSpeechUtterance.OnNext((synthesizer, utterance)); + /// + public override void WillSpeakRangeOfSpeechString(global::AVFoundation.AVSpeechSynthesizer synthesizer, global::Foundation.NSRange characterRange, global::AVFoundation.AVSpeechUtterance utterance) => _willSpeakRangeOfSpeechString.OnNext((synthesizer, characterRange, utterance)); + } +} + +namespace AVKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPictureInPictureControllerDelegateRx : global::AVKit.AVPictureInPictureControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didStartPictureInPicture = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didStopPictureInPicture = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPictureInPictureController pictureInPictureController, global::Foundation.NSError error)> _failedToStartPictureInPicture = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPictureInPictureController pictureInPictureController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPictureInPictureController pictureInPictureController, global::System.Action completionHandler)> _restoreUserInterfaceForPictureInPicture = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPictureInPictureController pictureInPictureController, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartPictureInPicture = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStopPictureInPicture = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStartPictureInPictureObs => _didStartPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStopPictureInPictureObs => _didStopPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPictureInPictureController pictureInPictureController, global::Foundation.NSError error)> FailedToStartPictureInPictureObs => _failedToStartPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPictureInPictureController pictureInPictureController, global::System.Action completionHandler)> RestoreUserInterfaceForPictureInPictureObs => _restoreUserInterfaceForPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartPictureInPictureObs => _willStartPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStopPictureInPictureObs => _willStopPictureInPicture; + /// + public override void DidStartPictureInPicture(global::AVKit.AVPictureInPictureController pictureInPictureController) => _didStartPictureInPicture.OnNext(pictureInPictureController); + /// + public override void DidStopPictureInPicture(global::AVKit.AVPictureInPictureController pictureInPictureController) => _didStopPictureInPicture.OnNext(pictureInPictureController); + /// + public override void FailedToStartPictureInPicture(global::AVKit.AVPictureInPictureController pictureInPictureController, global::Foundation.NSError error) => _failedToStartPictureInPicture.OnNext((pictureInPictureController, error)); + /// + public override void RestoreUserInterfaceForPictureInPicture(global::AVKit.AVPictureInPictureController pictureInPictureController, global::System.Action completionHandler) => _restoreUserInterfaceForPictureInPicture.OnNext((pictureInPictureController, completionHandler)); + /// + public override void WillStartPictureInPicture(global::AVKit.AVPictureInPictureController pictureInPictureController) => _willStartPictureInPicture.OnNext(pictureInPictureController); + /// + public override void WillStopPictureInPicture(global::AVKit.AVPictureInPictureController pictureInPictureController) => _willStopPictureInPicture.OnNext(pictureInPictureController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVPlayerViewControllerDelegateRx : global::AVKit.AVPlayerViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didStartPictureInPicture = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didStopPictureInPicture = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::Foundation.NSError error)> _failedToStartPictureInPicture = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::System.Action completionHandler)> _restoreUserInterfaceForPictureInPicture = new Pharmacist.Common.SingleAwaitSubject<(global::AVKit.AVPlayerViewController playerViewController, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartPictureInPicture = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStopPictureInPicture = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStartPictureInPictureObs => _didStartPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStopPictureInPictureObs => _didStopPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, global::Foundation.NSError error)> FailedToStartPictureInPictureObs => _failedToStartPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::AVKit.AVPlayerViewController playerViewController, global::System.Action completionHandler)> RestoreUserInterfaceForPictureInPictureObs => _restoreUserInterfaceForPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartPictureInPictureObs => _willStartPictureInPicture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStopPictureInPictureObs => _willStopPictureInPicture; + /// + public override void DidStartPictureInPicture(global::AVKit.AVPlayerViewController playerViewController) => _didStartPictureInPicture.OnNext(playerViewController); + /// + public override void DidStopPictureInPicture(global::AVKit.AVPlayerViewController playerViewController) => _didStopPictureInPicture.OnNext(playerViewController); + /// + public override void FailedToStartPictureInPicture(global::AVKit.AVPlayerViewController playerViewController, global::Foundation.NSError error) => _failedToStartPictureInPicture.OnNext((playerViewController, error)); + /// + public override void RestoreUserInterfaceForPictureInPicture(global::AVKit.AVPlayerViewController playerViewController, global::System.Action completionHandler) => _restoreUserInterfaceForPictureInPicture.OnNext((playerViewController, completionHandler)); + /// + public override void WillStartPictureInPicture(global::AVKit.AVPlayerViewController playerViewController) => _willStartPictureInPicture.OnNext(playerViewController); + /// + public override void WillStopPictureInPicture(global::AVKit.AVPlayerViewController playerViewController) => _willStopPictureInPicture.OnNext(playerViewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class AVRoutePickerViewDelegateRx : global::AVKit.AVRoutePickerViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didEndPresentingRoutes = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willBeginPresentingRoutes = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndPresentingRoutesObs => _didEndPresentingRoutes; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillBeginPresentingRoutesObs => _willBeginPresentingRoutes; + /// + public override void DidEndPresentingRoutes(global::AVKit.AVRoutePickerView routePickerView) => _didEndPresentingRoutes.OnNext(routePickerView); + /// + public override void WillBeginPresentingRoutes(global::AVKit.AVRoutePickerView routePickerView) => _willBeginPresentingRoutes.OnNext(routePickerView); + } +} + +namespace CallKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CXCallDirectoryExtensionContextDelegateRx : global::CallKit.CXCallDirectoryExtensionContextDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXCallDirectoryExtensionContext extensionContext, global::Foundation.NSError error)> _requestFailed = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXCallDirectoryExtensionContext extensionContext, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXCallDirectoryExtensionContext extensionContext, global::Foundation.NSError error)> RequestFailedObs => _requestFailed; + /// + public override void RequestFailed(global::CallKit.CXCallDirectoryExtensionContext extensionContext, global::Foundation.NSError error) => _requestFailed.OnNext((extensionContext, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CXCallObserverDelegateRx : global::CallKit.CXCallObserverDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXCallObserver callObserver, global::CallKit.CXCall call)> _callChanged = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXCallObserver callObserver, global::CallKit.CXCall call)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXCallObserver callObserver, global::CallKit.CXCall call)> CallChangedObs => _callChanged; + /// + public override void CallChanged(global::CallKit.CXCallObserver callObserver, global::CallKit.CXCall call) => _callChanged.OnNext((callObserver, call)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CXProviderDelegateRx : global::CallKit.CXProviderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::AVFoundation.AVAudioSession audioSession)> _didActivateAudioSession = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::AVFoundation.AVAudioSession audioSession)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didBegin = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::AVFoundation.AVAudioSession audioSession)> _didDeactivateAudioSession = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::AVFoundation.AVAudioSession audioSession)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didReset = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXAnswerCallAction action)> _performAnswerCallAction = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXAnswerCallAction action)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXEndCallAction action)> _performEndCallAction = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXEndCallAction action)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXPlayDtmfCallAction action)> _performPlayDtmfCallAction = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXPlayDtmfCallAction action)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXSetGroupCallAction action)> _performSetGroupCallAction = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXSetGroupCallAction action)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXSetHeldCallAction action)> _performSetHeldCallAction = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXSetHeldCallAction action)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXSetMutedCallAction action)> _performSetMutedCallAction = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXSetMutedCallAction action)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXStartCallAction action)> _performStartCallAction = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXStartCallAction action)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXAction action)> _timedOutPerformingAction = new Pharmacist.Common.SingleAwaitSubject<(global::CallKit.CXProvider provider, global::CallKit.CXAction action)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::AVFoundation.AVAudioSession audioSession)> DidActivateAudioSessionObs => _didActivateAudioSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginObs => _didBegin; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::AVFoundation.AVAudioSession audioSession)> DidDeactivateAudioSessionObs => _didDeactivateAudioSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidResetObs => _didReset; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::CallKit.CXAnswerCallAction action)> PerformAnswerCallActionObs => _performAnswerCallAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::CallKit.CXEndCallAction action)> PerformEndCallActionObs => _performEndCallAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::CallKit.CXPlayDtmfCallAction action)> PerformPlayDtmfCallActionObs => _performPlayDtmfCallAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::CallKit.CXSetGroupCallAction action)> PerformSetGroupCallActionObs => _performSetGroupCallAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::CallKit.CXSetHeldCallAction action)> PerformSetHeldCallActionObs => _performSetHeldCallAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::CallKit.CXSetMutedCallAction action)> PerformSetMutedCallActionObs => _performSetMutedCallAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::CallKit.CXStartCallAction action)> PerformStartCallActionObs => _performStartCallAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CallKit.CXProvider provider, global::CallKit.CXAction action)> TimedOutPerformingActionObs => _timedOutPerformingAction; + /// + public override void DidActivateAudioSession(global::CallKit.CXProvider provider, global::AVFoundation.AVAudioSession audioSession) => _didActivateAudioSession.OnNext((provider, audioSession)); + /// + public override void DidBegin(global::CallKit.CXProvider provider) => _didBegin.OnNext(provider); + /// + public override void DidDeactivateAudioSession(global::CallKit.CXProvider provider, global::AVFoundation.AVAudioSession audioSession) => _didDeactivateAudioSession.OnNext((provider, audioSession)); + /// + public override void DidReset(global::CallKit.CXProvider provider) => _didReset.OnNext(provider); + /// + public override void PerformAnswerCallAction(global::CallKit.CXProvider provider, global::CallKit.CXAnswerCallAction action) => _performAnswerCallAction.OnNext((provider, action)); + /// + public override void PerformEndCallAction(global::CallKit.CXProvider provider, global::CallKit.CXEndCallAction action) => _performEndCallAction.OnNext((provider, action)); + /// + public override void PerformPlayDtmfCallAction(global::CallKit.CXProvider provider, global::CallKit.CXPlayDtmfCallAction action) => _performPlayDtmfCallAction.OnNext((provider, action)); + /// + public override void PerformSetGroupCallAction(global::CallKit.CXProvider provider, global::CallKit.CXSetGroupCallAction action) => _performSetGroupCallAction.OnNext((provider, action)); + /// + public override void PerformSetHeldCallAction(global::CallKit.CXProvider provider, global::CallKit.CXSetHeldCallAction action) => _performSetHeldCallAction.OnNext((provider, action)); + /// + public override void PerformSetMutedCallAction(global::CallKit.CXProvider provider, global::CallKit.CXSetMutedCallAction action) => _performSetMutedCallAction.OnNext((provider, action)); + /// + public override void PerformStartCallAction(global::CallKit.CXProvider provider, global::CallKit.CXStartCallAction action) => _performStartCallAction.OnNext((provider, action)); + /// + public override void TimedOutPerformingAction(global::CallKit.CXProvider provider, global::CallKit.CXAction action) => _timedOutPerformingAction.OnNext((provider, action)); + } +} + +namespace CarPlay +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CPApplicationDelegateRx : global::CarPlay.CPApplicationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _applicationSignificantTimeChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect oldStatusBarFrame)> _changedStatusBarFrame = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect oldStatusBarFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation oldStatusBarOrientation)> _didChangeStatusBarOrientation = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation oldStatusBarOrientation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CarPlay.CPInterfaceController interfaceController, global::CarPlay.CPWindow window)> _didConnectCarInterfaceController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CarPlay.CPInterfaceController interfaceController, global::CarPlay.CPWindow window)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> _didDecodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CarPlay.CPInterfaceController interfaceController, global::CarPlay.CPWindow window)> _didDisconnectCarInterfaceController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CarPlay.CPInterfaceController interfaceController, global::CarPlay.CPWindow window)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEnterBackground = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error)> _didFailToContinueUserActivitiy = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler)> _didReceiveRemoteNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIUserNotificationSettings notificationSettings)> _didRegisterUserNotificationSettings = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIUserNotificationSettings notificationSettings)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CarPlay.CPManeuver maneuver)> _didSelectManeuver = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CarPlay.CPManeuver maneuver)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CarPlay.CPNavigationAlert navigationAlert)> _didSelectNavigationAlert = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CarPlay.CPNavigationAlert navigationAlert)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSError error)> _failedToRegisterForRemoteNotifications = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishedLaunching = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string actionIdentifier, global::UIKit.UILocalNotification localNotification, global::Foundation.NSDictionary responseInfo, global::System.Action completionHandler)> _handleAction = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string actionIdentifier, global::UIKit.UILocalNotification localNotification, global::Foundation.NSDictionary responseInfo, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler)> _handleEventsForBackgroundUrl = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Intents.INIntent intent, global::System.Action completionHandler)> _handleIntent = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Intents.INIntent intent, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply)> _handleWatchKitExtensionRequest = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _onActivated = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _onResignActivation = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIApplicationShortcutItem shortcutItem, global::UIKit.UIOperationHandler completionHandler)> _performActionForShortcutItem = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIApplicationShortcutItem shortcutItem, global::UIKit.UIOperationHandler completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::System.Action completionHandler)> _performFetch = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _protectedDataDidBecomeAvailable = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _protectedDataWillBecomeUnavailable = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UILocalNotification notification)> _receivedLocalNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UILocalNotification notification)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo)> _receivedRemoteNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _receiveMemoryWarning = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken)> _registeredForRemoteNotifications = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _shouldRequestHealthAuthorization = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity)> _userActivityUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata)> _userDidAcceptCloudKitShare = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect newStatusBarFrame)> _willChangeStatusBarFrame = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect newStatusBarFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation newStatusBarOrientation, double duration)> _willChangeStatusBarOrientation = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation newStatusBarOrientation, double duration)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> _willEncodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willEnterForeground = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willTerminate = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ApplicationSignificantTimeChangeObs => _applicationSignificantTimeChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect oldStatusBarFrame)> ChangedStatusBarFrameObs => _changedStatusBarFrame; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation oldStatusBarOrientation)> DidChangeStatusBarOrientationObs => _didChangeStatusBarOrientation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CarPlay.CPInterfaceController interfaceController, global::CarPlay.CPWindow window)> DidConnectCarInterfaceControllerObs => _didConnectCarInterfaceController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> DidDecodeRestorableStateObs => _didDecodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CarPlay.CPInterfaceController interfaceController, global::CarPlay.CPWindow window)> DidDisconnectCarInterfaceControllerObs => _didDisconnectCarInterfaceController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEnterBackgroundObs => _didEnterBackground; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error)> DidFailToContinueUserActivitiyObs => _didFailToContinueUserActivitiy; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler)> DidReceiveRemoteNotificationObs => _didReceiveRemoteNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UIUserNotificationSettings notificationSettings)> DidRegisterUserNotificationSettingsObs => _didRegisterUserNotificationSettings; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CarPlay.CPManeuver maneuver)> DidSelectManeuverObs => _didSelectManeuver; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CarPlay.CPNavigationAlert navigationAlert)> DidSelectNavigationAlertObs => _didSelectNavigationAlert; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSError error)> FailedToRegisterForRemoteNotificationsObs => _failedToRegisterForRemoteNotifications; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedLaunchingObs => _finishedLaunching; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, string actionIdentifier, global::UIKit.UILocalNotification localNotification, global::Foundation.NSDictionary responseInfo, global::System.Action completionHandler)> HandleActionObs => _handleAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler)> HandleEventsForBackgroundUrlObs => _handleEventsForBackgroundUrl; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Intents.INIntent intent, global::System.Action completionHandler)> HandleIntentObs => _handleIntent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply)> HandleWatchKitExtensionRequestObs => _handleWatchKitExtensionRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnActivatedObs => _onActivated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnResignActivationObs => _onResignActivation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UIApplicationShortcutItem shortcutItem, global::UIKit.UIOperationHandler completionHandler)> PerformActionForShortcutItemObs => _performActionForShortcutItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::System.Action completionHandler)> PerformFetchObs => _performFetch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ProtectedDataDidBecomeAvailableObs => _protectedDataDidBecomeAvailable; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ProtectedDataWillBecomeUnavailableObs => _protectedDataWillBecomeUnavailable; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UILocalNotification notification)> ReceivedLocalNotificationObs => _receivedLocalNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo)> ReceivedRemoteNotificationObs => _receivedRemoteNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ReceiveMemoryWarningObs => _receiveMemoryWarning; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken)> RegisteredForRemoteNotificationsObs => _registeredForRemoteNotifications; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ShouldRequestHealthAuthorizationObs => _shouldRequestHealthAuthorization; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity)> UserActivityUpdatedObs => _userActivityUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata)> UserDidAcceptCloudKitShareObs => _userDidAcceptCloudKitShare; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect newStatusBarFrame)> WillChangeStatusBarFrameObs => _willChangeStatusBarFrame; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation newStatusBarOrientation, double duration)> WillChangeStatusBarOrientationObs => _willChangeStatusBarOrientation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> WillEncodeRestorableStateObs => _willEncodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillEnterForegroundObs => _willEnterForeground; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillTerminateObs => _willTerminate; + /// + public override void ApplicationSignificantTimeChange(global::UIKit.UIApplication application) => _applicationSignificantTimeChange.OnNext(application); + /// + public override void ChangedStatusBarFrame(global::UIKit.UIApplication application, global::CoreGraphics.CGRect oldStatusBarFrame) => _changedStatusBarFrame.OnNext((application, oldStatusBarFrame)); + /// + public override void DidChangeStatusBarOrientation(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation oldStatusBarOrientation) => _didChangeStatusBarOrientation.OnNext((application, oldStatusBarOrientation)); + /// + public override void DidConnectCarInterfaceController(global::UIKit.UIApplication application, global::CarPlay.CPInterfaceController interfaceController, global::CarPlay.CPWindow window) => _didConnectCarInterfaceController.OnNext((application, interfaceController, window)); + /// + public override void DidDecodeRestorableState(global::UIKit.UIApplication application, global::Foundation.NSCoder coder) => _didDecodeRestorableState.OnNext((application, coder)); + /// + public override void DidDisconnectCarInterfaceController(global::UIKit.UIApplication application, global::CarPlay.CPInterfaceController interfaceController, global::CarPlay.CPWindow window) => _didDisconnectCarInterfaceController.OnNext((application, interfaceController, window)); + /// + public override void DidEnterBackground(global::UIKit.UIApplication application) => _didEnterBackground.OnNext(application); + /// + public override void DidFailToContinueUserActivitiy(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error) => _didFailToContinueUserActivitiy.OnNext((application, userActivityType, error)); + /// + public override void DidReceiveRemoteNotification(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler) => _didReceiveRemoteNotification.OnNext((application, userInfo, completionHandler)); + /// + public override void DidRegisterUserNotificationSettings(global::UIKit.UIApplication application, global::UIKit.UIUserNotificationSettings notificationSettings) => _didRegisterUserNotificationSettings.OnNext((application, notificationSettings)); + /// + public override void DidSelectManeuver(global::UIKit.UIApplication application, global::CarPlay.CPManeuver maneuver) => _didSelectManeuver.OnNext((application, maneuver)); + /// + public override void DidSelectNavigationAlert(global::UIKit.UIApplication application, global::CarPlay.CPNavigationAlert navigationAlert) => _didSelectNavigationAlert.OnNext((application, navigationAlert)); + /// + public override void FailedToRegisterForRemoteNotifications(global::UIKit.UIApplication application, global::Foundation.NSError error) => _failedToRegisterForRemoteNotifications.OnNext((application, error)); + /// + public override void FinishedLaunching(global::UIKit.UIApplication application) => _finishedLaunching.OnNext(application); + /// + public override void HandleAction(global::UIKit.UIApplication application, string actionIdentifier, global::UIKit.UILocalNotification localNotification, global::Foundation.NSDictionary responseInfo, global::System.Action completionHandler) => _handleAction.OnNext((application, actionIdentifier, localNotification, responseInfo, completionHandler)); + /// + public override void HandleEventsForBackgroundUrl(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler) => _handleEventsForBackgroundUrl.OnNext((application, sessionIdentifier, completionHandler)); + /// + public override void HandleIntent(global::UIKit.UIApplication application, global::Intents.INIntent intent, global::System.Action completionHandler) => _handleIntent.OnNext((application, intent, completionHandler)); + /// + public override void HandleWatchKitExtensionRequest(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply) => _handleWatchKitExtensionRequest.OnNext((application, userInfo, reply)); + /// + public override void OnActivated(global::UIKit.UIApplication application) => _onActivated.OnNext(application); + /// + public override void OnResignActivation(global::UIKit.UIApplication application) => _onResignActivation.OnNext(application); + /// + public override void PerformActionForShortcutItem(global::UIKit.UIApplication application, global::UIKit.UIApplicationShortcutItem shortcutItem, global::UIKit.UIOperationHandler completionHandler) => _performActionForShortcutItem.OnNext((application, shortcutItem, completionHandler)); + /// + public override void PerformFetch(global::UIKit.UIApplication application, global::System.Action completionHandler) => _performFetch.OnNext((application, completionHandler)); + /// + public override void ProtectedDataDidBecomeAvailable(global::UIKit.UIApplication application) => _protectedDataDidBecomeAvailable.OnNext(application); + /// + public override void ProtectedDataWillBecomeUnavailable(global::UIKit.UIApplication application) => _protectedDataWillBecomeUnavailable.OnNext(application); + /// + public override void ReceivedLocalNotification(global::UIKit.UIApplication application, global::UIKit.UILocalNotification notification) => _receivedLocalNotification.OnNext((application, notification)); + /// + public override void ReceivedRemoteNotification(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo) => _receivedRemoteNotification.OnNext((application, userInfo)); + /// + public override void ReceiveMemoryWarning(global::UIKit.UIApplication application) => _receiveMemoryWarning.OnNext(application); + /// + public override void RegisteredForRemoteNotifications(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken) => _registeredForRemoteNotifications.OnNext((application, deviceToken)); + /// + public override void ShouldRequestHealthAuthorization(global::UIKit.UIApplication application) => _shouldRequestHealthAuthorization.OnNext(application); + /// + public override void UserActivityUpdated(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity) => _userActivityUpdated.OnNext((application, userActivity)); + /// + public override void UserDidAcceptCloudKitShare(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata) => _userDidAcceptCloudKitShare.OnNext((application, cloudKitShareMetadata)); + /// + public override void WillChangeStatusBarFrame(global::UIKit.UIApplication application, global::CoreGraphics.CGRect newStatusBarFrame) => _willChangeStatusBarFrame.OnNext((application, newStatusBarFrame)); + /// + public override void WillChangeStatusBarOrientation(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation newStatusBarOrientation, double duration) => _willChangeStatusBarOrientation.OnNext((application, newStatusBarOrientation, duration)); + /// + public override void WillEncodeRestorableState(global::UIKit.UIApplication application, global::Foundation.NSCoder coder) => _willEncodeRestorableState.OnNext((application, coder)); + /// + public override void WillEnterForeground(global::UIKit.UIApplication application) => _willEnterForeground.OnNext(application); + /// + public override void WillTerminate(global::UIKit.UIApplication application) => _willTerminate.OnNext(application); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class CPInterfaceControllerDelegateRx : global::CarPlay.CPInterfaceControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPTemplate aTemplate, bool animated)> _templateDidAppear = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPTemplate aTemplate, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPTemplate aTemplate, bool animated)> _templateDidDisappear = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPTemplate aTemplate, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPTemplate aTemplate, bool animated)> _templateWillAppear = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPTemplate aTemplate, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPTemplate aTemplate, bool animated)> _templateWillDisappear = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPTemplate aTemplate, bool animated)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPTemplate aTemplate, bool animated)> TemplateDidAppearObs => _templateDidAppear; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPTemplate aTemplate, bool animated)> TemplateDidDisappearObs => _templateDidDisappear; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPTemplate aTemplate, bool animated)> TemplateWillAppearObs => _templateWillAppear; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPTemplate aTemplate, bool animated)> TemplateWillDisappearObs => _templateWillDisappear; + /// + public override void TemplateDidAppear(global::CarPlay.CPTemplate aTemplate, bool animated) => _templateDidAppear.OnNext((aTemplate, animated)); + /// + public override void TemplateDidDisappear(global::CarPlay.CPTemplate aTemplate, bool animated) => _templateDidDisappear.OnNext((aTemplate, animated)); + /// + public override void TemplateWillAppear(global::CarPlay.CPTemplate aTemplate, bool animated) => _templateWillAppear.OnNext((aTemplate, animated)); + /// + public override void TemplateWillDisappear(global::CarPlay.CPTemplate aTemplate, bool animated) => _templateWillDisappear.OnNext((aTemplate, animated)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CPListTemplateDelegateRx : global::CarPlay.CPListTemplateDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPListTemplate listTemplate, global::CarPlay.CPListItem item, global::System.Action completionHandler)> _didSelectListItem = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPListTemplate listTemplate, global::CarPlay.CPListItem item, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPListTemplate listTemplate, global::CarPlay.CPListItem item, global::System.Action completionHandler)> DidSelectListItemObs => _didSelectListItem; + /// + public override void DidSelectListItem(global::CarPlay.CPListTemplate listTemplate, global::CarPlay.CPListItem item, global::System.Action completionHandler) => _didSelectListItem.OnNext((listTemplate, item, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class CPMapTemplateDelegateRx : global::CarPlay.CPMapTemplateDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBeginPanGesture = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didCancelNavigation = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert, global::CarPlay.CPNavigationAlertDismissalContext dismissalContext)> _didDismissNavigationAlert = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert, global::CarPlay.CPNavigationAlertDismissalContext dismissalContext)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissPanningInterface = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CoreGraphics.CGPoint velocity)> _didEndPanGesture = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CoreGraphics.CGPoint velocity)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert)> _didShowNavigationAlert = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didShowPanningInterface = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CoreGraphics.CGPoint translation, global::CoreGraphics.CGPoint velocity)> _didUpdatePanGesture = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CoreGraphics.CGPoint translation, global::CoreGraphics.CGPoint velocity)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction)> _pan = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction)> _panBegan = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction)> _panEnded = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPTrip trip, global::CarPlay.CPRouteChoice routeChoice)> _selectedPreview = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPTrip trip, global::CarPlay.CPRouteChoice routeChoice)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPTrip trip, global::CarPlay.CPRouteChoice routeChoice)> _startedTrip = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPTrip trip, global::CarPlay.CPRouteChoice routeChoice)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert, global::CarPlay.CPNavigationAlertDismissalContext dismissalContext)> _willDismissNavigationAlert = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert, global::CarPlay.CPNavigationAlertDismissalContext dismissalContext)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDismissPanningInterface = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert)> _willShowNavigationAlert = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginPanGestureObs => _didBeginPanGesture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCancelNavigationObs => _didCancelNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert, global::CarPlay.CPNavigationAlertDismissalContext dismissalContext)> DidDismissNavigationAlertObs => _didDismissNavigationAlert; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissPanningInterfaceObs => _didDismissPanningInterface; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CoreGraphics.CGPoint velocity)> DidEndPanGestureObs => _didEndPanGesture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert)> DidShowNavigationAlertObs => _didShowNavigationAlert; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidShowPanningInterfaceObs => _didShowPanningInterface; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CoreGraphics.CGPoint translation, global::CoreGraphics.CGPoint velocity)> DidUpdatePanGestureObs => _didUpdatePanGesture; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction)> PanObs => _pan; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction)> PanBeganObs => _panBegan; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction)> PanEndedObs => _panEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPTrip trip, global::CarPlay.CPRouteChoice routeChoice)> SelectedPreviewObs => _selectedPreview; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPTrip trip, global::CarPlay.CPRouteChoice routeChoice)> StartedTripObs => _startedTrip; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert, global::CarPlay.CPNavigationAlertDismissalContext dismissalContext)> WillDismissNavigationAlertObs => _willDismissNavigationAlert; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDismissPanningInterfaceObs => _willDismissPanningInterface; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert)> WillShowNavigationAlertObs => _willShowNavigationAlert; + /// + public override void DidBeginPanGesture(global::CarPlay.CPMapTemplate mapTemplate) => _didBeginPanGesture.OnNext(mapTemplate); + /// + public override void DidCancelNavigation(global::CarPlay.CPMapTemplate mapTemplate) => _didCancelNavigation.OnNext(mapTemplate); + /// + public override void DidDismissNavigationAlert(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert, global::CarPlay.CPNavigationAlertDismissalContext dismissalContext) => _didDismissNavigationAlert.OnNext((mapTemplate, navigationAlert, dismissalContext)); + /// + public override void DidDismissPanningInterface(global::CarPlay.CPMapTemplate mapTemplate) => _didDismissPanningInterface.OnNext(mapTemplate); + /// + public override void DidEndPanGesture(global::CarPlay.CPMapTemplate mapTemplate, global::CoreGraphics.CGPoint velocity) => _didEndPanGesture.OnNext((mapTemplate, velocity)); + /// + public override void DidShowNavigationAlert(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert) => _didShowNavigationAlert.OnNext((mapTemplate, navigationAlert)); + /// + public override void DidShowPanningInterface(global::CarPlay.CPMapTemplate mapTemplate) => _didShowPanningInterface.OnNext(mapTemplate); + /// + public override void DidUpdatePanGesture(global::CarPlay.CPMapTemplate mapTemplate, global::CoreGraphics.CGPoint translation, global::CoreGraphics.CGPoint velocity) => _didUpdatePanGesture.OnNext((mapTemplate, translation, velocity)); + /// + public override void Pan(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction) => _pan.OnNext((mapTemplate, direction)); + /// + public override void PanBegan(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction) => _panBegan.OnNext((mapTemplate, direction)); + /// + public override void PanEnded(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPPanDirection direction) => _panEnded.OnNext((mapTemplate, direction)); + /// + public override void SelectedPreview(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPTrip trip, global::CarPlay.CPRouteChoice routeChoice) => _selectedPreview.OnNext((mapTemplate, trip, routeChoice)); + /// + public override void StartedTrip(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPTrip trip, global::CarPlay.CPRouteChoice routeChoice) => _startedTrip.OnNext((mapTemplate, trip, routeChoice)); + /// + public override void WillDismissNavigationAlert(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert, global::CarPlay.CPNavigationAlertDismissalContext dismissalContext) => _willDismissNavigationAlert.OnNext((mapTemplate, navigationAlert, dismissalContext)); + /// + public override void WillDismissPanningInterface(global::CarPlay.CPMapTemplate mapTemplate) => _willDismissPanningInterface.OnNext(mapTemplate); + /// + public override void WillShowNavigationAlert(global::CarPlay.CPMapTemplate mapTemplate, global::CarPlay.CPNavigationAlert navigationAlert) => _willShowNavigationAlert.OnNext((mapTemplate, navigationAlert)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CPSearchTemplateDelegateRx : global::CarPlay.CPSearchTemplateDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _searchButtonPressed = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPSearchTemplate searchTemplate, global::CarPlay.CPListItem item, global::System.Action completionHandler)> _selectedResult = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPSearchTemplate searchTemplate, global::CarPlay.CPListItem item, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPSearchTemplate searchTemplate, string searchText, global::CarPlay.CPSearchTemplateDelegateUpdateHandler completionHandler)> _updatedSearchText = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPSearchTemplate searchTemplate, string searchText, global::CarPlay.CPSearchTemplateDelegateUpdateHandler completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchButtonPressedObs => _searchButtonPressed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPSearchTemplate searchTemplate, global::CarPlay.CPListItem item, global::System.Action completionHandler)> SelectedResultObs => _selectedResult; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPSearchTemplate searchTemplate, string searchText, global::CarPlay.CPSearchTemplateDelegateUpdateHandler completionHandler)> UpdatedSearchTextObs => _updatedSearchText; + /// + public override void SearchButtonPressed(global::CarPlay.CPSearchTemplate searchTemplate) => _searchButtonPressed.OnNext(searchTemplate); + /// + public override void SelectedResult(global::CarPlay.CPSearchTemplate searchTemplate, global::CarPlay.CPListItem item, global::System.Action completionHandler) => _selectedResult.OnNext((searchTemplate, item, completionHandler)); + /// + public override void UpdatedSearchText(global::CarPlay.CPSearchTemplate searchTemplate, string searchText, global::CarPlay.CPSearchTemplateDelegateUpdateHandler completionHandler) => _updatedSearchText.OnNext((searchTemplate, searchText, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CPSessionConfigurationDelegateRx : global::CarPlay.CPSessionConfigurationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPSessionConfiguration sessionConfiguration, global::CarPlay.CPLimitableUserInterface limitedUserInterfaces)> _limitedUserInterfacesChanged = new Pharmacist.Common.SingleAwaitSubject<(global::CarPlay.CPSessionConfiguration sessionConfiguration, global::CarPlay.CPLimitableUserInterface limitedUserInterfaces)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CarPlay.CPSessionConfiguration sessionConfiguration, global::CarPlay.CPLimitableUserInterface limitedUserInterfaces)> LimitedUserInterfacesChangedObs => _limitedUserInterfacesChanged; + /// + public override void LimitedUserInterfacesChanged(global::CarPlay.CPSessionConfiguration sessionConfiguration, global::CarPlay.CPLimitableUserInterface limitedUserInterfaces) => _limitedUserInterfacesChanged.OnNext((sessionConfiguration, limitedUserInterfaces)); + } +} + +namespace ContactsUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class CNContactPickerDelegateRx : global::ContactsUI.CNContactPickerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _contactPickerDidCancel = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContact contact)> _didSelectContact = new Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContact contact)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContactProperty[] contactProperties)> _didSelectContactProperties = new Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContactProperty[] contactProperties)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContactProperty contactProperty)> _didSelectContactProperty = new Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContactProperty contactProperty)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContact[] contacts)> _didSelectContacts = new Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContact[] contacts)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ContactPickerDidCancelObs => _contactPickerDidCancel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContact contact)> DidSelectContactObs => _didSelectContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContactProperty[] contactProperties)> DidSelectContactPropertiesObs => _didSelectContactProperties; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContactProperty contactProperty)> DidSelectContactPropertyObs => _didSelectContactProperty; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContact[] contacts)> DidSelectContactsObs => _didSelectContacts; + /// + public override void ContactPickerDidCancel(global::ContactsUI.CNContactPickerViewController picker) => _contactPickerDidCancel.OnNext(picker); + /// + public override void DidSelectContact(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContact contact) => _didSelectContact.OnNext((picker, contact)); + /// + public override void DidSelectContactProperties(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContactProperty[] contactProperties) => _didSelectContactProperties.OnNext((picker, contactProperties)); + /// + public override void DidSelectContactProperty(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContactProperty contactProperty) => _didSelectContactProperty.OnNext((picker, contactProperty)); + /// + public override void DidSelectContacts(global::ContactsUI.CNContactPickerViewController picker, global::Contacts.CNContact[] contacts) => _didSelectContacts.OnNext((picker, contacts)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class CNContactViewControllerDelegateRx : global::ContactsUI.CNContactViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactViewController viewController, global::Contacts.CNContact contact)> _didComplete = new Pharmacist.Common.SingleAwaitSubject<(global::ContactsUI.CNContactViewController viewController, global::Contacts.CNContact contact)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ContactsUI.CNContactViewController viewController, global::Contacts.CNContact contact)> DidCompleteObs => _didComplete; + /// + public override void DidComplete(global::ContactsUI.CNContactViewController viewController, global::Contacts.CNContact contact) => _didComplete.OnNext((viewController, contact)); + } +} + +namespace CoreAnimation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class CAAnimationDelegateRx : global::CoreAnimation.CAAnimationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _animationStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CAAnimation anim, bool finished)> _animationStopped = new Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CAAnimation anim, bool finished)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AnimationStartedObs => _animationStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreAnimation.CAAnimation anim, bool finished)> AnimationStoppedObs => _animationStopped; + /// + public override void AnimationStarted(global::CoreAnimation.CAAnimation anim) => _animationStarted.OnNext(anim); + /// + public override void AnimationStopped(global::CoreAnimation.CAAnimation anim, bool finished) => _animationStopped.OnNext((anim, finished)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class CALayerDelegateRx : global::CoreAnimation.CALayerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _displayLayer = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context)> _drawLayer = new Pharmacist.Common.SingleAwaitSubject<(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _layoutSublayersOfLayer = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDrawLayer = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DisplayLayerObs => _displayLayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context)> DrawLayerObs => _drawLayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LayoutSublayersOfLayerObs => _layoutSublayersOfLayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDrawLayerObs => _willDrawLayer; + /// + public override void DisplayLayer(global::CoreAnimation.CALayer layer) => _displayLayer.OnNext(layer); + /// + public override void DrawLayer(global::CoreAnimation.CALayer layer, global::CoreGraphics.CGContext context) => _drawLayer.OnNext((layer, context)); + /// + public override void LayoutSublayersOfLayer(global::CoreAnimation.CALayer layer) => _layoutSublayersOfLayer.OnNext(layer); + /// + public override void WillDrawLayer(global::CoreAnimation.CALayer layer) => _willDrawLayer.OnNext(layer); + } +} + +namespace CoreBluetooth +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CBCentralManagerDelegateRx : global::CoreBluetooth.CBCentralManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral)> _connectedPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _disconnectedPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI)> _discoveredPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _failedToConnectPeripheral = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)> _retrievedConnectedPeripherals = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)> _retrievedPeripherals = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _updatedState = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict)> _willRestoreState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral)> ConnectedPeripheralObs => _connectedPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> DisconnectedPeripheralObs => _disconnectedPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI)> DiscoveredPeripheralObs => _discoveredPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> FailedToConnectPeripheralObs => _failedToConnectPeripheral; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)> RetrievedConnectedPeripheralsObs => _retrievedConnectedPeripherals; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals)> RetrievedPeripheralsObs => _retrievedPeripherals; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UpdatedStateObs => _updatedState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict)> WillRestoreStateObs => _willRestoreState; + /// + public override void ConnectedPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral) => _connectedPeripheral.OnNext((central, peripheral)); + /// + public override void DisconnectedPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _disconnectedPeripheral.OnNext((central, peripheral, error)); + /// + public override void DiscoveredPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSDictionary advertisementData, global::Foundation.NSNumber RSSI) => _discoveredPeripheral.OnNext((central, peripheral, advertisementData, RSSI)); + /// + public override void FailedToConnectPeripheral(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _failedToConnectPeripheral.OnNext((central, peripheral, error)); + /// + public override void RetrievedConnectedPeripherals(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals) => _retrievedConnectedPeripherals.OnNext((central, peripherals)); + /// + public override void RetrievedPeripherals(global::CoreBluetooth.CBCentralManager central, global::CoreBluetooth.CBPeripheral[] peripherals) => _retrievedPeripherals.OnNext((central, peripherals)); + /// + public override void UpdatedState(global::CoreBluetooth.CBCentralManager central) => _updatedState.OnNext(central); + /// + public override void WillRestoreState(global::CoreBluetooth.CBCentralManager central, global::Foundation.NSDictionary dict) => _willRestoreState.OnNext((central, dict)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class CBPeripheralDelegateRx : global::CoreBluetooth.CBPeripheralDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> _didOpenL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> _discoveredCharacteristic = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _discoveredDescriptor = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> _discoveredIncludedService = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _discoveredService = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _invalidatedService = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _isReadyToSendWriteWithoutResponse = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services)> _modifiedServices = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error)> _rssiRead = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> _rssiUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _updatedCharacterteristicValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _updatedName = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _updatedNotificationState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> _updatedValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> _wroteCharacteristicValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> _wroteDescriptorValue = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> DidOpenL2CapChannelObs => _didOpenL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> DiscoveredCharacteristicObs => _discoveredCharacteristic; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> DiscoveredDescriptorObs => _discoveredDescriptor; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> DiscoveredIncludedServiceObs => _discoveredIncludedService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> DiscoveredServiceObs => _discoveredService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable InvalidatedServiceObs => _invalidatedService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable IsReadyToSendWriteWithoutResponseObs => _isReadyToSendWriteWithoutResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services)> ModifiedServicesObs => _modifiedServices; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error)> RssiReadObs => _rssiRead; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error)> RssiUpdatedObs => _rssiUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> UpdatedCharacterteristicValueObs => _updatedCharacterteristicValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UpdatedNameObs => _updatedName; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> UpdatedNotificationStateObs => _updatedNotificationState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> UpdatedValueObs => _updatedValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error)> WroteCharacteristicValueObs => _wroteCharacteristicValue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error)> WroteDescriptorValueObs => _wroteDescriptorValue; + /// + public override void DidOpenL2CapChannel(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error) => _didOpenL2CapChannel.OnNext((peripheral, channel, error)); + /// + public override void DiscoveredCharacteristic(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error) => _discoveredCharacteristic.OnNext((peripheral, service, error)); + /// + public override void DiscoveredDescriptor(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _discoveredDescriptor.OnNext((peripheral, characteristic, error)); + /// + public override void DiscoveredIncludedService(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error) => _discoveredIncludedService.OnNext((peripheral, service, error)); + /// + public override void DiscoveredService(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _discoveredService.OnNext((peripheral, error)); + /// + public override void InvalidatedService(global::CoreBluetooth.CBPeripheral peripheral) => _invalidatedService.OnNext(peripheral); + /// + public override void IsReadyToSendWriteWithoutResponse(global::CoreBluetooth.CBPeripheral peripheral) => _isReadyToSendWriteWithoutResponse.OnNext(peripheral); + /// + public override void ModifiedServices(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBService[] services) => _modifiedServices.OnNext((peripheral, services)); + /// + public override void RssiRead(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSNumber rssi, global::Foundation.NSError error) => _rssiRead.OnNext((peripheral, rssi, error)); + /// + public override void RssiUpdated(global::CoreBluetooth.CBPeripheral peripheral, global::Foundation.NSError error) => _rssiUpdated.OnNext((peripheral, error)); + /// + public override void UpdatedCharacterteristicValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _updatedCharacterteristicValue.OnNext((peripheral, characteristic, error)); + /// + public override void UpdatedName(global::CoreBluetooth.CBPeripheral peripheral) => _updatedName.OnNext(peripheral); + /// + public override void UpdatedNotificationState(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _updatedNotificationState.OnNext((peripheral, characteristic, error)); + /// + public override void UpdatedValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error) => _updatedValue.OnNext((peripheral, descriptor, error)); + /// + public override void WroteCharacteristicValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBCharacteristic characteristic, global::Foundation.NSError error) => _wroteCharacteristicValue.OnNext((peripheral, characteristic, error)); + /// + public override void WroteDescriptorValue(global::CoreBluetooth.CBPeripheral peripheral, global::CoreBluetooth.CBDescriptor descriptor, global::Foundation.NSError error) => _wroteDescriptorValue.OnNext((peripheral, descriptor, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CBPeripheralManagerDelegateRx : global::CoreBluetooth.CBPeripheralManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error)> _advertisingStarted = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> _characteristicSubscribed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> _characteristicUnsubscribed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> _didOpenL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> _didPublishL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> _didUnpublishL2CapChannel = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request)> _readRequestReceived = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _readyToUpdateSubscribers = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> _serviceAdded = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _stateUpdated = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict)> _willRestoreState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests)> _writeRequestsReceived = new Pharmacist.Common.SingleAwaitSubject<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error)> AdvertisingStartedObs => _advertisingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> CharacteristicSubscribedObs => _characteristicSubscribed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic)> CharacteristicUnsubscribedObs => _characteristicUnsubscribed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error)> DidOpenL2CapChannelObs => _didOpenL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> DidPublishL2CapChannelObs => _didPublishL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error)> DidUnpublishL2CapChannelObs => _didUnpublishL2CapChannel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request)> ReadRequestReceivedObs => _readRequestReceived; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ReadyToUpdateSubscribersObs => _readyToUpdateSubscribers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error)> ServiceAddedObs => _serviceAdded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable StateUpdatedObs => _stateUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict)> WillRestoreStateObs => _willRestoreState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests)> WriteRequestsReceivedObs => _writeRequestsReceived; + /// + public override void AdvertisingStarted(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSError error) => _advertisingStarted.OnNext((peripheral, error)); + /// + public override void CharacteristicSubscribed(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic) => _characteristicSubscribed.OnNext((peripheral, central, characteristic)); + /// + public override void CharacteristicUnsubscribed(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBCentral central, global::CoreBluetooth.CBCharacteristic characteristic) => _characteristicUnsubscribed.OnNext((peripheral, central, characteristic)); + /// + public override void DidOpenL2CapChannel(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBL2CapChannel channel, global::Foundation.NSError error) => _didOpenL2CapChannel.OnNext((peripheral, channel, error)); + /// + public override void DidPublishL2CapChannel(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error) => _didPublishL2CapChannel.OnNext((peripheral, psm, error)); + /// + public override void DidUnpublishL2CapChannel(global::CoreBluetooth.CBPeripheralManager peripheral, ushort psm, global::Foundation.NSError error) => _didUnpublishL2CapChannel.OnNext((peripheral, psm, error)); + /// + public override void ReadRequestReceived(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest request) => _readRequestReceived.OnNext((peripheral, request)); + /// + public override void ReadyToUpdateSubscribers(global::CoreBluetooth.CBPeripheralManager peripheral) => _readyToUpdateSubscribers.OnNext(peripheral); + /// + public override void ServiceAdded(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBService service, global::Foundation.NSError error) => _serviceAdded.OnNext((peripheral, service, error)); + /// + public override void StateUpdated(global::CoreBluetooth.CBPeripheralManager peripheral) => _stateUpdated.OnNext(peripheral); + /// + public override void WillRestoreState(global::CoreBluetooth.CBPeripheralManager peripheral, global::Foundation.NSDictionary dict) => _willRestoreState.OnNext((peripheral, dict)); + /// + public override void WriteRequestsReceived(global::CoreBluetooth.CBPeripheralManager peripheral, global::CoreBluetooth.CBATTRequest[] requests) => _writeRequestsReceived.OnNext((peripheral, requests)); + } +} + +namespace CoreData +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSCoreDataCoreSpotlightDelegateRx : global::CoreData.NSCoreDataCoreSpotlightDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)> _reindexAllSearchableItems = new Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)> _reindexSearchableItems = new Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)> ReindexAllSearchableItemsObs => _reindexAllSearchableItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)> ReindexSearchableItemsObs => _reindexSearchableItems; + /// + public override void ReindexAllSearchableItems(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler) => _reindexAllSearchableItems.OnNext((searchableIndex, acknowledgementHandler)); + /// + public override void ReindexSearchableItems(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler) => _reindexSearchableItems.OnNext((searchableIndex, identifiers, acknowledgementHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSFetchedResultsControllerDelegateRx : global::CoreData.NSFetchedResultsControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeContent = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreData.NSFetchedResultsController controller, global::Foundation.NSObject anObject, global::Foundation.NSIndexPath indexPath, global::CoreData.NSFetchedResultsChangeType type, global::Foundation.NSIndexPath newIndexPath)> _didChangeObject = new Pharmacist.Common.SingleAwaitSubject<(global::CoreData.NSFetchedResultsController controller, global::Foundation.NSObject anObject, global::Foundation.NSIndexPath indexPath, global::CoreData.NSFetchedResultsChangeType type, global::Foundation.NSIndexPath newIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreData.NSFetchedResultsController controller, global::CoreData.INSFetchedResultsSectionInfo sectionInfo, global::System.nuint sectionIndex, global::CoreData.NSFetchedResultsChangeType type)> _didChangeSection = new Pharmacist.Common.SingleAwaitSubject<(global::CoreData.NSFetchedResultsController controller, global::CoreData.INSFetchedResultsSectionInfo sectionInfo, global::System.nuint sectionIndex, global::CoreData.NSFetchedResultsChangeType type)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willChangeContent = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeContentObs => _didChangeContent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreData.NSFetchedResultsController controller, global::Foundation.NSObject anObject, global::Foundation.NSIndexPath indexPath, global::CoreData.NSFetchedResultsChangeType type, global::Foundation.NSIndexPath newIndexPath)> DidChangeObjectObs => _didChangeObject; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreData.NSFetchedResultsController controller, global::CoreData.INSFetchedResultsSectionInfo sectionInfo, global::System.nuint sectionIndex, global::CoreData.NSFetchedResultsChangeType type)> DidChangeSectionObs => _didChangeSection; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillChangeContentObs => _willChangeContent; + /// + public override void DidChangeContent(global::CoreData.NSFetchedResultsController controller) => _didChangeContent.OnNext(controller); + /// + public override void DidChangeObject(global::CoreData.NSFetchedResultsController controller, global::Foundation.NSObject anObject, global::Foundation.NSIndexPath indexPath, global::CoreData.NSFetchedResultsChangeType type, global::Foundation.NSIndexPath newIndexPath) => _didChangeObject.OnNext((controller, anObject, indexPath, type, newIndexPath)); + /// + public override void DidChangeSection(global::CoreData.NSFetchedResultsController controller, global::CoreData.INSFetchedResultsSectionInfo sectionInfo, global::System.nuint sectionIndex, global::CoreData.NSFetchedResultsChangeType type) => _didChangeSection.OnNext((controller, sectionInfo, sectionIndex, type)); + /// + public override void WillChangeContent(global::CoreData.NSFetchedResultsController controller) => _willChangeContent.OnNext(controller); + } +} + +namespace CoreLocation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class CLLocationManagerDelegateRx : global::CoreLocation.CLLocationManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status)> _authorizationChanged = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> _deferredUpdatesFinished = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegionState state, global::CoreLocation.CLRegion region)> _didDetermineState = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegionState state, global::CoreLocation.CLRegion region)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLBeacon[] beacons, global::CoreLocation.CLBeaconRegion region)> _didRangeBeacons = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLBeacon[] beacons, global::CoreLocation.CLBeaconRegion region)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> _didStartMonitoringForRegion = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLVisit visit)> _didVisit = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLVisit visit)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> _failed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations)> _locationsUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _locationUpdatesPaused = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _locationUpdatesResumed = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region, global::Foundation.NSError error)> _monitoringFailed = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLBeaconRegion region, global::Foundation.NSError error)> _rangingBeaconsDidFailForRegion = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLBeaconRegion region, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> _regionEntered = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> _regionLeft = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLHeading newHeading)> _updatedHeading = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLHeading newHeading)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation newLocation, global::CoreLocation.CLLocation oldLocation)> _updatedLocation = new Pharmacist.Common.SingleAwaitSubject<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation newLocation, global::CoreLocation.CLLocation oldLocation)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status)> AuthorizationChangedObs => _authorizationChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> DeferredUpdatesFinishedObs => _deferredUpdatesFinished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegionState state, global::CoreLocation.CLRegion region)> DidDetermineStateObs => _didDetermineState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLBeacon[] beacons, global::CoreLocation.CLBeaconRegion region)> DidRangeBeaconsObs => _didRangeBeacons; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> DidStartMonitoringForRegionObs => _didStartMonitoringForRegion; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLVisit visit)> DidVisitObs => _didVisit; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error)> FailedObs => _failed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations)> LocationsUpdatedObs => _locationsUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocationUpdatesPausedObs => _locationUpdatesPaused; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocationUpdatesResumedObs => _locationUpdatesResumed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region, global::Foundation.NSError error)> MonitoringFailedObs => _monitoringFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLBeaconRegion region, global::Foundation.NSError error)> RangingBeaconsDidFailForRegionObs => _rangingBeaconsDidFailForRegion; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> RegionEnteredObs => _regionEntered; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region)> RegionLeftObs => _regionLeft; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLHeading newHeading)> UpdatedHeadingObs => _updatedHeading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation newLocation, global::CoreLocation.CLLocation oldLocation)> UpdatedLocationObs => _updatedLocation; + /// + public override void AuthorizationChanged(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLAuthorizationStatus status) => _authorizationChanged.OnNext((manager, status)); + /// + public override void DeferredUpdatesFinished(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error) => _deferredUpdatesFinished.OnNext((manager, error)); + /// + public override void DidDetermineState(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegionState state, global::CoreLocation.CLRegion region) => _didDetermineState.OnNext((manager, state, region)); + /// + public override void DidRangeBeacons(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLBeacon[] beacons, global::CoreLocation.CLBeaconRegion region) => _didRangeBeacons.OnNext((manager, beacons, region)); + /// + public override void DidStartMonitoringForRegion(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region) => _didStartMonitoringForRegion.OnNext((manager, region)); + /// + public override void DidVisit(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLVisit visit) => _didVisit.OnNext((manager, visit)); + /// + public override void Failed(global::CoreLocation.CLLocationManager manager, global::Foundation.NSError error) => _failed.OnNext((manager, error)); + /// + public override void LocationsUpdated(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation[] locations) => _locationsUpdated.OnNext((manager, locations)); + /// + public override void LocationUpdatesPaused(global::CoreLocation.CLLocationManager manager) => _locationUpdatesPaused.OnNext(manager); + /// + public override void LocationUpdatesResumed(global::CoreLocation.CLLocationManager manager) => _locationUpdatesResumed.OnNext(manager); + /// + public override void MonitoringFailed(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region, global::Foundation.NSError error) => _monitoringFailed.OnNext((manager, region, error)); + /// + public override void RangingBeaconsDidFailForRegion(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLBeaconRegion region, global::Foundation.NSError error) => _rangingBeaconsDidFailForRegion.OnNext((manager, region, error)); + /// + public override void RegionEntered(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region) => _regionEntered.OnNext((manager, region)); + /// + public override void RegionLeft(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLRegion region) => _regionLeft.OnNext((manager, region)); + /// + public override void UpdatedHeading(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLHeading newHeading) => _updatedHeading.OnNext((manager, newHeading)); + /// + public override void UpdatedLocation(global::CoreLocation.CLLocationManager manager, global::CoreLocation.CLLocation newLocation, global::CoreLocation.CLLocation oldLocation) => _updatedLocation.OnNext((manager, newLocation, oldLocation)); + } +} + +namespace CoreNFC +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NFCNdefReaderSessionDelegateRx : global::CoreNFC.NFCNdefReaderSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreNFC.NFCNdefReaderSession session, global::CoreNFC.NFCNdefMessage[] messages)> _didDetect = new Pharmacist.Common.SingleAwaitSubject<(global::CoreNFC.NFCNdefReaderSession session, global::CoreNFC.NFCNdefMessage[] messages)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreNFC.NFCNdefReaderSession session, global::Foundation.NSError error)> _didInvalidate = new Pharmacist.Common.SingleAwaitSubject<(global::CoreNFC.NFCNdefReaderSession session, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreNFC.NFCNdefReaderSession session, global::CoreNFC.NFCNdefMessage[] messages)> DidDetectObs => _didDetect; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreNFC.NFCNdefReaderSession session, global::Foundation.NSError error)> DidInvalidateObs => _didInvalidate; + /// + public override void DidDetect(global::CoreNFC.NFCNdefReaderSession session, global::CoreNFC.NFCNdefMessage[] messages) => _didDetect.OnNext((session, messages)); + /// + public override void DidInvalidate(global::CoreNFC.NFCNdefReaderSession session, global::Foundation.NSError error) => _didInvalidate.OnNext((session, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NFCReaderSessionDelegateRx : global::CoreNFC.NFCReaderSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeActive = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreNFC.NFCReaderSession session, global::CoreNFC.INFCTag[] tags)> _didDetectTags = new Pharmacist.Common.SingleAwaitSubject<(global::CoreNFC.NFCReaderSession session, global::CoreNFC.INFCTag[] tags)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreNFC.NFCReaderSession session, global::Foundation.NSError error)> _didInvalidate = new Pharmacist.Common.SingleAwaitSubject<(global::CoreNFC.NFCReaderSession session, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeActiveObs => _didBecomeActive; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreNFC.NFCReaderSession session, global::CoreNFC.INFCTag[] tags)> DidDetectTagsObs => _didDetectTags; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreNFC.NFCReaderSession session, global::Foundation.NSError error)> DidInvalidateObs => _didInvalidate; + /// + public override void DidBecomeActive(global::CoreNFC.NFCReaderSession session) => _didBecomeActive.OnNext(session); + /// + public override void DidDetectTags(global::CoreNFC.NFCReaderSession session, global::CoreNFC.INFCTag[] tags) => _didDetectTags.OnNext((session, tags)); + /// + public override void DidInvalidate(global::CoreNFC.NFCReaderSession session, global::Foundation.NSError error) => _didInvalidate.OnNext((session, error)); + } +} + +namespace CoreSpotlight +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class CSSearchableIndexDelegateRx : global::CoreSpotlight.CSSearchableIndexDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishThrottle = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didThrottle = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)> _reindexAllSearchableItems = new Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)> _reindexSearchableItems = new Pharmacist.Common.SingleAwaitSubject<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishThrottleObs => _didFinishThrottle; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidThrottleObs => _didThrottle; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler)> ReindexAllSearchableItemsObs => _reindexAllSearchableItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler)> ReindexSearchableItemsObs => _reindexSearchableItems; + /// + public override void DidFinishThrottle(global::CoreSpotlight.CSSearchableIndex searchableIndex) => _didFinishThrottle.OnNext(searchableIndex); + /// + public override void DidThrottle(global::CoreSpotlight.CSSearchableIndex searchableIndex) => _didThrottle.OnNext(searchableIndex); + /// + public override void ReindexAllSearchableItems(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.Action acknowledgementHandler) => _reindexAllSearchableItems.OnNext((searchableIndex, acknowledgementHandler)); + /// + public override void ReindexSearchableItems(global::CoreSpotlight.CSSearchableIndex searchableIndex, global::System.String[] identifiers, global::System.Action acknowledgementHandler) => _reindexSearchableItems.OnNext((searchableIndex, identifiers, acknowledgementHandler)); + } +} + +namespace EventKitUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class EKCalendarChooserDelegateRx : global::EventKitUI.EKCalendarChooserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _cancelled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionChanged = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CancelledObs => _cancelled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionChangedObs => _selectionChanged; + /// + public override void Cancelled(global::EventKitUI.EKCalendarChooser calendarChooser) => _cancelled.OnNext(calendarChooser); + /// + public override void Finished(global::EventKitUI.EKCalendarChooser calendarChooser) => _finished.OnNext(calendarChooser); + /// + public override void SelectionChanged(global::EventKitUI.EKCalendarChooser calendarChooser) => _selectionChanged.OnNext(calendarChooser); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class EKEventEditViewDelegateRx : global::EventKitUI.EKEventEditViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::EventKitUI.EKEventEditViewController controller, global::EventKitUI.EKEventEditViewAction action)> _completed = new Pharmacist.Common.SingleAwaitSubject<(global::EventKitUI.EKEventEditViewController controller, global::EventKitUI.EKEventEditViewAction action)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::EventKitUI.EKEventEditViewController controller, global::EventKitUI.EKEventEditViewAction action)> CompletedObs => _completed; + /// + public override void Completed(global::EventKitUI.EKEventEditViewController controller, global::EventKitUI.EKEventEditViewAction action) => _completed.OnNext((controller, action)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class EKEventViewDelegateRx : global::EventKitUI.EKEventViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::EventKitUI.EKEventViewController controller, global::EventKitUI.EKEventViewAction action)> _completed = new Pharmacist.Common.SingleAwaitSubject<(global::EventKitUI.EKEventViewController controller, global::EventKitUI.EKEventViewAction action)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::EventKitUI.EKEventViewController controller, global::EventKitUI.EKEventViewAction action)> CompletedObs => _completed; + /// + public override void Completed(global::EventKitUI.EKEventViewController controller, global::EventKitUI.EKEventViewAction action) => _completed.OnNext((controller, action)); + } +} + +namespace ExternalAccessory +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class EAAccessoryDelegateRx : global::ExternalAccessory.EAAccessoryDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _disconnected = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DisconnectedObs => _disconnected; + /// + public override void Disconnected(global::ExternalAccessory.EAAccessory accessory) => _disconnected.OnNext(accessory); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class EAWiFiUnconfiguredAccessoryBrowserDelegateRx : global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::Foundation.NSSet accessories)> _didFindUnconfiguredAccessories = new Pharmacist.Common.SingleAwaitSubject<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::Foundation.NSSet accessories)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::ExternalAccessory.EAWiFiUnconfiguredAccessory accessory, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryConfigurationStatus status)> _didFinishConfiguringAccessory = new Pharmacist.Common.SingleAwaitSubject<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::ExternalAccessory.EAWiFiUnconfiguredAccessory accessory, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryConfigurationStatus status)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::Foundation.NSSet accessories)> _didRemoveUnconfiguredAccessories = new Pharmacist.Common.SingleAwaitSubject<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::Foundation.NSSet accessories)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowserState state)> _didUpdateState = new Pharmacist.Common.SingleAwaitSubject<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowserState state)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::Foundation.NSSet accessories)> DidFindUnconfiguredAccessoriesObs => _didFindUnconfiguredAccessories; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::ExternalAccessory.EAWiFiUnconfiguredAccessory accessory, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryConfigurationStatus status)> DidFinishConfiguringAccessoryObs => _didFinishConfiguringAccessory; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::Foundation.NSSet accessories)> DidRemoveUnconfiguredAccessoriesObs => _didRemoveUnconfiguredAccessories; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowserState state)> DidUpdateStateObs => _didUpdateState; + /// + public override void DidFindUnconfiguredAccessories(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::Foundation.NSSet accessories) => _didFindUnconfiguredAccessories.OnNext((browser, accessories)); + /// + public override void DidFinishConfiguringAccessory(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::ExternalAccessory.EAWiFiUnconfiguredAccessory accessory, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryConfigurationStatus status) => _didFinishConfiguringAccessory.OnNext((browser, accessory, status)); + /// + public override void DidRemoveUnconfiguredAccessories(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::Foundation.NSSet accessories) => _didRemoveUnconfiguredAccessories.OnNext((browser, accessories)); + /// + public override void DidUpdateState(global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowser browser, global::ExternalAccessory.EAWiFiUnconfiguredAccessoryBrowserState state) => _didUpdateState.OnNext((browser, state)); + } +} + +namespace Foundation +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSCacheDelegateRx : global::Foundation.NSCacheDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSCache cache, global::Foundation.NSObject obj)> _willEvictObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSCache cache, global::Foundation.NSObject obj)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSCache cache, global::Foundation.NSObject obj)> WillEvictObjectObs => _willEvictObject; + /// + public override void WillEvictObject(global::Foundation.NSCache cache, global::Foundation.NSObject obj) => _willEvictObject.OnNext((cache, obj)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSKeyedArchiverDelegateRx : global::Foundation.NSKeyedArchiverDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj)> _encodedObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> _replacingObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj)> EncodedObjectObs => _encodedObject; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishingObs => _finishing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> ReplacingObjectObs => _replacingObject; + /// + public override void EncodedObject(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject obj) => _encodedObject.OnNext((archiver, obj)); + /// + public override void Finished(global::Foundation.NSKeyedArchiver archiver) => _finished.OnNext(archiver); + /// + public override void Finishing(global::Foundation.NSKeyedArchiver archiver) => _finishing.OnNext(archiver); + /// + public override void ReplacingObject(global::Foundation.NSKeyedArchiver archiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject) => _replacingObject.OnNext((archiver, oldObject, newObject)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSKeyedUnarchiverDelegateRx : global::Foundation.NSKeyedUnarchiverDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> _replacingObject = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishingObs => _finishing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject)> ReplacingObjectObs => _replacingObject; + /// + public override void Finished(global::Foundation.NSKeyedUnarchiver unarchiver) => _finished.OnNext(unarchiver); + /// + public override void Finishing(global::Foundation.NSKeyedUnarchiver unarchiver) => _finishing.OnNext(unarchiver); + /// + public override void ReplacingObject(global::Foundation.NSKeyedUnarchiver unarchiver, global::Foundation.NSObject oldObject, global::Foundation.NSObject newObject) => _replacingObject.OnNext((unarchiver, oldObject, newObject)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSMachPortDelegateRx : global::Foundation.NSMachPortDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _machMessageReceived = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MachMessageReceivedObs => _machMessageReceived; + /// + public override void MachMessageReceived(global::System.IntPtr msgHeader) => _machMessageReceived.OnNext(msgHeader); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSNetServiceBrowserDelegateRx : global::Foundation.NSNetServiceBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> _domainRemoved = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> _foundDomain = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> _foundService = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors)> _notSearched = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchStopped = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> _serviceRemoved = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> DomainRemovedObs => _domainRemoved; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing)> FoundDomainObs => _foundDomain; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> FoundServiceObs => _foundService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors)> NotSearchedObs => _notSearched; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchStartedObs => _searchStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchStoppedObs => _searchStopped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing)> ServiceRemovedObs => _serviceRemoved; + /// + public override void DomainRemoved(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing) => _domainRemoved.OnNext((sender, domain, moreComing)); + /// + public override void FoundDomain(global::Foundation.NSNetServiceBrowser sender, string domain, bool moreComing) => _foundDomain.OnNext((sender, domain, moreComing)); + /// + public override void FoundService(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing) => _foundService.OnNext((sender, service, moreComing)); + /// + public override void NotSearched(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSDictionary errors) => _notSearched.OnNext((sender, errors)); + /// + public override void SearchStarted(global::Foundation.NSNetServiceBrowser sender) => _searchStarted.OnNext(sender); + /// + public override void SearchStopped(global::Foundation.NSNetServiceBrowser sender) => _searchStopped.OnNext(sender); + /// + public override void ServiceRemoved(global::Foundation.NSNetServiceBrowser sender, global::Foundation.NSNetService service, bool moreComing) => _serviceRemoved.OnNext((sender, service, moreComing)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSNetServiceDelegateRx : global::Foundation.NSNetServiceDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _addressResolved = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> _didAcceptConnection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _published = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> _publishFailure = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> _resolveFailure = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _stopped = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSData data)> _updatedTxtRecordData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSNetService sender, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPublish = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willResolve = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AddressResolvedObs => _addressResolved; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> DidAcceptConnectionObs => _didAcceptConnection; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PublishedObs => _published; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> PublishFailureObs => _publishFailure; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors)> ResolveFailureObs => _resolveFailure; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable StoppedObs => _stopped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSNetService sender, global::Foundation.NSData data)> UpdatedTxtRecordDataObs => _updatedTxtRecordData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPublishObs => _willPublish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillResolveObs => _willResolve; + /// + public override void AddressResolved(global::Foundation.NSNetService sender) => _addressResolved.OnNext(sender); + /// + public override void DidAcceptConnection(global::Foundation.NSNetService sender, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream) => _didAcceptConnection.OnNext((sender, inputStream, outputStream)); + /// + public override void Published(global::Foundation.NSNetService sender) => _published.OnNext(sender); + /// + public override void PublishFailure(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors) => _publishFailure.OnNext((sender, errors)); + /// + public override void ResolveFailure(global::Foundation.NSNetService sender, global::Foundation.NSDictionary errors) => _resolveFailure.OnNext((sender, errors)); + /// + public override void Stopped(global::Foundation.NSNetService sender) => _stopped.OnNext(sender); + /// + public override void UpdatedTxtRecordData(global::Foundation.NSNetService sender, global::Foundation.NSData data) => _updatedTxtRecordData.OnNext((sender, data)); + /// + public override void WillPublish(global::Foundation.NSNetService sender) => _willPublish.OnNext(sender); + /// + public override void WillResolve(global::Foundation.NSNetService sender) => _willResolve.OnNext(sender); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSPortDelegateRx : global::Foundation.NSPortDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _messageReceived = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MessageReceivedObs => _messageReceived; + /// + public override void MessageReceived(global::Foundation.NSPortMessage message) => _messageReceived.OnNext(message); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSStreamDelegateRx : global::Foundation.NSStreamDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent)> _handleEvent = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent)> HandleEventObs => _handleEvent; + /// + public override void HandleEvent(global::Foundation.NSStream theStream, global::Foundation.NSStreamEvent streamEvent) => _handleEvent.OnNext((theStream, streamEvent)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlConnectionDataDelegateRx : global::Foundation.NSUrlConnectionDataDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finishedLoading = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data)> _receivedData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response)> _receivedResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite)> _sentBodyData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedLoadingObs => _finishedLoading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data)> ReceivedDataObs => _receivedData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response)> ReceivedResponseObs => _receivedResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite)> SentBodyDataObs => _sentBodyData; + /// + public override void FinishedLoading(global::Foundation.NSUrlConnection connection) => _finishedLoading.OnNext(connection); + /// + public override void ReceivedData(global::Foundation.NSUrlConnection connection, global::Foundation.NSData data) => _receivedData.OnNext((connection, data)); + /// + public override void ReceivedResponse(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlResponse response) => _receivedResponse.OnNext((connection, response)); + /// + public override void SentBodyData(global::Foundation.NSUrlConnection connection, global::System.nint bytesWritten, global::System.nint totalBytesWritten, global::System.nint totalBytesExpectedToWrite) => _sentBodyData.OnNext((connection, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlConnectionDelegateRx : global::Foundation.NSUrlConnectionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> _canceledAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> _receivedAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> _willSendRequestForAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> CanceledAuthenticationChallengeObs => _canceledAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> ReceivedAuthenticationChallengeObs => _receivedAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge)> WillSendRequestForAuthenticationChallengeObs => _willSendRequestForAuthenticationChallenge; + /// + public override void CanceledAuthenticationChallenge(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge) => _canceledAuthenticationChallenge.OnNext((connection, challenge)); + /// + public override void FailedWithError(global::Foundation.NSUrlConnection connection, global::Foundation.NSError error) => _failedWithError.OnNext((connection, error)); + /// + public override void ReceivedAuthenticationChallenge(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge) => _receivedAuthenticationChallenge.OnNext((connection, challenge)); + /// + public override void WillSendRequestForAuthenticationChallenge(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrlAuthenticationChallenge challenge) => _willSendRequestForAuthenticationChallenge.OnNext((connection, challenge)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSUrlConnectionDownloadDelegateRx : global::Foundation.NSUrlConnectionDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl)> _finishedDownloading = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes)> _resumedDownloading = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes)> _wroteData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl)> FinishedDownloadingObs => _finishedDownloading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes)> ResumedDownloadingObs => _resumedDownloading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes)> WroteDataObs => _wroteData; + /// + public override void FinishedDownloading(global::Foundation.NSUrlConnection connection, global::Foundation.NSUrl destinationUrl) => _finishedDownloading.OnNext((connection, destinationUrl)); + /// + public override void ResumedDownloading(global::Foundation.NSUrlConnection connection, long totalBytesWritten, long expectedTotalBytes) => _resumedDownloading.OnNext((connection, totalBytesWritten, expectedTotalBytes)); + /// + public override void WroteData(global::Foundation.NSUrlConnection connection, long bytesWritten, long totalBytesWritten, long expectedTotalBytes) => _wroteData.OnNext((connection, bytesWritten, totalBytesWritten, expectedTotalBytes)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionDataDelegateRx : global::Foundation.NSUrlSessionDataDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask)> _didBecomeDownloadTask = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask)> _didBecomeStreamTask = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data)> _didReceiveData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler)> _didReceiveResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler)> _willCacheResponse = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask)> DidBecomeDownloadTaskObs => _didBecomeDownloadTask; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask)> DidBecomeStreamTaskObs => _didBecomeStreamTask; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data)> DidReceiveDataObs => _didReceiveData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler)> DidReceiveResponseObs => _didReceiveResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler)> WillCacheResponseObs => _willCacheResponse; + /// + public override void DidBecomeDownloadTask(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionDownloadTask downloadTask) => _didBecomeDownloadTask.OnNext((session, dataTask, downloadTask)); + /// + public override void DidBecomeStreamTask(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlSessionStreamTask streamTask) => _didBecomeStreamTask.OnNext((session, dataTask, streamTask)); + /// + public override void DidReceiveData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSData data) => _didReceiveData.OnNext((session, dataTask, data)); + /// + public override void DidReceiveResponse(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSUrlResponse response, global::System.Action completionHandler) => _didReceiveResponse.OnNext((session, dataTask, response, completionHandler)); + /// + public override void WillCacheResponse(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDataTask dataTask, global::Foundation.NSCachedUrlResponse proposedResponse, global::System.Action completionHandler) => _willCacheResponse.OnNext((session, dataTask, proposedResponse, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionDelegateRx : global::Foundation.NSUrlSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSError error)> _didBecomeInvalid = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishEventsForBackgroundSession = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSError error)> DidBecomeInvalidObs => _didBecomeInvalid; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishEventsForBackgroundSessionObs => _didFinishEventsForBackgroundSession; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveChallengeObs => _didReceiveChallenge; + /// + public override void DidBecomeInvalid(global::Foundation.NSUrlSession session, global::Foundation.NSError error) => _didBecomeInvalid.OnNext((session, error)); + /// + public override void DidFinishEventsForBackgroundSession(global::Foundation.NSUrlSession session) => _didFinishEventsForBackgroundSession.OnNext(session); + /// + public override void DidReceiveChallenge(global::Foundation.NSUrlSession session, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveChallenge.OnNext((session, challenge, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class NSUrlSessionDownloadDelegateRx : global::Foundation.NSUrlSessionDownloadDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location)> _didFinishDownloading = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes)> _didResume = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite)> _didWriteData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location)> DidFinishDownloadingObs => _didFinishDownloading; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes)> DidResumeObs => _didResume; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite)> DidWriteDataObs => _didWriteData; + /// + public override void DidFinishDownloading(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, global::Foundation.NSUrl location) => _didFinishDownloading.OnNext((session, downloadTask, location)); + /// + public override void DidResume(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long resumeFileOffset, long expectedTotalBytes) => _didResume.OnNext((session, downloadTask, resumeFileOffset, expectedTotalBytes)); + /// + public override void DidWriteData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionDownloadTask downloadTask, long bytesWritten, long totalBytesWritten, long totalBytesExpectedToWrite) => _didWriteData.OnNext((session, downloadTask, bytesWritten, totalBytesWritten, totalBytesExpectedToWrite)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionStreamDelegateRx : global::Foundation.NSUrlSessionStreamDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> _betterRouteDiscovered = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> _completedTaskCaptureStreams = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> _readClosed = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> _writeClosed = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> BetterRouteDiscoveredObs => _betterRouteDiscovered; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> CompletedTaskCaptureStreamsObs => _completedTaskCaptureStreams; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> ReadClosedObs => _readClosed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask)> WriteClosedObs => _writeClosed; + /// + public override void BetterRouteDiscovered(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask) => _betterRouteDiscovered.OnNext((session, streamTask)); + /// + public override void CompletedTaskCaptureStreams(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream) => _completedTaskCaptureStreams.OnNext((session, streamTask, inputStream, outputStream)); + /// + public override void ReadClosed(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask) => _readClosed.OnNext((session, streamTask)); + /// + public override void WriteClosed(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionStreamTask streamTask) => _writeClosed.OnNext((session, streamTask)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUrlSessionTaskDelegateRx : global::Foundation.NSUrlSessionTaskDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> _didCompleteWithError = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> _didFinishCollectingMetrics = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> _didSendBodyData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> _needNewBodyStream = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)> _taskIsWaitingForConnectivity = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)> _willBeginDelayedRequest = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> _willPerformHttpRedirection = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error)> DidCompleteWithErrorObs => _didCompleteWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics)> DidFinishCollectingMetricsObs => _didFinishCollectingMetrics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveChallengeObs => _didReceiveChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend)> DidSendBodyDataObs => _didSendBodyData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler)> NeedNewBodyStreamObs => _needNewBodyStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task)> TaskIsWaitingForConnectivityObs => _taskIsWaitingForConnectivity; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler)> WillBeginDelayedRequestObs => _willBeginDelayedRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler)> WillPerformHttpRedirectionObs => _willPerformHttpRedirection; + /// + public override void DidCompleteWithError(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSError error) => _didCompleteWithError.OnNext((session, task, error)); + /// + public override void DidFinishCollectingMetrics(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlSessionTaskMetrics metrics) => _didFinishCollectingMetrics.OnNext((session, task, metrics)); + /// + public override void DidReceiveChallenge(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveChallenge.OnNext((session, task, challenge, completionHandler)); + /// + public override void DidSendBodyData(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, long bytesSent, long totalBytesSent, long totalBytesExpectedToSend) => _didSendBodyData.OnNext((session, task, bytesSent, totalBytesSent, totalBytesExpectedToSend)); + /// + public override void NeedNewBodyStream(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::System.Action completionHandler) => _needNewBodyStream.OnNext((session, task, completionHandler)); + /// + public override void TaskIsWaitingForConnectivity(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task) => _taskIsWaitingForConnectivity.OnNext((session, task)); + /// + public override void WillBeginDelayedRequest(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSUrlRequest request, global::System.Action completionHandler) => _willBeginDelayedRequest.OnNext((session, task, request, completionHandler)); + /// + public override void WillPerformHttpRedirection(global::Foundation.NSUrlSession session, global::Foundation.NSUrlSessionTask task, global::Foundation.NSHttpUrlResponse response, global::Foundation.NSUrlRequest newRequest, global::System.Action completionHandler) => _willPerformHttpRedirection.OnNext((session, task, response, newRequest, completionHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSUserActivityDelegateRx : global::Foundation.NSUserActivityDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> _userActivityReceivedData = new Pharmacist.Common.SingleAwaitSubject<(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _userActivityWasContinued = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _userActivityWillSave = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream)> UserActivityReceivedDataObs => _userActivityReceivedData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UserActivityWasContinuedObs => _userActivityWasContinued; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UserActivityWillSaveObs => _userActivityWillSave; + /// + public override void UserActivityReceivedData(global::Foundation.NSUserActivity userActivity, global::Foundation.NSInputStream inputStream, global::Foundation.NSOutputStream outputStream) => _userActivityReceivedData.OnNext((userActivity, inputStream, outputStream)); + /// + public override void UserActivityWasContinued(global::Foundation.NSUserActivity userActivity) => _userActivityWasContinued.OnNext(userActivity); + /// + public override void UserActivityWillSave(global::Foundation.NSUserActivity userActivity) => _userActivityWillSave.OnNext(userActivity); + } +} + +namespace GameKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKAchievementViewControllerDelegateRx : global::GameKit.GKAchievementViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + public override void DidFinish(global::GameKit.GKAchievementViewController viewController) => _didFinish.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKChallengeEventHandlerDelegateRx : global::GameKit.GKChallengeEventHandlerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _localPlayerCompletedChallenge = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _localPlayerReceivedChallenge = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _localPlayerSelectedChallenge = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _remotePlayerCompletedChallenge = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocalPlayerCompletedChallengeObs => _localPlayerCompletedChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocalPlayerReceivedChallengeObs => _localPlayerReceivedChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LocalPlayerSelectedChallengeObs => _localPlayerSelectedChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable RemotePlayerCompletedChallengeObs => _remotePlayerCompletedChallenge; + /// + public override void LocalPlayerCompletedChallenge(global::GameKit.GKChallenge challenge) => _localPlayerCompletedChallenge.OnNext(challenge); + /// + public override void LocalPlayerReceivedChallenge(global::GameKit.GKChallenge challenge) => _localPlayerReceivedChallenge.OnNext(challenge); + /// + public override void LocalPlayerSelectedChallenge(global::GameKit.GKChallenge challenge) => _localPlayerSelectedChallenge.OnNext(challenge); + /// + public override void RemotePlayerCompletedChallenge(global::GameKit.GKChallenge challenge) => _remotePlayerCompletedChallenge.OnNext(challenge); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKFriendRequestComposeViewControllerDelegateRx : global::GameKit.GKFriendRequestComposeViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + public override void DidFinish(global::GameKit.GKFriendRequestComposeViewController viewController) => _didFinish.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKGameCenterControllerDelegateRx : global::GameKit.GKGameCenterControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + public override void Finished(global::GameKit.GKGameCenterViewController controller) => _finished.OnNext(controller); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKLeaderboardViewControllerDelegateRx : global::GameKit.GKLeaderboardViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + public override void DidFinish(global::GameKit.GKLeaderboardViewController viewController) => _didFinish.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKMatchDelegateRx : global::GameKit.GKMatchDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, string playerId)> _dataReceived = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, string playerId)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player)> _dataReceivedForRecipient = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player)> _dataReceivedFromPlayer = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSError error)> _failed = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, string playerId, global::GameKit.GKPlayerConnectionState state)> _stateChanged = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, string playerId, global::GameKit.GKPlayerConnectionState state)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state)> _stateChangedForPlayer = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSData data, string playerId)> DataReceivedObs => _dataReceived; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player)> DataReceivedForRecipientObs => _dataReceivedForRecipient; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player)> DataReceivedFromPlayerObs => _dataReceivedFromPlayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::Foundation.NSError error)> FailedObs => _failed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, string playerId, global::GameKit.GKPlayerConnectionState state)> StateChangedObs => _stateChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state)> StateChangedForPlayerObs => _stateChangedForPlayer; + /// + public override void DataReceived(global::GameKit.GKMatch match, global::Foundation.NSData data, string playerId) => _dataReceived.OnNext((match, data, playerId)); + /// + public override void DataReceivedForRecipient(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer recipient, global::GameKit.GKPlayer player) => _dataReceivedForRecipient.OnNext((match, data, recipient, player)); + /// + public override void DataReceivedFromPlayer(global::GameKit.GKMatch match, global::Foundation.NSData data, global::GameKit.GKPlayer player) => _dataReceivedFromPlayer.OnNext((match, data, player)); + /// + public override void Failed(global::GameKit.GKMatch match, global::Foundation.NSError error) => _failed.OnNext((match, error)); + /// + public override void StateChanged(global::GameKit.GKMatch match, string playerId, global::GameKit.GKPlayerConnectionState state) => _stateChanged.OnNext((match, playerId, state)); + /// + public override void StateChangedForPlayer(global::GameKit.GKMatch match, global::GameKit.GKPlayer player, global::GameKit.GKPlayerConnectionState state) => _stateChangedForPlayer.OnNext((match, player, state)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKMatchmakerViewControllerDelegateRx : global::GameKit.GKMatchmakerViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error)> _didFailWithError = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs)> _didFindHostedPlayers = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match)> _didFindMatch = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::System.String[] playerIDs)> _didFindPlayers = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::System.String[] playerIDs)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID)> _hostedPlayerDidAccept = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, string playerID)> _receivedAcceptFromHostedPlayer = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKMatchmakerViewController viewController, string playerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error)> DidFailWithErrorObs => _didFailWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs)> DidFindHostedPlayersObs => _didFindHostedPlayers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match)> DidFindMatchObs => _didFindMatch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::System.String[] playerIDs)> DidFindPlayersObs => _didFindPlayers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID)> HostedPlayerDidAcceptObs => _hostedPlayerDidAccept; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKMatchmakerViewController viewController, string playerID)> ReceivedAcceptFromHostedPlayerObs => _receivedAcceptFromHostedPlayer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void DidFailWithError(global::GameKit.GKMatchmakerViewController viewController, global::Foundation.NSError error) => _didFailWithError.OnNext((viewController, error)); + /// + public override void DidFindHostedPlayers(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer[] playerIDs) => _didFindHostedPlayers.OnNext((viewController, playerIDs)); + /// + public override void DidFindMatch(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKMatch match) => _didFindMatch.OnNext((viewController, match)); + /// + public override void DidFindPlayers(global::GameKit.GKMatchmakerViewController viewController, global::System.String[] playerIDs) => _didFindPlayers.OnNext((viewController, playerIDs)); + /// + public override void HostedPlayerDidAccept(global::GameKit.GKMatchmakerViewController viewController, global::GameKit.GKPlayer playerID) => _hostedPlayerDidAccept.OnNext((viewController, playerID)); + /// + public override void ReceivedAcceptFromHostedPlayer(global::GameKit.GKMatchmakerViewController viewController, string playerID) => _receivedAcceptFromHostedPlayer.OnNext((viewController, playerID)); + /// + public override void WasCancelled(global::GameKit.GKMatchmakerViewController viewController) => _wasCancelled.OnNext(viewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKPeerPickerControllerDelegateRx : global::GameKit.GKPeerPickerControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKPeerPickerController picker, global::GameKit.GKPeerPickerConnectionType type)> _connectionTypeSelected = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKPeerPickerController picker, global::GameKit.GKPeerPickerConnectionType type)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _controllerCancelled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKPeerPickerController picker, string peerId, global::GameKit.GKSession toSession)> _peerConnected = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKPeerPickerController picker, string peerId, global::GameKit.GKSession toSession)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKPeerPickerController picker, global::GameKit.GKPeerPickerConnectionType type)> ConnectionTypeSelectedObs => _connectionTypeSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ControllerCancelledObs => _controllerCancelled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKPeerPickerController picker, string peerId, global::GameKit.GKSession toSession)> PeerConnectedObs => _peerConnected; + /// + public override void ConnectionTypeSelected(global::GameKit.GKPeerPickerController picker, global::GameKit.GKPeerPickerConnectionType type) => _connectionTypeSelected.OnNext((picker, type)); + /// + public override void ControllerCancelled(global::GameKit.GKPeerPickerController picker) => _controllerCancelled.OnNext(picker); + /// + public override void PeerConnected(global::GameKit.GKPeerPickerController picker, string peerId, global::GameKit.GKSession toSession) => _peerConnected.OnNext((picker, peerId, toSession)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKSessionDelegateRx : global::GameKit.GKSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID, global::GameKit.GKPeerConnectionState state)> _peerChangedState = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID, global::GameKit.GKPeerConnectionState state)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID, global::Foundation.NSError error)> _peerConnectionFailed = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID)> _peerConnectionRequest = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKSession session, string peerID)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKSession session, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKSession session, string peerID, global::GameKit.GKPeerConnectionState state)> PeerChangedStateObs => _peerChangedState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKSession session, string peerID, global::Foundation.NSError error)> PeerConnectionFailedObs => _peerConnectionFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKSession session, string peerID)> PeerConnectionRequestObs => _peerConnectionRequest; + /// + public override void FailedWithError(global::GameKit.GKSession session, global::Foundation.NSError error) => _failedWithError.OnNext((session, error)); + /// + public override void PeerChangedState(global::GameKit.GKSession session, string peerID, global::GameKit.GKPeerConnectionState state) => _peerChangedState.OnNext((session, peerID, state)); + /// + public override void PeerConnectionFailed(global::GameKit.GKSession session, string peerID, global::Foundation.NSError error) => _peerConnectionFailed.OnNext((session, peerID, error)); + /// + public override void PeerConnectionRequest(global::GameKit.GKSession session, string peerID) => _peerConnectionRequest.OnNext((session, peerID)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKTurnBasedEventHandlerDelegateRx : global::GameKit.GKTurnBasedEventHandlerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _handleInviteFromGameCenter = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _handleMatchEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatch match, bool activated)> _handleTurnEvent = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatch match, bool activated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _handleTurnEventForMatch = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable HandleInviteFromGameCenterObs => _handleInviteFromGameCenter; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable HandleMatchEndedObs => _handleMatchEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKTurnBasedMatch match, bool activated)> HandleTurnEventObs => _handleTurnEvent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable HandleTurnEventForMatchObs => _handleTurnEventForMatch; + /// + public override void HandleInviteFromGameCenter(global::Foundation.NSString[] playersToInvite) => _handleInviteFromGameCenter.OnNext(playersToInvite); + /// + public override void HandleMatchEnded(global::GameKit.GKTurnBasedMatch match) => _handleMatchEnded.OnNext(match); + /// + public override void HandleTurnEvent(global::GameKit.GKTurnBasedMatch match, bool activated) => _handleTurnEvent.OnNext((match, activated)); + /// + public override void HandleTurnEventForMatch(global::GameKit.GKTurnBasedMatch match) => _handleTurnEventForMatch.OnNext(match); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GKTurnBasedMatchmakerViewControllerDelegateRx : global::GameKit.GKTurnBasedMatchmakerViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)> _foundMatch = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)> _playerQuitForMatch = new Pharmacist.Common.SingleAwaitSubject<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)> FoundMatchObs => _foundMatch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match)> PlayerQuitForMatchObs => _playerQuitForMatch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void FailedWithError(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::Foundation.NSError error) => _failedWithError.OnNext((viewController, error)); + /// + public override void FoundMatch(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match) => _foundMatch.OnNext((viewController, match)); + /// + public override void PlayerQuitForMatch(global::GameKit.GKTurnBasedMatchmakerViewController viewController, global::GameKit.GKTurnBasedMatch match) => _playerQuitForMatch.OnNext((viewController, match)); + /// + public override void WasCancelled(global::GameKit.GKTurnBasedMatchmakerViewController viewController) => _wasCancelled.OnNext(viewController); + } +} + +namespace GameplayKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class GKAgentDelegateRx : global::GameplayKit.GKAgentDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _agentDidUpdate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _agentWillUpdate = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AgentDidUpdateObs => _agentDidUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AgentWillUpdateObs => _agentWillUpdate; + /// + public override void AgentDidUpdate(global::GameplayKit.GKAgent agent) => _agentDidUpdate.OnNext(agent); + /// + public override void AgentWillUpdate(global::GameplayKit.GKAgent agent) => _agentWillUpdate.OnNext(agent); + } +} + +namespace GLKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GLKViewControllerDelegateRx : global::GLKit.GLKViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _update = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GLKit.GLKViewController controller, bool pause)> _willPause = new Pharmacist.Common.SingleAwaitSubject<(global::GLKit.GLKViewController controller, bool pause)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UpdateObs => _update; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GLKit.GLKViewController controller, bool pause)> WillPauseObs => _willPause; + /// + public override void Update(global::GLKit.GLKViewController controller) => _update.OnNext(controller); + /// + public override void WillPause(global::GLKit.GLKViewController controller, bool pause) => _willPause.OnNext((controller, pause)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class GLKViewDelegateRx : global::GLKit.GLKViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::GLKit.GLKView view, global::CoreGraphics.CGRect rect)> _drawInRect = new Pharmacist.Common.SingleAwaitSubject<(global::GLKit.GLKView view, global::CoreGraphics.CGRect rect)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::GLKit.GLKView view, global::CoreGraphics.CGRect rect)> DrawInRectObs => _drawInRect; + /// + public override void DrawInRect(global::GLKit.GLKView view, global::CoreGraphics.CGRect rect) => _drawInRect.OnNext((view, rect)); + } +} + +namespace HomeKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMAccessoryBrowserDelegateRx : global::HomeKit.HMAccessoryBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessoryBrowser browser, global::HomeKit.HMAccessory accessory)> _didFindNewAccessory = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessoryBrowser browser, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessoryBrowser browser, global::HomeKit.HMAccessory accessory)> _didRemoveNewAccessory = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessoryBrowser browser, global::HomeKit.HMAccessory accessory)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessoryBrowser browser, global::HomeKit.HMAccessory accessory)> DidFindNewAccessoryObs => _didFindNewAccessory; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessoryBrowser browser, global::HomeKit.HMAccessory accessory)> DidRemoveNewAccessoryObs => _didRemoveNewAccessory; + /// + public override void DidFindNewAccessory(global::HomeKit.HMAccessoryBrowser browser, global::HomeKit.HMAccessory accessory) => _didFindNewAccessory.OnNext((browser, accessory)); + /// + public override void DidRemoveNewAccessory(global::HomeKit.HMAccessoryBrowser browser, global::HomeKit.HMAccessory accessory) => _didRemoveNewAccessory.OnNext((browser, accessory)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMAccessoryDelegateRx : global::HomeKit.HMAccessoryDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)> _didAddProfile = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)> _didRemoveProfile = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)> _didUpdateAssociatedServiceType = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, string firmwareVersion)> _didUpdateFirmwareVersion = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, string firmwareVersion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateName = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)> _didUpdateNameForService = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateReachability = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateServices = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service, global::HomeKit.HMCharacteristic characteristic)> _didUpdateValueForCharacteristic = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service, global::HomeKit.HMCharacteristic characteristic)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)> DidAddProfileObs => _didAddProfile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile)> DidRemoveProfileObs => _didRemoveProfile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)> DidUpdateAssociatedServiceTypeObs => _didUpdateAssociatedServiceType; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, string firmwareVersion)> DidUpdateFirmwareVersionObs => _didUpdateFirmwareVersion; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateNameObs => _didUpdateName; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service)> DidUpdateNameForServiceObs => _didUpdateNameForService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateReachabilityObs => _didUpdateReachability; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateServicesObs => _didUpdateServices; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service, global::HomeKit.HMCharacteristic characteristic)> DidUpdateValueForCharacteristicObs => _didUpdateValueForCharacteristic; + /// + public override void DidAddProfile(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile) => _didAddProfile.OnNext((accessory, profile)); + /// + public override void DidRemoveProfile(global::HomeKit.HMAccessory accessory, global::HomeKit.HMAccessoryProfile profile) => _didRemoveProfile.OnNext((accessory, profile)); + /// + public override void DidUpdateAssociatedServiceType(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service) => _didUpdateAssociatedServiceType.OnNext((accessory, service)); + /// + public override void DidUpdateFirmwareVersion(global::HomeKit.HMAccessory accessory, string firmwareVersion) => _didUpdateFirmwareVersion.OnNext((accessory, firmwareVersion)); + /// + public override void DidUpdateName(global::HomeKit.HMAccessory accessory) => _didUpdateName.OnNext(accessory); + /// + public override void DidUpdateNameForService(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service) => _didUpdateNameForService.OnNext((accessory, service)); + /// + public override void DidUpdateReachability(global::HomeKit.HMAccessory accessory) => _didUpdateReachability.OnNext(accessory); + /// + public override void DidUpdateServices(global::HomeKit.HMAccessory accessory) => _didUpdateServices.OnNext(accessory); + /// + public override void DidUpdateValueForCharacteristic(global::HomeKit.HMAccessory accessory, global::HomeKit.HMService service, global::HomeKit.HMCharacteristic characteristic) => _didUpdateValueForCharacteristic.OnNext((accessory, service, characteristic)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMCameraSnapshotControlDelegateRx : global::HomeKit.HMCameraSnapshotControlDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl, global::HomeKit.HMCameraSnapshot snapshot, global::Foundation.NSError error)> _didTakeSnapshot = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl, global::HomeKit.HMCameraSnapshot snapshot, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateMostRecentSnapshot = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl, global::HomeKit.HMCameraSnapshot snapshot, global::Foundation.NSError error)> DidTakeSnapshotObs => _didTakeSnapshot; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateMostRecentSnapshotObs => _didUpdateMostRecentSnapshot; + /// + public override void DidTakeSnapshot(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl, global::HomeKit.HMCameraSnapshot snapshot, global::Foundation.NSError error) => _didTakeSnapshot.OnNext((cameraSnapshotControl, snapshot, error)); + /// + public override void DidUpdateMostRecentSnapshot(global::HomeKit.HMCameraSnapshotControl cameraSnapshotControl) => _didUpdateMostRecentSnapshot.OnNext(cameraSnapshotControl); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMCameraStreamControlDelegateRx : global::HomeKit.HMCameraStreamControlDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didStartStream = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMCameraStreamControl cameraStreamControl, global::Foundation.NSError error)> _didStopStream = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMCameraStreamControl cameraStreamControl, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStartStreamObs => _didStartStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMCameraStreamControl cameraStreamControl, global::Foundation.NSError error)> DidStopStreamObs => _didStopStream; + /// + public override void DidStartStream(global::HomeKit.HMCameraStreamControl cameraStreamControl) => _didStartStream.OnNext(cameraStreamControl); + /// + public override void DidStopStream(global::HomeKit.HMCameraStreamControl cameraStreamControl, global::Foundation.NSError error) => _didStopStream.OnNext((cameraStreamControl, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMHomeDelegateRx : global::HomeKit.HMHomeDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> _didAddAccessory = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> _didAddActionSet = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> _didAddRoom = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)> _didAddRoomToZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)> _didAddService = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> _didAddServiceGroup = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> _didAddTrigger = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)> _didAddUser = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> _didAddZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::Foundation.NSError error, global::HomeKit.HMAccessory accessory)> _didEncounterError = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::Foundation.NSError error, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> _didRemoveAccessory = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> _didRemoveActionSet = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> _didRemoveRoom = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)> _didRemoveRoomFromZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)> _didRemoveService = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> _didRemoveServiceGroup = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> _didRemoveTrigger = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)> _didRemoveUser = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> _didRemoveZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> _didUnblockAccessory = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateAccessControlForCurrentUser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> _didUpdateActionsForActionSet = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMHomeHubState homeHubState)> _didUpdateHomeHubState = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMHomeHubState homeHubState)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> _didUpdateNameForActionSet = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateNameForHome = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> _didUpdateNameForRoom = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> _didUpdateNameForServiceGroup = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> _didUpdateNameForTrigger = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> _didUpdateNameForZone = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMAccessory accessory)> _didUpdateRoom = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMAccessory accessory)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> _didUpdateTrigger = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> DidAddAccessoryObs => _didAddAccessory; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> DidAddActionSetObs => _didAddActionSet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> DidAddRoomObs => _didAddRoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)> DidAddRoomToZoneObs => _didAddRoomToZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)> DidAddServiceObs => _didAddService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> DidAddServiceGroupObs => _didAddServiceGroup; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> DidAddTriggerObs => _didAddTrigger; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)> DidAddUserObs => _didAddUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> DidAddZoneObs => _didAddZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::Foundation.NSError error, global::HomeKit.HMAccessory accessory)> DidEncounterErrorObs => _didEncounterError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> DidRemoveAccessoryObs => _didRemoveAccessory; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> DidRemoveActionSetObs => _didRemoveActionSet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> DidRemoveRoomObs => _didRemoveRoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone)> DidRemoveRoomFromZoneObs => _didRemoveRoomFromZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group)> DidRemoveServiceObs => _didRemoveService; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> DidRemoveServiceGroupObs => _didRemoveServiceGroup; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> DidRemoveTriggerObs => _didRemoveTrigger; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMUser user)> DidRemoveUserObs => _didRemoveUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> DidRemoveZoneObs => _didRemoveZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory)> DidUnblockAccessoryObs => _didUnblockAccessory; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateAccessControlForCurrentUserObs => _didUpdateAccessControlForCurrentUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> DidUpdateActionsForActionSetObs => _didUpdateActionsForActionSet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMHomeHubState homeHubState)> DidUpdateHomeHubStateObs => _didUpdateHomeHubState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet)> DidUpdateNameForActionSetObs => _didUpdateNameForActionSet; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateNameForHomeObs => _didUpdateNameForHome; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room)> DidUpdateNameForRoomObs => _didUpdateNameForRoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group)> DidUpdateNameForServiceGroupObs => _didUpdateNameForServiceGroup; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> DidUpdateNameForTriggerObs => _didUpdateNameForTrigger; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMZone zone)> DidUpdateNameForZoneObs => _didUpdateNameForZone; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMAccessory accessory)> DidUpdateRoomObs => _didUpdateRoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger)> DidUpdateTriggerObs => _didUpdateTrigger; + /// + public override void DidAddAccessory(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory) => _didAddAccessory.OnNext((home, accessory)); + /// + public override void DidAddActionSet(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet) => _didAddActionSet.OnNext((home, actionSet)); + /// + public override void DidAddRoom(global::HomeKit.HMHome home, global::HomeKit.HMRoom room) => _didAddRoom.OnNext((home, room)); + /// + public override void DidAddRoomToZone(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone) => _didAddRoomToZone.OnNext((home, room, zone)); + /// + public override void DidAddService(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group) => _didAddService.OnNext((home, service, group)); + /// + public override void DidAddServiceGroup(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group) => _didAddServiceGroup.OnNext((home, group)); + /// + public override void DidAddTrigger(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger) => _didAddTrigger.OnNext((home, trigger)); + /// + public override void DidAddUser(global::HomeKit.HMHome home, global::HomeKit.HMUser user) => _didAddUser.OnNext((home, user)); + /// + public override void DidAddZone(global::HomeKit.HMHome home, global::HomeKit.HMZone zone) => _didAddZone.OnNext((home, zone)); + /// + public override void DidEncounterError(global::HomeKit.HMHome home, global::Foundation.NSError error, global::HomeKit.HMAccessory accessory) => _didEncounterError.OnNext((home, error, accessory)); + /// + public override void DidRemoveAccessory(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory) => _didRemoveAccessory.OnNext((home, accessory)); + /// + public override void DidRemoveActionSet(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet) => _didRemoveActionSet.OnNext((home, actionSet)); + /// + public override void DidRemoveRoom(global::HomeKit.HMHome home, global::HomeKit.HMRoom room) => _didRemoveRoom.OnNext((home, room)); + /// + public override void DidRemoveRoomFromZone(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMZone zone) => _didRemoveRoomFromZone.OnNext((home, room, zone)); + /// + public override void DidRemoveService(global::HomeKit.HMHome home, global::HomeKit.HMService service, global::HomeKit.HMServiceGroup group) => _didRemoveService.OnNext((home, service, group)); + /// + public override void DidRemoveServiceGroup(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group) => _didRemoveServiceGroup.OnNext((home, group)); + /// + public override void DidRemoveTrigger(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger) => _didRemoveTrigger.OnNext((home, trigger)); + /// + public override void DidRemoveUser(global::HomeKit.HMHome home, global::HomeKit.HMUser user) => _didRemoveUser.OnNext((home, user)); + /// + public override void DidRemoveZone(global::HomeKit.HMHome home, global::HomeKit.HMZone zone) => _didRemoveZone.OnNext((home, zone)); + /// + public override void DidUnblockAccessory(global::HomeKit.HMHome home, global::HomeKit.HMAccessory accessory) => _didUnblockAccessory.OnNext((home, accessory)); + /// + public override void DidUpdateAccessControlForCurrentUser(global::HomeKit.HMHome home) => _didUpdateAccessControlForCurrentUser.OnNext(home); + /// + public override void DidUpdateActionsForActionSet(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet) => _didUpdateActionsForActionSet.OnNext((home, actionSet)); + /// + public override void DidUpdateHomeHubState(global::HomeKit.HMHome home, global::HomeKit.HMHomeHubState homeHubState) => _didUpdateHomeHubState.OnNext((home, homeHubState)); + /// + public override void DidUpdateNameForActionSet(global::HomeKit.HMHome home, global::HomeKit.HMActionSet actionSet) => _didUpdateNameForActionSet.OnNext((home, actionSet)); + /// + public override void DidUpdateNameForHome(global::HomeKit.HMHome home) => _didUpdateNameForHome.OnNext(home); + /// + public override void DidUpdateNameForRoom(global::HomeKit.HMHome home, global::HomeKit.HMRoom room) => _didUpdateNameForRoom.OnNext((home, room)); + /// + public override void DidUpdateNameForServiceGroup(global::HomeKit.HMHome home, global::HomeKit.HMServiceGroup group) => _didUpdateNameForServiceGroup.OnNext((home, group)); + /// + public override void DidUpdateNameForTrigger(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger) => _didUpdateNameForTrigger.OnNext((home, trigger)); + /// + public override void DidUpdateNameForZone(global::HomeKit.HMHome home, global::HomeKit.HMZone zone) => _didUpdateNameForZone.OnNext((home, zone)); + /// + public override void DidUpdateRoom(global::HomeKit.HMHome home, global::HomeKit.HMRoom room, global::HomeKit.HMAccessory accessory) => _didUpdateRoom.OnNext((home, room, accessory)); + /// + public override void DidUpdateTrigger(global::HomeKit.HMHome home, global::HomeKit.HMTrigger trigger) => _didUpdateTrigger.OnNext((home, trigger)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class HMHomeManagerDelegateRx : global::HomeKit.HMHomeManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)> _didAddHome = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)> _didRemoveHome = new Pharmacist.Common.SingleAwaitSubject<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateHomes = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdatePrimaryHome = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)> DidAddHomeObs => _didAddHome; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home)> DidRemoveHomeObs => _didRemoveHome; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateHomesObs => _didUpdateHomes; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdatePrimaryHomeObs => _didUpdatePrimaryHome; + /// + public override void DidAddHome(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home) => _didAddHome.OnNext((manager, home)); + /// + public override void DidRemoveHome(global::HomeKit.HMHomeManager manager, global::HomeKit.HMHome home) => _didRemoveHome.OnNext((manager, home)); + /// + public override void DidUpdateHomes(global::HomeKit.HMHomeManager manager) => _didUpdateHomes.OnNext(manager); + /// + public override void DidUpdatePrimaryHome(global::HomeKit.HMHomeManager manager) => _didUpdatePrimaryHome.OnNext(manager); + } +} + +namespace iAd +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class ADBannerViewDelegateRx : global::iAd.ADBannerViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _actionFinished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _adLoaded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::iAd.ADBannerView banner, global::Foundation.NSError error)> _failedToReceiveAd = new Pharmacist.Common.SingleAwaitSubject<(global::iAd.ADBannerView banner, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willLoad = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ActionFinishedObs => _actionFinished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AdLoadedObs => _adLoaded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::iAd.ADBannerView banner, global::Foundation.NSError error)> FailedToReceiveAdObs => _failedToReceiveAd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillLoadObs => _willLoad; + /// + public override void ActionFinished(global::iAd.ADBannerView banner) => _actionFinished.OnNext(banner); + /// + public override void AdLoaded(global::iAd.ADBannerView banner) => _adLoaded.OnNext(banner); + /// + public override void FailedToReceiveAd(global::iAd.ADBannerView banner, global::Foundation.NSError error) => _failedToReceiveAd.OnNext((banner, error)); + /// + public override void WillLoad(global::iAd.ADBannerView bannerView) => _willLoad.OnNext(bannerView); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class ADInterstitialAdDelegateRx : global::iAd.ADInterstitialAdDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _actionFinished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _adLoaded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _adUnloaded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::iAd.ADInterstitialAd interstitialAd, global::Foundation.NSError error)> _failedToReceiveAd = new Pharmacist.Common.SingleAwaitSubject<(global::iAd.ADInterstitialAd interstitialAd, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willLoad = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ActionFinishedObs => _actionFinished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AdLoadedObs => _adLoaded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable AdUnloadedObs => _adUnloaded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::iAd.ADInterstitialAd interstitialAd, global::Foundation.NSError error)> FailedToReceiveAdObs => _failedToReceiveAd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillLoadObs => _willLoad; + /// + public override void ActionFinished(global::iAd.ADInterstitialAd interstitialAd) => _actionFinished.OnNext(interstitialAd); + /// + public override void AdLoaded(global::iAd.ADInterstitialAd interstitialAd) => _adLoaded.OnNext(interstitialAd); + /// + public override void AdUnloaded(global::iAd.ADInterstitialAd interstitialAd) => _adUnloaded.OnNext(interstitialAd); + /// + public override void FailedToReceiveAd(global::iAd.ADInterstitialAd interstitialAd, global::Foundation.NSError error) => _failedToReceiveAd.OnNext((interstitialAd, error)); + /// + public override void WillLoad(global::iAd.ADInterstitialAd interstitialAd) => _willLoad.OnNext(interstitialAd); + } +} + +namespace IntentsUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class INUIAddVoiceShortcutButtonDelegateRx : global::IntentsUI.INUIAddVoiceShortcutButtonDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIAddVoiceShortcutViewController addVoiceShortcutViewController, global::IntentsUI.INUIAddVoiceShortcutButton addVoiceShortcutButton)> _presentAddVoiceShortcut = new Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIAddVoiceShortcutViewController addVoiceShortcutViewController, global::IntentsUI.INUIAddVoiceShortcutButton addVoiceShortcutButton)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIEditVoiceShortcutViewController editVoiceShortcutViewController, global::IntentsUI.INUIAddVoiceShortcutButton addVoiceShortcutButton)> _presentEditVoiceShortcut = new Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIEditVoiceShortcutViewController editVoiceShortcutViewController, global::IntentsUI.INUIAddVoiceShortcutButton addVoiceShortcutButton)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::IntentsUI.INUIAddVoiceShortcutViewController addVoiceShortcutViewController, global::IntentsUI.INUIAddVoiceShortcutButton addVoiceShortcutButton)> PresentAddVoiceShortcutObs => _presentAddVoiceShortcut; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::IntentsUI.INUIEditVoiceShortcutViewController editVoiceShortcutViewController, global::IntentsUI.INUIAddVoiceShortcutButton addVoiceShortcutButton)> PresentEditVoiceShortcutObs => _presentEditVoiceShortcut; + /// + public override void PresentAddVoiceShortcut(global::IntentsUI.INUIAddVoiceShortcutViewController addVoiceShortcutViewController, global::IntentsUI.INUIAddVoiceShortcutButton addVoiceShortcutButton) => _presentAddVoiceShortcut.OnNext((addVoiceShortcutViewController, addVoiceShortcutButton)); + /// + public override void PresentEditVoiceShortcut(global::IntentsUI.INUIEditVoiceShortcutViewController editVoiceShortcutViewController, global::IntentsUI.INUIAddVoiceShortcutButton addVoiceShortcutButton) => _presentEditVoiceShortcut.OnNext((editVoiceShortcutViewController, addVoiceShortcutButton)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class INUIAddVoiceShortcutViewControllerDelegateRx : global::IntentsUI.INUIAddVoiceShortcutViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didCancel = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIAddVoiceShortcutViewController controller, global::Intents.INVoiceShortcut voiceShortcut, global::Foundation.NSError error)> _didFinish = new Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIAddVoiceShortcutViewController controller, global::Intents.INVoiceShortcut voiceShortcut, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCancelObs => _didCancel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::IntentsUI.INUIAddVoiceShortcutViewController controller, global::Intents.INVoiceShortcut voiceShortcut, global::Foundation.NSError error)> DidFinishObs => _didFinish; + /// + public override void DidCancel(global::IntentsUI.INUIAddVoiceShortcutViewController controller) => _didCancel.OnNext(controller); + /// + public override void DidFinish(global::IntentsUI.INUIAddVoiceShortcutViewController controller, global::Intents.INVoiceShortcut voiceShortcut, global::Foundation.NSError error) => _didFinish.OnNext((controller, voiceShortcut, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class INUIEditVoiceShortcutViewControllerDelegateRx : global::IntentsUI.INUIEditVoiceShortcutViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didCancel = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIEditVoiceShortcutViewController controller, global::Foundation.NSUuid deletedVoiceShortcutIdentifier)> _didDelete = new Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIEditVoiceShortcutViewController controller, global::Foundation.NSUuid deletedVoiceShortcutIdentifier)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIEditVoiceShortcutViewController controller, global::Intents.INVoiceShortcut voiceShortcut, global::Foundation.NSError error)> _didUpdate = new Pharmacist.Common.SingleAwaitSubject<(global::IntentsUI.INUIEditVoiceShortcutViewController controller, global::Intents.INVoiceShortcut voiceShortcut, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCancelObs => _didCancel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::IntentsUI.INUIEditVoiceShortcutViewController controller, global::Foundation.NSUuid deletedVoiceShortcutIdentifier)> DidDeleteObs => _didDelete; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::IntentsUI.INUIEditVoiceShortcutViewController controller, global::Intents.INVoiceShortcut voiceShortcut, global::Foundation.NSError error)> DidUpdateObs => _didUpdate; + /// + public override void DidCancel(global::IntentsUI.INUIEditVoiceShortcutViewController controller) => _didCancel.OnNext(controller); + /// + public override void DidDelete(global::IntentsUI.INUIEditVoiceShortcutViewController controller, global::Foundation.NSUuid deletedVoiceShortcutIdentifier) => _didDelete.OnNext((controller, deletedVoiceShortcutIdentifier)); + /// + public override void DidUpdate(global::IntentsUI.INUIEditVoiceShortcutViewController controller, global::Intents.INVoiceShortcut voiceShortcut, global::Foundation.NSError error) => _didUpdate.OnNext((controller, voiceShortcut, error)); + } +} + +namespace MapKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class MKLocalSearchCompleterDelegateRx : global::MapKit.MKLocalSearchCompleterDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error)> _didFail = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUpdateResults = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error)> DidFailObs => _didFail; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUpdateResultsObs => _didUpdateResults; + /// + public override void DidFail(global::MapKit.MKLocalSearchCompleter completer, global::Foundation.NSError error) => _didFail.OnNext((completer, error)); + /// + public override void DidUpdateResults(global::MapKit.MKLocalSearchCompleter completer) => _didUpdateResults.OnNext(completer); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class MKMapViewDelegateRx : global::MapKit.MKMapViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view, global::UIKit.UIControl control)> _calloutAccessoryControlTapped = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view, global::UIKit.UIControl control)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView annotationView, global::MapKit.MKAnnotationViewDragState newState, global::MapKit.MKAnnotationViewDragState oldState)> _changedDragState = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView annotationView, global::MapKit.MKAnnotationViewDragState newState, global::MapKit.MKAnnotationViewDragState oldState)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views)> _didAddAnnotationViews = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers)> _didAddOverlayRenderers = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayView overlayViews)> _didAddOverlayViews = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayView overlayViews)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserTrackingMode mode, bool animated)> _didChangeUserTrackingMode = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserTrackingMode mode, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeVisibleRegion = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> _didDeselectAnnotationView = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> _didFailToLocateUser = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool fullyRendered)> _didFinishRenderingMap = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool fullyRendered)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> _didSelectAnnotationView = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didStopLocatingUser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation)> _didUpdateUserLocation = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> _loadingMapFailed = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _mapLoaded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)> _regionChanged = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)> _regionWillChange = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKMapView mapView, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartLoadingMap = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartLocatingUser = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartRenderingMap = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view, global::UIKit.UIControl control)> CalloutAccessoryControlTappedObs => _calloutAccessoryControlTapped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView annotationView, global::MapKit.MKAnnotationViewDragState newState, global::MapKit.MKAnnotationViewDragState oldState)> ChangedDragStateObs => _changedDragState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views)> DidAddAnnotationViewsObs => _didAddAnnotationViews; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers)> DidAddOverlayRenderersObs => _didAddOverlayRenderers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayView overlayViews)> DidAddOverlayViewsObs => _didAddOverlayViews; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKUserTrackingMode mode, bool animated)> DidChangeUserTrackingModeObs => _didChangeUserTrackingMode; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeVisibleRegionObs => _didChangeVisibleRegion; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> DidDeselectAnnotationViewObs => _didDeselectAnnotationView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> DidFailToLocateUserObs => _didFailToLocateUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, bool fullyRendered)> DidFinishRenderingMapObs => _didFinishRenderingMap; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view)> DidSelectAnnotationViewObs => _didSelectAnnotationView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStopLocatingUserObs => _didStopLocatingUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation)> DidUpdateUserLocationObs => _didUpdateUserLocation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, global::Foundation.NSError error)> LoadingMapFailedObs => _loadingMapFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MapLoadedObs => _mapLoaded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, bool animated)> RegionChangedObs => _regionChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKMapView mapView, bool animated)> RegionWillChangeObs => _regionWillChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartLoadingMapObs => _willStartLoadingMap; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartLocatingUserObs => _willStartLocatingUser; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartRenderingMapObs => _willStartRenderingMap; + /// + public override void CalloutAccessoryControlTapped(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view, global::UIKit.UIControl control) => _calloutAccessoryControlTapped.OnNext((mapView, view, control)); + /// + public override void ChangedDragState(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView annotationView, global::MapKit.MKAnnotationViewDragState newState, global::MapKit.MKAnnotationViewDragState oldState) => _changedDragState.OnNext((mapView, annotationView, newState, oldState)); + /// + public override void DidAddAnnotationViews(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView[] views) => _didAddAnnotationViews.OnNext((mapView, views)); + /// + public override void DidAddOverlayRenderers(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayRenderer[] renderers) => _didAddOverlayRenderers.OnNext((mapView, renderers)); + /// + public override void DidAddOverlayViews(global::MapKit.MKMapView mapView, global::MapKit.MKOverlayView overlayViews) => _didAddOverlayViews.OnNext((mapView, overlayViews)); + /// + public override void DidChangeUserTrackingMode(global::MapKit.MKMapView mapView, global::MapKit.MKUserTrackingMode mode, bool animated) => _didChangeUserTrackingMode.OnNext((mapView, mode, animated)); + /// + public override void DidChangeVisibleRegion(global::MapKit.MKMapView mapView) => _didChangeVisibleRegion.OnNext(mapView); + /// + public override void DidDeselectAnnotationView(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view) => _didDeselectAnnotationView.OnNext((mapView, view)); + /// + public override void DidFailToLocateUser(global::MapKit.MKMapView mapView, global::Foundation.NSError error) => _didFailToLocateUser.OnNext((mapView, error)); + /// + public override void DidFinishRenderingMap(global::MapKit.MKMapView mapView, bool fullyRendered) => _didFinishRenderingMap.OnNext((mapView, fullyRendered)); + /// + public override void DidSelectAnnotationView(global::MapKit.MKMapView mapView, global::MapKit.MKAnnotationView view) => _didSelectAnnotationView.OnNext((mapView, view)); + /// + public override void DidStopLocatingUser(global::MapKit.MKMapView mapView) => _didStopLocatingUser.OnNext(mapView); + /// + public override void DidUpdateUserLocation(global::MapKit.MKMapView mapView, global::MapKit.MKUserLocation userLocation) => _didUpdateUserLocation.OnNext((mapView, userLocation)); + /// + public override void LoadingMapFailed(global::MapKit.MKMapView mapView, global::Foundation.NSError error) => _loadingMapFailed.OnNext((mapView, error)); + /// + public override void MapLoaded(global::MapKit.MKMapView mapView) => _mapLoaded.OnNext(mapView); + /// + public override void RegionChanged(global::MapKit.MKMapView mapView, bool animated) => _regionChanged.OnNext((mapView, animated)); + /// + public override void RegionWillChange(global::MapKit.MKMapView mapView, bool animated) => _regionWillChange.OnNext((mapView, animated)); + /// + public override void WillStartLoadingMap(global::MapKit.MKMapView mapView) => _willStartLoadingMap.OnNext(mapView); + /// + public override void WillStartLocatingUser(global::MapKit.MKMapView mapView) => _willStartLocatingUser.OnNext(mapView); + /// + public override void WillStartRenderingMap(global::MapKit.MKMapView mapView) => _willStartRenderingMap.OnNext(mapView); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MKReverseGeocoderDelegateRx : global::MapKit.MKReverseGeocoderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKReverseGeocoder geocoder, global::Foundation.NSError error)> _failedWithError = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKReverseGeocoder geocoder, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKReverseGeocoder geocoder, global::MapKit.MKPlacemark placemark)> _foundWithPlacemark = new Pharmacist.Common.SingleAwaitSubject<(global::MapKit.MKReverseGeocoder geocoder, global::MapKit.MKPlacemark placemark)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKReverseGeocoder geocoder, global::Foundation.NSError error)> FailedWithErrorObs => _failedWithError; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MapKit.MKReverseGeocoder geocoder, global::MapKit.MKPlacemark placemark)> FoundWithPlacemarkObs => _foundWithPlacemark; + /// + public override void FailedWithError(global::MapKit.MKReverseGeocoder geocoder, global::Foundation.NSError error) => _failedWithError.OnNext((geocoder, error)); + /// + public override void FoundWithPlacemark(global::MapKit.MKReverseGeocoder geocoder, global::MapKit.MKPlacemark placemark) => _foundWithPlacemark.OnNext((geocoder, placemark)); + } +} + +namespace MediaPlayer +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class MPMediaPickerControllerDelegateRx : global::MediaPlayer.MPMediaPickerControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPMediaPickerController sender, global::MediaPlayer.MPMediaItemCollection mediaItemCollection)> _mediaItemsPicked = new Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPMediaPickerController sender, global::MediaPlayer.MPMediaItemCollection mediaItemCollection)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _mediaPickerDidCancel = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MediaPlayer.MPMediaPickerController sender, global::MediaPlayer.MPMediaItemCollection mediaItemCollection)> MediaItemsPickedObs => _mediaItemsPicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MediaPickerDidCancelObs => _mediaPickerDidCancel; + /// + public override void MediaItemsPicked(global::MediaPlayer.MPMediaPickerController sender, global::MediaPlayer.MPMediaItemCollection mediaItemCollection) => _mediaItemsPicked.OnNext((sender, mediaItemCollection)); + /// + public override void MediaPickerDidCancel(global::MediaPlayer.MPMediaPickerController sender) => _mediaPickerDidCancel.OnNext(sender); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class MPPlayableContentDelegateRx : global::MediaPlayer.MPPlayableContentDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPPlayableContentManager contentManager, global::MediaPlayer.MPPlayableContentManagerContext context)> _contextUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPPlayableContentManager contentManager, global::MediaPlayer.MPPlayableContentManagerContext context)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPPlayableContentManager contentManager, global::MediaPlayer.MPContentItem[] contentItems, global::System.Action completionHandler)> _initializePlaybackQueue = new Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPPlayableContentManager contentManager, global::MediaPlayer.MPContentItem[] contentItems, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPPlayableContentManager contentManager, global::Foundation.NSIndexPath indexPath, global::System.Action completionHandler)> _initiatePlaybackOfContentItem = new Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPPlayableContentManager contentManager, global::Foundation.NSIndexPath indexPath, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPPlayableContentManager contentManager, global::Foundation.NSIndexPath indexPath, global::System.Action completionHandler)> _playableContentManager = new Pharmacist.Common.SingleAwaitSubject<(global::MediaPlayer.MPPlayableContentManager contentManager, global::Foundation.NSIndexPath indexPath, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MediaPlayer.MPPlayableContentManager contentManager, global::MediaPlayer.MPPlayableContentManagerContext context)> ContextUpdatedObs => _contextUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MediaPlayer.MPPlayableContentManager contentManager, global::MediaPlayer.MPContentItem[] contentItems, global::System.Action completionHandler)> InitializePlaybackQueueObs => _initializePlaybackQueue; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MediaPlayer.MPPlayableContentManager contentManager, global::Foundation.NSIndexPath indexPath, global::System.Action completionHandler)> InitiatePlaybackOfContentItemObs => _initiatePlaybackOfContentItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + [global::System.ObsoleteAttribute("Use 'InitiatePlaybackOfContentItem' instead.", false)] + public global::System.IObservable<(global::MediaPlayer.MPPlayableContentManager contentManager, global::Foundation.NSIndexPath indexPath, global::System.Action completionHandler)> PlayableContentManagerObs => _playableContentManager; + /// + public override void ContextUpdated(global::MediaPlayer.MPPlayableContentManager contentManager, global::MediaPlayer.MPPlayableContentManagerContext context) => _contextUpdated.OnNext((contentManager, context)); + /// + public override void InitializePlaybackQueue(global::MediaPlayer.MPPlayableContentManager contentManager, global::MediaPlayer.MPContentItem[] contentItems, global::System.Action completionHandler) => _initializePlaybackQueue.OnNext((contentManager, contentItems, completionHandler)); + /// + public override void InitiatePlaybackOfContentItem(global::MediaPlayer.MPPlayableContentManager contentManager, global::Foundation.NSIndexPath indexPath, global::System.Action completionHandler) => _initiatePlaybackOfContentItem.OnNext((contentManager, indexPath, completionHandler)); + /// + [global::System.ObsoleteAttribute("Use 'InitiatePlaybackOfContentItem' instead.", false)] + public override void PlayableContentManager(global::MediaPlayer.MPPlayableContentManager contentManager, global::Foundation.NSIndexPath indexPath, global::System.Action completionHandler) => _playableContentManager.OnNext((contentManager, indexPath, completionHandler)); + } +} + +namespace MessageUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class MFMailComposeViewControllerDelegateRx : global::MessageUI.MFMailComposeViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MessageUI.MFMailComposeViewController controller, global::MessageUI.MFMailComposeResult result, global::Foundation.NSError error)> _finished = new Pharmacist.Common.SingleAwaitSubject<(global::MessageUI.MFMailComposeViewController controller, global::MessageUI.MFMailComposeResult result, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MessageUI.MFMailComposeViewController controller, global::MessageUI.MFMailComposeResult result, global::Foundation.NSError error)> FinishedObs => _finished; + /// + public override void Finished(global::MessageUI.MFMailComposeViewController controller, global::MessageUI.MFMailComposeResult result, global::Foundation.NSError error) => _finished.OnNext((controller, result, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MFMessageComposeViewControllerDelegateRx : global::MessageUI.MFMessageComposeViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MessageUI.MFMessageComposeViewController controller, global::MessageUI.MessageComposeResult result)> _finished = new Pharmacist.Common.SingleAwaitSubject<(global::MessageUI.MFMessageComposeViewController controller, global::MessageUI.MessageComposeResult result)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MessageUI.MFMessageComposeViewController controller, global::MessageUI.MessageComposeResult result)> FinishedObs => _finished; + /// + public override void Finished(global::MessageUI.MFMessageComposeViewController controller, global::MessageUI.MessageComposeResult result) => _finished.OnNext((controller, result)); + } +} + +namespace MetalKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MTKViewDelegateRx : global::MetalKit.MTKViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _draw = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size)> _drawableSizeWillChange = new Pharmacist.Common.SingleAwaitSubject<(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DrawObs => _draw; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size)> DrawableSizeWillChangeObs => _drawableSizeWillChange; + /// + public override void Draw(global::MetalKit.MTKView view) => _draw.OnNext(view); + /// + public override void DrawableSizeWillChange(global::MetalKit.MTKView view, global::CoreGraphics.CGSize size) => _drawableSizeWillChange.OnNext((view, size)); + } +} + +namespace MultipeerConnectivity +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class MCAdvertiserAssistantDelegateRx : global::MultipeerConnectivity.MCAdvertiserAssistantDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissInvitation = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresentInvitation = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissInvitationObs => _didDismissInvitation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentInvitationObs => _willPresentInvitation; + /// + public override void DidDismissInvitation(global::MultipeerConnectivity.MCAdvertiserAssistant advertiserAssistant) => _didDismissInvitation.OnNext(advertiserAssistant); + /// + public override void WillPresentInvitation(global::MultipeerConnectivity.MCAdvertiserAssistant advertiserAssistant) => _willPresentInvitation.OnNext(advertiserAssistant); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCBrowserViewControllerDelegateRx : global::MultipeerConnectivity.MCBrowserViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void DidFinish(global::MultipeerConnectivity.MCBrowserViewController browserViewController) => _didFinish.OnNext(browserViewController); + /// + public override void WasCancelled(global::MultipeerConnectivity.MCBrowserViewController browserViewController) => _wasCancelled.OnNext(browserViewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCNearbyServiceAdvertiserDelegateRx : global::MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error)> _didNotStartAdvertisingPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler)> _didReceiveInvitationFromPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error)> DidNotStartAdvertisingPeerObs => _didNotStartAdvertisingPeer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler)> DidReceiveInvitationFromPeerObs => _didReceiveInvitationFromPeer; + /// + public override void DidNotStartAdvertisingPeer(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::Foundation.NSError error) => _didNotStartAdvertisingPeer.OnNext((advertiser, error)); + /// + public override void DidReceiveInvitationFromPeer(global::MultipeerConnectivity.MCNearbyServiceAdvertiser advertiser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSData context, global::MultipeerConnectivity.MCNearbyServiceAdvertiserInvitationHandler invitationHandler) => _didReceiveInvitationFromPeer.OnNext((advertiser, peerID, context, invitationHandler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCNearbyServiceBrowserDelegateRx : global::MultipeerConnectivity.MCNearbyServiceBrowserDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error)> _didNotStartBrowsingForPeers = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info)> _foundPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID)> _lostPeer = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error)> DidNotStartBrowsingForPeersObs => _didNotStartBrowsingForPeers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info)> FoundPeerObs => _foundPeer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID)> LostPeerObs => _lostPeer; + /// + public override void DidNotStartBrowsingForPeers(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::Foundation.NSError error) => _didNotStartBrowsingForPeers.OnNext((browser, error)); + /// + public override void FoundPeer(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID, global::Foundation.NSDictionary info) => _foundPeer.OnNext((browser, peerID, info)); + /// + public override void LostPeer(global::MultipeerConnectivity.MCNearbyServiceBrowser browser, global::MultipeerConnectivity.MCPeerID peerID) => _lostPeer.OnNext((browser, peerID)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class MCSessionDelegateRx : global::MultipeerConnectivity.MCSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state)> _didChangeState = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error)> _didFinishReceivingResource = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID)> _didReceiveData = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID)> _didReceiveStream = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress)> _didStartReceivingResource = new Pharmacist.Common.SingleAwaitSubject<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state)> DidChangeStateObs => _didChangeState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error)> DidFinishReceivingResourceObs => _didFinishReceivingResource; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID)> DidReceiveDataObs => _didReceiveData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID)> DidReceiveStreamObs => _didReceiveStream; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress)> DidStartReceivingResourceObs => _didStartReceivingResource; + /// + public override void DidChangeState(global::MultipeerConnectivity.MCSession session, global::MultipeerConnectivity.MCPeerID peerID, global::MultipeerConnectivity.MCSessionState state) => _didChangeState.OnNext((session, peerID, state)); + /// + public override void DidFinishReceivingResource(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSUrl localUrl, global::Foundation.NSError error) => _didFinishReceivingResource.OnNext((session, resourceName, fromPeer, localUrl, error)); + /// + public override void DidReceiveData(global::MultipeerConnectivity.MCSession session, global::Foundation.NSData data, global::MultipeerConnectivity.MCPeerID peerID) => _didReceiveData.OnNext((session, data, peerID)); + /// + public override void DidReceiveStream(global::MultipeerConnectivity.MCSession session, global::Foundation.NSInputStream stream, string streamName, global::MultipeerConnectivity.MCPeerID peerID) => _didReceiveStream.OnNext((session, stream, streamName, peerID)); + /// + public override void DidStartReceivingResource(global::MultipeerConnectivity.MCSession session, string resourceName, global::MultipeerConnectivity.MCPeerID fromPeer, global::Foundation.NSProgress progress) => _didStartReceivingResource.OnNext((session, resourceName, fromPeer, progress)); + } +} + +namespace NetworkExtension +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NWTcpConnectionAuthenticationDelegateRx : global::NetworkExtension.NWTcpConnectionAuthenticationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::NetworkExtension.NWTcpConnection connection, global::Foundation.NSArray peerCertificateChain, global::System.Action completion)> _evaluateTrust = new Pharmacist.Common.SingleAwaitSubject<(global::NetworkExtension.NWTcpConnection connection, global::Foundation.NSArray peerCertificateChain, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::NetworkExtension.NWTcpConnection connection, global::System.Action completion)> _provideIdentity = new Pharmacist.Common.SingleAwaitSubject<(global::NetworkExtension.NWTcpConnection connection, global::System.Action completion)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::NetworkExtension.NWTcpConnection connection, global::Foundation.NSArray peerCertificateChain, global::System.Action completion)> EvaluateTrustObs => _evaluateTrust; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::NetworkExtension.NWTcpConnection connection, global::System.Action completion)> ProvideIdentityObs => _provideIdentity; + /// + public override void EvaluateTrust(global::NetworkExtension.NWTcpConnection connection, global::Foundation.NSArray peerCertificateChain, global::System.Action completion) => _evaluateTrust.OnNext((connection, peerCertificateChain, completion)); + /// + public override void ProvideIdentity(global::NetworkExtension.NWTcpConnection connection, global::System.Action completion) => _provideIdentity.OnNext((connection, completion)); + } +} + +namespace PassKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class PKAddPassesViewControllerDelegateRx : global::PassKit.PKAddPassesViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + public override void Finished(global::PassKit.PKAddPassesViewController controller) => _finished.OnNext(controller); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class PKAddPaymentPassViewControllerDelegateRx : global::PassKit.PKAddPaymentPassViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKAddPaymentPassViewController controller, global::PassKit.PKPaymentPass pass, global::Foundation.NSError error)> _didFinishAddingPaymentPass = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKAddPaymentPassViewController controller, global::PassKit.PKPaymentPass pass, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKAddPaymentPassViewController controller, global::Foundation.NSData[] certificates, global::Foundation.NSData nonce, global::Foundation.NSData nonceSignature, global::System.Action handler)> _generateRequestWithCertificateChain = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKAddPaymentPassViewController controller, global::Foundation.NSData[] certificates, global::Foundation.NSData nonce, global::Foundation.NSData nonceSignature, global::System.Action handler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKAddPaymentPassViewController controller, global::PassKit.PKPaymentPass pass, global::Foundation.NSError error)> DidFinishAddingPaymentPassObs => _didFinishAddingPaymentPass; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKAddPaymentPassViewController controller, global::Foundation.NSData[] certificates, global::Foundation.NSData nonce, global::Foundation.NSData nonceSignature, global::System.Action handler)> GenerateRequestWithCertificateChainObs => _generateRequestWithCertificateChain; + /// + public override void DidFinishAddingPaymentPass(global::PassKit.PKAddPaymentPassViewController controller, global::PassKit.PKPaymentPass pass, global::Foundation.NSError error) => _didFinishAddingPaymentPass.OnNext((controller, pass, error)); + /// + public override void GenerateRequestWithCertificateChain(global::PassKit.PKAddPaymentPassViewController controller, global::Foundation.NSData[] certificates, global::Foundation.NSData nonce, global::Foundation.NSData nonceSignature, global::System.Action handler) => _generateRequestWithCertificateChain.OnNext((controller, certificates, nonce, nonceSignature, handler)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class PKDisbursementAuthorizationControllerDelegateRx : global::PassKit.PKDisbursementAuthorizationControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKDisbursementAuthorizationController controller, global::PassKit.PKDisbursementVoucher disbursementVoucher)> _didAuthorize = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKDisbursementAuthorizationController controller, global::PassKit.PKDisbursementVoucher disbursementVoucher)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKDisbursementAuthorizationController controller, global::PassKit.PKDisbursementVoucher disbursementVoucher)> DidAuthorizeObs => _didAuthorize; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + public override void DidAuthorize(global::PassKit.PKDisbursementAuthorizationController controller, global::PassKit.PKDisbursementVoucher disbursementVoucher) => _didAuthorize.OnNext((controller, disbursementVoucher)); + /// + public override void DidFinish(global::PassKit.PKDisbursementAuthorizationController controller) => _didFinish.OnNext(controller); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class PKPaymentAuthorizationControllerDelegateRx : global::PassKit.PKPaymentAuthorizationControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKPayment payment, global::System.Action completion)> _didAuthorizePayment = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKPayment payment, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion)> _didSelectPaymentMethod = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKContact contact, global::System.Action completion)> _didSelectShippingContact = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKContact contact, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKShippingMethod shippingMethod, global::System.Action completion)> _didSelectShippingMethod = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKShippingMethod shippingMethod, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willAuthorizePayment = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKPayment payment, global::System.Action completion)> DidAuthorizePaymentObs => _didAuthorizePayment; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion)> DidSelectPaymentMethodObs => _didSelectPaymentMethod; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKContact contact, global::System.Action completion)> DidSelectShippingContactObs => _didSelectShippingContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKShippingMethod shippingMethod, global::System.Action completion)> DidSelectShippingMethodObs => _didSelectShippingMethod; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillAuthorizePaymentObs => _willAuthorizePayment; + /// + public override void DidAuthorizePayment(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKPayment payment, global::System.Action completion) => _didAuthorizePayment.OnNext((controller, payment, completion)); + /// + public override void DidFinish(global::PassKit.PKPaymentAuthorizationController controller) => _didFinish.OnNext(controller); + /// + public override void DidSelectPaymentMethod(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion) => _didSelectPaymentMethod.OnNext((controller, paymentMethod, completion)); + /// + public override void DidSelectShippingContact(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKContact contact, global::System.Action completion) => _didSelectShippingContact.OnNext((controller, contact, completion)); + /// + public override void DidSelectShippingMethod(global::PassKit.PKPaymentAuthorizationController controller, global::PassKit.PKShippingMethod shippingMethod, global::System.Action completion) => _didSelectShippingMethod.OnNext((controller, shippingMethod, completion)); + /// + public override void WillAuthorizePayment(global::PassKit.PKPaymentAuthorizationController controller) => _willAuthorizePayment.OnNext(controller); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class PKPaymentAuthorizationViewControllerDelegateRx : global::PassKit.PKPaymentAuthorizationViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPayment payment, global::System.Action completion)> _didAuthorizePayment = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPayment payment, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPayment payment, global::System.Action completion)> _didAuthorizePayment2 = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPayment payment, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion)> _didSelectPaymentMethod = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion)> _didSelectPaymentMethod2 = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::AddressBook.ABRecord address, global::PassKit.PKPaymentShippingAddressSelected completion)> _didSelectShippingAddress = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::AddressBook.ABRecord address, global::PassKit.PKPaymentShippingAddressSelected completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKContact contact, global::PassKit.PKPaymentShippingAddressSelected completion)> _didSelectShippingContact = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKContact contact, global::PassKit.PKPaymentShippingAddressSelected completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKContact contact, global::System.Action completion)> _didSelectShippingContact2 = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKContact contact, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKShippingMethod shippingMethod, global::PassKit.PKPaymentShippingMethodSelected completion)> _didSelectShippingMethod = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKShippingMethod shippingMethod, global::PassKit.PKPaymentShippingMethodSelected completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKShippingMethod shippingMethod, global::System.Action completion)> _didSelectShippingMethod2 = new Pharmacist.Common.SingleAwaitSubject<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKShippingMethod shippingMethod, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _paymentAuthorizationViewControllerDidFinish = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willAuthorizePayment = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPayment payment, global::System.Action completion)> DidAuthorizePaymentObs => _didAuthorizePayment; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPayment payment, global::System.Action completion)> DidAuthorizePayment2Obs => _didAuthorizePayment2; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion)> DidSelectPaymentMethodObs => _didSelectPaymentMethod; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion)> DidSelectPaymentMethod2Obs => _didSelectPaymentMethod2; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationViewController controller, global::AddressBook.ABRecord address, global::PassKit.PKPaymentShippingAddressSelected completion)> DidSelectShippingAddressObs => _didSelectShippingAddress; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKContact contact, global::PassKit.PKPaymentShippingAddressSelected completion)> DidSelectShippingContactObs => _didSelectShippingContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKContact contact, global::System.Action completion)> DidSelectShippingContact2Obs => _didSelectShippingContact2; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKShippingMethod shippingMethod, global::PassKit.PKPaymentShippingMethodSelected completion)> DidSelectShippingMethodObs => _didSelectShippingMethod; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKShippingMethod shippingMethod, global::System.Action completion)> DidSelectShippingMethod2Obs => _didSelectShippingMethod2; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PaymentAuthorizationViewControllerDidFinishObs => _paymentAuthorizationViewControllerDidFinish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillAuthorizePaymentObs => _willAuthorizePayment; + /// + public override void DidAuthorizePayment(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPayment payment, global::System.Action completion) => _didAuthorizePayment.OnNext((controller, payment, completion)); + /// + public override void DidAuthorizePayment2(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPayment payment, global::System.Action completion) => _didAuthorizePayment2.OnNext((controller, payment, completion)); + /// + public override void DidSelectPaymentMethod(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion) => _didSelectPaymentMethod.OnNext((controller, paymentMethod, completion)); + /// + public override void DidSelectPaymentMethod2(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKPaymentMethod paymentMethod, global::System.Action completion) => _didSelectPaymentMethod2.OnNext((controller, paymentMethod, completion)); + /// + public override void DidSelectShippingAddress(global::PassKit.PKPaymentAuthorizationViewController controller, global::AddressBook.ABRecord address, global::PassKit.PKPaymentShippingAddressSelected completion) => _didSelectShippingAddress.OnNext((controller, address, completion)); + /// + public override void DidSelectShippingContact(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKContact contact, global::PassKit.PKPaymentShippingAddressSelected completion) => _didSelectShippingContact.OnNext((controller, contact, completion)); + /// + public override void DidSelectShippingContact2(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKContact contact, global::System.Action completion) => _didSelectShippingContact2.OnNext((controller, contact, completion)); + /// + public override void DidSelectShippingMethod(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKShippingMethod shippingMethod, global::PassKit.PKPaymentShippingMethodSelected completion) => _didSelectShippingMethod.OnNext((controller, shippingMethod, completion)); + /// + public override void DidSelectShippingMethod2(global::PassKit.PKPaymentAuthorizationViewController controller, global::PassKit.PKShippingMethod shippingMethod, global::System.Action completion) => _didSelectShippingMethod2.OnNext((controller, shippingMethod, completion)); + /// + public override void PaymentAuthorizationViewControllerDidFinish(global::PassKit.PKPaymentAuthorizationViewController controller) => _paymentAuthorizationViewControllerDidFinish.OnNext(controller); + /// + public override void WillAuthorizePayment(global::PassKit.PKPaymentAuthorizationViewController controller) => _willAuthorizePayment.OnNext(controller); + } +} + +namespace PdfKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class PdfDocumentDelegateRx : global::PdfKit.PdfDocumentDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBeginDocumentFind = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didMatchString = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didUnlock = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _findFinished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _matchFound = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _pageFindFinished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _pageFindStarted = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginDocumentFindObs => _didBeginDocumentFind; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidMatchStringObs => _didMatchString; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidUnlockObs => _didUnlock; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FindFinishedObs => _findFinished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable MatchFoundObs => _matchFound; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PageFindFinishedObs => _pageFindFinished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PageFindStartedObs => _pageFindStarted; + /// + public override void DidBeginDocumentFind(global::Foundation.NSNotification notification) => _didBeginDocumentFind.OnNext(notification); + /// + public override void DidMatchString(global::PdfKit.PdfSelection sender) => _didMatchString.OnNext(sender); + /// + public override void DidUnlock(global::Foundation.NSNotification notification) => _didUnlock.OnNext(notification); + /// + public override void FindFinished(global::Foundation.NSNotification notification) => _findFinished.OnNext(notification); + /// + public override void MatchFound(global::Foundation.NSNotification notification) => _matchFound.OnNext(notification); + /// + public override void PageFindFinished(global::Foundation.NSNotification notification) => _pageFindFinished.OnNext(notification); + /// + public override void PageFindStarted(global::Foundation.NSNotification notification) => _pageFindStarted.OnNext(notification); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class PdfViewDelegateRx : global::PdfKit.PdfViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PdfKit.PdfView sender, global::PdfKit.PdfActionRemoteGoTo action)> _openPdf = new Pharmacist.Common.SingleAwaitSubject<(global::PdfKit.PdfView sender, global::PdfKit.PdfActionRemoteGoTo action)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _performFind = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _performGoToPage = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PdfKit.PdfView sender, global::Foundation.NSUrl url)> _willClickOnLink = new Pharmacist.Common.SingleAwaitSubject<(global::PdfKit.PdfView sender, global::Foundation.NSUrl url)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PdfKit.PdfView sender, global::PdfKit.PdfActionRemoteGoTo action)> OpenPdfObs => _openPdf; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PerformFindObs => _performFind; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PerformGoToPageObs => _performGoToPage; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PdfKit.PdfView sender, global::Foundation.NSUrl url)> WillClickOnLinkObs => _willClickOnLink; + /// + public override void OpenPdf(global::PdfKit.PdfView sender, global::PdfKit.PdfActionRemoteGoTo action) => _openPdf.OnNext((sender, action)); + /// + public override void PerformFind(global::PdfKit.PdfView sender) => _performFind.OnNext(sender); + /// + public override void PerformGoToPage(global::PdfKit.PdfView sender) => _performGoToPage.OnNext(sender); + /// + public override void WillClickOnLink(global::PdfKit.PdfView sender, global::Foundation.NSUrl url) => _willClickOnLink.OnNext((sender, url)); + } +} + +namespace PhotosUI +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class PHLivePhotoViewDelegateRx : global::PhotosUI.PHLivePhotoViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> _didEndPlayback = new Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> _willBeginPlayback = new Pharmacist.Common.SingleAwaitSubject<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> DidEndPlaybackObs => _didEndPlayback; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle)> WillBeginPlaybackObs => _willBeginPlayback; + /// + public override void DidEndPlayback(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle) => _didEndPlayback.OnNext((livePhotoView, playbackStyle)); + /// + public override void WillBeginPlayback(global::PhotosUI.PHLivePhotoView livePhotoView, global::PhotosUI.PHLivePhotoViewPlaybackStyle playbackStyle) => _willBeginPlayback.OnNext((livePhotoView, playbackStyle)); + } +} + +namespace PushKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class PKPushRegistryDelegateRx : global::PushKit.PKPushRegistryDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PushKit.PKPushRegistry registry, string type)> _didInvalidatePushToken = new Pharmacist.Common.SingleAwaitSubject<(global::PushKit.PKPushRegistry registry, string type)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PushKit.PKPushRegistry registry, global::PushKit.PKPushPayload payload, string type, global::System.Action completion)> _didReceiveIncomingPush = new Pharmacist.Common.SingleAwaitSubject<(global::PushKit.PKPushRegistry registry, global::PushKit.PKPushPayload payload, string type, global::System.Action completion)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::PushKit.PKPushRegistry registry, global::PushKit.PKPushCredentials credentials, string type)> _didUpdatePushCredentials = new Pharmacist.Common.SingleAwaitSubject<(global::PushKit.PKPushRegistry registry, global::PushKit.PKPushCredentials credentials, string type)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PushKit.PKPushRegistry registry, string type)> DidInvalidatePushTokenObs => _didInvalidatePushToken; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PushKit.PKPushRegistry registry, global::PushKit.PKPushPayload payload, string type, global::System.Action completion)> DidReceiveIncomingPushObs => _didReceiveIncomingPush; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::PushKit.PKPushRegistry registry, global::PushKit.PKPushCredentials credentials, string type)> DidUpdatePushCredentialsObs => _didUpdatePushCredentials; + /// + public override void DidInvalidatePushToken(global::PushKit.PKPushRegistry registry, string type) => _didInvalidatePushToken.OnNext((registry, type)); + /// + public override void DidReceiveIncomingPush(global::PushKit.PKPushRegistry registry, global::PushKit.PKPushPayload payload, string type, global::System.Action completion) => _didReceiveIncomingPush.OnNext((registry, payload, type, completion)); + /// + public override void DidUpdatePushCredentials(global::PushKit.PKPushRegistry registry, global::PushKit.PKPushCredentials credentials, string type) => _didUpdatePushCredentials.OnNext((registry, credentials, type)); + } +} + +namespace QuickLook +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class QLPreviewControllerDelegateRx : global::QuickLook.QLPreviewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismiss = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDismiss = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissObs => _didDismiss; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDismissObs => _willDismiss; + /// + public override void DidDismiss(global::QuickLook.QLPreviewController controller) => _didDismiss.OnNext(controller); + /// + public override void WillDismiss(global::QuickLook.QLPreviewController controller) => _willDismiss.OnNext(controller); + } +} + +namespace ReplayKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class RPBroadcastActivityViewControllerDelegateRx : global::ReplayKit.RPBroadcastActivityViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastActivityViewController broadcastActivityViewController, global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)> _didFinish = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastActivityViewController broadcastActivityViewController, global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPBroadcastActivityViewController broadcastActivityViewController, global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)> DidFinishObs => _didFinish; + /// + public override void DidFinish(global::ReplayKit.RPBroadcastActivityViewController broadcastActivityViewController, global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error) => _didFinish.OnNext((broadcastActivityViewController, broadcastController, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class RPBroadcastControllerDelegateRx : global::ReplayKit.RPBroadcastControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)> _didFinish = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSUrl broadcastUrl)> _didUpdateBroadcastUrl = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSUrl broadcastUrl)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSDictionary serviceInfo)> _didUpdateServiceInfo = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSDictionary serviceInfo)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error)> DidFinishObs => _didFinish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSUrl broadcastUrl)> DidUpdateBroadcastUrlObs => _didUpdateBroadcastUrl; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSDictionary serviceInfo)> DidUpdateServiceInfoObs => _didUpdateServiceInfo; + /// + public override void DidFinish(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSError error) => _didFinish.OnNext((broadcastController, error)); + /// + public override void DidUpdateBroadcastUrl(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSUrl broadcastUrl) => _didUpdateBroadcastUrl.OnNext((broadcastController, broadcastUrl)); + /// + public override void DidUpdateServiceInfo(global::ReplayKit.RPBroadcastController broadcastController, global::Foundation.NSDictionary serviceInfo) => _didUpdateServiceInfo.OnNext((broadcastController, serviceInfo)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class RPPreviewViewControllerDelegateRx : global::ReplayKit.RPPreviewViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPPreviewViewController previewController, global::Foundation.NSSet activityTypes)> _didFinish = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPPreviewViewController previewController, global::Foundation.NSSet activityTypes)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPPreviewViewController previewController, global::Foundation.NSSet activityTypes)> DidFinishObs => _didFinish; + /// + public override void DidFinish(global::ReplayKit.RPPreviewViewController previewController, global::Foundation.NSSet activityTypes) => _didFinish.OnNext((previewController, activityTypes)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class RPScreenRecorderDelegateRx : global::ReplayKit.RPScreenRecorderDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeAvailability = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPScreenRecorder screenRecorder, global::Foundation.NSError error, global::ReplayKit.RPPreviewViewController previewViewController)> _didStopRecording = new Pharmacist.Common.SingleAwaitSubject<(global::ReplayKit.RPScreenRecorder screenRecorder, global::Foundation.NSError error, global::ReplayKit.RPPreviewViewController previewViewController)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeAvailabilityObs => _didChangeAvailability; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::ReplayKit.RPScreenRecorder screenRecorder, global::Foundation.NSError error, global::ReplayKit.RPPreviewViewController previewViewController)> DidStopRecordingObs => _didStopRecording; + /// + public override void DidChangeAvailability(global::ReplayKit.RPScreenRecorder screenRecorder) => _didChangeAvailability.OnNext(screenRecorder); + /// + public override void DidStopRecording(global::ReplayKit.RPScreenRecorder screenRecorder, global::Foundation.NSError error, global::ReplayKit.RPPreviewViewController previewViewController) => _didStopRecording.OnNext((screenRecorder, error, previewViewController)); + } +} + +namespace SafariServices +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class SFSafariViewControllerDelegateRx : global::SafariServices.SFSafariViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SafariServices.SFSafariViewController controller, bool didLoadSuccessfully)> _didCompleteInitialLoad = new Pharmacist.Common.SingleAwaitSubject<(global::SafariServices.SFSafariViewController controller, bool didLoadSuccessfully)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinish = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SafariServices.SFSafariViewController controller, global::Foundation.NSUrl url)> _initialLoadDidRedirectToUrl = new Pharmacist.Common.SingleAwaitSubject<(global::SafariServices.SFSafariViewController controller, global::Foundation.NSUrl url)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SafariServices.SFSafariViewController controller, bool didLoadSuccessfully)> DidCompleteInitialLoadObs => _didCompleteInitialLoad; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishObs => _didFinish; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SafariServices.SFSafariViewController controller, global::Foundation.NSUrl url)> InitialLoadDidRedirectToUrlObs => _initialLoadDidRedirectToUrl; + /// + public override void DidCompleteInitialLoad(global::SafariServices.SFSafariViewController controller, bool didLoadSuccessfully) => _didCompleteInitialLoad.OnNext((controller, didLoadSuccessfully)); + /// + public override void DidFinish(global::SafariServices.SFSafariViewController controller) => _didFinish.OnNext(controller); + /// + public override void InitialLoadDidRedirectToUrl(global::SafariServices.SFSafariViewController controller, global::Foundation.NSUrl url) => _initialLoadDidRedirectToUrl.OnNext((controller, url)); + } +} + +namespace SceneKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNAvoidOccluderConstraintDelegateRx : global::SceneKit.SCNAvoidOccluderConstraintDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node)> _didAvoidOccluder = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node)> DidAvoidOccluderObs => _didAvoidOccluder; + /// + public override void DidAvoidOccluder(global::SceneKit.SCNAvoidOccluderConstraint constraint, global::SceneKit.SCNNode occluder, global::SceneKit.SCNNode node) => _didAvoidOccluder.OnNext((constraint, occluder, node)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNCameraControllerDelegateRx : global::SceneKit.SCNCameraControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _cameraInertiaDidEnd = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _cameraInertiaWillStart = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CameraInertiaDidEndObs => _cameraInertiaDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CameraInertiaWillStartObs => _cameraInertiaWillStart; + /// + public override void CameraInertiaDidEnd(global::SceneKit.SCNCameraController cameraController) => _cameraInertiaDidEnd.OnNext(cameraController); + /// + public override void CameraInertiaWillStart(global::SceneKit.SCNCameraController cameraController) => _cameraInertiaWillStart.OnNext(cameraController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNNodeRendererDelegateRx : global::SceneKit.SCNNodeRendererDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments)> _render = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments)> RenderObs => _render; + /// + public override void Render(global::SceneKit.SCNNode node, global::SceneKit.SCNRenderer renderer, global::Foundation.NSDictionary arguments) => _render.OnNext((node, renderer, arguments)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNPhysicsContactDelegateRx : global::SceneKit.SCNPhysicsContactDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> _didBeginContact = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> _didEndContact = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> _didUpdateContact = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> DidBeginContactObs => _didBeginContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> DidEndContactObs => _didEndContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact)> DidUpdateContactObs => _didUpdateContact; + /// + public override void DidBeginContact(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact) => _didBeginContact.OnNext((world, contact)); + /// + public override void DidEndContact(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact) => _didEndContact.OnNext((world, contact)); + /// + public override void DidUpdateContact(global::SceneKit.SCNPhysicsWorld world, global::SceneKit.SCNPhysicsContact contact) => _didUpdateContact.OnNext((world, contact)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNProgramDelegateRx : global::SceneKit.SCNProgramDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNProgram program, global::Foundation.NSError error)> _handleError = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.SCNProgram program, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.SCNProgram program, global::Foundation.NSError error)> HandleErrorObs => _handleError; + /// + public override void HandleError(global::SceneKit.SCNProgram program, global::Foundation.NSError error) => _handleError.OnNext((program, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SCNSceneRendererDelegateRx : global::SceneKit.SCNSceneRendererDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _didApplyAnimations = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)> _didApplyConstraints = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> _didRenderScene = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _didSimulatePhysics = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> _update = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> _willRenderScene = new Pharmacist.Common.SingleAwaitSubject<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> DidApplyAnimationsObs => _didApplyAnimations; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double atTime)> DidApplyConstraintsObs => _didApplyConstraints; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> DidRenderSceneObs => _didRenderScene; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> DidSimulatePhysicsObs => _didSimulatePhysics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds)> UpdateObs => _update; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds)> WillRenderSceneObs => _willRenderScene; + /// + public override void DidApplyAnimations(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _didApplyAnimations.OnNext((renderer, timeInSeconds)); + /// + public override void DidApplyConstraints(global::SceneKit.ISCNSceneRenderer renderer, double atTime) => _didApplyConstraints.OnNext((renderer, atTime)); + /// + public override void DidRenderScene(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds) => _didRenderScene.OnNext((renderer, scene, timeInSeconds)); + /// + public override void DidSimulatePhysics(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _didSimulatePhysics.OnNext((renderer, timeInSeconds)); + /// + public override void Update(global::SceneKit.ISCNSceneRenderer renderer, double timeInSeconds) => _update.OnNext((renderer, timeInSeconds)); + /// + public override void WillRenderScene(global::SceneKit.ISCNSceneRenderer renderer, global::SceneKit.SCNScene scene, double timeInSeconds) => _willRenderScene.OnNext((renderer, scene, timeInSeconds)); + } +} + +namespace Speech +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class SFSpeechRecognitionTaskDelegateRx : global::Speech.SFSpeechRecognitionTaskDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDetectSpeech = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Speech.SFSpeechRecognitionTask task, global::Speech.SFSpeechRecognitionResult recognitionResult)> _didFinishRecognition = new Pharmacist.Common.SingleAwaitSubject<(global::Speech.SFSpeechRecognitionTask task, global::Speech.SFSpeechRecognitionResult recognitionResult)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Speech.SFSpeechRecognitionTask task, bool successfully)> _didFinishSuccessfully = new Pharmacist.Common.SingleAwaitSubject<(global::Speech.SFSpeechRecognitionTask task, bool successfully)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Speech.SFSpeechRecognitionTask task, global::Speech.SFTranscription transcription)> _didHypothesizeTranscription = new Pharmacist.Common.SingleAwaitSubject<(global::Speech.SFSpeechRecognitionTask task, global::Speech.SFTranscription transcription)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishedReadingAudio = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDetectSpeechObs => _didDetectSpeech; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Speech.SFSpeechRecognitionTask task, global::Speech.SFSpeechRecognitionResult recognitionResult)> DidFinishRecognitionObs => _didFinishRecognition; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Speech.SFSpeechRecognitionTask task, bool successfully)> DidFinishSuccessfullyObs => _didFinishSuccessfully; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Speech.SFSpeechRecognitionTask task, global::Speech.SFTranscription transcription)> DidHypothesizeTranscriptionObs => _didHypothesizeTranscription; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedReadingAudioObs => _finishedReadingAudio; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void DidDetectSpeech(global::Speech.SFSpeechRecognitionTask task) => _didDetectSpeech.OnNext(task); + /// + public override void DidFinishRecognition(global::Speech.SFSpeechRecognitionTask task, global::Speech.SFSpeechRecognitionResult recognitionResult) => _didFinishRecognition.OnNext((task, recognitionResult)); + /// + public override void DidFinishSuccessfully(global::Speech.SFSpeechRecognitionTask task, bool successfully) => _didFinishSuccessfully.OnNext((task, successfully)); + /// + public override void DidHypothesizeTranscription(global::Speech.SFSpeechRecognitionTask task, global::Speech.SFTranscription transcription) => _didHypothesizeTranscription.OnNext((task, transcription)); + /// + public override void FinishedReadingAudio(global::Speech.SFSpeechRecognitionTask task) => _finishedReadingAudio.OnNext(task); + /// + public override void WasCancelled(global::Speech.SFSpeechRecognitionTask task) => _wasCancelled.OnNext(task); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SFSpeechRecognizerDelegateRx : global::Speech.SFSpeechRecognizerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::Speech.SFSpeechRecognizer speechRecognizer, bool available)> _availabilityDidChange = new Pharmacist.Common.SingleAwaitSubject<(global::Speech.SFSpeechRecognizer speechRecognizer, bool available)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::Speech.SFSpeechRecognizer speechRecognizer, bool available)> AvailabilityDidChangeObs => _availabilityDidChange; + /// + public override void AvailabilityDidChange(global::Speech.SFSpeechRecognizer speechRecognizer, bool available) => _availabilityDidChange.OnNext((speechRecognizer, available)); + } +} + +namespace SpriteKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKPhysicsContactDelegateRx : global::SpriteKit.SKPhysicsContactDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBeginContact = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndContact = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginContactObs => _didBeginContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndContactObs => _didEndContact; + /// + public override void DidBeginContact(global::SpriteKit.SKPhysicsContact contact) => _didBeginContact.OnNext(contact); + /// + public override void DidEndContact(global::SpriteKit.SKPhysicsContact contact) => _didEndContact.OnNext(contact); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKSceneDelegateRx : global::SpriteKit.SKSceneDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didApplyConstraints = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEvaluateActions = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishUpdate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didSimulatePhysics = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(double currentTime, global::SpriteKit.SKScene scene)> _update = new Pharmacist.Common.SingleAwaitSubject<(double currentTime, global::SpriteKit.SKScene scene)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidApplyConstraintsObs => _didApplyConstraints; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEvaluateActionsObs => _didEvaluateActions; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishUpdateObs => _didFinishUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidSimulatePhysicsObs => _didSimulatePhysics; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(double currentTime, global::SpriteKit.SKScene scene)> UpdateObs => _update; + /// + public override void DidApplyConstraints(global::SpriteKit.SKScene scene) => _didApplyConstraints.OnNext(scene); + /// + public override void DidEvaluateActions(global::SpriteKit.SKScene scene) => _didEvaluateActions.OnNext(scene); + /// + public override void DidFinishUpdate(global::SpriteKit.SKScene scene) => _didFinishUpdate.OnNext(scene); + /// + public override void DidSimulatePhysics(global::SpriteKit.SKScene scene) => _didSimulatePhysics.OnNext(scene); + /// + public override void Update(double currentTime, global::SpriteKit.SKScene scene) => _update.OnNext((currentTime, scene)); + } +} + +namespace StoreKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKCloudServiceSetupViewControllerDelegateRx : global::StoreKit.SKCloudServiceSetupViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismiss = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissObs => _didDismiss; + /// + public override void DidDismiss(global::StoreKit.SKCloudServiceSetupViewController cloudServiceSetupViewController) => _didDismiss.OnNext(cloudServiceSetupViewController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class SKProductsRequestDelegateRx : global::StoreKit.SKProductsRequestDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response)> _receivedResponse = new Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response)> ReceivedResponseObs => _receivedResponse; + /// + public override void ReceivedResponse(global::StoreKit.SKProductsRequest request, global::StoreKit.SKProductsResponse response) => _receivedResponse.OnNext((request, response)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKRequestDelegateRx : global::StoreKit.SKRequestDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKRequest request, global::Foundation.NSError error)> _requestFailed = new Pharmacist.Common.SingleAwaitSubject<(global::StoreKit.SKRequest request, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _requestFinished = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::StoreKit.SKRequest request, global::Foundation.NSError error)> RequestFailedObs => _requestFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable RequestFinishedObs => _requestFinished; + /// + public override void RequestFailed(global::StoreKit.SKRequest request, global::Foundation.NSError error) => _requestFailed.OnNext((request, error)); + /// + public override void RequestFinished(global::StoreKit.SKRequest request) => _requestFinished.OnNext(request); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class SKStoreProductViewControllerDelegateRx : global::StoreKit.SKStoreProductViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _finished = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedObs => _finished; + /// + public override void Finished(global::StoreKit.SKStoreProductViewController controller) => _finished.OnNext(controller); + } +} + +namespace UIKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSLayoutManagerDelegateRx : global::UIKit.NSLayoutManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize)> _didChangeGeometry = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, bool layoutFinishedFlag)> _didCompleteLayout = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, bool layoutFinishedFlag)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didInvalidatedLayout = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize)> DidChangeGeometryObs => _didChangeGeometry; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, bool layoutFinishedFlag)> DidCompleteLayoutObs => _didCompleteLayout; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidInvalidatedLayoutObs => _didInvalidatedLayout; + /// + public override void DidChangeGeometry(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, global::CoreGraphics.CGSize oldSize) => _didChangeGeometry.OnNext((layoutManager, textContainer, oldSize)); + /// + public override void DidCompleteLayout(global::UIKit.NSLayoutManager layoutManager, global::UIKit.NSTextContainer textContainer, bool layoutFinishedFlag) => _didCompleteLayout.OnNext((layoutManager, textContainer, layoutFinishedFlag)); + /// + public override void DidInvalidatedLayout(global::UIKit.NSLayoutManager sender) => _didInvalidatedLayout.OnNext(sender); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class NSTextStorageDelegateRx : global::UIKit.NSTextStorageDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> _didProcessEditing = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> _willProcessEditing = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> DidProcessEditingObs => _didProcessEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta)> WillProcessEditingObs => _willProcessEditing; + /// + public override void DidProcessEditing(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta) => _didProcessEditing.OnNext((textStorage, editedMask, editedRange, delta)); + /// + public override void WillProcessEditing(global::UIKit.NSTextStorage textStorage, global::UIKit.NSTextStorageEditActions editedMask, global::Foundation.NSRange editedRange, global::System.nint delta) => _willProcessEditing.OnNext((textStorage, editedMask, editedRange, delta)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIAccelerometerDelegateRx : global::UIKit.UIAccelerometerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIAccelerometer accelerometer, global::UIKit.UIAcceleration acceleration)> _didAccelerate = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIAccelerometer accelerometer, global::UIKit.UIAcceleration acceleration)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIAccelerometer accelerometer, global::UIKit.UIAcceleration acceleration)> DidAccelerateObs => _didAccelerate; + /// + public override void DidAccelerate(global::UIKit.UIAccelerometer accelerometer, global::UIKit.UIAcceleration acceleration) => _didAccelerate.OnNext((accelerometer, acceleration)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIActionSheetDelegateRx : global::UIKit.UIActionSheetDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _canceled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex)> _clicked = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex)> _dismissed = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _presented = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex)> _willDismiss = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresent = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CanceledObs => _canceled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex)> ClickedObs => _clicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex)> DismissedObs => _dismissed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PresentedObs => _presented; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex)> WillDismissObs => _willDismiss; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentObs => _willPresent; + /// + public override void Canceled(global::UIKit.UIActionSheet actionSheet) => _canceled.OnNext(actionSheet); + /// + public override void Clicked(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex) => _clicked.OnNext((actionSheet, buttonIndex)); + /// + public override void Dismissed(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex) => _dismissed.OnNext((actionSheet, buttonIndex)); + /// + public override void Presented(global::UIKit.UIActionSheet actionSheet) => _presented.OnNext(actionSheet); + /// + public override void WillDismiss(global::UIKit.UIActionSheet actionSheet, global::System.nint buttonIndex) => _willDismiss.OnNext((actionSheet, buttonIndex)); + /// + public override void WillPresent(global::UIKit.UIActionSheet actionSheet) => _willPresent.OnNext(actionSheet); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIAdaptivePresentationControllerDelegateRx : global::UIKit.UIAdaptivePresentationControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPresentationController presentationController, global::UIKit.UIModalPresentationStyle style, global::UIKit.IUIViewControllerTransitionCoordinator transitionCoordinator)> _willPresent = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPresentationController presentationController, global::UIKit.UIModalPresentationStyle style, global::UIKit.IUIViewControllerTransitionCoordinator transitionCoordinator)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIPresentationController presentationController, global::UIKit.UIModalPresentationStyle style, global::UIKit.IUIViewControllerTransitionCoordinator transitionCoordinator)> WillPresentObs => _willPresent; + /// + public override void WillPresent(global::UIKit.UIPresentationController presentationController, global::UIKit.UIModalPresentationStyle style, global::UIKit.IUIViewControllerTransitionCoordinator transitionCoordinator) => _willPresent.OnNext((presentationController, style, transitionCoordinator)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIAlertViewDelegateRx : global::UIKit.UIAlertViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _canceled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIAlertView alertview, global::System.nint buttonIndex)> _clicked = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIAlertView alertview, global::System.nint buttonIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIAlertView alertView, global::System.nint buttonIndex)> _dismissed = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIAlertView alertView, global::System.nint buttonIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _presented = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIAlertView alertView, global::System.nint buttonIndex)> _willDismiss = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIAlertView alertView, global::System.nint buttonIndex)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresent = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CanceledObs => _canceled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIAlertView alertview, global::System.nint buttonIndex)> ClickedObs => _clicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIAlertView alertView, global::System.nint buttonIndex)> DismissedObs => _dismissed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PresentedObs => _presented; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIAlertView alertView, global::System.nint buttonIndex)> WillDismissObs => _willDismiss; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentObs => _willPresent; + /// + public override void Canceled(global::UIKit.UIAlertView alertView) => _canceled.OnNext(alertView); + /// + public override void Clicked(global::UIKit.UIAlertView alertview, global::System.nint buttonIndex) => _clicked.OnNext((alertview, buttonIndex)); + /// + public override void Dismissed(global::UIKit.UIAlertView alertView, global::System.nint buttonIndex) => _dismissed.OnNext((alertView, buttonIndex)); + /// + public override void Presented(global::UIKit.UIAlertView alertView) => _presented.OnNext(alertView); + /// + public override void WillDismiss(global::UIKit.UIAlertView alertView, global::System.nint buttonIndex) => _willDismiss.OnNext((alertView, buttonIndex)); + /// + public override void WillPresent(global::UIKit.UIAlertView alertView) => _willPresent.OnNext(alertView); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIApplicationDelegateRx : global::UIKit.UIApplicationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _applicationSignificantTimeChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect oldStatusBarFrame)> _changedStatusBarFrame = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect oldStatusBarFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation oldStatusBarOrientation)> _didChangeStatusBarOrientation = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation oldStatusBarOrientation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> _didDecodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEnterBackground = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error)> _didFailToContinueUserActivitiy = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler)> _didReceiveRemoteNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIUserNotificationSettings notificationSettings)> _didRegisterUserNotificationSettings = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIUserNotificationSettings notificationSettings)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSError error)> _failedToRegisterForRemoteNotifications = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _finishedLaunching = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string actionIdentifier, global::UIKit.UILocalNotification localNotification, global::Foundation.NSDictionary responseInfo, global::System.Action completionHandler)> _handleAction = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string actionIdentifier, global::UIKit.UILocalNotification localNotification, global::Foundation.NSDictionary responseInfo, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler)> _handleEventsForBackgroundUrl = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Intents.INIntent intent, global::System.Action completionHandler)> _handleIntent = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Intents.INIntent intent, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply)> _handleWatchKitExtensionRequest = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _onActivated = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _onResignActivation = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIApplicationShortcutItem shortcutItem, global::UIKit.UIOperationHandler completionHandler)> _performActionForShortcutItem = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIApplicationShortcutItem shortcutItem, global::UIKit.UIOperationHandler completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::System.Action completionHandler)> _performFetch = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _protectedDataDidBecomeAvailable = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _protectedDataWillBecomeUnavailable = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UILocalNotification notification)> _receivedLocalNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UILocalNotification notification)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo)> _receivedRemoteNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _receiveMemoryWarning = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken)> _registeredForRemoteNotifications = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _shouldRequestHealthAuthorization = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity)> _userActivityUpdated = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata)> _userDidAcceptCloudKitShare = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect newStatusBarFrame)> _willChangeStatusBarFrame = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect newStatusBarFrame)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation newStatusBarOrientation, double duration)> _willChangeStatusBarOrientation = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation newStatusBarOrientation, double duration)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> _willEncodeRestorableState = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willEnterForeground = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willTerminate = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ApplicationSignificantTimeChangeObs => _applicationSignificantTimeChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect oldStatusBarFrame)> ChangedStatusBarFrameObs => _changedStatusBarFrame; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation oldStatusBarOrientation)> DidChangeStatusBarOrientationObs => _didChangeStatusBarOrientation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> DidDecodeRestorableStateObs => _didDecodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEnterBackgroundObs => _didEnterBackground; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error)> DidFailToContinueUserActivitiyObs => _didFailToContinueUserActivitiy; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler)> DidReceiveRemoteNotificationObs => _didReceiveRemoteNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UIUserNotificationSettings notificationSettings)> DidRegisterUserNotificationSettingsObs => _didRegisterUserNotificationSettings; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSError error)> FailedToRegisterForRemoteNotificationsObs => _failedToRegisterForRemoteNotifications; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable FinishedLaunchingObs => _finishedLaunching; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, string actionIdentifier, global::UIKit.UILocalNotification localNotification, global::Foundation.NSDictionary responseInfo, global::System.Action completionHandler)> HandleActionObs => _handleAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler)> HandleEventsForBackgroundUrlObs => _handleEventsForBackgroundUrl; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Intents.INIntent intent, global::System.Action completionHandler)> HandleIntentObs => _handleIntent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply)> HandleWatchKitExtensionRequestObs => _handleWatchKitExtensionRequest; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnActivatedObs => _onActivated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnResignActivationObs => _onResignActivation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UIApplicationShortcutItem shortcutItem, global::UIKit.UIOperationHandler completionHandler)> PerformActionForShortcutItemObs => _performActionForShortcutItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::System.Action completionHandler)> PerformFetchObs => _performFetch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ProtectedDataDidBecomeAvailableObs => _protectedDataDidBecomeAvailable; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ProtectedDataWillBecomeUnavailableObs => _protectedDataWillBecomeUnavailable; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UILocalNotification notification)> ReceivedLocalNotificationObs => _receivedLocalNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo)> ReceivedRemoteNotificationObs => _receivedRemoteNotification; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ReceiveMemoryWarningObs => _receiveMemoryWarning; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken)> RegisteredForRemoteNotificationsObs => _registeredForRemoteNotifications; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ShouldRequestHealthAuthorizationObs => _shouldRequestHealthAuthorization; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity)> UserActivityUpdatedObs => _userActivityUpdated; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata)> UserDidAcceptCloudKitShareObs => _userDidAcceptCloudKitShare; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::CoreGraphics.CGRect newStatusBarFrame)> WillChangeStatusBarFrameObs => _willChangeStatusBarFrame; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation newStatusBarOrientation, double duration)> WillChangeStatusBarOrientationObs => _willChangeStatusBarOrientation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIApplication application, global::Foundation.NSCoder coder)> WillEncodeRestorableStateObs => _willEncodeRestorableState; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillEnterForegroundObs => _willEnterForeground; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillTerminateObs => _willTerminate; + /// + public override void ApplicationSignificantTimeChange(global::UIKit.UIApplication application) => _applicationSignificantTimeChange.OnNext(application); + /// + public override void ChangedStatusBarFrame(global::UIKit.UIApplication application, global::CoreGraphics.CGRect oldStatusBarFrame) => _changedStatusBarFrame.OnNext((application, oldStatusBarFrame)); + /// + public override void DidChangeStatusBarOrientation(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation oldStatusBarOrientation) => _didChangeStatusBarOrientation.OnNext((application, oldStatusBarOrientation)); + /// + public override void DidDecodeRestorableState(global::UIKit.UIApplication application, global::Foundation.NSCoder coder) => _didDecodeRestorableState.OnNext((application, coder)); + /// + public override void DidEnterBackground(global::UIKit.UIApplication application) => _didEnterBackground.OnNext(application); + /// + public override void DidFailToContinueUserActivitiy(global::UIKit.UIApplication application, string userActivityType, global::Foundation.NSError error) => _didFailToContinueUserActivitiy.OnNext((application, userActivityType, error)); + /// + public override void DidReceiveRemoteNotification(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action completionHandler) => _didReceiveRemoteNotification.OnNext((application, userInfo, completionHandler)); + /// + public override void DidRegisterUserNotificationSettings(global::UIKit.UIApplication application, global::UIKit.UIUserNotificationSettings notificationSettings) => _didRegisterUserNotificationSettings.OnNext((application, notificationSettings)); + /// + public override void FailedToRegisterForRemoteNotifications(global::UIKit.UIApplication application, global::Foundation.NSError error) => _failedToRegisterForRemoteNotifications.OnNext((application, error)); + /// + public override void FinishedLaunching(global::UIKit.UIApplication application) => _finishedLaunching.OnNext(application); + /// + public override void HandleAction(global::UIKit.UIApplication application, string actionIdentifier, global::UIKit.UILocalNotification localNotification, global::Foundation.NSDictionary responseInfo, global::System.Action completionHandler) => _handleAction.OnNext((application, actionIdentifier, localNotification, responseInfo, completionHandler)); + /// + public override void HandleEventsForBackgroundUrl(global::UIKit.UIApplication application, string sessionIdentifier, global::System.Action completionHandler) => _handleEventsForBackgroundUrl.OnNext((application, sessionIdentifier, completionHandler)); + /// + public override void HandleIntent(global::UIKit.UIApplication application, global::Intents.INIntent intent, global::System.Action completionHandler) => _handleIntent.OnNext((application, intent, completionHandler)); + /// + public override void HandleWatchKitExtensionRequest(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo, global::System.Action reply) => _handleWatchKitExtensionRequest.OnNext((application, userInfo, reply)); + /// + public override void OnActivated(global::UIKit.UIApplication application) => _onActivated.OnNext(application); + /// + public override void OnResignActivation(global::UIKit.UIApplication application) => _onResignActivation.OnNext(application); + /// + public override void PerformActionForShortcutItem(global::UIKit.UIApplication application, global::UIKit.UIApplicationShortcutItem shortcutItem, global::UIKit.UIOperationHandler completionHandler) => _performActionForShortcutItem.OnNext((application, shortcutItem, completionHandler)); + /// + public override void PerformFetch(global::UIKit.UIApplication application, global::System.Action completionHandler) => _performFetch.OnNext((application, completionHandler)); + /// + public override void ProtectedDataDidBecomeAvailable(global::UIKit.UIApplication application) => _protectedDataDidBecomeAvailable.OnNext(application); + /// + public override void ProtectedDataWillBecomeUnavailable(global::UIKit.UIApplication application) => _protectedDataWillBecomeUnavailable.OnNext(application); + /// + public override void ReceivedLocalNotification(global::UIKit.UIApplication application, global::UIKit.UILocalNotification notification) => _receivedLocalNotification.OnNext((application, notification)); + /// + public override void ReceivedRemoteNotification(global::UIKit.UIApplication application, global::Foundation.NSDictionary userInfo) => _receivedRemoteNotification.OnNext((application, userInfo)); + /// + public override void ReceiveMemoryWarning(global::UIKit.UIApplication application) => _receiveMemoryWarning.OnNext(application); + /// + public override void RegisteredForRemoteNotifications(global::UIKit.UIApplication application, global::Foundation.NSData deviceToken) => _registeredForRemoteNotifications.OnNext((application, deviceToken)); + /// + public override void ShouldRequestHealthAuthorization(global::UIKit.UIApplication application) => _shouldRequestHealthAuthorization.OnNext(application); + /// + public override void UserActivityUpdated(global::UIKit.UIApplication application, global::Foundation.NSUserActivity userActivity) => _userActivityUpdated.OnNext((application, userActivity)); + /// + public override void UserDidAcceptCloudKitShare(global::UIKit.UIApplication application, global::CloudKit.CKShareMetadata cloudKitShareMetadata) => _userDidAcceptCloudKitShare.OnNext((application, cloudKitShareMetadata)); + /// + public override void WillChangeStatusBarFrame(global::UIKit.UIApplication application, global::CoreGraphics.CGRect newStatusBarFrame) => _willChangeStatusBarFrame.OnNext((application, newStatusBarFrame)); + /// + public override void WillChangeStatusBarOrientation(global::UIKit.UIApplication application, global::UIKit.UIInterfaceOrientation newStatusBarOrientation, double duration) => _willChangeStatusBarOrientation.OnNext((application, newStatusBarOrientation, duration)); + /// + public override void WillEncodeRestorableState(global::UIKit.UIApplication application, global::Foundation.NSCoder coder) => _willEncodeRestorableState.OnNext((application, coder)); + /// + public override void WillEnterForeground(global::UIKit.UIApplication application) => _willEnterForeground.OnNext(application); + /// + public override void WillTerminate(global::UIKit.UIApplication application) => _willTerminate.OnNext(application); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UICloudSharingControllerDelegateRx : global::UIKit.UICloudSharingControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didSaveShare = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didStopSharing = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICloudSharingController csc, global::Foundation.NSError error)> _failedToSaveShare = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICloudSharingController csc, global::Foundation.NSError error)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidSaveShareObs => _didSaveShare; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidStopSharingObs => _didStopSharing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICloudSharingController csc, global::Foundation.NSError error)> FailedToSaveShareObs => _failedToSaveShare; + /// + public override void DidSaveShare(global::UIKit.UICloudSharingController csc) => _didSaveShare.OnNext(csc); + /// + public override void DidStopSharing(global::UIKit.UICloudSharingController csc) => _didStopSharing.OnNext(csc); + /// + public override void FailedToSaveShare(global::UIKit.UICloudSharingController csc, global::Foundation.NSError error) => _failedToSaveShare.OnNext((csc, error)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UICollectionViewDelegateRx : global::UIKit.UICollectionViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)> _cellDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _decelerationEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _decelerationStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeAdjustedContentInset = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> _didUpdateFocus = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didZoom = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, bool willDecelerate)> _draggingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, bool willDecelerate)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _draggingStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> _itemDeselected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> _itemHighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> _itemSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> _itemUnhighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> _performAction = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _scrollAnimationEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _scrolled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _scrolledToTop = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath)> _supplementaryViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)> _willDisplayCell = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, string elementKind, global::Foundation.NSIndexPath indexPath)> _willDisplaySupplementaryView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, string elementKind, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale)> _zoomingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view)> _zoomingStarted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)> CellDisplayingEndedObs => _cellDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DecelerationEndedObs => _decelerationEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DecelerationStartedObs => _decelerationStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeAdjustedContentInsetObs => _didChangeAdjustedContentInset; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> DidUpdateFocusObs => _didUpdateFocus; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidZoomObs => _didZoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIScrollView scrollView, bool willDecelerate)> DraggingEndedObs => _draggingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DraggingStartedObs => _draggingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> ItemDeselectedObs => _itemDeselected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> ItemHighlightedObs => _itemHighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> ItemSelectedObs => _itemSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath)> ItemUnhighlightedObs => _itemUnhighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> PerformActionObs => _performAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScrollAnimationEndedObs => _scrollAnimationEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScrolledObs => _scrolled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScrolledToTopObs => _scrolledToTop; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath)> SupplementaryViewDisplayingEndedObs => _supplementaryViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath)> WillDisplayCellObs => _willDisplayCell; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, string elementKind, global::Foundation.NSIndexPath indexPath)> WillDisplaySupplementaryViewObs => _willDisplaySupplementaryView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale)> ZoomingEndedObs => _zoomingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view)> ZoomingStartedObs => _zoomingStarted; + /// + public override void CellDisplayingEnded(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath) => _cellDisplayingEnded.OnNext((collectionView, cell, indexPath)); + /// + public override void DecelerationEnded(global::UIKit.UIScrollView scrollView) => _decelerationEnded.OnNext(scrollView); + /// + public override void DecelerationStarted(global::UIKit.UIScrollView scrollView) => _decelerationStarted.OnNext(scrollView); + /// + public override void DidChangeAdjustedContentInset(global::UIKit.UIScrollView scrollView) => _didChangeAdjustedContentInset.OnNext(scrollView); + /// + public override void DidUpdateFocus(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator) => _didUpdateFocus.OnNext((collectionView, context, coordinator)); + /// + public override void DidZoom(global::UIKit.UIScrollView scrollView) => _didZoom.OnNext(scrollView); + /// + public override void DraggingEnded(global::UIKit.UIScrollView scrollView, bool willDecelerate) => _draggingEnded.OnNext((scrollView, willDecelerate)); + /// + public override void DraggingStarted(global::UIKit.UIScrollView scrollView) => _draggingStarted.OnNext(scrollView); + /// + public override void ItemDeselected(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath) => _itemDeselected.OnNext((collectionView, indexPath)); + /// + public override void ItemHighlighted(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath) => _itemHighlighted.OnNext((collectionView, indexPath)); + /// + public override void ItemSelected(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath) => _itemSelected.OnNext((collectionView, indexPath)); + /// + public override void ItemUnhighlighted(global::UIKit.UICollectionView collectionView, global::Foundation.NSIndexPath indexPath) => _itemUnhighlighted.OnNext((collectionView, indexPath)); + /// + public override void PerformAction(global::UIKit.UICollectionView collectionView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender) => _performAction.OnNext((collectionView, action, indexPath, sender)); + /// + public override void ScrollAnimationEnded(global::UIKit.UIScrollView scrollView) => _scrollAnimationEnded.OnNext(scrollView); + /// + public override void Scrolled(global::UIKit.UIScrollView scrollView) => _scrolled.OnNext(scrollView); + /// + public override void ScrolledToTop(global::UIKit.UIScrollView scrollView) => _scrolledToTop.OnNext(scrollView); + /// + public override void SupplementaryViewDisplayingEnded(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, global::Foundation.NSString elementKind, global::Foundation.NSIndexPath indexPath) => _supplementaryViewDisplayingEnded.OnNext((collectionView, view, elementKind, indexPath)); + /// + public override void WillDisplayCell(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionViewCell cell, global::Foundation.NSIndexPath indexPath) => _willDisplayCell.OnNext((collectionView, cell, indexPath)); + /// + public override void WillDisplaySupplementaryView(global::UIKit.UICollectionView collectionView, global::UIKit.UICollectionReusableView view, string elementKind, global::Foundation.NSIndexPath indexPath) => _willDisplaySupplementaryView.OnNext((collectionView, view, elementKind, indexPath)); + /// + public override void ZoomingEnded(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale) => _zoomingEnded.OnNext((scrollView, withView, atScale)); + /// + public override void ZoomingStarted(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view) => _zoomingStarted.OnNext((scrollView, view)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UICollectionViewDragDelegateRx : global::UIKit.UICollectionViewDragDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDragSession session)> _dragSessionDidEnd = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDragSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDragSession session)> _dragSessionWillBegin = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDragSession session)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDragSession session)> DragSessionDidEndObs => _dragSessionDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDragSession session)> DragSessionWillBeginObs => _dragSessionWillBegin; + /// + public override void DragSessionDidEnd(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDragSession session) => _dragSessionDidEnd.OnNext((collectionView, session)); + /// + public override void DragSessionWillBegin(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDragSession session) => _dragSessionWillBegin.OnNext((collectionView, session)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UICollectionViewDropDelegateRx : global::UIKit.UICollectionViewDropDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session)> _dropSessionDidEnd = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session)> _dropSessionDidEnter = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session)> _dropSessionDidExit = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUICollectionViewDropCoordinator coordinator)> _performDrop = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollectionView collectionView, global::UIKit.IUICollectionViewDropCoordinator coordinator)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session)> DropSessionDidEndObs => _dropSessionDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session)> DropSessionDidEnterObs => _dropSessionDidEnter; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session)> DropSessionDidExitObs => _dropSessionDidExit; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollectionView collectionView, global::UIKit.IUICollectionViewDropCoordinator coordinator)> PerformDropObs => _performDrop; + /// + public override void DropSessionDidEnd(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session) => _dropSessionDidEnd.OnNext((collectionView, session)); + /// + public override void DropSessionDidEnter(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session) => _dropSessionDidEnter.OnNext((collectionView, session)); + /// + public override void DropSessionDidExit(global::UIKit.UICollectionView collectionView, global::UIKit.IUIDropSession session) => _dropSessionDidExit.OnNext((collectionView, session)); + /// + public override void PerformDrop(global::UIKit.UICollectionView collectionView, global::UIKit.IUICollectionViewDropCoordinator coordinator) => _performDrop.OnNext((collectionView, coordinator)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UICollisionBehaviorDelegateRx : global::UIKit.UICollisionBehaviorDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier, global::CoreGraphics.CGPoint atPoint)> _beganBoundaryContact = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier, global::CoreGraphics.CGPoint atPoint)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem, global::CoreGraphics.CGPoint atPoint)> _beganContact = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem, global::CoreGraphics.CGPoint atPoint)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier)> _endedBoundaryContact = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem)> _endedContact = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier, global::CoreGraphics.CGPoint atPoint)> BeganBoundaryContactObs => _beganBoundaryContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem, global::CoreGraphics.CGPoint atPoint)> BeganContactObs => _beganContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier)> EndedBoundaryContactObs => _endedBoundaryContact; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem)> EndedContactObs => _endedContact; + /// + public override void BeganBoundaryContact(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier, global::CoreGraphics.CGPoint atPoint) => _beganBoundaryContact.OnNext((behavior, dynamicItem, boundaryIdentifier, atPoint)); + /// + public override void BeganContact(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem, global::CoreGraphics.CGPoint atPoint) => _beganContact.OnNext((behavior, firstItem, secondItem, atPoint)); + /// + public override void EndedBoundaryContact(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem dynamicItem, global::Foundation.NSObject boundaryIdentifier) => _endedBoundaryContact.OnNext((behavior, dynamicItem, boundaryIdentifier)); + /// + public override void EndedContact(global::UIKit.UICollisionBehavior behavior, global::UIKit.IUIDynamicItem firstItem, global::UIKit.IUIDynamicItem secondItem) => _endedContact.OnNext((behavior, firstItem, secondItem)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIDocumentBrowserViewControllerDelegateRx : global::UIKit.UIDocumentBrowserViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl sourceUrl, global::Foundation.NSUrl destinationUrl)> _didImportDocument = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl sourceUrl, global::Foundation.NSUrl destinationUrl)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl[] documentUrls)> _didPickDocumentsAtUrls = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl[] documentUrls)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl[] documentUrls)> _didPickDocumentUrls = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl[] documentUrls)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::System.Action importHandler)> _didRequestDocumentCreation = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::System.Action importHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl documentUrl, global::Foundation.NSError error)> _failedToImportDocument = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl documentUrl, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::UIKit.UIActivityViewController activityViewController)> _willPresent = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentBrowserViewController controller, global::UIKit.UIActivityViewController activityViewController)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl sourceUrl, global::Foundation.NSUrl destinationUrl)> DidImportDocumentObs => _didImportDocument; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl[] documentUrls)> DidPickDocumentsAtUrlsObs => _didPickDocumentsAtUrls; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl[] documentUrls)> DidPickDocumentUrlsObs => _didPickDocumentUrls; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentBrowserViewController controller, global::System.Action importHandler)> DidRequestDocumentCreationObs => _didRequestDocumentCreation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl documentUrl, global::Foundation.NSError error)> FailedToImportDocumentObs => _failedToImportDocument; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentBrowserViewController controller, global::UIKit.UIActivityViewController activityViewController)> WillPresentObs => _willPresent; + /// + public override void DidImportDocument(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl sourceUrl, global::Foundation.NSUrl destinationUrl) => _didImportDocument.OnNext((controller, sourceUrl, destinationUrl)); + /// + public override void DidPickDocumentsAtUrls(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl[] documentUrls) => _didPickDocumentsAtUrls.OnNext((controller, documentUrls)); + /// + public override void DidPickDocumentUrls(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl[] documentUrls) => _didPickDocumentUrls.OnNext((controller, documentUrls)); + /// + public override void DidRequestDocumentCreation(global::UIKit.UIDocumentBrowserViewController controller, global::System.Action importHandler) => _didRequestDocumentCreation.OnNext((controller, importHandler)); + /// + public override void FailedToImportDocument(global::UIKit.UIDocumentBrowserViewController controller, global::Foundation.NSUrl documentUrl, global::Foundation.NSError error) => _failedToImportDocument.OnNext((controller, documentUrl, error)); + /// + public override void WillPresent(global::UIKit.UIDocumentBrowserViewController controller, global::UIKit.UIActivityViewController activityViewController) => _willPresent.OnNext((controller, activityViewController)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIDocumentInteractionControllerDelegateRx : global::UIKit.UIDocumentInteractionControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissOpenInMenu = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissOptionsMenu = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndPreview = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentInteractionController controller, string application)> _didEndSendingToApplication = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentInteractionController controller, string application)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willBeginPreview = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentInteractionController controller, string application)> _willBeginSendingToApplication = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentInteractionController controller, string application)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresentOpenInMenu = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresentOptionsMenu = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissOpenInMenuObs => _didDismissOpenInMenu; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissOptionsMenuObs => _didDismissOptionsMenu; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndPreviewObs => _didEndPreview; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentInteractionController controller, string application)> DidEndSendingToApplicationObs => _didEndSendingToApplication; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillBeginPreviewObs => _willBeginPreview; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentInteractionController controller, string application)> WillBeginSendingToApplicationObs => _willBeginSendingToApplication; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentOpenInMenuObs => _willPresentOpenInMenu; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentOptionsMenuObs => _willPresentOptionsMenu; + /// + public override void DidDismissOpenInMenu(global::UIKit.UIDocumentInteractionController controller) => _didDismissOpenInMenu.OnNext(controller); + /// + public override void DidDismissOptionsMenu(global::UIKit.UIDocumentInteractionController controller) => _didDismissOptionsMenu.OnNext(controller); + /// + public override void DidEndPreview(global::UIKit.UIDocumentInteractionController controller) => _didEndPreview.OnNext(controller); + /// + public override void DidEndSendingToApplication(global::UIKit.UIDocumentInteractionController controller, string application) => _didEndSendingToApplication.OnNext((controller, application)); + /// + public override void WillBeginPreview(global::UIKit.UIDocumentInteractionController controller) => _willBeginPreview.OnNext(controller); + /// + public override void WillBeginSendingToApplication(global::UIKit.UIDocumentInteractionController controller, string application) => _willBeginSendingToApplication.OnNext((controller, application)); + /// + public override void WillPresentOpenInMenu(global::UIKit.UIDocumentInteractionController controller) => _willPresentOpenInMenu.OnNext(controller); + /// + public override void WillPresentOptionsMenu(global::UIKit.UIDocumentInteractionController controller) => _willPresentOptionsMenu.OnNext(controller); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UIDocumentMenuDelegateRx : global::UIKit.UIDocumentMenuDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentMenuViewController documentMenu, global::UIKit.UIDocumentPickerViewController documentPicker)> _didPickDocumentPicker = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentMenuViewController documentMenu, global::UIKit.UIDocumentPickerViewController documentPicker)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentMenuViewController documentMenu, global::UIKit.UIDocumentPickerViewController documentPicker)> DidPickDocumentPickerObs => _didPickDocumentPicker; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void DidPickDocumentPicker(global::UIKit.UIDocumentMenuViewController documentMenu, global::UIKit.UIDocumentPickerViewController documentPicker) => _didPickDocumentPicker.OnNext((documentMenu, documentPicker)); + /// + public override void WasCancelled(global::UIKit.UIDocumentMenuViewController documentMenu) => _wasCancelled.OnNext(documentMenu); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UIDocumentPickerDelegateRx : global::UIKit.UIDocumentPickerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentPickerViewController controller, global::Foundation.NSUrl url)> _didPickDocument = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDocumentPickerViewController controller, global::Foundation.NSUrl url)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _wasCancelled = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDocumentPickerViewController controller, global::Foundation.NSUrl url)> DidPickDocumentObs => _didPickDocument; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WasCancelledObs => _wasCancelled; + /// + public override void DidPickDocument(global::UIKit.UIDocumentPickerViewController controller, global::Foundation.NSUrl url) => _didPickDocument.OnNext((controller, url)); + /// + public override void WasCancelled(global::UIKit.UIDocumentPickerViewController controller) => _wasCancelled.OnNext(controller); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UIDragInteractionDelegateRx : global::UIKit.UIDragInteractionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation)> _sessionDidEnd = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session)> _sessionDidMove = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session)> _sessionDidTransferItems = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session)> _sessionWillBegin = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation)> _sessionWillEnd = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDragItem[] items, global::UIKit.UIDragInteraction addingInteraction)> _willAddItems = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDragItem[] items, global::UIKit.UIDragInteraction addingInteraction)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.UIDragItem item, global::UIKit.IUIDragAnimating animator)> _willAnimateCancel = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.UIDragItem item, global::UIKit.IUIDragAnimating animator)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragAnimating animator, global::UIKit.IUIDragSession session)> _willAnimateLift = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragAnimating animator, global::UIKit.IUIDragSession session)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation)> SessionDidEndObs => _sessionDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session)> SessionDidMoveObs => _sessionDidMove; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session)> SessionDidTransferItemsObs => _sessionDidTransferItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session)> SessionWillBeginObs => _sessionWillBegin; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation)> SessionWillEndObs => _sessionWillEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDragItem[] items, global::UIKit.UIDragInteraction addingInteraction)> WillAddItemsObs => _willAddItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDragInteraction interaction, global::UIKit.UIDragItem item, global::UIKit.IUIDragAnimating animator)> WillAnimateCancelObs => _willAnimateCancel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragAnimating animator, global::UIKit.IUIDragSession session)> WillAnimateLiftObs => _willAnimateLift; + /// + public override void SessionDidEnd(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation) => _sessionDidEnd.OnNext((interaction, session, operation)); + /// + public override void SessionDidMove(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session) => _sessionDidMove.OnNext((interaction, session)); + /// + public override void SessionDidTransferItems(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session) => _sessionDidTransferItems.OnNext((interaction, session)); + /// + public override void SessionWillBegin(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session) => _sessionWillBegin.OnNext((interaction, session)); + /// + public override void SessionWillEnd(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation) => _sessionWillEnd.OnNext((interaction, session, operation)); + /// + public override void WillAddItems(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragSession session, global::UIKit.UIDragItem[] items, global::UIKit.UIDragInteraction addingInteraction) => _willAddItems.OnNext((interaction, session, items, addingInteraction)); + /// + public override void WillAnimateCancel(global::UIKit.UIDragInteraction interaction, global::UIKit.UIDragItem item, global::UIKit.IUIDragAnimating animator) => _willAnimateCancel.OnNext((interaction, item, animator)); + /// + public override void WillAnimateLift(global::UIKit.UIDragInteraction interaction, global::UIKit.IUIDragAnimating animator, global::UIKit.IUIDragSession session) => _willAnimateLift.OnNext((interaction, animator, session)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIDropInteractionDelegateRx : global::UIKit.UIDropInteractionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> _concludeDrop = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> _performDrop = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> _sessionDidEnd = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> _sessionDidEnter = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> _sessionDidExit = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.UIDragItem item, global::UIKit.IUIDragAnimating animator)> _willAnimateDrop = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIDropInteraction interaction, global::UIKit.UIDragItem item, global::UIKit.IUIDragAnimating animator)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> ConcludeDropObs => _concludeDrop; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> PerformDropObs => _performDrop; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> SessionDidEndObs => _sessionDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> SessionDidEnterObs => _sessionDidEnter; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session)> SessionDidExitObs => _sessionDidExit; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIDropInteraction interaction, global::UIKit.UIDragItem item, global::UIKit.IUIDragAnimating animator)> WillAnimateDropObs => _willAnimateDrop; + /// + public override void ConcludeDrop(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session) => _concludeDrop.OnNext((interaction, session)); + /// + public override void PerformDrop(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session) => _performDrop.OnNext((interaction, session)); + /// + public override void SessionDidEnd(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session) => _sessionDidEnd.OnNext((interaction, session)); + /// + public override void SessionDidEnter(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session) => _sessionDidEnter.OnNext((interaction, session)); + /// + public override void SessionDidExit(global::UIKit.UIDropInteraction interaction, global::UIKit.IUIDropSession session) => _sessionDidExit.OnNext((interaction, session)); + /// + public override void WillAnimateDrop(global::UIKit.UIDropInteraction interaction, global::UIKit.UIDragItem item, global::UIKit.IUIDragAnimating animator) => _willAnimateDrop.OnNext((interaction, item, animator)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UIDynamicAnimatorDelegateRx : global::UIKit.UIDynamicAnimatorDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didPause = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willResume = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidPauseObs => _didPause; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillResumeObs => _willResume; + /// + public override void DidPause(global::UIKit.UIDynamicAnimator animator) => _didPause.OnNext(animator); + /// + public override void WillResume(global::UIKit.UIDynamicAnimator animator) => _willResume.OnNext(animator); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIImagePickerControllerDelegateRx : global::UIKit.UIImagePickerControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _canceled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIImagePickerController picker, global::UIKit.UIImage image, global::Foundation.NSDictionary editingInfo)> _finishedPickingImage = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIImagePickerController picker, global::UIKit.UIImage image, global::Foundation.NSDictionary editingInfo)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIImagePickerController picker, global::Foundation.NSDictionary info)> _finishedPickingMedia = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIImagePickerController picker, global::Foundation.NSDictionary info)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CanceledObs => _canceled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIImagePickerController picker, global::UIKit.UIImage image, global::Foundation.NSDictionary editingInfo)> FinishedPickingImageObs => _finishedPickingImage; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIImagePickerController picker, global::Foundation.NSDictionary info)> FinishedPickingMediaObs => _finishedPickingMedia; + /// + public override void Canceled(global::UIKit.UIImagePickerController picker) => _canceled.OnNext(picker); + /// + public override void FinishedPickingImage(global::UIKit.UIImagePickerController picker, global::UIKit.UIImage image, global::Foundation.NSDictionary editingInfo) => _finishedPickingImage.OnNext((picker, image, editingInfo)); + /// + public override void FinishedPickingMedia(global::UIKit.UIImagePickerController picker, global::Foundation.NSDictionary info) => _finishedPickingMedia.OnNext((picker, info)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UINavigationBarDelegateRx : global::UIKit.UINavigationBarDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)> _didPopItem = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)> _didPushItem = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)> DidPopItemObs => _didPopItem; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item)> DidPushItemObs => _didPushItem; + /// + public override void DidPopItem(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item) => _didPopItem.OnNext((navigationBar, item)); + /// + public override void DidPushItem(global::UIKit.UINavigationBar navigationBar, global::UIKit.UINavigationItem item) => _didPushItem.OnNext((navigationBar, item)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UINavigationControllerDelegateRx : global::UIKit.UINavigationControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)> _didShowViewController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)> _willShowViewController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)> DidShowViewControllerObs => _didShowViewController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated)> WillShowViewControllerObs => _willShowViewController; + /// + public override void DidShowViewController(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated) => _didShowViewController.OnNext((navigationController, viewController, animated)); + /// + public override void WillShowViewController(global::UIKit.UINavigationController navigationController, global::UIKit.UIViewController viewController, bool animated) => _willShowViewController.OnNext((navigationController, viewController, animated)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIPageViewControllerDelegateRx : global::UIKit.UIPageViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPageViewController pageViewController, bool finished, global::UIKit.UIViewController[] previousViewControllers, bool completed)> _didFinishAnimating = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPageViewController pageViewController, bool finished, global::UIKit.UIViewController[] previousViewControllers, bool completed)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPageViewController pageViewController, global::UIKit.UIViewController[] pendingViewControllers)> _willTransition = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPageViewController pageViewController, global::UIKit.UIViewController[] pendingViewControllers)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIPageViewController pageViewController, bool finished, global::UIKit.UIViewController[] previousViewControllers, bool completed)> DidFinishAnimatingObs => _didFinishAnimating; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIPageViewController pageViewController, global::UIKit.UIViewController[] pendingViewControllers)> WillTransitionObs => _willTransition; + /// + public override void DidFinishAnimating(global::UIKit.UIPageViewController pageViewController, bool finished, global::UIKit.UIViewController[] previousViewControllers, bool completed) => _didFinishAnimating.OnNext((pageViewController, finished, previousViewControllers, completed)); + /// + public override void WillTransition(global::UIKit.UIPageViewController pageViewController, global::UIKit.UIViewController[] pendingViewControllers) => _willTransition.OnNext((pageViewController, pendingViewControllers)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIPencilInteractionDelegateRx : global::UIKit.UIPencilInteractionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didTap = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidTapObs => _didTap; + /// + public override void DidTap(global::UIKit.UIPencilInteraction interaction) => _didTap.OnNext(interaction); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIPickerViewDelegateRx : global::UIKit.UIPickerViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPickerView pickerView, global::System.nint row, global::System.nint component)> _selected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPickerView pickerView, global::System.nint row, global::System.nint component)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIPickerView pickerView, global::System.nint row, global::System.nint component)> SelectedObs => _selected; + /// + public override void Selected(global::UIKit.UIPickerView pickerView, global::System.nint row, global::System.nint component) => _selected.OnNext((pickerView, row, component)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIPopoverControllerDelegateRx : global::UIKit.UIPopoverControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismiss = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissObs => _didDismiss; + /// + public override void DidDismiss(global::UIKit.UIPopoverController popoverController) => _didDismiss.OnNext(popoverController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIPopoverPresentationControllerDelegateRx : global::UIKit.UIPopoverPresentationControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissPopover = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _prepareForPopoverPresentation = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPopoverPresentationController popoverPresentationController, global::CoreGraphics.CGRect targetRect, global::UIKit.UIView inView)> _willRepositionPopover = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPopoverPresentationController popoverPresentationController, global::CoreGraphics.CGRect targetRect, global::UIKit.UIView inView)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissPopoverObs => _didDismissPopover; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PrepareForPopoverPresentationObs => _prepareForPopoverPresentation; + /// + /// Gets an observable which signals when the method is invoked. + /// + [global::System.ObsoleteAttribute("Use the overload with 'ref' parameters for 'targetRect' and 'inView'.", false)] + public global::System.IObservable<(global::UIKit.UIPopoverPresentationController popoverPresentationController, global::CoreGraphics.CGRect targetRect, global::UIKit.UIView inView)> WillRepositionPopoverObs => _willRepositionPopover; + /// + public override void DidDismissPopover(global::UIKit.UIPopoverPresentationController popoverPresentationController) => _didDismissPopover.OnNext(popoverPresentationController); + /// + public override void PrepareForPopoverPresentation(global::UIKit.UIPopoverPresentationController popoverPresentationController) => _prepareForPopoverPresentation.OnNext(popoverPresentationController); + /// + [global::System.ObsoleteAttribute("Use the overload with 'ref' parameters for 'targetRect' and 'inView'.", false)] + public override void WillRepositionPopover(global::UIKit.UIPopoverPresentationController popoverPresentationController, global::CoreGraphics.CGRect targetRect, global::UIKit.UIView inView) => _willRepositionPopover.OnNext((popoverPresentationController, targetRect, inView)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UIPreviewInteractionDelegateRx : global::UIKit.UIPreviewInteractionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didCancel = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPreviewInteraction previewInteraction, global::System.nfloat transitionProgress, bool ended)> _didUpdateCommit = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPreviewInteraction previewInteraction, global::System.nfloat transitionProgress, bool ended)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPreviewInteraction previewInteraction, global::System.nfloat transitionProgress, bool ended)> _didUpdatePreviewTransition = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIPreviewInteraction previewInteraction, global::System.nfloat transitionProgress, bool ended)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCancelObs => _didCancel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIPreviewInteraction previewInteraction, global::System.nfloat transitionProgress, bool ended)> DidUpdateCommitObs => _didUpdateCommit; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIPreviewInteraction previewInteraction, global::System.nfloat transitionProgress, bool ended)> DidUpdatePreviewTransitionObs => _didUpdatePreviewTransition; + /// + public override void DidCancel(global::UIKit.UIPreviewInteraction previewInteraction) => _didCancel.OnNext(previewInteraction); + /// + public override void DidUpdateCommit(global::UIKit.UIPreviewInteraction previewInteraction, global::System.nfloat transitionProgress, bool ended) => _didUpdateCommit.OnNext((previewInteraction, transitionProgress, ended)); + /// + public override void DidUpdatePreviewTransition(global::UIKit.UIPreviewInteraction previewInteraction, global::System.nfloat transitionProgress, bool ended) => _didUpdatePreviewTransition.OnNext((previewInteraction, transitionProgress, ended)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIPrinterPickerControllerDelegateRx : global::UIKit.UIPrinterPickerControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismiss = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didPresent = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didSelectPrinter = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDismiss = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresent = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissObs => _didDismiss; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidPresentObs => _didPresent; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidSelectPrinterObs => _didSelectPrinter; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDismissObs => _willDismiss; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentObs => _willPresent; + /// + public override void DidDismiss(global::UIKit.UIPrinterPickerController printerPickerController) => _didDismiss.OnNext(printerPickerController); + /// + public override void DidPresent(global::UIKit.UIPrinterPickerController printerPickerController) => _didPresent.OnNext(printerPickerController); + /// + public override void DidSelectPrinter(global::UIKit.UIPrinterPickerController printerPickerController) => _didSelectPrinter.OnNext(printerPickerController); + /// + public override void WillDismiss(global::UIKit.UIPrinterPickerController printerPickerController) => _willDismiss.OnNext(printerPickerController); + /// + public override void WillPresent(global::UIKit.UIPrinterPickerController printerPickerController) => _willPresent.OnNext(printerPickerController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIPrintInteractionControllerDelegateRx : global::UIKit.UIPrintInteractionControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissPrinterOptions = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didFinishJob = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didPresentPrinterOptions = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDismissPrinterOptions = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresentPrinterOptions = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willStartJob = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissPrinterOptionsObs => _didDismissPrinterOptions; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidFinishJobObs => _didFinishJob; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidPresentPrinterOptionsObs => _didPresentPrinterOptions; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDismissPrinterOptionsObs => _willDismissPrinterOptions; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentPrinterOptionsObs => _willPresentPrinterOptions; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillStartJobObs => _willStartJob; + /// + public override void DidDismissPrinterOptions(global::UIKit.UIPrintInteractionController printInteractionController) => _didDismissPrinterOptions.OnNext(printInteractionController); + /// + public override void DidFinishJob(global::UIKit.UIPrintInteractionController printInteractionController) => _didFinishJob.OnNext(printInteractionController); + /// + public override void DidPresentPrinterOptions(global::UIKit.UIPrintInteractionController printInteractionController) => _didPresentPrinterOptions.OnNext(printInteractionController); + /// + public override void WillDismissPrinterOptions(global::UIKit.UIPrintInteractionController printInteractionController) => _willDismissPrinterOptions.OnNext(printInteractionController); + /// + public override void WillPresentPrinterOptions(global::UIKit.UIPrintInteractionController printInteractionController) => _willPresentPrinterOptions.OnNext(printInteractionController); + /// + public override void WillStartJob(global::UIKit.UIPrintInteractionController printInteractionController) => _willStartJob.OnNext(printInteractionController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIScrollViewDelegateRx : global::UIKit.UIScrollViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _decelerationEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _decelerationStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didChangeAdjustedContentInset = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didZoom = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, bool willDecelerate)> _draggingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, bool willDecelerate)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _draggingStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _scrollAnimationEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _scrolled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _scrolledToTop = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale)> _zoomingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view)> _zoomingStarted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DecelerationEndedObs => _decelerationEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DecelerationStartedObs => _decelerationStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidChangeAdjustedContentInsetObs => _didChangeAdjustedContentInset; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidZoomObs => _didZoom; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIScrollView scrollView, bool willDecelerate)> DraggingEndedObs => _draggingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DraggingStartedObs => _draggingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScrollAnimationEndedObs => _scrollAnimationEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScrolledObs => _scrolled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ScrolledToTopObs => _scrolledToTop; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale)> ZoomingEndedObs => _zoomingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view)> ZoomingStartedObs => _zoomingStarted; + /// + public override void DecelerationEnded(global::UIKit.UIScrollView scrollView) => _decelerationEnded.OnNext(scrollView); + /// + public override void DecelerationStarted(global::UIKit.UIScrollView scrollView) => _decelerationStarted.OnNext(scrollView); + /// + public override void DidChangeAdjustedContentInset(global::UIKit.UIScrollView scrollView) => _didChangeAdjustedContentInset.OnNext(scrollView); + /// + public override void DidZoom(global::UIKit.UIScrollView scrollView) => _didZoom.OnNext(scrollView); + /// + public override void DraggingEnded(global::UIKit.UIScrollView scrollView, bool willDecelerate) => _draggingEnded.OnNext((scrollView, willDecelerate)); + /// + public override void DraggingStarted(global::UIKit.UIScrollView scrollView) => _draggingStarted.OnNext(scrollView); + /// + public override void ScrollAnimationEnded(global::UIKit.UIScrollView scrollView) => _scrollAnimationEnded.OnNext(scrollView); + /// + public override void Scrolled(global::UIKit.UIScrollView scrollView) => _scrolled.OnNext(scrollView); + /// + public override void ScrolledToTop(global::UIKit.UIScrollView scrollView) => _scrolledToTop.OnNext(scrollView); + /// + public override void ZoomingEnded(global::UIKit.UIScrollView scrollView, global::UIKit.UIView withView, global::System.nfloat atScale) => _zoomingEnded.OnNext((scrollView, withView, atScale)); + /// + public override void ZoomingStarted(global::UIKit.UIScrollView scrollView, global::UIKit.UIView view) => _zoomingStarted.OnNext((scrollView, view)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UISearchBarDelegateRx : global::UIKit.UISearchBarDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _bookmarkButtonClicked = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _cancelButtonClicked = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _listButtonClicked = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _onEditingStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _onEditingStopped = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _searchButtonClicked = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchBar searchBar, global::System.nint selectedScope)> _selectedScopeButtonIndexChanged = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchBar searchBar, global::System.nint selectedScope)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchBar searchBar, string searchText)> _textChanged = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchBar searchBar, string searchText)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable BookmarkButtonClickedObs => _bookmarkButtonClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable CancelButtonClickedObs => _cancelButtonClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ListButtonClickedObs => _listButtonClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnEditingStartedObs => _onEditingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable OnEditingStoppedObs => _onEditingStopped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SearchButtonClickedObs => _searchButtonClicked; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchBar searchBar, global::System.nint selectedScope)> SelectedScopeButtonIndexChangedObs => _selectedScopeButtonIndexChanged; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchBar searchBar, string searchText)> TextChangedObs => _textChanged; + /// + public override void BookmarkButtonClicked(global::UIKit.UISearchBar searchBar) => _bookmarkButtonClicked.OnNext(searchBar); + /// + public override void CancelButtonClicked(global::UIKit.UISearchBar searchBar) => _cancelButtonClicked.OnNext(searchBar); + /// + public override void ListButtonClicked(global::UIKit.UISearchBar searchBar) => _listButtonClicked.OnNext(searchBar); + /// + public override void OnEditingStarted(global::UIKit.UISearchBar searchBar) => _onEditingStarted.OnNext(searchBar); + /// + public override void OnEditingStopped(global::UIKit.UISearchBar searchBar) => _onEditingStopped.OnNext(searchBar); + /// + public override void SearchButtonClicked(global::UIKit.UISearchBar searchBar) => _searchButtonClicked.OnNext(searchBar); + /// + public override void SelectedScopeButtonIndexChanged(global::UIKit.UISearchBar searchBar, global::System.nint selectedScope) => _selectedScopeButtonIndexChanged.OnNext((searchBar, selectedScope)); + /// + public override void TextChanged(global::UIKit.UISearchBar searchBar, string searchText) => _textChanged.OnNext((searchBar, searchText)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UISearchControllerDelegateRx : global::UIKit.UISearchControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didDismissSearchController = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didPresentSearchController = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _presentSearchController = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willDismissSearchController = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willPresentSearchController = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDismissSearchControllerObs => _didDismissSearchController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidPresentSearchControllerObs => _didPresentSearchController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable PresentSearchControllerObs => _presentSearchController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillDismissSearchControllerObs => _willDismissSearchController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillPresentSearchControllerObs => _willPresentSearchController; + /// + public override void DidDismissSearchController(global::UIKit.UISearchController searchController) => _didDismissSearchController.OnNext(searchController); + /// + public override void DidPresentSearchController(global::UIKit.UISearchController searchController) => _didPresentSearchController.OnNext(searchController); + /// + public override void PresentSearchController(global::UIKit.UISearchController searchController) => _presentSearchController.OnNext(searchController); + /// + public override void WillDismissSearchController(global::UIKit.UISearchController searchController) => _willDismissSearchController.OnNext(searchController); + /// + public override void WillPresentSearchController(global::UIKit.UISearchController searchController) => _willPresentSearchController.OnNext(searchController); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UISearchDisplayDelegateRx : global::UIKit.UISearchDisplayDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _didBeginSearch = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didEndSearch = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> _didHideSearchResults = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> _didLoadSearchResults = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> _didShowSearchResults = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _willBeginSearch = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _willEndSearch = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> _willHideSearchResults = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> _willShowSearchResults = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> _willUnloadSearchResults = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBeginSearchObs => _didBeginSearch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidEndSearchObs => _didEndSearch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> DidHideSearchResultsObs => _didHideSearchResults; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> DidLoadSearchResultsObs => _didLoadSearchResults; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> DidShowSearchResultsObs => _didShowSearchResults; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillBeginSearchObs => _willBeginSearch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable WillEndSearchObs => _willEndSearch; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> WillHideSearchResultsObs => _willHideSearchResults; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> WillShowSearchResultsObs => _willShowSearchResults; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView)> WillUnloadSearchResultsObs => _willUnloadSearchResults; + /// + public override void DidBeginSearch(global::UIKit.UISearchDisplayController controller) => _didBeginSearch.OnNext(controller); + /// + public override void DidEndSearch(global::UIKit.UISearchDisplayController controller) => _didEndSearch.OnNext(controller); + /// + public override void DidHideSearchResults(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView) => _didHideSearchResults.OnNext((controller, tableView)); + /// + public override void DidLoadSearchResults(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView) => _didLoadSearchResults.OnNext((controller, tableView)); + /// + public override void DidShowSearchResults(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView) => _didShowSearchResults.OnNext((controller, tableView)); + /// + public override void WillBeginSearch(global::UIKit.UISearchDisplayController controller) => _willBeginSearch.OnNext(controller); + /// + public override void WillEndSearch(global::UIKit.UISearchDisplayController controller) => _willEndSearch.OnNext(controller); + /// + public override void WillHideSearchResults(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView) => _willHideSearchResults.OnNext((controller, tableView)); + /// + public override void WillShowSearchResults(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView) => _willShowSearchResults.OnNext((controller, tableView)); + /// + public override void WillUnloadSearchResults(global::UIKit.UISearchDisplayController controller, global::UIKit.UITableView tableView) => _willUnloadSearchResults.OnNext((controller, tableView)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UISplitViewControllerDelegateRx : global::UIKit.UISplitViewControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UISplitViewControllerDisplayMode displayMode)> _willChangeDisplayMode = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UISplitViewControllerDisplayMode displayMode)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UIViewController aViewController, global::UIKit.UIBarButtonItem barButtonItem, global::UIKit.UIPopoverController pc)> _willHideViewController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UIViewController aViewController, global::UIKit.UIBarButtonItem barButtonItem, global::UIKit.UIPopoverController pc)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UIPopoverController pc, global::UIKit.UIViewController aViewController)> _willPresentViewController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UIPopoverController pc, global::UIKit.UIViewController aViewController)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UIViewController aViewController, global::UIKit.UIBarButtonItem button)> _willShowViewController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UISplitViewController svc, global::UIKit.UIViewController aViewController, global::UIKit.UIBarButtonItem button)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISplitViewController svc, global::UIKit.UISplitViewControllerDisplayMode displayMode)> WillChangeDisplayModeObs => _willChangeDisplayMode; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISplitViewController svc, global::UIKit.UIViewController aViewController, global::UIKit.UIBarButtonItem barButtonItem, global::UIKit.UIPopoverController pc)> WillHideViewControllerObs => _willHideViewController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISplitViewController svc, global::UIKit.UIPopoverController pc, global::UIKit.UIViewController aViewController)> WillPresentViewControllerObs => _willPresentViewController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UISplitViewController svc, global::UIKit.UIViewController aViewController, global::UIKit.UIBarButtonItem button)> WillShowViewControllerObs => _willShowViewController; + /// + public override void WillChangeDisplayMode(global::UIKit.UISplitViewController svc, global::UIKit.UISplitViewControllerDisplayMode displayMode) => _willChangeDisplayMode.OnNext((svc, displayMode)); + /// + public override void WillHideViewController(global::UIKit.UISplitViewController svc, global::UIKit.UIViewController aViewController, global::UIKit.UIBarButtonItem barButtonItem, global::UIKit.UIPopoverController pc) => _willHideViewController.OnNext((svc, aViewController, barButtonItem, pc)); + /// + public override void WillPresentViewController(global::UIKit.UISplitViewController svc, global::UIKit.UIPopoverController pc, global::UIKit.UIViewController aViewController) => _willPresentViewController.OnNext((svc, pc, aViewController)); + /// + public override void WillShowViewController(global::UIKit.UISplitViewController svc, global::UIKit.UIViewController aViewController, global::UIKit.UIBarButtonItem button) => _willShowViewController.OnNext((svc, aViewController, button)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITabBarControllerDelegateRx : global::UIKit.UITabBarControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers, bool changed)> _finishedCustomizingViewControllers = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers, bool changed)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers)> _onCustomizingViewControllers = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers, bool changed)> _onEndCustomizingViewControllers = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers, bool changed)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController viewController)> _viewControllerSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController viewController)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers, bool changed)> FinishedCustomizingViewControllersObs => _finishedCustomizingViewControllers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers)> OnCustomizingViewControllersObs => _onCustomizingViewControllers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers, bool changed)> OnEndCustomizingViewControllersObs => _onEndCustomizingViewControllers; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController viewController)> ViewControllerSelectedObs => _viewControllerSelected; + /// + public override void FinishedCustomizingViewControllers(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers, bool changed) => _finishedCustomizingViewControllers.OnNext((tabBarController, viewControllers, changed)); + /// + public override void OnCustomizingViewControllers(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers) => _onCustomizingViewControllers.OnNext((tabBarController, viewControllers)); + /// + public override void OnEndCustomizingViewControllers(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController[] viewControllers, bool changed) => _onEndCustomizingViewControllers.OnNext((tabBarController, viewControllers, changed)); + /// + public override void ViewControllerSelected(global::UIKit.UITabBarController tabBarController, global::UIKit.UIViewController viewController) => _viewControllerSelected.OnNext((tabBarController, viewController)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITabBarDelegateRx : global::UIKit.UITabBarDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items)> _didBeginCustomizingItems = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items, bool changed)> _didEndCustomizingItems = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items, bool changed)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem item)> _itemSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem item)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items)> _willBeginCustomizingItems = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items, bool changed)> _willEndCustomizingItems = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items, bool changed)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items)> DidBeginCustomizingItemsObs => _didBeginCustomizingItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items, bool changed)> DidEndCustomizingItemsObs => _didEndCustomizingItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem item)> ItemSelectedObs => _itemSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items)> WillBeginCustomizingItemsObs => _willBeginCustomizingItems; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items, bool changed)> WillEndCustomizingItemsObs => _willEndCustomizingItems; + /// + public override void DidBeginCustomizingItems(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items) => _didBeginCustomizingItems.OnNext((tabbar, items)); + /// + public override void DidEndCustomizingItems(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items, bool changed) => _didEndCustomizingItems.OnNext((tabbar, items, changed)); + /// + public override void ItemSelected(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem item) => _itemSelected.OnNext((tabbar, item)); + /// + public override void WillBeginCustomizingItems(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items) => _willBeginCustomizingItems.OnNext((tabbar, items)); + /// + public override void WillEndCustomizingItems(global::UIKit.UITabBar tabbar, global::UIKit.UITabBarItem[] items, bool changed) => _willEndCustomizingItems.OnNext((tabbar, items, changed)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITableViewDelegateRx : global::UIKit.UITableViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _accessoryButtonTapped = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> _cellDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _didEndEditing = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> _didUpdateFocus = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> _footerViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> _headerViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> _performAction = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _rowDeselected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> _rowHighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _rowSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> _rowUnhighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _willBeginEditing = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> _willDisplay = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> _willDisplayFooterView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> _willDisplayHeaderView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> AccessoryButtonTappedObs => _accessoryButtonTapped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> CellDisplayingEndedObs => _cellDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> DidEndEditingObs => _didEndEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> DidUpdateFocusObs => _didUpdateFocus; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> FooterViewDisplayingEndedObs => _footerViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> HeaderViewDisplayingEndedObs => _headerViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> PerformActionObs => _performAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> RowDeselectedObs => _rowDeselected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> RowHighlightedObs => _rowHighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> RowSelectedObs => _rowSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> RowUnhighlightedObs => _rowUnhighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> WillBeginEditingObs => _willBeginEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> WillDisplayObs => _willDisplay; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> WillDisplayFooterViewObs => _willDisplayFooterView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> WillDisplayHeaderViewObs => _willDisplayHeaderView; + /// + public override void AccessoryButtonTapped(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _accessoryButtonTapped.OnNext((tableView, indexPath)); + /// + public override void CellDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath) => _cellDisplayingEnded.OnNext((tableView, cell, indexPath)); + /// + public override void DidEndEditing(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _didEndEditing.OnNext((tableView, indexPath)); + /// + public override void DidUpdateFocus(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator) => _didUpdateFocus.OnNext((tableView, context, coordinator)); + /// + public override void FooterViewDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section) => _footerViewDisplayingEnded.OnNext((tableView, footerView, section)); + /// + public override void HeaderViewDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section) => _headerViewDisplayingEnded.OnNext((tableView, headerView, section)); + /// + public override void PerformAction(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender) => _performAction.OnNext((tableView, action, indexPath, sender)); + /// + public override void RowDeselected(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _rowDeselected.OnNext((tableView, indexPath)); + /// + public override void RowHighlighted(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath) => _rowHighlighted.OnNext((tableView, rowIndexPath)); + /// + public override void RowSelected(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _rowSelected.OnNext((tableView, indexPath)); + /// + public override void RowUnhighlighted(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath) => _rowUnhighlighted.OnNext((tableView, rowIndexPath)); + /// + public override void WillBeginEditing(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _willBeginEditing.OnNext((tableView, indexPath)); + /// + public override void WillDisplay(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath) => _willDisplay.OnNext((tableView, cell, indexPath)); + /// + public override void WillDisplayFooterView(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section) => _willDisplayFooterView.OnNext((tableView, footerView, section)); + /// + public override void WillDisplayHeaderView(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section) => _willDisplayHeaderView.OnNext((tableView, headerView, section)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UITableViewDragDelegateRx : global::UIKit.UITableViewDragDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDragSession session)> _dragSessionDidEnd = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDragSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDragSession session)> _dragSessionWillBegin = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDragSession session)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.IUIDragSession session)> DragSessionDidEndObs => _dragSessionDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.IUIDragSession session)> DragSessionWillBeginObs => _dragSessionWillBegin; + /// + public override void DragSessionDidEnd(global::UIKit.UITableView tableView, global::UIKit.IUIDragSession session) => _dragSessionDidEnd.OnNext((tableView, session)); + /// + public override void DragSessionWillBegin(global::UIKit.UITableView tableView, global::UIKit.IUIDragSession session) => _dragSessionWillBegin.OnNext((tableView, session)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UITableViewDropDelegateRx : global::UIKit.UITableViewDropDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session)> _dropSessionDidEnd = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session)> _dropSessionDidEnter = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session)> _dropSessionDidExit = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUITableViewDropCoordinator coordinator)> _performDrop = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.IUITableViewDropCoordinator coordinator)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session)> DropSessionDidEndObs => _dropSessionDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session)> DropSessionDidEnterObs => _dropSessionDidEnter; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session)> DropSessionDidExitObs => _dropSessionDidExit; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.IUITableViewDropCoordinator coordinator)> PerformDropObs => _performDrop; + /// + public override void DropSessionDidEnd(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session) => _dropSessionDidEnd.OnNext((tableView, session)); + /// + public override void DropSessionDidEnter(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session) => _dropSessionDidEnter.OnNext((tableView, session)); + /// + public override void DropSessionDidExit(global::UIKit.UITableView tableView, global::UIKit.IUIDropSession session) => _dropSessionDidExit.OnNext((tableView, session)); + /// + public override void PerformDrop(global::UIKit.UITableView tableView, global::UIKit.IUITableViewDropCoordinator coordinator) => _performDrop.OnNext((tableView, coordinator)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UITableViewSourceRx : global::UIKit.UITableViewSource + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _accessoryButtonTapped = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> _cellDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCellEditingStyle editingStyle, global::Foundation.NSIndexPath indexPath)> _commitEditingStyle = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCellEditingStyle editingStyle, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _didEndEditing = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> _didUpdateFocus = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> _footerViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> _headerViewDisplayingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath sourceIndexPath, global::Foundation.NSIndexPath destinationIndexPath)> _moveRow = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath sourceIndexPath, global::Foundation.NSIndexPath destinationIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> _performAction = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _rowDeselected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> _rowHighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _rowSelected = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> _rowUnhighlighted = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> _willBeginEditing = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> _willDisplay = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> _willDisplayFooterView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> _willDisplayHeaderView = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> AccessoryButtonTappedObs => _accessoryButtonTapped; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> CellDisplayingEndedObs => _cellDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCellEditingStyle editingStyle, global::Foundation.NSIndexPath indexPath)> CommitEditingStyleObs => _commitEditingStyle; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> DidEndEditingObs => _didEndEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator)> DidUpdateFocusObs => _didUpdateFocus; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> FooterViewDisplayingEndedObs => _footerViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> HeaderViewDisplayingEndedObs => _headerViewDisplayingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath sourceIndexPath, global::Foundation.NSIndexPath destinationIndexPath)> MoveRowObs => _moveRow; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender)> PerformActionObs => _performAction; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> RowDeselectedObs => _rowDeselected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> RowHighlightedObs => _rowHighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> RowSelectedObs => _rowSelected; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath)> RowUnhighlightedObs => _rowUnhighlighted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath)> WillBeginEditingObs => _willBeginEditing; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath)> WillDisplayObs => _willDisplay; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section)> WillDisplayFooterViewObs => _willDisplayFooterView; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section)> WillDisplayHeaderViewObs => _willDisplayHeaderView; + /// + public override void AccessoryButtonTapped(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _accessoryButtonTapped.OnNext((tableView, indexPath)); + /// + public override void CellDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath) => _cellDisplayingEnded.OnNext((tableView, cell, indexPath)); + /// + public override void CommitEditingStyle(global::UIKit.UITableView tableView, global::UIKit.UITableViewCellEditingStyle editingStyle, global::Foundation.NSIndexPath indexPath) => _commitEditingStyle.OnNext((tableView, editingStyle, indexPath)); + /// + public override void DidEndEditing(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _didEndEditing.OnNext((tableView, indexPath)); + /// + public override void DidUpdateFocus(global::UIKit.UITableView tableView, global::UIKit.UITableViewFocusUpdateContext context, global::UIKit.UIFocusAnimationCoordinator coordinator) => _didUpdateFocus.OnNext((tableView, context, coordinator)); + /// + public override void FooterViewDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section) => _footerViewDisplayingEnded.OnNext((tableView, footerView, section)); + /// + public override void HeaderViewDisplayingEnded(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section) => _headerViewDisplayingEnded.OnNext((tableView, headerView, section)); + /// + public override void MoveRow(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath sourceIndexPath, global::Foundation.NSIndexPath destinationIndexPath) => _moveRow.OnNext((tableView, sourceIndexPath, destinationIndexPath)); + /// + public override void PerformAction(global::UIKit.UITableView tableView, global::ObjCRuntime.Selector action, global::Foundation.NSIndexPath indexPath, global::Foundation.NSObject sender) => _performAction.OnNext((tableView, action, indexPath, sender)); + /// + public override void RowDeselected(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _rowDeselected.OnNext((tableView, indexPath)); + /// + public override void RowHighlighted(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath) => _rowHighlighted.OnNext((tableView, rowIndexPath)); + /// + public override void RowSelected(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _rowSelected.OnNext((tableView, indexPath)); + /// + public override void RowUnhighlighted(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath rowIndexPath) => _rowUnhighlighted.OnNext((tableView, rowIndexPath)); + /// + public override void WillBeginEditing(global::UIKit.UITableView tableView, global::Foundation.NSIndexPath indexPath) => _willBeginEditing.OnNext((tableView, indexPath)); + /// + public override void WillDisplay(global::UIKit.UITableView tableView, global::UIKit.UITableViewCell cell, global::Foundation.NSIndexPath indexPath) => _willDisplay.OnNext((tableView, cell, indexPath)); + /// + public override void WillDisplayFooterView(global::UIKit.UITableView tableView, global::UIKit.UIView footerView, global::System.nint section) => _willDisplayFooterView.OnNext((tableView, footerView, section)); + /// + public override void WillDisplayHeaderView(global::UIKit.UITableView tableView, global::UIKit.UIView headerView, global::System.nint section) => _willDisplayHeaderView.OnNext((tableView, headerView, section)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITextDragDelegateRx : global::UIKit.UITextDragDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation)> _dragSessionDidEnd = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragSession session)> _dragSessionWillBegin = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragAnimating animator, global::UIKit.IUIDragSession session)> _willAnimateLift = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragAnimating animator, global::UIKit.IUIDragSession session)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation)> DragSessionDidEndObs => _dragSessionDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragSession session)> DragSessionWillBeginObs => _dragSessionWillBegin; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragAnimating animator, global::UIKit.IUIDragSession session)> WillAnimateLiftObs => _willAnimateLift; + /// + public override void DragSessionDidEnd(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragSession session, global::UIKit.UIDropOperation operation) => _dragSessionDidEnd.OnNext((textDraggableView, session, operation)); + /// + public override void DragSessionWillBegin(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragSession session) => _dragSessionWillBegin.OnNext((textDraggableView, session)); + /// + public override void WillAnimateLift(global::UIKit.IUITextDraggable textDraggableView, global::UIKit.IUIDragAnimating animator, global::UIKit.IUIDragSession session) => _willAnimateLift.OnNext((textDraggableView, animator, session)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITextDropDelegateRx : global::UIKit.UITextDropDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)> _dropSessionDidEnd = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)> _dropSessionDidEnter = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)> _dropSessionDidExit = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)> _dropSessionDidUpdate = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUITextDropRequest drop)> _willPerformDrop = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUITextDropRequest drop)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)> DropSessionDidEndObs => _dropSessionDidEnd; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)> DropSessionDidEnterObs => _dropSessionDidEnter; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)> DropSessionDidExitObs => _dropSessionDidExit; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session)> DropSessionDidUpdateObs => _dropSessionDidUpdate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUITextDropRequest drop)> WillPerformDropObs => _willPerformDrop; + /// + public override void DropSessionDidEnd(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session) => _dropSessionDidEnd.OnNext((textDroppableView, session)); + /// + public override void DropSessionDidEnter(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session) => _dropSessionDidEnter.OnNext((textDroppableView, session)); + /// + public override void DropSessionDidExit(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session) => _dropSessionDidExit.OnNext((textDroppableView, session)); + /// + public override void DropSessionDidUpdate(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUIDropSession session) => _dropSessionDidUpdate.OnNext((textDroppableView, session)); + /// + public override void WillPerformDrop(global::UIKit.IUITextDroppable textDroppableView, global::UIKit.IUITextDropRequest drop) => _willPerformDrop.OnNext((textDroppableView, drop)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITextFieldDelegateRx : global::UIKit.UITextFieldDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITextField textField, global::UIKit.UITextFieldDidEndEditingReason reason)> _editingEnded = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UITextField textField, global::UIKit.UITextFieldDidEndEditingReason reason)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingStarted = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UITextField textField, global::UIKit.UITextFieldDidEndEditingReason reason)> EditingEndedObs => _editingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingStartedObs => _editingStarted; + /// + public override void EditingEnded(global::UIKit.UITextField textField, global::UIKit.UITextFieldDidEndEditingReason reason) => _editingEnded.OnNext((textField, reason)); + /// + public override void EditingStarted(global::UIKit.UITextField textField) => _editingStarted.OnNext(textField); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UITextInputDelegateRx : global::UIKit.UITextInputDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _selectionDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionWillChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _textDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _textWillChange = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionDidChangeObs => _selectionDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionWillChangeObs => _selectionWillChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TextDidChangeObs => _textDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable TextWillChangeObs => _textWillChange; + /// + public override void SelectionDidChange(global::UIKit.IUITextInput uiTextInput) => _selectionDidChange.OnNext(uiTextInput); + /// + public override void SelectionWillChange(global::UIKit.IUITextInput uiTextInput) => _selectionWillChange.OnNext(uiTextInput); + /// + public override void TextDidChange(global::UIKit.IUITextInput textInput) => _textDidChange.OnNext(textInput); + /// + public override void TextWillChange(global::UIKit.IUITextInput textInput) => _textWillChange.OnNext(textInput); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITextPasteDelegateRx : global::UIKit.UITextPasteDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, global::UIKit.IUITextPasteItem item)> _transformPasteItem = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, global::UIKit.IUITextPasteItem item)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, global::UIKit.IUITextPasteItem item)> TransformPasteItemObs => _transformPasteItem; + /// + public override void TransformPasteItem(global::UIKit.IUITextPasteConfigurationSupporting textPasteConfigurationSupporting, global::UIKit.IUITextPasteItem item) => _transformPasteItem.OnNext((textPasteConfigurationSupporting, item)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UITextViewDelegateRx : global::UIKit.UITextViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _changed = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingEnded = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _editingStarted = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _selectionChanged = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ChangedObs => _changed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingEndedObs => _editingEnded; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable EditingStartedObs => _editingStarted; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SelectionChangedObs => _selectionChanged; + /// + public override void Changed(global::UIKit.UITextView textView) => _changed.OnNext(textView); + /// + public override void EditingEnded(global::UIKit.UITextView textView) => _editingEnded.OnNext(textView); + /// + public override void EditingStarted(global::UIKit.UITextView textView) => _editingStarted.OnNext(textView); + /// + public override void SelectionChanged(global::UIKit.UITextView textView) => _selectionChanged.OnNext(textView); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIVideoEditorControllerDelegateRx : global::UIKit.UIVideoEditorControllerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIVideoEditorController editor, global::Foundation.NSError error)> _failed = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIVideoEditorController editor, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _userCancelled = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIVideoEditorController editor, string editedVideoPath)> _videoSaved = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIVideoEditorController editor, string editedVideoPath)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIVideoEditorController editor, global::Foundation.NSError error)> FailedObs => _failed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable UserCancelledObs => _userCancelled; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIVideoEditorController editor, string editedVideoPath)> VideoSavedObs => _videoSaved; + /// + public override void Failed(global::UIKit.UIVideoEditorController editor, global::Foundation.NSError error) => _failed.OnNext((editor, error)); + /// + public override void UserCancelled(global::UIKit.UIVideoEditorController editor) => _userCancelled.OnNext(editor); + /// + public override void VideoSaved(global::UIKit.UIVideoEditorController editor, string editedVideoPath) => _videoSaved.OnNext((editor, editedVideoPath)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class UIViewControllerPreviewingDelegateRx : global::UIKit.UIViewControllerPreviewingDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUIViewControllerPreviewing previewingContext, global::UIKit.UIViewController viewControllerToCommit)> _commitViewController = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.IUIViewControllerPreviewing previewingContext, global::UIKit.UIViewController viewControllerToCommit)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.IUIViewControllerPreviewing previewingContext, global::UIKit.UIViewController viewControllerToCommit)> CommitViewControllerObs => _commitViewController; + /// + public override void CommitViewController(global::UIKit.IUIViewControllerPreviewing previewingContext, global::UIKit.UIViewController viewControllerToCommit) => _commitViewController.OnNext((previewingContext, viewControllerToCommit)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class UIWebViewDelegateRx : global::UIKit.UIWebViewDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIWebView webView, global::Foundation.NSError error)> _loadFailed = new Pharmacist.Common.SingleAwaitSubject<(global::UIKit.UIWebView webView, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _loadingFinished = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _loadStarted = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UIKit.UIWebView webView, global::Foundation.NSError error)> LoadFailedObs => _loadFailed; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LoadingFinishedObs => _loadingFinished; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable LoadStartedObs => _loadStarted; + /// + public override void LoadFailed(global::UIKit.UIWebView webView, global::Foundation.NSError error) => _loadFailed.OnNext((webView, error)); + /// + public override void LoadingFinished(global::UIKit.UIWebView webView) => _loadingFinished.OnNext(webView); + /// + public override void LoadStarted(global::UIKit.UIWebView webView) => _loadStarted.OnNext(webView); + } +} + +namespace UserNotifications +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class UNUserNotificationCenterDelegateRx : global::UserNotifications.UNUserNotificationCenterDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotificationResponse response, global::System.Action completionHandler)> _didReceiveNotificationResponse = new Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotificationResponse response, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification)> _openSettings = new Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler)> _willPresentNotification = new Pharmacist.Common.SingleAwaitSubject<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotificationResponse response, global::System.Action completionHandler)> DidReceiveNotificationResponseObs => _didReceiveNotificationResponse; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification)> OpenSettingsObs => _openSettings; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler)> WillPresentNotificationObs => _willPresentNotification; + /// + public override void DidReceiveNotificationResponse(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotificationResponse response, global::System.Action completionHandler) => _didReceiveNotificationResponse.OnNext((center, response, completionHandler)); + /// + public override void OpenSettings(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification) => _openSettings.OnNext((center, notification)); + /// + public override void WillPresentNotification(global::UserNotifications.UNUserNotificationCenter center, global::UserNotifications.UNNotification notification, global::System.Action completionHandler) => _willPresentNotification.OnNext((center, notification, completionHandler)); + } +} + +namespace VideoSubscriberAccount +{ + /// + /// Wraps delegates events from into Observables. + /// + public abstract partial class VSAccountManagerDelegateRx : global::VideoSubscriberAccount.VSAccountManagerDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)> _dismissViewController = new Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)> _presentViewController = new Pharmacist.Common.SingleAwaitSubject<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)> DismissViewControllerObs => _dismissViewController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController)> PresentViewControllerObs => _presentViewController; + /// + public override void DismissViewController(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController) => _dismissViewController.OnNext((accountManager, viewController)); + /// + public override void PresentViewController(global::VideoSubscriberAccount.VSAccountManager accountManager, global::UIKit.UIViewController viewController) => _presentViewController.OnNext((accountManager, viewController)); + } +} + +namespace WatchConnectivity +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class WCSessionDelegateRx : global::WatchConnectivity.WCSessionDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionActivationState activationState, global::Foundation.NSError error)> _activationDidComplete = new Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionActivationState activationState, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didBecomeInactive = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _didDeactivate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionFileTransfer fileTransfer, global::Foundation.NSError error)> _didFinishFileTransfer = new Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionFileTransfer fileTransfer, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionUserInfoTransfer userInfoTransfer, global::Foundation.NSError error)> _didFinishUserInfoTransfer = new Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionUserInfoTransfer userInfoTransfer, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary applicationContext)> _didReceiveApplicationContext = new Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary applicationContext)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionFile file)> _didReceiveFile = new Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionFile file)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary message, global::WatchConnectivity.WCSessionReplyHandler replyHandler)> _didReceiveMessage = new Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary message, global::WatchConnectivity.WCSessionReplyHandler replyHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::Foundation.NSData messageData, global::WatchConnectivity.WCSessionReplyDataHandler replyHandler)> _didReceiveMessageData = new Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::Foundation.NSData messageData, global::WatchConnectivity.WCSessionReplyDataHandler replyHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary userInfo)> _didReceiveUserInfo = new Pharmacist.Common.SingleAwaitSubject<(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary userInfo)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _sessionReachabilityDidChange = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject _sessionWatchStateDidChange = new Pharmacist.Common.SingleAwaitSubject(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionActivationState activationState, global::Foundation.NSError error)> ActivationDidCompleteObs => _activationDidComplete; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidBecomeInactiveObs => _didBecomeInactive; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidDeactivateObs => _didDeactivate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionFileTransfer fileTransfer, global::Foundation.NSError error)> DidFinishFileTransferObs => _didFinishFileTransfer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionUserInfoTransfer userInfoTransfer, global::Foundation.NSError error)> DidFinishUserInfoTransferObs => _didFinishUserInfoTransfer; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary applicationContext)> DidReceiveApplicationContextObs => _didReceiveApplicationContext; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionFile file)> DidReceiveFileObs => _didReceiveFile; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary message, global::WatchConnectivity.WCSessionReplyHandler replyHandler)> DidReceiveMessageObs => _didReceiveMessage; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WatchConnectivity.WCSession session, global::Foundation.NSData messageData, global::WatchConnectivity.WCSessionReplyDataHandler replyHandler)> DidReceiveMessageDataObs => _didReceiveMessageData; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary userInfo)> DidReceiveUserInfoObs => _didReceiveUserInfo; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SessionReachabilityDidChangeObs => _sessionReachabilityDidChange; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable SessionWatchStateDidChangeObs => _sessionWatchStateDidChange; + /// + public override void ActivationDidComplete(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionActivationState activationState, global::Foundation.NSError error) => _activationDidComplete.OnNext((session, activationState, error)); + /// + public override void DidBecomeInactive(global::WatchConnectivity.WCSession session) => _didBecomeInactive.OnNext(session); + /// + public override void DidDeactivate(global::WatchConnectivity.WCSession session) => _didDeactivate.OnNext(session); + /// + public override void DidFinishFileTransfer(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionFileTransfer fileTransfer, global::Foundation.NSError error) => _didFinishFileTransfer.OnNext((session, fileTransfer, error)); + /// + public override void DidFinishUserInfoTransfer(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionUserInfoTransfer userInfoTransfer, global::Foundation.NSError error) => _didFinishUserInfoTransfer.OnNext((session, userInfoTransfer, error)); + /// + public override void DidReceiveApplicationContext(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary applicationContext) => _didReceiveApplicationContext.OnNext((session, applicationContext)); + /// + public override void DidReceiveFile(global::WatchConnectivity.WCSession session, global::WatchConnectivity.WCSessionFile file) => _didReceiveFile.OnNext((session, file)); + /// + public override void DidReceiveMessage(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary message, global::WatchConnectivity.WCSessionReplyHandler replyHandler) => _didReceiveMessage.OnNext((session, message, replyHandler)); + /// + public override void DidReceiveMessageData(global::WatchConnectivity.WCSession session, global::Foundation.NSData messageData, global::WatchConnectivity.WCSessionReplyDataHandler replyHandler) => _didReceiveMessageData.OnNext((session, messageData, replyHandler)); + /// + public override void DidReceiveUserInfo(global::WatchConnectivity.WCSession session, global::Foundation.NSDictionary userInfo) => _didReceiveUserInfo.OnNext((session, userInfo)); + /// + public override void SessionReachabilityDidChange(global::WatchConnectivity.WCSession session) => _sessionReachabilityDidChange.OnNext(session); + /// + public override void SessionWatchStateDidChange(global::WatchConnectivity.WCSession session) => _sessionWatchStateDidChange.OnNext(session); + } +} + +namespace WebKit +{ + /// + /// Wraps delegates events from into Observables. + /// + public partial class WKNavigationDelegateRx : global::WebKit.WKNavigationDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject _contentProcessDidTerminate = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigationAction navigationAction, global::System.Action decisionHandler)> _decidePolicy = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigationAction navigationAction, global::System.Action decisionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> _didCommitNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)> _didFailNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)> _didFailProvisionalNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> _didFinishNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> _didReceiveAuthenticationChallenge = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> _didReceiveServerRedirectForProvisionalNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> _didStartProvisionalNavigation = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable ContentProcessDidTerminateObs => _contentProcessDidTerminate; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigationAction navigationAction, global::System.Action decisionHandler)> DecidePolicyObs => _decidePolicy; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> DidCommitNavigationObs => _didCommitNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)> DidFailNavigationObs => _didFailNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error)> DidFailProvisionalNavigationObs => _didFailProvisionalNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> DidFinishNavigationObs => _didFinishNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler)> DidReceiveAuthenticationChallengeObs => _didReceiveAuthenticationChallenge; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> DidReceiveServerRedirectForProvisionalNavigationObs => _didReceiveServerRedirectForProvisionalNavigation; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation)> DidStartProvisionalNavigationObs => _didStartProvisionalNavigation; + /// + public override void ContentProcessDidTerminate(global::WebKit.WKWebView webView) => _contentProcessDidTerminate.OnNext(webView); + /// + public override void DecidePolicy(global::WebKit.WKWebView webView, global::WebKit.WKNavigationAction navigationAction, global::System.Action decisionHandler) => _decidePolicy.OnNext((webView, navigationAction, decisionHandler)); + /// + public override void DidCommitNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation) => _didCommitNavigation.OnNext((webView, navigation)); + /// + public override void DidFailNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error) => _didFailNavigation.OnNext((webView, navigation, error)); + /// + public override void DidFailProvisionalNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation, global::Foundation.NSError error) => _didFailProvisionalNavigation.OnNext((webView, navigation, error)); + /// + public override void DidFinishNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation) => _didFinishNavigation.OnNext((webView, navigation)); + /// + public override void DidReceiveAuthenticationChallenge(global::WebKit.WKWebView webView, global::Foundation.NSUrlAuthenticationChallenge challenge, global::System.Action completionHandler) => _didReceiveAuthenticationChallenge.OnNext((webView, challenge, completionHandler)); + /// + public override void DidReceiveServerRedirectForProvisionalNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation) => _didReceiveServerRedirectForProvisionalNavigation.OnNext((webView, navigation)); + /// + public override void DidStartProvisionalNavigation(global::WebKit.WKWebView webView, global::WebKit.WKNavigation navigation) => _didStartProvisionalNavigation.OnNext((webView, navigation)); + } + + /// + /// Wraps delegates events from into Observables. + /// + public partial class WKUIDelegateRx : global::WebKit.WKUIDelegate + { + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::UIKit.UIViewController previewingViewController)> _commitPreviewingViewController = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, global::UIKit.UIViewController previewingViewController)>(); + private readonly Pharmacist.Common.SingleAwaitSubject _didClose = new Pharmacist.Common.SingleAwaitSubject(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> _runJavaScriptAlertPanel = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> _runJavaScriptConfirmPanel = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)>(); + private readonly Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string prompt, string defaultText, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> _runJavaScriptTextInputPanel = new Pharmacist.Common.SingleAwaitSubject<(global::WebKit.WKWebView webView, string prompt, string defaultText, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)>(); + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, global::UIKit.UIViewController previewingViewController)> CommitPreviewingViewControllerObs => _commitPreviewingViewController; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable DidCloseObs => _didClose; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> RunJavaScriptAlertPanelObs => _runJavaScriptAlertPanel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> RunJavaScriptConfirmPanelObs => _runJavaScriptConfirmPanel; + /// + /// Gets an observable which signals when the method is invoked. + /// + public global::System.IObservable<(global::WebKit.WKWebView webView, string prompt, string defaultText, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler)> RunJavaScriptTextInputPanelObs => _runJavaScriptTextInputPanel; + /// + public override void CommitPreviewingViewController(global::WebKit.WKWebView webView, global::UIKit.UIViewController previewingViewController) => _commitPreviewingViewController.OnNext((webView, previewingViewController)); + /// + public override void DidClose(global::WebKit.WKWebView webView) => _didClose.OnNext(webView); + /// + public override void RunJavaScriptAlertPanel(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler) => _runJavaScriptAlertPanel.OnNext((webView, message, frame, completionHandler)); + /// + public override void RunJavaScriptConfirmPanel(global::WebKit.WKWebView webView, string message, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler) => _runJavaScriptConfirmPanel.OnNext((webView, message, frame, completionHandler)); + /// + public override void RunJavaScriptTextInputPanel(global::WebKit.WKWebView webView, string prompt, string defaultText, global::WebKit.WKFrameInfo frame, global::System.Action completionHandler) => _runJavaScriptTextInputPanel.OnNext((webView, prompt, defaultText, frame, completionHandler)); + } +} \ No newline at end of file diff --git a/src/Pharmacist.Tests/IntegrationTests/IntegrationTestHelper.cs b/src/Pharmacist.Tests/IntegrationTests/IntegrationTestHelper.cs index 61a0ddc..8a7dad7 100644 --- a/src/Pharmacist.Tests/IntegrationTests/IntegrationTestHelper.cs +++ b/src/Pharmacist.Tests/IntegrationTests/IntegrationTestHelper.cs @@ -5,8 +5,10 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.IO; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; using System.Threading; @@ -34,7 +36,7 @@ public static async Task CheckResultsAgainstTemplate(PackageIdentity[] package, using (var memoryStream = new MemoryStream()) { await ObservablesForEventGenerator.ExtractEventsFromNuGetPackages(memoryStream, package, frameworks).ConfigureAwait(false); - CheckContents(memoryStream, package[0], filePath); + CheckPackageIdentityContents(memoryStream, package[0], filePath); } } @@ -45,47 +47,83 @@ public static async Task CheckResultsAgainstTemplate(LibraryRange[] package, IRe using (var memoryStream = new MemoryStream()) { await ObservablesForEventGenerator.ExtractEventsFromNuGetPackages(memoryStream, package, frameworks).ConfigureAwait(false); - CheckContents(memoryStream, bestPackageIdentity, filePath); + CheckPackageIdentityContents(memoryStream, bestPackageIdentity, filePath); } } - private static void CheckContents(MemoryStream memoryStream, PackageIdentity bestPackageIdentity, string filePath) + public static void CheckContents(string actualContents, string approvedFileName, string receivedFileName) { - var sourceDirectory = Path.GetDirectoryName(filePath); - - var approvedFileName = Path.Combine(sourceDirectory, $"{bestPackageIdentity.Id}.{bestPackageIdentity.Version}.approved.txt"); - var receivedFileName = Path.Combine(sourceDirectory, $"{bestPackageIdentity.Id}.{bestPackageIdentity.Version}.received.txt"); - if (!File.Exists(approvedFileName)) { - File.Create(approvedFileName); + File.Create(approvedFileName).Close(); } if (!File.Exists(receivedFileName)) { - File.Create(receivedFileName); + File.Create(receivedFileName).Close(); } - memoryStream.Flush(); + var expectedContents = File.ReadAllText(approvedFileName); - memoryStream.Position = 0; - using (var sr = new StreamReader(memoryStream)) - { - var actualContents = sr.ReadToEnd().Trim('\n').Trim('\r'); - var expectedContents = File.ReadAllText(approvedFileName); - - string normalizedActual = _whitespaceRegex.Replace(actualContents, string.Empty); - string normalizedExpected = _whitespaceRegex.Replace(expectedContents, string.Empty); + string normalizedActual = _whitespaceRegex.Replace(actualContents, string.Empty); + string normalizedExpected = _whitespaceRegex.Replace(expectedContents, string.Empty); - if (!string.Equals(normalizedActual, normalizedExpected, StringComparison.InvariantCulture)) + if (!string.Equals(normalizedActual, normalizedExpected, StringComparison.InvariantCulture)) + { + File.WriteAllText(receivedFileName, actualContents); + try { - File.WriteAllText(receivedFileName, actualContents); ShouldlyConfiguration.DiffTools.GetDiffTool().Open(receivedFileName, approvedFileName, true); } + catch (ShouldAssertException) + { + var process = new Process + { + StartInfo = new ProcessStartInfo + { + Arguments = $"\"{approvedFileName}\" \"{receivedFileName}\"", + UseShellExecute = false, + RedirectStandardOutput = true, + CreateNoWindow = true + } + }; + + if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + process.StartInfo.FileName = "FC"; + } + else + { + process.StartInfo.FileName = "diff"; + } + + process.Start(); + string output = process.StandardOutput.ReadToEnd(); + process.WaitForExit(); + + throw new Exception("Invalid API configuration: " + Environment.NewLine + output); + } + } - normalizedActual.ShouldNotBeEmpty(); + normalizedActual.ShouldNotBeEmpty(); - normalizedActual.ShouldBe(normalizedExpected, StringCompareShould.IgnoreLineEndings); + normalizedActual.ShouldBe(normalizedExpected, StringCompareShould.IgnoreLineEndings); + } + + public static string GetOutputDirectory([CallerFilePath] string filePath = null) => Path.Combine(Path.GetDirectoryName(filePath), "Approved"); + + private static void CheckPackageIdentityContents(MemoryStream memoryStream, PackageIdentity bestPackageIdentity, string filePath) + { + var sourceDirectory = GetOutputDirectory(filePath); + + var approvedFileName = Path.Combine(sourceDirectory, $"{bestPackageIdentity.Id}.{bestPackageIdentity.Version}.approved.txt"); + var receivedFileName = Path.Combine(sourceDirectory, $"{bestPackageIdentity.Id}.{bestPackageIdentity.Version}.received.txt"); + + memoryStream.Flush(); + memoryStream.Position = 0; + using (var sr = new StreamReader(memoryStream)) + { + CheckContents(sr.ReadToEnd().Trim('\n').Trim('\r'), approvedFileName, receivedFileName); } } } diff --git a/src/Pharmacist.Tests/IntegrationTests/PlatformsIntegrationTests.cs b/src/Pharmacist.Tests/IntegrationTests/PlatformsIntegrationTests.cs new file mode 100644 index 0000000..ddf4d5a --- /dev/null +++ b/src/Pharmacist.Tests/IntegrationTests/PlatformsIntegrationTests.cs @@ -0,0 +1,41 @@ +// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.CompilerServices; +using System.Text; +using System.Threading.Tasks; + +using Pharmacist.Core; +using Pharmacist.Core.ReferenceLocators; + +using Xunit; + +namespace Pharmacist.Tests.IntegrationTests +{ + /// + /// Tests associated with testing the platforms. + /// + public class PlatformsIntegrationTests + { + /// + /// Tests to make sure that the platform tests produce valid output. + /// + /// A task to monitor the progress. + [Fact] + public async Task TestsValid() + { + var sourceDirectory = IntegrationTestHelper.GetOutputDirectory(); + var referenceAssembliesLocation = await ReferenceLocator.GetReferenceLocation().ConfigureAwait(false); + + var platforms = Enum.GetValues(typeof(AutoPlatform)).Cast().ToList(); + + await ObservablesForEventGenerator.ExtractEventsFromPlatforms(sourceDirectory, string.Empty, ".received.txt", referenceAssembliesLocation, platforms).ConfigureAwait(false); + } + } +} diff --git a/src/Pharmacist.Tests/Pharmacist.Tests.csproj b/src/Pharmacist.Tests/Pharmacist.Tests.csproj index 9072267..568000d 100644 --- a/src/Pharmacist.Tests/Pharmacist.Tests.csproj +++ b/src/Pharmacist.Tests/Pharmacist.Tests.csproj @@ -7,6 +7,12 @@ $(NoWarn);1591;SA1633 + + + + + + @@ -17,8 +23,4 @@ PreserveNewest - - - -