Edit

Share via


AVPlayer.AddBoundaryTimeObserver(NSValue[], DispatchQueue, Action) Method

Definition

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.

queue
DispatchQueue

To be added.

This parameter can be null.

handler
Action

The Action the system calls when playback reaches the specified times.

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.

Applies to