The currently active input source.
SDK
- macOS 10.7+
Framework
- AVFoundation
Declaration
@property(nonatomic, retain) AVCapture Device Input Source *activeInputSource;
Discussion
You use this property to get or set the currently active input source.
To set the format, you must first obtain exclusive access to the receiver using lock
. If you do not obtain exclusive access, set
throws a NSGeneric
.
The set method, set
, throws an NSInvalid
if you pass a format not present in the formats
array.
You can observe changes to the value of this property using Key-value observing.