-
Notifications
You must be signed in to change notification settings - Fork 42
/
CNContactStore+Notifications.xml
116 lines (112 loc) · 7.78 KB
/
CNContactStore+Notifications.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<Type Name="CNContactStore+Notifications" FullName="Contacts.CNContactStore+Notifications">
<TypeSignature Language="C#" Value="public static class CNContactStore.Notifications" />
<TypeSignature Language="ILAsm" Value=".class nested public auto ansi abstract sealed beforefieldinit CNContactStore/Notifications extends System.Object" />
<TypeSignature Language="DocId" Value="T:Contacts.CNContactStore.Notifications" />
<TypeSignature Language="F#" Value="type CNContactStore.Notifications = class" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Contains contact store notifications.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="ObserveNotificationDidChange">
<MemberSignature Language="C#" Value="public static Foundation.NSObject ObserveNotificationDidChange (EventHandler<Foundation.NSNotificationEventArgs> handler);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Foundation.NSObject ObserveNotificationDidChange(class System.EventHandler`1<class Foundation.NSNotificationEventArgs> handler) cil managed" />
<MemberSignature Language="DocId" Value="M:Contacts.CNContactStore.Notifications.ObserveNotificationDidChange(System.EventHandler{Foundation.NSNotificationEventArgs})" />
<MemberSignature Language="F#" Value="static member ObserveNotificationDidChange : EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject" Usage="Contacts.CNContactStore.Notifications.ObserveNotificationDidChange handler" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Foundation.NSObject</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="handler" Type="System.EventHandler<Foundation.NSNotificationEventArgs>" />
</Parameters>
<Docs>
<param name="handler">Method to invoke when the notification is posted.</param>
<summary>Strongly typed notification for the <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=Contacts%20CNContact%20Store%20Notification%20Did%20Change%20Notification&scope=Xamarin" title="P:Contacts.CNContactStore.NotificationDidChangeNotification">P:Contacts.CNContactStore.NotificationDidChangeNotification</a></format> constant.</summary>
<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 id="tool-remark">This method can be used to subscribe for <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=Contacts%20CNContact%20Store%20Notification%20Did%20Change%20Notification&scope=Xamarin" title="P:Contacts.CNContactStore.NotificationDidChangeNotification">P:Contacts.CNContactStore.NotificationDidChangeNotification</a></format> notifications.</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
// Listen to all notifications posted for any object
var token = CNContactStore.Notifications.ObserveNotificationDidChange ((notification) => {
Console.WriteLine ("Observed NotificationDidChangeNotification!");
};
// Listen to all notifications posted for a single object
var token = CNContactStore.Notifications.ObserveNotificationDidChange (objectToObserve, (notification) => {
Console.WriteLine ($"Observed NotificationDidChangeNotification for {nameof (objectToObserve)}!");
};
// Stop listening for notifications
token.Dispose ();
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName="ObserveNotificationDidChange">
<MemberSignature Language="C#" Value="public static Foundation.NSObject ObserveNotificationDidChange (Foundation.NSObject objectToObserve, EventHandler<Foundation.NSNotificationEventArgs> handler);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Foundation.NSObject ObserveNotificationDidChange(class Foundation.NSObject objectToObserve, class System.EventHandler`1<class Foundation.NSNotificationEventArgs> handler) cil managed" />
<MemberSignature Language="DocId" Value="M:Contacts.CNContactStore.Notifications.ObserveNotificationDidChange(Foundation.NSObject,System.EventHandler{Foundation.NSNotificationEventArgs})" />
<MemberSignature Language="F#" Value="static member ObserveNotificationDidChange : Foundation.NSObject * EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject" Usage="Contacts.CNContactStore.Notifications.ObserveNotificationDidChange (objectToObserve, handler)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Foundation.NSObject</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="objectToObserve" Type="Foundation.NSObject" />
<Parameter Name="handler" Type="System.EventHandler<Foundation.NSNotificationEventArgs>" />
</Parameters>
<Docs>
<param name="objectToObserve">The object to observe.</param>
<param name="handler">Method to invoke when the notification is posted.</param>
<summary>Strongly typed notification for the <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=Contacts%20CNContact%20Store%20Notification%20Did%20Change%20Notification&scope=Xamarin" title="P:Contacts.CNContactStore.NotificationDidChangeNotification">P:Contacts.CNContactStore.NotificationDidChangeNotification</a></format> constant.</summary>
<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 id="tool-remark">This method can be used to subscribe for <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=Contacts%20CNContact%20Store%20Notification%20Did%20Change%20Notification&scope=Xamarin" title="P:Contacts.CNContactStore.NotificationDidChangeNotification">P:Contacts.CNContactStore.NotificationDidChangeNotification</a></format> notifications.</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
// Listen to all notifications posted for any object
var token = CNContactStore.Notifications.ObserveNotificationDidChange ((notification) => {
Console.WriteLine ("Observed NotificationDidChangeNotification!");
};
// Listen to all notifications posted for a single object
var token = CNContactStore.Notifications.ObserveNotificationDidChange (objectToObserve, (notification) => {
Console.WriteLine ($"Observed NotificationDidChangeNotification for {nameof (objectToObserve)}!");
};
// Stop listening for notifications
token.Dispose ();
]]></code>
</example>
</remarks>
</Docs>
</Member>
</Members>
</Type>