Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

AVRecorder.CanPerformReactionEffects

Indicates whether reactions can be performed on a particular AVCaptureDevice.

Component Version macOS Windows Linux Server iOS SDK
AVRecorder 13.5 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "AVRecorder.CanPerformReactionEffects"; AVSession )   More

Parameters

Parameter Description Example
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession

Result

Returns 1, 0 or error.

Description

Indicates whether reactions can be performed on a particular AVCaptureDevice.
This requires reactionEffectsEnabled to be true, as well as using a AVCaptureDeviceFormat with reactionEffectsSupported.

This readonly property returns 1 when resources for reactions are available on the device instance. When true, calls to AVRecorder.PerformEffectForReaction will render on the video feed, otherwise those calls are ignored. It is key-value observable.

Requires macOS 14.0 or iOS 17.0.

Examples

Try it:

MBS( "AVRecorder.CanPerformReactionEffects"; $$AVSession )

Example result:
ReactionBalloons
ReactionFireworks
ReactionThumbsUp
ReactionRain
ReactionThumbsDown
ReactionLasers
ReactionConfetti
ReactionHeart

See also

Release notes

Blog Entries

This function is free to use.

Created 21st October 2023, last changed 21st October 2023


AVRecorder.AvailableReactionTypes - AVRecorder.CaptureStillPhoto

💬 Ask a question or report a problem