Package apple.uikit

Class UIImagePickerController

    • Constructor Detail

      • UIImagePickerController

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • attemptRotationToDeviceOrientation

        @Deprecated
        public static void attemptRotationToDeviceOrientation()
        Deprecated.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • availableCaptureModesForCameraDevice

        @Nullable
        public static @Nullable NSArray<? extends NSNumber> availableCaptureModesForCameraDevice​(long cameraDevice)
        returns array of NSNumbers (UIImagePickerControllerCameraCaptureMode) API-Since: 4.0
      • availableMediaTypesForSourceType

        @Nullable
        public static @Nullable NSArray<java.lang.String> availableMediaTypesForSourceType​(long sourceType)
        returns array of available media types (i.e. kUTTypeImage)
      • cancelPreviousPerformRequestsWithTarget

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

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

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

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • debugDescription_static

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

        public static java.lang.String description_static()
      • 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)
      • isCameraDeviceAvailable

        public static boolean isCameraDeviceAvailable​(long cameraDevice)
        returns YES if camera device is available API-Since: 4.0
      • isFlashAvailableForCameraDevice

        public static boolean isFlashAvailableForCameraDevice​(long cameraDevice)
        returns YES if camera device supports flash and torch. API-Since: 4.0
      • isSourceTypeAvailable

        public static boolean isSourceTypeAvailable​(long sourceType)
        returns YES if source is available (i.e. camera present)
      • isSubclassOfClass

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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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()
      • allowsEditing

        public boolean allowsEditing()
        replacement for -allowsImageEditing; default value is NO. API-Since: 3.1
      • allowsImageEditing

        @Deprecated
        public boolean allowsImageEditing()
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 3.1
      • cameraCaptureMode

        public long cameraCaptureMode()
        default is UIImagePickerControllerCameraCaptureModePhoto API-Since: 4.0
      • cameraDevice

        public long cameraDevice()
        default is UIImagePickerControllerCameraDeviceRear API-Since: 4.0
      • cameraFlashMode

        public long cameraFlashMode()
        default is UIImagePickerControllerCameraFlashModeAuto. API-Since: 4.0
      • cameraOverlayView

        @Nullable
        public @Nullable UIView cameraOverlayView()
        set a view to overlay the preview view. API-Since: 3.1
      • cameraViewTransform

        public CGAffineTransform cameraViewTransform()
        set the transform of the preview view. API-Since: 3.1
      • initWithNavigationBarClassToolbarClass

        public UIImagePickerController initWithNavigationBarClassToolbarClass​(@Nullable
                                                                              @Nullable org.moe.natj.objc.Class navigationBarClass,
                                                                              @Nullable
                                                                              @Nullable org.moe.natj.objc.Class toolbarClass)
        Description copied from class: UINavigationController
        Use this initializer to make the navigation controller use your custom bar class. Passing nil for navigationBarClass will get you UINavigationBar, nil for toolbarClass gets UIToolbar. The arguments must otherwise be subclasses of the respective UIKit classes. API-Since: 5.0
        Overrides:
        initWithNavigationBarClassToolbarClass in class UINavigationController
      • mediaTypes

        @NotNull
        public @NotNull NSArray<java.lang.String> mediaTypes()
      • setAllowsEditing

        public void setAllowsEditing​(boolean value)
        replacement for -allowsImageEditing; default value is NO. API-Since: 3.1
      • setAllowsImageEditing

        @Deprecated
        public void setAllowsImageEditing​(boolean value)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 3.1
      • setCameraCaptureMode

        public void setCameraCaptureMode​(long value)
        default is UIImagePickerControllerCameraCaptureModePhoto API-Since: 4.0
      • setCameraDevice

        public void setCameraDevice​(long value)
        default is UIImagePickerControllerCameraDeviceRear API-Since: 4.0
      • setCameraFlashMode

        public void setCameraFlashMode​(long value)
        default is UIImagePickerControllerCameraFlashModeAuto. API-Since: 4.0
      • setCameraOverlayView

        public void setCameraOverlayView​(@Nullable
                                         @Nullable UIView value)
        set a view to overlay the preview view. API-Since: 3.1
      • setCameraViewTransform

        public void setCameraViewTransform​(CGAffineTransform value)
        set the transform of the preview view. API-Since: 3.1
      • setMediaTypes

        public void setMediaTypes​(@NotNull
                                  @NotNull NSArray<java.lang.String> value)
      • setShowsCameraControls

        public void setShowsCameraControls​(boolean value)
        set to NO to hide all standard camera UI. default is YES API-Since: 3.1
      • setSourceType

        public void setSourceType​(long value)
        default value is UIImagePickerControllerSourceTypePhotoLibrary.
      • setVideoMaximumDuration

        public void setVideoMaximumDuration​(double value)
        default value is 10 minutes. API-Since: 3.1
      • setVideoQuality

        public void setVideoQuality​(long value)
        default value is UIImagePickerControllerQualityTypeMedium. If the cameraDevice does not support the videoQuality, it will use the default value. API-Since: 3.1
      • showsCameraControls

        public boolean showsCameraControls()
        set to NO to hide all standard camera UI. default is YES API-Since: 3.1
      • sourceType

        public long sourceType()
        default value is UIImagePickerControllerSourceTypePhotoLibrary.
      • startVideoCapture

        public boolean startVideoCapture()
        programmatically initiates still image capture. ignored if image capture is in-flight. clients can initiate additional captures after receiving -imagePickerController:didFinishPickingMediaWithInfo: delegate callback API-Since: 4.0
      • stopVideoCapture

        public void stopVideoCapture()
        API-Since: 4.0
      • takePicture

        public void takePicture()
        API-Since: 3.1
      • videoMaximumDuration

        public double videoMaximumDuration()
        default value is 10 minutes. API-Since: 3.1
      • videoQuality

        public long videoQuality()
        default value is UIImagePickerControllerQualityTypeMedium. If the cameraDevice does not support the videoQuality, it will use the default value. API-Since: 3.1
      • imageExportPreset

        @Deprecated
        public long imageExportPreset()
        Deprecated.
        default value is UIImagePickerControllerImageExportPresetCompatible. API-Since: 11.0 Deprecated-Since: 100000.0 Deprecated-Message: Will be removed in a future release, use PHPicker.
      • setImageExportPreset

        @Deprecated
        public void setImageExportPreset​(long value)
        Deprecated.
        default value is UIImagePickerControllerImageExportPresetCompatible. API-Since: 11.0 Deprecated-Since: 100000.0 Deprecated-Message: Will be removed in a future release, use PHPicker.
      • setVideoExportPreset

        @Deprecated
        public void setVideoExportPreset​(@NotNull
                                         @NotNull java.lang.String value)
        Deprecated.
        videoExportPreset can be used to specify the transcoding quality for videos (via a AVAssetExportPreset* string). If the value is nil (the default) then the transcodeQuality is determined by videoQuality instead. Not valid if the source type is UIImagePickerControllerSourceTypeCamera API-Since: 11.0 Deprecated-Since: 100000.0 Deprecated-Message: Will be removed in a future release, use PHPicker.
      • videoExportPreset

        @NotNull
        @Deprecated
        public @NotNull java.lang.String videoExportPreset()
        Deprecated.
        videoExportPreset can be used to specify the transcoding quality for videos (via a AVAssetExportPreset* string). If the value is nil (the default) then the transcodeQuality is determined by videoQuality instead. Not valid if the source type is UIImagePickerControllerSourceTypeCamera API-Since: 11.0 Deprecated-Since: 100000.0 Deprecated-Message: Will be removed in a future release, use PHPicker.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.