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

« back to all changes in this revision

Viewing changes to external/maccore/src/AVFoundation/AVPlayer.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// AVPlayer.cs: Complementing methods
 
3
//
 
4
// Author:
 
5
//   Miguel de Icaza (miguel@xamarin.com)
 
6
//
 
7
// Copyright 2012, Xamarin Inc
 
8
//
 
9
using System;
 
10
using MonoTouch.Foundation;
 
11
using MonoTouch.CoreMedia;
 
12
 
 
13
namespace MonoTouch.AVFoundation {
 
14
        public partial class AVPlayer {
 
15
                [Obsolete ("Use Seek(CMTime, AVCompletion) instead, the callback contains a `bool finished' parameter")]
 
16
                public void Seek (CMTime time, AVCompletionHandler completion)
 
17
                {
 
18
                        Seek (time, (x) => { completion (); });
 
19
                }
 
20
 
 
21
                [Obsolete ("Use Seek(CMTime, CMTime, CMTIme, AVCompletion) instead, the callback contains a `bool finished' parameter")]
 
22
                public void Seek (CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, AVCompletionHandler completion)
 
23
                {
 
24
                        Seek (time, toleranceBefore, toleranceAfter, (x) => { completion (); });
 
25
                }
 
26
        }
 
27
 
 
28
        public partial class AVPlayerItem {
 
29
                [Obsolete ("Use Seek(CMTime, CMTime, CMTIme, AVCompletion) instead, the callback contains a `bool finished' parameter")]
 
30
                public void Seek (CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, AVCompletionHandler completion)
 
31
                {
 
32
                        Seek (time, toleranceBefore, toleranceAfter, (x) => { completion (); });
 
33
                }
 
34
        }
 
35
}
 
 
b'\\ No newline at end of file'