Package apple.uikit
Class UIImage
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIImage
-
- All Implemented Interfaces:
NSCoding,NSItemProviderReading,NSItemProviderWriting,NSSecureCoding,NSObject,UIAccessibilityIdentification,UIItemProviderPresentationSizeProviding
public class UIImage extends NSObject implements NSSecureCoding, NSItemProviderReading, NSItemProviderWriting, UIItemProviderPresentationSizeProviding, UIAccessibilityIdentification
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.foundation.protocol.NSItemProviderWriting
NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIImage(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long_itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)java.lang.Object_objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)NSArray<java.lang.String>_readableTypeIdentifiersForItemProvider()boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.NSArray<java.lang.String>_writableTypeIdentifiersForItemProvider_static()java.lang.StringaccessibilityIdentifier()A string that identifies the user interface element.static booleanaccessInstanceVariablesDirectly()static UIImageactionsImage()currently: white ellipsis on tinted filled circlestatic UIImageaddImage()currently: white + on green filled cirlceUIEdgeInsetsalignmentRectInsets()static UIImagealloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static UIImageanimatedImageNamedDuration(java.lang.String name, double duration)read sequence of files with suffix starting at 0 or 1static UIImageanimatedImageWithImagesDuration(NSArray<? extends UIImage> images, double duration)static UIImageanimatedResizableImageNamedCapInsetsDuration(java.lang.String name, UIEdgeInsets capInsets, double duration)sequence of filesstatic UIImageanimatedResizableImageNamedCapInsetsResizingModeDuration(java.lang.String name, UIEdgeInsets capInsets, long resizingMode, double duration)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)doublebaselineOffsetFromBottom()The baseline offset is expressed in points from the bottom of the image (positive = up, negative = down).static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)UIEdgeInsetscapInsets()default is UIEdgeInsetsZero for non resizable imagesCGImageRefCGImage()static UIImagecheckmarkImage()currently: white ✓ on tinted filled circleCIImageCIImage()returns underlying CIImage or nil if CGImageRef basedstatic NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()UIImageConfigurationconfiguration()Configuration support --------------------- This describes the configuration of the image.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddrawAsPatternInRect(CGRect rect)draws the image as a CGPatternvoiddrawAtPoint(CGPoint point)mode = kCGBlendModeNormal, alpha = 1.0voiddrawAtPointBlendModeAlpha(CGPoint point, int blendMode, double alpha)voiddrawInRect(CGRect rect)mode = kCGBlendModeNormal, alpha = 1.0voiddrawInRectBlendModeAlpha(CGRect rect, int blendMode, double alpha)doubleduration()total duration for all frames. default is 0 for non-animated imagesvoidencodeWithCoder(NSCoder coder)booleanflipsForRightToLeftLayoutDirection()booleanhasBaseline()static longhash_static()UIImageAssetimageAsset()The asset is not encoded along with the image.UIImageimageByApplyingSymbolConfiguration(UIImageSymbolConfiguration configuration)This is a convience method to apply another symbol configuration over an existing one.UIImageimageFlippedForRightToLeftLayoutDirection()Creates a version of this image that, when assigned to a UIImageView’s image property, draws its underlying image contents horizontally mirrored when running under a right-to-left language.static UIImageimageNamed(java.lang.String name)load from main bundlestatic UIImageimageNamedInBundleCompatibleWithTraitCollection(java.lang.String name, NSBundle bundle, UITraitCollection traitCollection)static UIImageimageNamedInBundleWithConfiguration(java.lang.String name, NSBundle bundle, UIImageConfiguration configuration)longimageOrientation()this will affect how the image is compositedUIGraphicsImageRendererFormatimageRendererFormat()Returns an optimal UIGraphicsImageRendererFormat instance for this image, maintaining pixel format and color space.NSArray<? extends UIImage>images()default is nil for non-animated imagesUIImageimageWithAlignmentRectInsets(UIEdgeInsets alignmentInsets)Support for constraint-based layout (auto layout) The alignmentRectInsets of a UIImage are used by UIImageView and other UIView and UIControl subclasses that take custom images to determine the view's alignment rect insets for constraint-based layout.UIImageimageWithBaselineOffsetFromBottom(double baselineOffset)static UIImageimageWithCGImage(CGImageRef cgImage)static UIImageimageWithCGImageScaleOrientation(CGImageRef cgImage, double scale, long orientation)static UIImageimageWithCIImage(CIImage ciImage)static UIImageimageWithCIImageScaleOrientation(CIImage ciImage, double scale, long orientation)UIImageimageWithConfiguration(UIImageConfiguration configuration)* Create a new image by replacing the existing configuration with a new onestatic UIImageimageWithContentsOfFile(java.lang.String path)static UIImageimageWithData(NSData data)static UIImageimageWithDataScale(NSData data, double scale)UIImageimageWithHorizontallyFlippedOrientation()Creates a version of this image with an imageOrientation property that is horizontally mirrored from this image’s.UIImageimageWithoutBaseline()UIImageimageWithRenderingMode(long renderingMode)Create a version of this image with the specified rendering mode.UIImageimageWithTintColor(UIColor color)UIImageimageWithTintColorRenderingMode(UIColor color, long renderingMode)UIImageinit()UIImageinitWithCGImage(CGImageRef cgImage)UIImageinitWithCGImageScaleOrientation(CGImageRef cgImage, double scale, long orientation)UIImageinitWithCIImage(CIImage ciImage)UIImageinitWithCIImageScaleOrientation(CIImage ciImage, double scale, long orientation)UIImageinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERUIImageinitWithContentsOfFile(java.lang.String path)UIImageinitWithData(NSData data)UIImageinitWithDataScale(NSData data, double scale)static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisSymbolImage()longitemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier)static longitemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longleftCapWidth()default is 0. if non-zero, horiz. stretchable. right cap is calculated as width - leftCapWidth - 1NSProgressloadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)One of writableTypeIdentifiersForItemProviderstatic java.lang.Objectnew_objc()static java.lang.ObjectobjectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)CGSizepreferredPresentationSizeForItemProvider()Implement this on an object which conforms to the NSItemProviderWriting protocol.static NSArray<java.lang.String>readableTypeIdentifiersForItemProvider()static UIImageremoveImage()currently: white - on red filled circlelongrenderingMode()UIImageresizableImageWithCapInsets(UIEdgeInsets capInsets)create a resizable version of this image. the interior is tiled when drawn.UIImageresizableImageWithCapInsetsResizingMode(UIEdgeInsets capInsets, long resizingMode)the interior is resized according to the resizingModelongresizingMode()default is UIImageResizingModeTilestatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)doublescale()voidsetAccessibilityIdentifier(java.lang.String value)A string that identifies the user interface element.static voidsetVersion_static(long aVersion)CGSizesize()reflects orientation setting.UIImagestretchableImageWithLeftCapWidthTopCapHeight(long leftCapWidth, long topCapHeight)use resizableImageWithCapInsets: and capInsets.static UIImagestrokedCheckmarkImage()currently: white ✓ on tinted filled and white stroked circlestatic org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()UIImageSymbolConfigurationsymbolConfiguration()Symbol configuration support ---------------------------- This describes the symbol configuration of a symbol image.static UIImagesystemImageNamed(java.lang.String name)Retrieve a system-provided image with the specified name.static UIImagesystemImageNamedCompatibleWithTraitCollection(java.lang.String name, UITraitCollection traitCollection)static UIImagesystemImageNamedWithConfiguration(java.lang.String name, UIImageConfiguration configuration)longtopCapHeight()default is 0. if non-zero, vert. stretchable. bottom cap is calculated as height - topCapWidth - 1UITraitCollectiontraitCollection()describes the image in terms of its traitsstatic longversion_static()NSArray<java.lang.String>writableTypeIdentifiersForItemProvider()static NSArray<java.lang.String>writableTypeIdentifiersForItemProvider_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UIImage alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animatedImageNamedDuration
public static UIImage animatedImageNamedDuration(java.lang.String name, double duration)
read sequence of files with suffix starting at 0 or 1
-
animatedImageWithImagesDuration
public static UIImage animatedImageWithImagesDuration(NSArray<? extends UIImage> images, double duration)
-
animatedResizableImageNamedCapInsetsDuration
public static UIImage animatedResizableImageNamedCapInsetsDuration(java.lang.String name, UIEdgeInsets capInsets, double duration)
sequence of files
-
animatedResizableImageNamedCapInsetsResizingModeDuration
public static UIImage animatedResizableImageNamedCapInsetsResizingModeDuration(java.lang.String name, UIEdgeInsets capInsets, long resizingMode, double duration)
-
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()
-
hash_static
public static long hash_static()
-
imageNamed
public static UIImage imageNamed(java.lang.String name)
load from main bundle
-
imageNamedInBundleCompatibleWithTraitCollection
public static UIImage imageNamedInBundleCompatibleWithTraitCollection(java.lang.String name, NSBundle bundle, UITraitCollection traitCollection)
-
imageWithCGImage
public static UIImage imageWithCGImage(CGImageRef cgImage)
-
imageWithCGImageScaleOrientation
public static UIImage imageWithCGImageScaleOrientation(CGImageRef cgImage, double scale, long orientation)
-
imageWithCIImageScaleOrientation
public static UIImage imageWithCIImageScaleOrientation(CIImage ciImage, double scale, long orientation)
-
imageWithContentsOfFile
public static UIImage imageWithContentsOfFile(java.lang.String path)
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
version_static
public static long version_static()
-
CGImage
public CGImageRef CGImage()
-
CIImage
public CIImage CIImage()
returns underlying CIImage or nil if CGImageRef based
-
accessibilityIdentifier
public java.lang.String accessibilityIdentifier()
Description copied from interface:UIAccessibilityIdentificationA string that identifies the user interface element. default == nil- Specified by:
accessibilityIdentifierin interfaceUIAccessibilityIdentification
-
alignmentRectInsets
public UIEdgeInsets alignmentRectInsets()
-
capInsets
public UIEdgeInsets capInsets()
default is UIEdgeInsetsZero for non resizable images
-
drawAsPatternInRect
public void drawAsPatternInRect(CGRect rect)
draws the image as a CGPattern
-
drawAtPoint
public void drawAtPoint(CGPoint point)
mode = kCGBlendModeNormal, alpha = 1.0
-
drawAtPointBlendModeAlpha
public void drawAtPointBlendModeAlpha(CGPoint point, int blendMode, double alpha)
-
drawInRect
public void drawInRect(CGRect rect)
mode = kCGBlendModeNormal, alpha = 1.0
-
drawInRectBlendModeAlpha
public void drawInRectBlendModeAlpha(CGRect rect, int blendMode, double alpha)
-
duration
public double duration()
total duration for all frames. default is 0 for non-animated images
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
flipsForRightToLeftLayoutDirection
public boolean flipsForRightToLeftLayoutDirection()
-
imageAsset
public UIImageAsset imageAsset()
The asset is not encoded along with the image. Returns nil if the image is not CGImage based.
-
imageFlippedForRightToLeftLayoutDirection
public UIImage imageFlippedForRightToLeftLayoutDirection()
Creates a version of this image that, when assigned to a UIImageView’s image property, draws its underlying image contents horizontally mirrored when running under a right-to-left language. Affects the flipsForRightToLeftLayoutDirection property; does not affect the imageOrientation property. This method cannot be used to create a left-to-right version of a right-to-left source image, and will be deprecated in a future release. New code should instead use -imageWithHorizontallyFlippedOrientation to construct a UIImageAsset.
-
imageOrientation
public long imageOrientation()
this will affect how the image is composited
-
imageRendererFormat
public UIGraphicsImageRendererFormat imageRendererFormat()
Returns an optimal UIGraphicsImageRendererFormat instance for this image, maintaining pixel format and color space.
-
imageWithAlignmentRectInsets
public UIImage imageWithAlignmentRectInsets(UIEdgeInsets alignmentInsets)
Support for constraint-based layout (auto layout) The alignmentRectInsets of a UIImage are used by UIImageView and other UIView and UIControl subclasses that take custom images to determine the view's alignment rect insets for constraint-based layout. The default alignmentRectInsets are UIEdgeInsetsZero.
-
imageWithHorizontallyFlippedOrientation
public UIImage imageWithHorizontallyFlippedOrientation()
Creates a version of this image with an imageOrientation property that is horizontally mirrored from this image’s. Does not affect the flipsForRightToLeftLayoutDirection property.
-
imageWithRenderingMode
public UIImage imageWithRenderingMode(long renderingMode)
Create a version of this image with the specified rendering mode. By default, images have a rendering mode of UIImageRenderingModeAutomatic.
-
initWithCGImage
public UIImage initWithCGImage(CGImageRef cgImage)
-
initWithCGImageScaleOrientation
public UIImage initWithCGImageScaleOrientation(CGImageRef cgImage, double scale, long orientation)
-
initWithCIImageScaleOrientation
public UIImage initWithCIImageScaleOrientation(CIImage ciImage, double scale, long orientation)
-
initWithCoder
public UIImage initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithContentsOfFile
public UIImage initWithContentsOfFile(java.lang.String path)
-
leftCapWidth
public long leftCapWidth()
default is 0. if non-zero, horiz. stretchable. right cap is calculated as width - leftCapWidth - 1
-
renderingMode
public long renderingMode()
-
resizableImageWithCapInsets
public UIImage resizableImageWithCapInsets(UIEdgeInsets capInsets)
create a resizable version of this image. the interior is tiled when drawn.
-
resizableImageWithCapInsetsResizingMode
public UIImage resizableImageWithCapInsetsResizingMode(UIEdgeInsets capInsets, long resizingMode)
the interior is resized according to the resizingMode
-
resizingMode
public long resizingMode()
default is UIImageResizingModeTile
-
scale
public double scale()
-
setAccessibilityIdentifier
public void setAccessibilityIdentifier(java.lang.String value)
Description copied from interface:UIAccessibilityIdentificationA string that identifies the user interface element. default == nil- Specified by:
setAccessibilityIdentifierin interfaceUIAccessibilityIdentification
-
size
public CGSize size()
reflects orientation setting. In iOS 4.0 and later, this is measured in points. In 3.x and earlier, measured in pixels
-
stretchableImageWithLeftCapWidthTopCapHeight
public UIImage stretchableImageWithLeftCapWidthTopCapHeight(long leftCapWidth, long topCapHeight)
use resizableImageWithCapInsets: and capInsets.
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding
-
topCapHeight
public long topCapHeight()
default is 0. if non-zero, vert. stretchable. bottom cap is calculated as height - topCapWidth - 1
-
traitCollection
public UITraitCollection traitCollection()
describes the image in terms of its traits
-
itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
-
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public long _itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
- Specified by:
_itemProviderVisibilityForRepresentationWithTypeIdentifier_staticin interfaceNSItemProviderWriting
-
itemProviderVisibilityForRepresentationWithTypeIdentifier
public long itemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier)
-
loadDataWithTypeIdentifierForItemProviderCompletionHandler
public NSProgress loadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
Description copied from interface:NSItemProviderWritingOne of writableTypeIdentifiersForItemProvider- Specified by:
loadDataWithTypeIdentifierForItemProviderCompletionHandlerin interfaceNSItemProviderWriting
-
objectWithItemProviderDataTypeIdentifierError
public static java.lang.Object objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
-
_objectWithItemProviderDataTypeIdentifierError
public java.lang.Object _objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
- Specified by:
_objectWithItemProviderDataTypeIdentifierErrorin interfaceNSItemProviderReading
-
preferredPresentationSizeForItemProvider
public CGSize preferredPresentationSizeForItemProvider()
Description copied from interface:UIItemProviderPresentationSizeProvidingImplement this on an object which conforms to the NSItemProviderWriting protocol. When the object is registered to NSItemProvider, this property will be used to automatically set the `preferredPresentationSize` property on NSItemProvider. Return CGSizeZero to indicate that this information is not available.- Specified by:
preferredPresentationSizeForItemProviderin interfaceUIItemProviderPresentationSizeProviding
-
readableTypeIdentifiersForItemProvider
public static NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
-
_readableTypeIdentifiersForItemProvider
public NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
- Specified by:
_readableTypeIdentifiersForItemProviderin interfaceNSItemProviderReading
-
writableTypeIdentifiersForItemProvider_static
public static NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
-
_writableTypeIdentifiersForItemProvider_static
public NSArray<java.lang.String> _writableTypeIdentifiersForItemProvider_static()
- Specified by:
_writableTypeIdentifiersForItemProvider_staticin interfaceNSItemProviderWriting
-
writableTypeIdentifiersForItemProvider
public NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
-
actionsImage
public static UIImage actionsImage()
currently: white ellipsis on tinted filled circle
-
addImage
public static UIImage addImage()
currently: white + on green filled cirlce
-
baselineOffsetFromBottom
public double baselineOffsetFromBottom()
The baseline offset is expressed in points from the bottom of the image (positive = up, negative = down). If the image doesn't have a defined baseline, this value will be 0, but you can use -hasBaseline to see if it actually has one defined (because it is perfectly possible to have a baseline with the value of 0).
-
checkmarkImage
public static UIImage checkmarkImage()
currently: white ✓ on tinted filled circle
-
configuration
public UIImageConfiguration configuration()
Configuration support --------------------- This describes the configuration of the image. Depending on which type of image, the configuration might be different. Symbol images will always have a UIImageSymbolConfiguration, even if you give it another type of configuration (it will merge the trait info from the other configuration into its current configuration). Images start off with an unspecified configuration but can be modified by the methods below. The preferred ways of adding configurations for displaying images is to specify them on the image view, but it is possible to modify images with a more specific configuration.
-
hasBaseline
public boolean hasBaseline()
-
imageByApplyingSymbolConfiguration
public UIImage imageByApplyingSymbolConfiguration(UIImageSymbolConfiguration configuration)
This is a convience method to apply another symbol configuration over an existing one. If the image doesn't have a symbolconfiguration, it will just merge the traits of the existing with the new one (where the new traits override the old traits). The symbol in Create a new image by applying the specified configuration over the existing one. This only works if the configuration already has a configuration (i.e. is a symbol image). The image will be configured with a combination of both configurations. If you use this on a symbol image with other layout modifications done (e.g. changed baseline), those changes will be lost and overwritten with the new configuration's layout properties. This applies to size, contentInsets and baseline.
-
imageNamedInBundleWithConfiguration
public static UIImage imageNamedInBundleWithConfiguration(java.lang.String name, NSBundle bundle, UIImageConfiguration configuration)
-
imageWithBaselineOffsetFromBottom
public UIImage imageWithBaselineOffsetFromBottom(double baselineOffset)
-
imageWithConfiguration
public UIImage imageWithConfiguration(UIImageConfiguration configuration)
* Create a new image by replacing the existing configuration with a new one. * For symbol images this will always result in an image with a UIImageSymbolConfiguration, * even if you give it another type of configuration (the trait info from the new configuration * will be merged into the current symbol configuration resulting in anew symbol configuration). * For non-symbol images, this will replace the configuration of the image with a new one. * * Important note! Given (for example): * * image = image(named:"the_image").withRenderingMode(.alwaysTemplate) * the following two statements aren't exactly equivalent: * * a = image.imageAsset.withConfiguration(configuration) * b = image.withConfiguration(configuration) * * The first one will resolve the image again from the asset catalog (if it is originating from one), * resulting in a fresh image without any modifications. In other words, `a` won't have the * rendering mode change set anymore, and it will be "reverted" to `.automatic`. * The second one will resolve the image, but apply and changes that were made to the image. * That means that `b` might be a different image, but it will still have the same rendering mode * as `image`.
-
imageWithTintColorRenderingMode
public UIImage imageWithTintColorRenderingMode(UIColor color, long renderingMode)
-
imageWithoutBaseline
public UIImage imageWithoutBaseline()
-
isSymbolImage
public boolean isSymbolImage()
-
removeImage
public static UIImage removeImage()
currently: white - on red filled circle
-
strokedCheckmarkImage
public static UIImage strokedCheckmarkImage()
currently: white ✓ on tinted filled and white stroked circle
-
symbolConfiguration
public UIImageSymbolConfiguration symbolConfiguration()
Symbol configuration support ---------------------------- This describes the symbol configuration of a symbol image. Symbol images start off with an unspecified configuration but can be modified by using `image.withConfiguration(:)`. However... the preferred ways of adding configurations for displaying images is to specify them on the image view using `preferredSymbolConfiguration`, but it is possible to modify images with a more specific configuration. This include image related traits, for example you can use this to fix a symbol image to a dynamic type style at a fixed preferred content size category.
-
systemImageNamed
public static UIImage systemImageNamed(java.lang.String name)
Retrieve a system-provided image with the specified name. This will only return system-provided images. If you want a custom image as defined in your own catalogs, you should use +imageNamed:. UIKit applications on macOS may pass NSImageName values (defined in) for the name to access macOS system images. Returns nil if an image with specified name doesn't exist.
-
systemImageNamedCompatibleWithTraitCollection
public static UIImage systemImageNamedCompatibleWithTraitCollection(java.lang.String name, UITraitCollection traitCollection)
-
systemImageNamedWithConfiguration
public static UIImage systemImageNamedWithConfiguration(java.lang.String name, UIImageConfiguration configuration)
-
-