Returns a modified version of this cue point. Because BCOVCuePoint objects
are immutable, an entirely new BCOVCuePoint must be created even if only
a single change is needed. Therefore, this method provides a convenient way
to obtain a temporary mutable copy of this instance and modify it (within
updateBlock
).
- (instancetype)update:(void ( ^ ) ( id<BCOVMutableCuePoint> mutableCuePoint ))updateBlock
Parameters
updateBlock |
A block which is passed a mutable copy of this cue point. |
Return Value
The copy of this cue point modified by updateBlock
.
Discussion
Returns a modified version of this cue point. Because BCOVCuePoint objects
are immutable, an entirely new BCOVCuePoint must be created even if only
a single change is needed. Therefore, this method provides a convenient way
to obtain a temporary mutable copy of this instance and modify it (within
updateBlock
).
Do not attempt to save a reference to the mutable cue point passed to
updateBlock
, as the behavior of doing this is undefined. Instead, make
whatever modifications are necessary in the block and then capture the cue
point object returned from this method.
Declared In
BCOVCuePoint.h