草庐IT

isFlashScene

全部标签

ios - AVCapturePhotoOutput isFlashScene 键值观察

我正在关注Apple的最新示例代码AVCamSwift,该代码已更新为使用AVCapturePhotoOutput。varisFlashScene:Bool{get}ABooleanvalueindicatingwhetherthescenecurrentlybeingpreviewedbythecamerawarrantsuseoftheflash.Thisproperty’svaluechangesdependingonthescenecurrentlyvisibletothecamera.Forexample,youmightusethispropertytohighlightt