~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

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
//
// AVPlayer.cs: Complementing methods
//
// Author:
//   Miguel de Icaza (miguel@xamarin.com)
//
// Copyright 2012, Xamarin Inc
//
using System;
using MonoTouch.Foundation;
using MonoTouch.CoreMedia;

namespace MonoTouch.AVFoundation {
	public partial class AVPlayer {
		[Obsolete ("Use Seek(CMTime, AVCompletion) instead, the callback contains a `bool finished' parameter")]
		public void Seek (CMTime time, AVCompletionHandler completion)
		{
			Seek (time, (x) => { completion (); });
		}

		[Obsolete ("Use Seek(CMTime, CMTime, CMTIme, AVCompletion) instead, the callback contains a `bool finished' parameter")]
		public void Seek (CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, AVCompletionHandler completion)
		{
			Seek (time, toleranceBefore, toleranceAfter, (x) => { completion (); });
		}
	}

	public partial class AVPlayerItem {
		[Obsolete ("Use Seek(CMTime, CMTime, CMTIme, AVCompletion) instead, the callback contains a `bool finished' parameter")]
		public void Seek (CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, AVCompletionHandler completion)
		{
			Seek (time, toleranceBefore, toleranceAfter, (x) => { completion (); });
		}
	}
}