1
<Type Name="AVPlayerItem+Notifications" FullName="MonoMac.AVFoundation.AVPlayerItem+Notifications">
2
<TypeSignature Language="C#" Value="public static class AVPlayerItem.Notifications" />
3
<TypeSignature Language="ILAsm" Value=".class nested public auto ansi abstract sealed beforefieldinit AVPlayerItem/Notifications extends System.Object" />
5
<AssemblyName>MonoMac</AssemblyName>
6
<AssemblyVersion>0.0.0.0</AssemblyVersion>
9
<BaseTypeName>System.Object</BaseTypeName>
14
<para>Notification posted by the <see cref="T:MonoMac.AVFoundation.AVPlayerItem" /> class.</para>
17
<para>This is a static class which contains various helper methods that allow developers to observe events posted in the iOS notification hub (<see cref="T:MonoTouch.Foundation.NSNotificationCenter" />).</para>
18
<para>The methods defined in this class post events invoke the provided method or lambda with a <see cref="T:MonoTouch.Foundation.NSNotificationEventArgs" /> parameter which contains strongly typed properties for the notification arguments.</para>
22
<Member MemberName="ObserveDidPlayToEndTime">
23
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDidPlayToEndTime (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
24
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDidPlayToEndTime(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
25
<MemberType>Method</MemberType>
27
<AssemblyVersion>0.0.0.0</AssemblyVersion>
30
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
33
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
36
<param name="handler">Method to invoke when the notification is posted.</param>
37
<summary>Registers a method to be notified when the AVPlayerItemDidPlayToEndTimeNotification notification is posted.</summary>
39
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
42
<para>The following example shows how you can use this method in your code</para>
50
notification = AVPlayerItem.Notifications.ObserveObserveDidPlayToEndTime ((sender, args) => {
51
/* Access strongly typed args */
52
Console.WriteLine ("Notification: {0}", args.Notification);
56
notification.Dispose ();
61
NSObject notification;
62
void Callback (object sender, ObserveDidPlayToEndTime args)
64
// Access strongly typed args
65
Console.WriteLine ("Notification: {0}", args.Notification);
70
notification = AVPlayerItem.Notifications.ObserveObserveDidPlayToEndTime (Callback);
75
notification.Dispose ();
81
<Member MemberName="ObserveItemFailedToPlayToEndTime">
82
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveItemFailedToPlayToEndTime (EventHandler<MonoMac.AVFoundation.AVPlayerItemErrorEventArgs> handler);" />
83
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveItemFailedToPlayToEndTime(class System.EventHandler`1<class MonoMac.AVFoundation.AVPlayerItemErrorEventArgs> handler) cil managed" />
84
<MemberType>Method</MemberType>
86
<AssemblyVersion>0.0.0.0</AssemblyVersion>
89
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
92
<Parameter Name="handler" Type="System.EventHandler<MonoMac.AVFoundation.AVPlayerItemErrorEventArgs>" />
95
<param name="handler">Method to invoke when the notification is posted.</param>
96
<summary>Registers a method to be notified when the AVPlayerItemFailedToPlayToEndTimeNotification notification is posted.</summary>
98
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
101
<para>The following example shows how you can use this method in your code</para>
109
notification = AVPlayerItem.Notifications.ObserveObserveItemFailedToPlayToEndTime ((sender, args) => {
110
/* Access strongly typed args */
111
Console.WriteLine ("Notification: {0}", args.Notification);
113
Console.WriteLine ("Error", args.Error);
116
// To stop listening:
117
notification.Dispose ();
122
NSObject notification;
123
void Callback (object sender, ObserveItemFailedToPlayToEndTime args)
125
// Access strongly typed args
126
Console.WriteLine ("Notification: {0}", args.Notification);
128
Console.WriteLine ("Error", args.Error);
133
notification = AVPlayerItem.Notifications.ObserveObserveItemFailedToPlayToEndTime (Callback);
138
notification.Dispose ();
144
<Member MemberName="ObserveNewAccessLogEntry">
145
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveNewAccessLogEntry (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
146
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveNewAccessLogEntry(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
147
<MemberType>Method</MemberType>
149
<AssemblyVersion>0.0.0.0</AssemblyVersion>
152
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
155
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
158
<param name="handler">To be added.</param>
159
<summary>To be added.</summary>
160
<returns>To be added.</returns>
161
<remarks>To be added.</remarks>
164
<Member MemberName="ObserveNewErrorLogEntry">
165
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveNewErrorLogEntry (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
166
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveNewErrorLogEntry(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
167
<MemberType>Method</MemberType>
169
<AssemblyVersion>0.0.0.0</AssemblyVersion>
172
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
175
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
178
<param name="handler">To be added.</param>
179
<summary>To be added.</summary>
180
<returns>To be added.</returns>
181
<remarks>To be added.</remarks>
184
<Member MemberName="ObservePlaybackStalled">
185
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObservePlaybackStalled (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
186
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObservePlaybackStalled(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
187
<MemberType>Method</MemberType>
189
<AssemblyVersion>0.0.0.0</AssemblyVersion>
192
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
195
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
198
<param name="handler">To be added.</param>
199
<summary>To be added.</summary>
200
<returns>To be added.</returns>
201
<remarks>To be added.</remarks>
204
<Member MemberName="ObserveTimeJumped">
205
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveTimeJumped (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
206
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveTimeJumped(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
207
<MemberType>Method</MemberType>
209
<AssemblyVersion>0.0.0.0</AssemblyVersion>
212
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
215
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
218
<param name="handler">Method to invoke when the notification is posted.</param>
219
<summary>Registers a method to be notified when the AVPlayerItemTimeJumpedNotification notification is posted.</summary>
221
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
224
<para>The following example shows how you can use this method in your code</para>
232
notification = AVPlayerItem.Notifications.ObserveObserveTimeJumped ((sender, args) => {
233
/* Access strongly typed args */
234
Console.WriteLine ("Notification: {0}", args.Notification);
237
// To stop listening:
238
notification.Dispose ();
243
NSObject notification;
244
void Callback (object sender, ObserveTimeJumped args)
246
// Access strongly typed args
247
Console.WriteLine ("Notification: {0}", args.Notification);
252
notification = AVPlayerItem.Notifications.ObserveObserveTimeJumped (Callback);
257
notification.Dispose ();