Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVCaptureDeviceMBS class.

AVCaptureDeviceMBS.reactionEffectGesturesEnabled as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property AVFoundation MBS AVFoundation Plugin 23.5 ✅ Yes ❌ No ❌ No ✅ Yes All
A class property indicating whether gesture detection will trigger reaction effects on the video stream.
Example
If AVCaptureDeviceMBS.reactionEffectGesturesEnabled Then
MessageBox "reaction effects enabled"
Else
MessageBox "reaction effects not enabled."
End If

Gesture detection will only run when the device's activeFormat.reactionEffectsSupported is also true, which will be reflected by canPerformReactionEffects.

This property changes to reflect the Gestures state in Control Center.
Clients can call performEffectForReaction independently of whether gesture detection is enabled, reaction effects from either source will be intermixed.

Requires macOS 14.0 or iOS 17.0.
You may check AVCaptureReactionEffectStateMBS.available for whether this is available.
(Read only property)

AVCaptureDeviceMBS.reactionEffectsEnabled as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property AVFoundation MBS AVFoundation Plugin 23.5 ✅ Yes ❌ No ❌ No ✅ Yes All
A class property indicating whether the application is suitable for reaction effects, either by automatic gesture detection, or by calls to performEffectForReaction().
Example
If AVCaptureDeviceMBS.reactionEffectsEnabled Then
MessageBox "reaction effects enabled"
Else
MessageBox "reaction effects not enabled."
End If

Reactions are only rendered when the device's activeFormat.reactionEffectsSupported is also true, which will be reflected by canPerformReactionEffects when the feature is both enabled and supported.

On macOS, Reaction Effects are enabled by default for all applications. On iOS, Reaction Effects are enabled by default for video conferencing applications (apps that use "voip" as one of their UIBackgroundModes). Non video conferencing applications may opt in for Reaction Effects by adding the following key to their Info.plist:

<key>NSCameraReactionEffectsEnabled</key>
<true/>

Requires macOS 14.0 or iOS 17.0.
You may check AVCaptureReactionEffectStateMBS.available for whether this is available.
(Read only property)

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...