Class AVCaptureDeviceDiscoverySession

  • All Implemented Interfaces:
    NSObject

    public class AVCaptureDeviceDiscoverySession
    extends NSObject
    AVCaptureDeviceDiscoverySession The AVCaptureDeviceDiscoverySession allows clients to search for devices by certain criteria. This class allows clients to discover devices by providing certain search criteria. The objective of this class is to help find devices by device type and optionally by media type or position and allow you to key-value observe changes to the returned devices list.
    • Constructor Detail

      • AVCaptureDeviceDiscoverySession

        protected AVCaptureDeviceDiscoverySession​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • discoverySessionWithDeviceTypesMediaTypePosition

        public static AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypesMediaTypePosition​(NSArray<java.lang.String> deviceTypes,
                                                                                                       java.lang.String mediaType,
                                                                                                       long position)
        discoverySessionWithDeviceTypes: Returns an AVCaptureDeviceDiscoverySession instance for the given device types, media type, and position. The list of device types is mandatory. This is used to make sure that clients only get access to devices of types they expect. This prevents new device types from automatically being included in the list of devices.
        Parameters:
        deviceTypes - An array specifying the device types to include in the list of discovered devices.
        mediaType - The media type, such as AVMediaTypeVideo, AVMediaTypeAudio, or AVMediaTypeMuxed, to include in the list of discovered devices. Pass nil to search for devices with any media type.
        position - The position to include in the list of discovered devices. Pass AVCaptureDevicePositionUnspecified to search for devices with any position.
        Returns:
        The AVCaptureDeviceDiscoverySession from which the list of devices can be obtained.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • devices

        public NSArray<? extends AVCaptureDevice> devices()
        [@property] devices The list of devices that comply to the search criteria specified on the discovery session. The returned array contains only devices that are available at the time the method is called. Applications can key-value observe this property to be notified when the list of available devices has changed. For apps linked against iOS 10, the devices returned are unsorted. For apps linked against iOS 11 or later, the devices are sorted by AVCaptureDeviceType, matching the order specified in the deviceTypes parameter of +[AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes:mediaType:position:]. If a position of AVCaptureDevicePositionUnspecified is specified, the results are further ordered by position in the AVCaptureDevicePosition enum. Starting in Mac Catalyst 14.0, clients can key value observe the value of this property to be notified when the devices change.
      • supportedMultiCamDeviceSets

        public NSArray<? extends NSSet<? extends AVCaptureDevice>> supportedMultiCamDeviceSets()
        [@property] supportedMultiCamDeviceSets An array of sets of AVCaptureDevices that are allowed to be used simultaneously in an AVCaptureMultiCamSession. When using an AVCaptureMultiCamSession, multiple cameras may be used as device inputs to the session, so long as they are included in one of the supportedMultiCamDeviceSets. Starting in Mac Catalyst 14.0, clients can key value observe the value of this property to be notified when the device sets change.