Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created May 27, 2024 12:45
Show Gist options
  • Save vs-mobiletools-engineering-service2/2ef8d00da99f4e56b0aa30e48a31d288 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/2ef8d00da99f4e56b0aa30e48a31d288 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
index 2dd6440..5220d33 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("bgen")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+475ef600b87749f8422991bd9babb6d646005508")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+72445630edf7f3b60b8a576088edf5c761e7b4be")]
[assembly: System.Reflection.AssemblyProductAttribute("bgen")]
[assembly: System.Reflection.AssemblyTitleAttribute("bgen")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
index 94e140b..bde9718 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
@@ -1 +1 @@
-{"documents":{"/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/475ef600b87749f8422991bd9babb6d646005508/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/4cb9dc263251f8c8eac41b95a857f37025974599/*"}}
\ No newline at end of file
+{"documents":{"/Users/builder/azdo/_work/1/s/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/72445630edf7f3b60b8a576088edf5c761e7b4be/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/1/s/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/4cb9dc263251f8c8eac41b95a857f37025974599/*"}}
\ No newline at end of file
diff --git a/old/dotnet/ios/SourceLink.json b/new/dotnet/ios/SourceLink.json
index e4de32a..3895cba 100644
--- a/old/dotnet/ios/SourceLink.json
+++ b/new/dotnet/ios/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/475ef600b87749f8422991bd9babb6d646005508/src*"
+ "/Users/builder/azdo/_work/1/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/72445630edf7f3b60b8a576088edf5c761e7b4be/src*"
}
}
diff --git a/old/dotnet/ios/doc/Microsoft.iOS.xml b/new/dotnet/ios/doc/Microsoft.iOS.xml
index 9cc5b3e..3b647ed 100644
--- a/old/dotnet/ios/doc/Microsoft.iOS.xml
+++ b/new/dotnet/ios/doc/Microsoft.iOS.xml
@@ -147412,6 +147412,238 @@
</para>
</remarks>
</member>
+ <member name="P:GameController.GCMouse.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor">
+ <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="T:GameController.GCMouse.Notifications">
+ <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
+ <remarks>
+ <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
+ <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
+ Console.WriteLine ("Observed DidBecomeCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
+ Console.WriteLine ("Observed DidConnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
+ Console.WriteLine ("Observed DidDisconnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
+ Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
<member name="P:GameController.GCColor.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
@@ -149023,247 +149255,6 @@
</para>
</remarks>
</member>
- <member name="P:GameController.GCMouse.ClassHandle">
- <summary>The Objective-C class handle for this class.</summary>
- <value>The pointer to the Objective-C class.</value>
- <remarks>
- Each managed class mirrors an unmanaged Objective-C class.
- This value contains the pointer to the Objective-C class.
- It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor">
- <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSCoder)">
- <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- <param name="coder">The unarchiver object.</param>
- <remarks>
- <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
- <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
- <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
- <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
- <remarks>
- <para>
- This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
- This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
- When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
- The actual initialization of the object is up to the developer.
- </para>
- <para>
- This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
- Once the allocation has taken place, the constructor has to initialize the object.
- With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
- </para>
- <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
- <para>
- In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
- If this is not the case, developers should instead chain to the proper constructor in their class.
- </para>
- <para>
- The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
- Typically the chaining would look like this:
- </para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- //
- // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
- // No actual initXxx method is invoked, that is done later in the constructor
- //
- // This is taken from the iOS SDK's source code for the UIView class:
- //
- [Export ("initWithFrame:")]
- public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
- {
- // Invoke the init method now.
- var initWithFrame = new Selector ("initWithFrame:").Handle;
- if (IsDirectBinding) {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
- } else {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
- }
- }
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
- <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
- <param name="handle">Pointer (handle) to the unmanaged object.</param>
- <remarks>
- <para>
- This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
- Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
- </para>
- </remarks>
- </member>
- <member name="T:GameController.GCMouse.Notifications">
- <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
- <remarks>
- <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
- <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
- Console.WriteLine ("Observed DidBecomeCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
- Console.WriteLine ("Observed DidConnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
- Console.WriteLine ("Observed DidDisconnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
- Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
<member name="P:GameController.GCMouseInput.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/ios/generated-sources/GameController/GCMouse.g.cs b/new/dotnet/ios/generated-sources/GameController/GCMouse.g.cs
index ed88c2c..e5e71a9 100644
--- a/old/dotnet/ios/generated-sources/GameController/GCMouse.g.cs
+++ b/new/dotnet/ios/generated-sources/GameController/GCMouse.g.cs
@@ -54,7 +54,7 @@ namespace GameController {
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
- public unsafe partial class GCMouse : NSObject, IGCDevice, INSCoding, INSSecureCoding {
+ public unsafe partial class GCMouse : NSObject, IGCDevice {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
#if ARCH_32
#pragma warning disable 649
@@ -88,30 +88,6 @@ namespace GameController {
#endif
}
- /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- /// <param name="coder">The unarchiver object.</param>
- /// <remarks>
- /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
- /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
- /// </remarks>
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [DesignatedInitializer]
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("initWithCoder:")]
- public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty)
- {
- #if ARCH_32
- throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
- #else
- if (IsDirectBinding) {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- } else {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- }
- #endif
- }
-
/// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
/// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
/// <remarks>
@@ -177,21 +153,6 @@ namespace GameController {
{
}
- [Export ("encodeWithCoder:")]
- [SupportedOSPlatform ("ios14.0")]
- [SupportedOSPlatform ("macos11.0")]
- [SupportedOSPlatform ("tvos14.0")]
- [SupportedOSPlatform ("maccatalyst14.0")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual void EncodeTo (NSCoder encoder)
- {
- var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
- if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- } else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- }
- }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static GCMouse? Current {
[Export ("current", ArgumentSemantic.Retain)]
diff --git a/old/dotnet/ios/ref/Microsoft.iOS.xml b/new/dotnet/ios/ref/Microsoft.iOS.xml
index 2344818..2e9c4da 100644
--- a/old/dotnet/ios/ref/Microsoft.iOS.xml
+++ b/new/dotnet/ios/ref/Microsoft.iOS.xml
@@ -147195,6 +147195,238 @@
</para>
</remarks>
</member>
+ <member name="P:GameController.GCMouse.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor">
+ <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="T:GameController.GCMouse.Notifications">
+ <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
+ <remarks>
+ <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
+ <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
+ Console.WriteLine ("Observed DidBecomeCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
+ Console.WriteLine ("Observed DidConnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
+ Console.WriteLine ("Observed DidDisconnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
+ Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
<member name="P:GameController.GCColor.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
@@ -148806,247 +149038,6 @@
</para>
</remarks>
</member>
- <member name="P:GameController.GCMouse.ClassHandle">
- <summary>The Objective-C class handle for this class.</summary>
- <value>The pointer to the Objective-C class.</value>
- <remarks>
- Each managed class mirrors an unmanaged Objective-C class.
- This value contains the pointer to the Objective-C class.
- It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor">
- <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSCoder)">
- <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- <param name="coder">The unarchiver object.</param>
- <remarks>
- <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
- <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
- <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
- <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
- <remarks>
- <para>
- This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
- This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
- When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
- The actual initialization of the object is up to the developer.
- </para>
- <para>
- This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
- Once the allocation has taken place, the constructor has to initialize the object.
- With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
- </para>
- <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
- <para>
- In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
- If this is not the case, developers should instead chain to the proper constructor in their class.
- </para>
- <para>
- The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
- Typically the chaining would look like this:
- </para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- //
- // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
- // No actual initXxx method is invoked, that is done later in the constructor
- //
- // This is taken from the iOS SDK's source code for the UIView class:
- //
- [Export ("initWithFrame:")]
- public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
- {
- // Invoke the init method now.
- var initWithFrame = new Selector ("initWithFrame:").Handle;
- if (IsDirectBinding) {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
- } else {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
- }
- }
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
- <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
- <param name="handle">Pointer (handle) to the unmanaged object.</param>
- <remarks>
- <para>
- This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
- Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
- </para>
- </remarks>
- </member>
- <member name="T:GameController.GCMouse.Notifications">
- <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
- <remarks>
- <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
- <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
- Console.WriteLine ("Observed DidBecomeCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
- Console.WriteLine ("Observed DidConnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
- Console.WriteLine ("Observed DidDisconnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
- Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
<member name="P:GameController.GCMouseInput.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/maccatalyst/SourceLink.json b/new/dotnet/maccatalyst/SourceLink.json
index e4de32a..3895cba 100644
--- a/old/dotnet/maccatalyst/SourceLink.json
+++ b/new/dotnet/maccatalyst/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/475ef600b87749f8422991bd9babb6d646005508/src*"
+ "/Users/builder/azdo/_work/1/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/72445630edf7f3b60b8a576088edf5c761e7b4be/src*"
}
}
diff --git a/old/dotnet/maccatalyst/doc/Microsoft.MacCatalyst.xml b/new/dotnet/maccatalyst/doc/Microsoft.MacCatalyst.xml
index 010d275..10c45e8 100644
--- a/old/dotnet/maccatalyst/doc/Microsoft.MacCatalyst.xml
+++ b/new/dotnet/maccatalyst/doc/Microsoft.MacCatalyst.xml
@@ -134859,6 +134859,238 @@
</para>
</remarks>
</member>
+ <member name="P:GameController.GCMouse.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor">
+ <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="T:GameController.GCMouse.Notifications">
+ <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
+ <remarks>
+ <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
+ <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
+ Console.WriteLine ("Observed DidBecomeCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
+ Console.WriteLine ("Observed DidConnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
+ Console.WriteLine ("Observed DidDisconnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
+ Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
<member name="P:GameController.GCColor.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
@@ -136536,247 +136768,6 @@
</para>
</remarks>
</member>
- <member name="P:GameController.GCMouse.ClassHandle">
- <summary>The Objective-C class handle for this class.</summary>
- <value>The pointer to the Objective-C class.</value>
- <remarks>
- Each managed class mirrors an unmanaged Objective-C class.
- This value contains the pointer to the Objective-C class.
- It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor">
- <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSCoder)">
- <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- <param name="coder">The unarchiver object.</param>
- <remarks>
- <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
- <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
- <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
- <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
- <remarks>
- <para>
- This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
- This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
- When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
- The actual initialization of the object is up to the developer.
- </para>
- <para>
- This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
- Once the allocation has taken place, the constructor has to initialize the object.
- With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
- </para>
- <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
- <para>
- In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
- If this is not the case, developers should instead chain to the proper constructor in their class.
- </para>
- <para>
- The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
- Typically the chaining would look like this:
- </para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- //
- // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
- // No actual initXxx method is invoked, that is done later in the constructor
- //
- // This is taken from the iOS SDK's source code for the UIView class:
- //
- [Export ("initWithFrame:")]
- public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
- {
- // Invoke the init method now.
- var initWithFrame = new Selector ("initWithFrame:").Handle;
- if (IsDirectBinding) {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
- } else {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
- }
- }
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
- <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
- <param name="handle">Pointer (handle) to the unmanaged object.</param>
- <remarks>
- <para>
- This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
- Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
- </para>
- </remarks>
- </member>
- <member name="T:GameController.GCMouse.Notifications">
- <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
- <remarks>
- <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
- <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
- Console.WriteLine ("Observed DidBecomeCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
- Console.WriteLine ("Observed DidConnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
- Console.WriteLine ("Observed DidDisconnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
- Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
<member name="P:GameController.GCMouseInput.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/maccatalyst/generated-sources/GameController/GCMouse.g.cs b/new/dotnet/maccatalyst/generated-sources/GameController/GCMouse.g.cs
index 8f9cbdb..154b957 100644
--- a/old/dotnet/maccatalyst/generated-sources/GameController/GCMouse.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/GameController/GCMouse.g.cs
@@ -54,7 +54,7 @@ namespace GameController {
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
- public unsafe partial class GCMouse : NSObject, IGCDevice, INSCoding, INSSecureCoding {
+ public unsafe partial class GCMouse : NSObject, IGCDevice {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly NativeHandle class_ptr = Class.GetHandle ("GCMouse");
/// <summary>The Objective-C class handle for this class.</summary>
@@ -78,26 +78,6 @@ namespace GameController {
}
}
- /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- /// <param name="coder">The unarchiver object.</param>
- /// <remarks>
- /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
- /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
- /// </remarks>
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [DesignatedInitializer]
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("initWithCoder:")]
- public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty)
- {
- if (IsDirectBinding) {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- } else {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- }
- }
-
/// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
/// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
/// <remarks>
@@ -163,21 +143,6 @@ namespace GameController {
{
}
- [Export ("encodeWithCoder:")]
- [SupportedOSPlatform ("ios14.0")]
- [SupportedOSPlatform ("macos11.0")]
- [SupportedOSPlatform ("tvos14.0")]
- [SupportedOSPlatform ("maccatalyst14.0")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual void EncodeTo (NSCoder encoder)
- {
- var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
- if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- } else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- }
- }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static GCMouse? Current {
[Export ("current", ArgumentSemantic.Retain)]
diff --git a/old/dotnet/maccatalyst/ref/Microsoft.MacCatalyst.xml b/new/dotnet/maccatalyst/ref/Microsoft.MacCatalyst.xml
index 0d222cb..a06abf4 100644
--- a/old/dotnet/maccatalyst/ref/Microsoft.MacCatalyst.xml
+++ b/new/dotnet/maccatalyst/ref/Microsoft.MacCatalyst.xml
@@ -134643,6 +134643,238 @@
</para>
</remarks>
</member>
+ <member name="P:GameController.GCMouse.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor">
+ <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="T:GameController.GCMouse.Notifications">
+ <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
+ <remarks>
+ <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
+ <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
+ Console.WriteLine ("Observed DidBecomeCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
+ Console.WriteLine ("Observed DidConnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
+ Console.WriteLine ("Observed DidDisconnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
+ Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
<member name="P:GameController.GCColor.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
@@ -136320,247 +136552,6 @@
</para>
</remarks>
</member>
- <member name="P:GameController.GCMouse.ClassHandle">
- <summary>The Objective-C class handle for this class.</summary>
- <value>The pointer to the Objective-C class.</value>
- <remarks>
- Each managed class mirrors an unmanaged Objective-C class.
- This value contains the pointer to the Objective-C class.
- It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor">
- <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSCoder)">
- <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- <param name="coder">The unarchiver object.</param>
- <remarks>
- <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
- <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
- <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
- <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
- <remarks>
- <para>
- This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
- This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
- When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
- The actual initialization of the object is up to the developer.
- </para>
- <para>
- This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
- Once the allocation has taken place, the constructor has to initialize the object.
- With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
- </para>
- <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
- <para>
- In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
- If this is not the case, developers should instead chain to the proper constructor in their class.
- </para>
- <para>
- The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
- Typically the chaining would look like this:
- </para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- //
- // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
- // No actual initXxx method is invoked, that is done later in the constructor
- //
- // This is taken from the iOS SDK's source code for the UIView class:
- //
- [Export ("initWithFrame:")]
- public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
- {
- // Invoke the init method now.
- var initWithFrame = new Selector ("initWithFrame:").Handle;
- if (IsDirectBinding) {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
- } else {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
- }
- }
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
- <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
- <param name="handle">Pointer (handle) to the unmanaged object.</param>
- <remarks>
- <para>
- This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
- Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
- </para>
- </remarks>
- </member>
- <member name="T:GameController.GCMouse.Notifications">
- <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
- <remarks>
- <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
- <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
- Console.WriteLine ("Observed DidBecomeCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
- Console.WriteLine ("Observed DidConnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
- Console.WriteLine ("Observed DidDisconnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
- Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
<member name="P:GameController.GCMouseInput.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/macos/SourceLink.json b/new/dotnet/macos/SourceLink.json
index e4de32a..3895cba 100644
--- a/old/dotnet/macos/SourceLink.json
+++ b/new/dotnet/macos/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/475ef600b87749f8422991bd9babb6d646005508/src*"
+ "/Users/builder/azdo/_work/1/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/72445630edf7f3b60b8a576088edf5c761e7b4be/src*"
}
}
diff --git a/old/dotnet/macos/doc/Microsoft.macOS.xml b/new/dotnet/macos/doc/Microsoft.macOS.xml
index 0c06a87..3ea9c38 100644
--- a/old/dotnet/macos/doc/Microsoft.macOS.xml
+++ b/new/dotnet/macos/doc/Microsoft.macOS.xml
@@ -135294,6 +135294,238 @@
</para>
</remarks>
</member>
+ <member name="P:GameController.GCMouse.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor">
+ <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="T:GameController.GCMouse.Notifications">
+ <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
+ <remarks>
+ <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
+ <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
+ Console.WriteLine ("Observed DidBecomeCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
+ Console.WriteLine ("Observed DidConnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
+ Console.WriteLine ("Observed DidDisconnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
+ Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
<member name="P:GameController.GCColor.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
@@ -136971,247 +137203,6 @@
</para>
</remarks>
</member>
- <member name="P:GameController.GCMouse.ClassHandle">
- <summary>The Objective-C class handle for this class.</summary>
- <value>The pointer to the Objective-C class.</value>
- <remarks>
- Each managed class mirrors an unmanaged Objective-C class.
- This value contains the pointer to the Objective-C class.
- It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor">
- <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSCoder)">
- <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- <param name="coder">The unarchiver object.</param>
- <remarks>
- <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
- <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
- <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
- <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
- <remarks>
- <para>
- This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
- This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
- When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
- The actual initialization of the object is up to the developer.
- </para>
- <para>
- This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
- Once the allocation has taken place, the constructor has to initialize the object.
- With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
- </para>
- <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
- <para>
- In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
- If this is not the case, developers should instead chain to the proper constructor in their class.
- </para>
- <para>
- The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
- Typically the chaining would look like this:
- </para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- //
- // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
- // No actual initXxx method is invoked, that is done later in the constructor
- //
- // This is taken from the iOS SDK's source code for the UIView class:
- //
- [Export ("initWithFrame:")]
- public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
- {
- // Invoke the init method now.
- var initWithFrame = new Selector ("initWithFrame:").Handle;
- if (IsDirectBinding) {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
- } else {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
- }
- }
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
- <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
- <param name="handle">Pointer (handle) to the unmanaged object.</param>
- <remarks>
- <para>
- This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
- Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
- </para>
- </remarks>
- </member>
- <member name="T:GameController.GCMouse.Notifications">
- <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
- <remarks>
- <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
- <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
- Console.WriteLine ("Observed DidBecomeCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
- Console.WriteLine ("Observed DidConnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
- Console.WriteLine ("Observed DidDisconnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
- Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
<member name="P:GameController.GCMouseInput.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/macos/generated-sources/GameController/GCMouse.g.cs b/new/dotnet/macos/generated-sources/GameController/GCMouse.g.cs
index 5eef939..f104d2c 100644
--- a/old/dotnet/macos/generated-sources/GameController/GCMouse.g.cs
+++ b/new/dotnet/macos/generated-sources/GameController/GCMouse.g.cs
@@ -49,20 +49,14 @@ namespace GameController {
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
- public unsafe partial class GCMouse : NSObject, IGCDevice, INSCoding, INSSecureCoding {
+ public unsafe partial class GCMouse : NSObject, IGCDevice {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selCurrentX = "current";
static readonly NativeHandle selCurrentXHandle = Selector.GetHandle ("current");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- const string selEncodeWithCoder_X = "encodeWithCoder:";
- static readonly NativeHandle selEncodeWithCoder_XHandle = Selector.GetHandle ("encodeWithCoder:");
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selHandlerQueueX = "handlerQueue";
static readonly NativeHandle selHandlerQueueXHandle = Selector.GetHandle ("handlerQueue");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- const string selInitWithCoder_X = "initWithCoder:";
- static readonly NativeHandle selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selMiceX = "mice";
static readonly NativeHandle selMiceXHandle = Selector.GetHandle ("mice");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -103,26 +97,6 @@ namespace GameController {
}
}
- /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- /// <param name="coder">The unarchiver object.</param>
- /// <remarks>
- /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
- /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
- /// </remarks>
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [DesignatedInitializer]
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("initWithCoder:")]
- public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty)
- {
- if (IsDirectBinding) {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
- } else {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
- }
- }
-
/// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
/// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
/// <remarks>
@@ -188,21 +162,6 @@ namespace GameController {
{
}
- [Export ("encodeWithCoder:")]
- [SupportedOSPlatform ("ios14.0")]
- [SupportedOSPlatform ("macos11.0")]
- [SupportedOSPlatform ("tvos14.0")]
- [SupportedOSPlatform ("maccatalyst14.0")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual void EncodeTo (NSCoder encoder)
- {
- var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
- if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selEncodeWithCoder_XHandle, encoder__handle__);
- } else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selEncodeWithCoder_XHandle, encoder__handle__);
- }
- }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static GCMouse? Current {
[Export ("current", ArgumentSemantic.Retain)]
diff --git a/old/dotnet/macos/ref/Microsoft.macOS.xml b/new/dotnet/macos/ref/Microsoft.macOS.xml
index 183728c..f383a1d 100644
--- a/old/dotnet/macos/ref/Microsoft.macOS.xml
+++ b/new/dotnet/macos/ref/Microsoft.macOS.xml
@@ -135119,6 +135119,238 @@
</para>
</remarks>
</member>
+ <member name="P:GameController.GCMouse.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor">
+ <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="T:GameController.GCMouse.Notifications">
+ <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
+ <remarks>
+ <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
+ <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
+ Console.WriteLine ("Observed DidBecomeCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
+ Console.WriteLine ("Observed DidConnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
+ Console.WriteLine ("Observed DidDisconnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
+ Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
<member name="P:GameController.GCColor.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
@@ -136796,247 +137028,6 @@
</para>
</remarks>
</member>
- <member name="P:GameController.GCMouse.ClassHandle">
- <summary>The Objective-C class handle for this class.</summary>
- <value>The pointer to the Objective-C class.</value>
- <remarks>
- Each managed class mirrors an unmanaged Objective-C class.
- This value contains the pointer to the Objective-C class.
- It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor">
- <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSCoder)">
- <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- <param name="coder">The unarchiver object.</param>
- <remarks>
- <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
- <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
- <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
- <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
- <remarks>
- <para>
- This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
- This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
- When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
- The actual initialization of the object is up to the developer.
- </para>
- <para>
- This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
- Once the allocation has taken place, the constructor has to initialize the object.
- With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
- </para>
- <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
- <para>
- In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
- If this is not the case, developers should instead chain to the proper constructor in their class.
- </para>
- <para>
- The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
- Typically the chaining would look like this:
- </para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- //
- // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
- // No actual initXxx method is invoked, that is done later in the constructor
- //
- // This is taken from the iOS SDK's source code for the UIView class:
- //
- [Export ("initWithFrame:")]
- public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
- {
- // Invoke the init method now.
- var initWithFrame = new Selector ("initWithFrame:").Handle;
- if (IsDirectBinding) {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
- } else {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
- }
- }
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
- <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
- <param name="handle">Pointer (handle) to the unmanaged object.</param>
- <remarks>
- <para>
- This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
- Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
- </para>
- </remarks>
- </member>
- <member name="T:GameController.GCMouse.Notifications">
- <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
- <remarks>
- <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
- <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
- Console.WriteLine ("Observed DidBecomeCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
- Console.WriteLine ("Observed DidConnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
- Console.WriteLine ("Observed DidDisconnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
- Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
<member name="P:GameController.GCMouseInput.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/projects/MacCatalyst/MacCatalyst.csproj b/new/dotnet/projects/MacCatalyst/MacCatalyst.csproj
index ae1c5fa..a765a79 100644
--- a/old/dotnet/projects/MacCatalyst/MacCatalyst.csproj
+++ b/new/dotnet/projects/MacCatalyst/MacCatalyst.csproj
@@ -556,6 +556,7 @@
<Compile Include="../../../../GameController/GCGamepadSnapshot.cs" Link="sources/GameController/GCGamepadSnapshot.cs"/>
<Compile Include="../../../../GameController/GCMicroGamepadSnapshot.cs" Link="sources/GameController/GCMicroGamepadSnapshot.cs"/>
<Compile Include="../../../../GameController/GCMotion.cs" Link="sources/GameController/GCMotion.cs"/>
+ <Compile Include="../../../../GameController/GCMouse.cs" Link="sources/GameController/GCMouse.cs"/>
<Compile Include="../../../../GameKit/GKCompat.cs" Link="sources/GameKit/GKCompat.cs"/>
<Compile Include="../../../../GameKit/GKLocalPlayerListener.cs" Link="sources/GameKit/GKLocalPlayerListener.cs"/>
<Compile Include="../../../../GameKit/GKScore.cs" Link="sources/GameKit/GKScore.cs"/>
diff --git a/old/dotnet/projects/iOS/iOS.csproj b/new/dotnet/projects/iOS/iOS.csproj
index 07ac084..976e553 100644
--- a/old/dotnet/projects/iOS/iOS.csproj
+++ b/new/dotnet/projects/iOS/iOS.csproj
@@ -503,6 +503,7 @@
<Compile Include="../../../../GameController/GCGamepadSnapshot.cs" Link="sources/GameController/GCGamepadSnapshot.cs"/>
<Compile Include="../../../../GameController/GCMicroGamepadSnapshot.cs" Link="sources/GameController/GCMicroGamepadSnapshot.cs"/>
<Compile Include="../../../../GameController/GCMotion.cs" Link="sources/GameController/GCMotion.cs"/>
+ <Compile Include="../../../../GameController/GCMouse.cs" Link="sources/GameController/GCMouse.cs"/>
<Compile Include="../../../../GameKit/GKCompat.cs" Link="sources/GameKit/GKCompat.cs"/>
<Compile Include="../../../../GameKit/GKLocalPlayerListener.cs" Link="sources/GameKit/GKLocalPlayerListener.cs"/>
<Compile Include="../../../../GameKit/GKScore.cs" Link="sources/GameKit/GKScore.cs"/>
diff --git a/old/dotnet/projects/macOS/macOS.csproj b/new/dotnet/projects/macOS/macOS.csproj
index 925c7e3..3e27857 100644
--- a/old/dotnet/projects/macOS/macOS.csproj
+++ b/new/dotnet/projects/macOS/macOS.csproj
@@ -554,6 +554,7 @@
<Compile Include="../../../../GameController/GCGamepadSnapshot.cs" Link="sources/GameController/GCGamepadSnapshot.cs"/>
<Compile Include="../../../../GameController/GCMicroGamepadSnapshot.cs" Link="sources/GameController/GCMicroGamepadSnapshot.cs"/>
<Compile Include="../../../../GameController/GCMotion.cs" Link="sources/GameController/GCMotion.cs"/>
+ <Compile Include="../../../../GameController/GCMouse.cs" Link="sources/GameController/GCMouse.cs"/>
<Compile Include="../../../../GameKit/GKCompat.cs" Link="sources/GameKit/GKCompat.cs"/>
<Compile Include="../../../../GameKit/GKLocalPlayerListener.cs" Link="sources/GameKit/GKLocalPlayerListener.cs"/>
<Compile Include="../../../../GameKit/GKScore.cs" Link="sources/GameKit/GKScore.cs"/>
diff --git a/old/dotnet/projects/tvOS/tvOS.csproj b/new/dotnet/projects/tvOS/tvOS.csproj
index 9ad0265..2e20a4b 100644
--- a/old/dotnet/projects/tvOS/tvOS.csproj
+++ b/new/dotnet/projects/tvOS/tvOS.csproj
@@ -453,6 +453,7 @@
<Compile Include="../../../../GameController/GCGamepadSnapshot.cs" Link="sources/GameController/GCGamepadSnapshot.cs"/>
<Compile Include="../../../../GameController/GCMicroGamepadSnapshot.cs" Link="sources/GameController/GCMicroGamepadSnapshot.cs"/>
<Compile Include="../../../../GameController/GCMotion.cs" Link="sources/GameController/GCMotion.cs"/>
+ <Compile Include="../../../../GameController/GCMouse.cs" Link="sources/GameController/GCMouse.cs"/>
<Compile Include="../../../../GameKit/GKCompat.cs" Link="sources/GameKit/GKCompat.cs"/>
<Compile Include="../../../../GameKit/GKLocalPlayerListener.cs" Link="sources/GameKit/GKLocalPlayerListener.cs"/>
<Compile Include="../../../../GameKit/GKScore.cs" Link="sources/GameKit/GKScore.cs"/>
diff --git a/old/dotnet/tvos/SourceLink.json b/new/dotnet/tvos/SourceLink.json
index e4de32a..3895cba 100644
--- a/old/dotnet/tvos/SourceLink.json
+++ b/new/dotnet/tvos/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/1/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/475ef600b87749f8422991bd9babb6d646005508/src*"
+ "/Users/builder/azdo/_work/1/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/72445630edf7f3b60b8a576088edf5c761e7b4be/src*"
}
}
diff --git a/old/dotnet/tvos/doc/Microsoft.tvOS.xml b/new/dotnet/tvos/doc/Microsoft.tvOS.xml
index fa16a9f..e063201 100644
--- a/old/dotnet/tvos/doc/Microsoft.tvOS.xml
+++ b/new/dotnet/tvos/doc/Microsoft.tvOS.xml
@@ -93082,6 +93082,238 @@
</para>
</remarks>
</member>
+ <member name="P:GameController.GCMouse.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor">
+ <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="T:GameController.GCMouse.Notifications">
+ <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
+ <remarks>
+ <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
+ <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
+ Console.WriteLine ("Observed DidBecomeCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
+ Console.WriteLine ("Observed DidConnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
+ Console.WriteLine ("Observed DidDisconnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
+ Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
<member name="P:GameController.GCColor.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
@@ -94693,247 +94925,6 @@
</para>
</remarks>
</member>
- <member name="P:GameController.GCMouse.ClassHandle">
- <summary>The Objective-C class handle for this class.</summary>
- <value>The pointer to the Objective-C class.</value>
- <remarks>
- Each managed class mirrors an unmanaged Objective-C class.
- This value contains the pointer to the Objective-C class.
- It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor">
- <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSCoder)">
- <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- <param name="coder">The unarchiver object.</param>
- <remarks>
- <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
- <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
- <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
- <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
- <remarks>
- <para>
- This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
- This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
- When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
- The actual initialization of the object is up to the developer.
- </para>
- <para>
- This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
- Once the allocation has taken place, the constructor has to initialize the object.
- With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
- </para>
- <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
- <para>
- In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
- If this is not the case, developers should instead chain to the proper constructor in their class.
- </para>
- <para>
- The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
- Typically the chaining would look like this:
- </para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- //
- // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
- // No actual initXxx method is invoked, that is done later in the constructor
- //
- // This is taken from the iOS SDK's source code for the UIView class:
- //
- [Export ("initWithFrame:")]
- public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
- {
- // Invoke the init method now.
- var initWithFrame = new Selector ("initWithFrame:").Handle;
- if (IsDirectBinding) {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
- } else {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
- }
- }
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
- <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
- <param name="handle">Pointer (handle) to the unmanaged object.</param>
- <remarks>
- <para>
- This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
- Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
- </para>
- </remarks>
- </member>
- <member name="T:GameController.GCMouse.Notifications">
- <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
- <remarks>
- <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
- <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
- Console.WriteLine ("Observed DidBecomeCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
- Console.WriteLine ("Observed DidConnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
- Console.WriteLine ("Observed DidDisconnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
- Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
<member name="P:GameController.GCMouseInput.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/tvos/generated-sources/GameController/GCMouse.g.cs b/new/dotnet/tvos/generated-sources/GameController/GCMouse.g.cs
index 1b3d203..913b86f 100644
--- a/old/dotnet/tvos/generated-sources/GameController/GCMouse.g.cs
+++ b/new/dotnet/tvos/generated-sources/GameController/GCMouse.g.cs
@@ -46,7 +46,7 @@ namespace GameController {
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
- public unsafe partial class GCMouse : NSObject, IGCDevice, INSCoding, INSSecureCoding {
+ public unsafe partial class GCMouse : NSObject, IGCDevice {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly NativeHandle class_ptr = Class.GetHandle ("GCMouse");
/// <summary>The Objective-C class handle for this class.</summary>
@@ -70,26 +70,6 @@ namespace GameController {
}
}
- /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- /// <param name="coder">The unarchiver object.</param>
- /// <remarks>
- /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
- /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
- /// </remarks>
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [DesignatedInitializer]
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("initWithCoder:")]
- public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty)
- {
- if (IsDirectBinding) {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- } else {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- }
- }
-
/// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
/// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
/// <remarks>
@@ -155,21 +135,6 @@ namespace GameController {
{
}
- [Export ("encodeWithCoder:")]
- [SupportedOSPlatform ("ios14.0")]
- [SupportedOSPlatform ("macos11.0")]
- [SupportedOSPlatform ("tvos14.0")]
- [SupportedOSPlatform ("maccatalyst14.0")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual void EncodeTo (NSCoder encoder)
- {
- var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
- if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- } else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- }
- }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static GCMouse? Current {
[Export ("current", ArgumentSemantic.Retain)]
diff --git a/old/dotnet/tvos/ref/Microsoft.tvOS.xml b/new/dotnet/tvos/ref/Microsoft.tvOS.xml
index 33286e5..399f6a7 100644
--- a/old/dotnet/tvos/ref/Microsoft.tvOS.xml
+++ b/new/dotnet/tvos/ref/Microsoft.tvOS.xml
@@ -92916,6 +92916,238 @@
</para>
</remarks>
</member>
+ <member name="P:GameController.GCMouse.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor">
+ <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="T:GameController.GCMouse.Notifications">
+ <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
+ <remarks>
+ <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
+ <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
+ Console.WriteLine ("Observed DidBecomeCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
+ Console.WriteLine ("Observed DidConnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
+ Console.WriteLine ("Observed DidDisconnectNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for any object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
+ Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
+ <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
+ <param name="objectToObserve">The specific object to observe.</param>
+ <param name="handler">The handler that responds to the notification when it occurs.</param>
+ <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
+ <remarks>
+ <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ // Listen to all notifications posted for a single object
+ var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
+ Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
+ };
+
+ // Stop listening for notifications
+ token.Dispose ();
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
<member name="P:GameController.GCColor.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
@@ -94527,247 +94759,6 @@
</para>
</remarks>
</member>
- <member name="P:GameController.GCMouse.ClassHandle">
- <summary>The Objective-C class handle for this class.</summary>
- <value>The pointer to the Objective-C class.</value>
- <remarks>
- Each managed class mirrors an unmanaged Objective-C class.
- This value contains the pointer to the Objective-C class.
- It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor">
- <summary>Creates a new <see cref="T:GameController.GCMouse" /> with default values.</summary>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSCoder)">
- <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- <param name="coder">The unarchiver object.</param>
- <remarks>
- <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
- <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(Foundation.NSObjectFlag)">
- <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
- <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
- <remarks>
- <para>
- This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
- This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
- When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
- The actual initialization of the object is up to the developer.
- </para>
- <para>
- This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
- Once the allocation has taken place, the constructor has to initialize the object.
- With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
- </para>
- <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
- <para>
- In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
- If this is not the case, developers should instead chain to the proper constructor in their class.
- </para>
- <para>
- The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
- Typically the chaining would look like this:
- </para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- //
- // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
- // No actual initXxx method is invoked, that is done later in the constructor
- //
- // This is taken from the iOS SDK's source code for the UIView class:
- //
- [Export ("initWithFrame:")]
- public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
- {
- // Invoke the init method now.
- var initWithFrame = new Selector ("initWithFrame:").Handle;
- if (IsDirectBinding) {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
- } else {
- Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
- }
- }
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.#ctor(ObjCRuntime.NativeHandle)">
- <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
- <param name="handle">Pointer (handle) to the unmanaged object.</param>
- <remarks>
- <para>
- This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
- Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
- </para>
- </remarks>
- </member>
- <member name="T:GameController.GCMouse.Notifications">
- <summary>Notifications posted by the <see cref="T:GameController.GCMouse" /> class.</summary>
- <remarks>
- <para>This class contains various helper methods that allow developers to observe events posted in the notification hub (<see cref="T:Foundation.NSNotificationCenter" />).</para>
- <para>The methods defined in this class post events that invoke the provided method or lambda with a <see cref="T:Foundation.NSNotificationEventArgs" /> parameter, which contains strongly typed properties for the notification arguments.</para>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent ((notification) => {
- Console.WriteLine ("Observed DidBecomeCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidBecomeCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidBecomeCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidBecomeCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidBecomeCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidConnect ((notification) => {
- Console.WriteLine ("Observed DidConnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidConnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidConnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidConnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidConnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidConnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidDisconnect ((notification) => {
- Console.WriteLine ("Observed DidDisconnectNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidDisconnect(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidDisconnectNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidDisconnect (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidDisconnectNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for any object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent ((notification) => {
- Console.WriteLine ("Observed DidStopBeingCurrentNotification!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
- <member name="M:GameController.GCMouse.Notifications.ObserveDidStopBeingCurrent(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})">
- <summary>Strongly typed notification for the <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> constant.</summary>
- <param name="objectToObserve">The specific object to observe.</param>
- <param name="handler">The handler that responds to the notification when it occurs.</param>
- <returns>Token object that can be used to stop receiving notifications by either disposing it or passing it to <see cref="M:Foundation.NSNotificationCenter.RemoveObservers(System.Collections.Generic.IEnumerable{Foundation.NSObject})" />.</returns>
- <remarks>
- <para>This method can be used to subscribe to <see cref="P:GameController.GCMouse.DidStopBeingCurrentNotification" /> notifications.</para>
- <example>
- <code lang="csharp lang-csharp"><![CDATA[
- // Listen to all notifications posted for a single object
- var token = GCMouse.Notifications.ObserveDidStopBeingCurrent (objectToObserve, (notification) => {
- Console.WriteLine ($"Observed DidStopBeingCurrentNotification for {nameof (objectToObserve)}!");
- };
-
- // Stop listening for notifications
- token.Dispose ();
- ]]></code>
- </example>
- </remarks>
- </member>
<member name="P:GameController.GCMouseInput.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/ios/native/GameController/GCMouse.g.cs b/new/ios/native/GameController/GCMouse.g.cs
index 37c2b44..29e0332 100644
--- a/old/ios/native/GameController/GCMouse.g.cs
+++ b/new/ios/native/GameController/GCMouse.g.cs
@@ -53,7 +53,7 @@ namespace GameController {
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
- public unsafe partial class GCMouse : NSObject, IGCDevice, INSCoding, INSSecureCoding {
+ public unsafe partial class GCMouse : NSObject, IGCDevice {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
#if ARCH_32
#pragma warning disable 649
@@ -87,30 +87,6 @@ namespace GameController {
#endif
}
- /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- /// <param name="coder">The unarchiver object.</param>
- /// <remarks>
- /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
- /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
- /// </remarks>
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [DesignatedInitializer]
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("initWithCoder:")]
- public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty)
- {
- #if ARCH_32
- throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
- #else
- if (IsDirectBinding) {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- } else {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- }
- #endif
- }
-
/// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
/// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
/// <remarks>
@@ -176,17 +152,6 @@ namespace GameController {
{
}
- [Export ("encodeWithCoder:")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual void EncodeTo (NSCoder encoder)
- {
- var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
- if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- } else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- }
- }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static GCMouse? Current {
[Export ("current", ArgumentSemantic.Retain)]
diff --git a/old/mac/full/GameController/GCMouse.g.cs b/new/mac/full/GameController/GCMouse.g.cs
index fc03022..1aebce9 100644
--- a/old/mac/full/GameController/GCMouse.g.cs
+++ b/new/mac/full/GameController/GCMouse.g.cs
@@ -48,20 +48,14 @@ namespace GameController {
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
- public unsafe partial class GCMouse : NSObject, IGCDevice, INSCoding, INSSecureCoding {
+ public unsafe partial class GCMouse : NSObject, IGCDevice {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selCurrentX = "current";
static readonly IntPtr selCurrentXHandle = Selector.GetHandle ("current");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- const string selEncodeWithCoder_X = "encodeWithCoder:";
- static readonly IntPtr selEncodeWithCoder_XHandle = Selector.GetHandle ("encodeWithCoder:");
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selHandlerQueueX = "handlerQueue";
static readonly IntPtr selHandlerQueueXHandle = Selector.GetHandle ("handlerQueue");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- const string selInitWithCoder_X = "initWithCoder:";
- static readonly IntPtr selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selMiceX = "mice";
static readonly IntPtr selMiceXHandle = Selector.GetHandle ("mice");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -102,26 +96,6 @@ namespace GameController {
}
}
- /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- /// <param name="coder">The unarchiver object.</param>
- /// <remarks>
- /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
- /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
- /// </remarks>
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [DesignatedInitializer]
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("initWithCoder:")]
- public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty)
- {
- if (IsDirectBinding) {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
- } else {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
- }
- }
-
/// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
/// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
/// <remarks>
@@ -187,17 +161,6 @@ namespace GameController {
{
}
- [Export ("encodeWithCoder:")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual void EncodeTo (NSCoder encoder)
- {
- var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
- if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selEncodeWithCoder_XHandle, encoder__handle__);
- } else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selEncodeWithCoder_XHandle, encoder__handle__);
- }
- }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static GCMouse? Current {
[Export ("current", ArgumentSemantic.Retain)]
diff --git a/old/mac/mobile/GameController/GCMouse.g.cs b/new/mac/mobile/GameController/GCMouse.g.cs
index fc03022..1aebce9 100644
--- a/old/mac/mobile/GameController/GCMouse.g.cs
+++ b/new/mac/mobile/GameController/GCMouse.g.cs
@@ -48,20 +48,14 @@ namespace GameController {
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
- public unsafe partial class GCMouse : NSObject, IGCDevice, INSCoding, INSSecureCoding {
+ public unsafe partial class GCMouse : NSObject, IGCDevice {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selCurrentX = "current";
static readonly IntPtr selCurrentXHandle = Selector.GetHandle ("current");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- const string selEncodeWithCoder_X = "encodeWithCoder:";
- static readonly IntPtr selEncodeWithCoder_XHandle = Selector.GetHandle ("encodeWithCoder:");
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selHandlerQueueX = "handlerQueue";
static readonly IntPtr selHandlerQueueXHandle = Selector.GetHandle ("handlerQueue");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- const string selInitWithCoder_X = "initWithCoder:";
- static readonly IntPtr selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selMiceX = "mice";
static readonly IntPtr selMiceXHandle = Selector.GetHandle ("mice");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -102,26 +96,6 @@ namespace GameController {
}
}
- /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- /// <param name="coder">The unarchiver object.</param>
- /// <remarks>
- /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
- /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
- /// </remarks>
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [DesignatedInitializer]
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("initWithCoder:")]
- public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty)
- {
- if (IsDirectBinding) {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
- } else {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
- }
- }
-
/// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
/// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
/// <remarks>
@@ -187,17 +161,6 @@ namespace GameController {
{
}
- [Export ("encodeWithCoder:")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual void EncodeTo (NSCoder encoder)
- {
- var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
- if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selEncodeWithCoder_XHandle, encoder__handle__);
- } else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selEncodeWithCoder_XHandle, encoder__handle__);
- }
- }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static GCMouse? Current {
[Export ("current", ArgumentSemantic.Retain)]
diff --git a/old/tvos/tvos/GameController/GCMouse.g.cs b/new/tvos/tvos/GameController/GCMouse.g.cs
index f0d7b79..6531062 100644
--- a/old/tvos/tvos/GameController/GCMouse.g.cs
+++ b/new/tvos/tvos/GameController/GCMouse.g.cs
@@ -45,7 +45,7 @@ namespace GameController {
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 14,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)]
- public unsafe partial class GCMouse : NSObject, IGCDevice, INSCoding, INSSecureCoding {
+ public unsafe partial class GCMouse : NSObject, IGCDevice {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("GCMouse");
/// <summary>The Objective-C class handle for this class.</summary>
@@ -69,26 +69,6 @@ namespace GameController {
}
}
- /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
- /// <param name="coder">The unarchiver object.</param>
- /// <remarks>
- /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
- /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
- /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
- /// </remarks>
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [DesignatedInitializer]
- [EditorBrowsable (EditorBrowsableState.Advanced)]
- [Export ("initWithCoder:")]
- public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty)
- {
- if (IsDirectBinding) {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- } else {
- InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
- }
- }
-
/// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
/// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
/// <remarks>
@@ -154,17 +134,6 @@ namespace GameController {
{
}
- [Export ("encodeWithCoder:")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual void EncodeTo (NSCoder encoder)
- {
- var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
- if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- } else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
- }
- }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public static GCMouse? Current {
[Export ("current", ArgumentSemantic.Retain)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment