Share via


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

Definizione

Il sistema chiama quando handler la riproduzione raggiunge gli CMTime oggetti 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

Parametri

times
NSValue[]

NSValue oggetti che devono essere creati da oggetti T:CoreMotion.CMTime .

queue
DispatchQueue

Da aggiungere.

Questo parametro può essere null.

handler
Action

Il Action sistema chiama quando la riproduzione raggiunge i tempi specificati.

Restituisce

opague NSObject che deve essere passato a RemoveTimeObserver(NSObject).

Attributi

Commenti

Le chiamate a handler non sono garantite se i valori T:CoreMotion.CMTime in times sono vicini. Pertanto, gli sviluppatori devono assicurarsi che Action gestisce tutto il comportamento logico richiesto vicino a CurrentTime.

Si applica a