Package apple.uikit

Class UIImagePickerController

    • Constructor Detail

      • UIImagePickerController

        protected UIImagePickerController​(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)
      • attemptRotationToDeviceOrientation

        public static void attemptRotationToDeviceOrientation()
      • automaticallyNotifiesObserversForKey

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

        public static NSArray<? extends NSNumber> availableCaptureModesForCameraDevice​(long cameraDevice)
        returns array of NSNumbers (UIImagePickerControllerCameraCaptureMode)
      • availableMediaTypesForSourceType

        public static NSArray<java.lang.String> availableMediaTypesForSourceType​(long sourceType)
        returns array of available media types (i.e. kUTTypeImage)
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(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
      • isFlashAvailableForCameraDevice

        public static boolean isFlashAvailableForCameraDevice​(long cameraDevice)
        returns YES if camera device supports flash and torch.
      • 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

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

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

        public static void prepareInterstitialAds()
      • 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.
      • allowsImageEditing

        @Deprecated
        public boolean allowsImageEditing()
        Deprecated.
      • cameraCaptureMode

        public long cameraCaptureMode()
        default is UIImagePickerControllerCameraCaptureModePhoto
      • cameraDevice

        public long cameraDevice()
        default is UIImagePickerControllerCameraDeviceRear
      • cameraFlashMode

        public long cameraFlashMode()
        default is UIImagePickerControllerCameraFlashModeAuto.
      • cameraOverlayView

        public UIView cameraOverlayView()
        set a view to overlay the preview view.
      • cameraViewTransform

        public CGAffineTransform cameraViewTransform()
        set the transform of the preview view.
      • initWithNavigationBarClassToolbarClass

        public UIImagePickerController initWithNavigationBarClassToolbarClass​(org.moe.natj.objc.Class navigationBarClass,
                                                                              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.
        Overrides:
        initWithNavigationBarClassToolbarClass in class UINavigationController
      • mediaTypes

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

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

        @Deprecated
        public void setAllowsImageEditing​(boolean value)
        Deprecated.
      • setCameraCaptureMode

        public void setCameraCaptureMode​(long value)
        default is UIImagePickerControllerCameraCaptureModePhoto
      • setCameraDevice

        public void setCameraDevice​(long value)
        default is UIImagePickerControllerCameraDeviceRear
      • setCameraFlashMode

        public void setCameraFlashMode​(long value)
        default is UIImagePickerControllerCameraFlashModeAuto.
      • setCameraOverlayView

        public void setCameraOverlayView​(UIView value)
        set a view to overlay the preview view.
      • setCameraViewTransform

        public void setCameraViewTransform​(CGAffineTransform value)
        set the transform of the preview view.
      • setMediaTypes

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

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

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

        public void setVideoMaximumDuration​(double value)
        default value is 10 minutes.
      • setVideoQuality

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

        public boolean showsCameraControls()
        set to NO to hide all standard camera UI. default is YES
      • sourceType

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

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

        public void stopVideoCapture()
      • takePicture

        public void takePicture()
      • videoMaximumDuration

        public double videoMaximumDuration()
        default value is 10 minutes.
      • videoQuality

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

        public long imageExportPreset()
        default value is UIImagePickerControllerImageExportPresetCompatible.
      • setImageExportPreset

        public void setImageExportPreset​(long value)
        default value is UIImagePickerControllerImageExportPresetCompatible.
      • setVideoExportPreset

        public void setVideoExportPreset​(java.lang.String value)
        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
      • videoExportPreset

        public java.lang.String videoExportPreset()
        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