performEffect(for:)
Performs the specified reaction type on the video stream.
Declaration
func performEffect(for reactionType: AVCaptureReactionType)Parameters
- reactionType:
A reaction type to perform. Specifying a type that doesn’t exists within the set of Availablereactiontypes for the device results in an exception.
Discussion
The entries in the reactionEffectsInProgress property may not reflect one-to-one with calls to this method. Depending on reaction style or resource limits, the system may coalesce overlapping reactions of the same type by extending an existing reaction rather than overlaying a new one.