AVPlayer.AddBoundaryTimeObserver(NSValue[], DispatchQueue, Action) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The system calls the handler
when playback reaches the CMTime objects in times
.
[Foundation.Export("addBoundaryTimeObserverForTimes:queue:usingBlock:")]
public virtual Foundation.NSObject AddBoundaryTimeObserver (Foundation.NSValue[] times, CoreFoundation.DispatchQueue queue, Action handler);
abstract member AddBoundaryTimeObserver : Foundation.NSValue[] * CoreFoundation.DispatchQueue * Action -> Foundation.NSObject
override this.AddBoundaryTimeObserver : Foundation.NSValue[] * CoreFoundation.DispatchQueue * Action -> Foundation.NSObject
Parameters
- times
- NSValue[]
NSValue objects that must be created from T:CoreMotion.CMTime objects.
Returns
An opague NSObject that must be passed to RemoveTimeObserver(NSObject).
- Attributes
Remarks
Calls to handler
are not guaranteed if the T:CoreMotion.CMTime values in times
are close. Therefore, developers should ensure that their Action handles all logical behavior required near CurrentTime.