public class UIImage extends NSObject implements NSSecureCoding, NSItemProviderReading, NSItemProviderWriting, UIItemProviderPresentationSizeProviding, UIAccessibilityIdentification
| Modifier and Type | Class and Description |
|---|---|
static interface |
UIImage.Block_prepareForDisplayWithCompletionHandler |
static interface |
UIImage.Block_prepareThumbnailOfSizeCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retNSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler| Modifier | Constructor and Description |
|---|---|
protected |
UIImage(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
long |
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier) |
UIImage |
_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.String |
accessibilityIdentifier()
A string that identifies the user interface element.
|
static boolean |
accessInstanceVariablesDirectly() |
static UIImage |
actionsImage()
currently: white ellipsis on tinted filled circle
|
static UIImage |
addImage()
currently: white + on green filled circle
|
UIEdgeInsets |
alignmentRectInsets() |
static UIImage |
alloc() |
static UIImage |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static UIImage |
animatedImageNamedDuration(java.lang.String name,
double duration)
read sequence of files with suffix starting at 0 or 1
|
static UIImage |
animatedImageWithImagesDuration(NSArray<? extends UIImage> images,
double duration) |
static UIImage |
animatedResizableImageNamedCapInsetsDuration(java.lang.String name,
UIEdgeInsets capInsets,
double duration)
sequence of files
|
static UIImage |
animatedResizableImageNamedCapInsetsResizingModeDuration(java.lang.String name,
UIEdgeInsets capInsets,
long resizingMode,
double duration) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
double |
baselineOffsetFromBottom()
The baseline offset is expressed in points from the bottom of the image (positive = up, negative = down).
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
UIEdgeInsets |
capInsets()
default is UIEdgeInsetsZero for non resizable images
|
CGImageRef |
CGImage() |
static UIImage |
checkmarkImage()
currently: white ✓ on tinted filled circle
|
CIImage |
CIImage()
returns underlying CIImage or nil if CGImageRef based
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
UIImageConfiguration |
configuration()
Configuration support
---------------------
This describes the configuration of the image.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
drawAsPatternInRect(CGRect rect)
draws the image as a CGPattern
|
void |
drawAtPoint(CGPoint point)
mode = kCGBlendModeNormal, alpha = 1.0
|
void |
drawAtPointBlendModeAlpha(CGPoint point,
int blendMode,
double alpha) |
void |
drawInRect(CGRect rect)
mode = kCGBlendModeNormal, alpha = 1.0
|
void |
drawInRectBlendModeAlpha(CGRect rect,
int blendMode,
double alpha) |
double |
duration()
total duration for all frames.
|
void |
encodeWithCoder(NSCoder coder) |
boolean |
flipsForRightToLeftLayoutDirection() |
boolean |
hasBaseline() |
static long |
hash_static() |
UIImageAsset |
imageAsset()
The asset is not encoded along with the image.
|
UIImage |
imageByApplyingSymbolConfiguration(UIImageSymbolConfiguration configuration)
This is a convenience method to apply another symbol configuration over an existing one.
|
UIImage |
imageByPreparingForDisplay()
Synchronously prepares this image for displaying on the specified screen.
|
UIImage |
imageByPreparingThumbnailOfSize(CGSize size) |
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.
|
static UIImage |
imageNamed(java.lang.String name)
load from main bundle
|
static UIImage |
imageNamedInBundleCompatibleWithTraitCollection(java.lang.String name,
NSBundle bundle,
UITraitCollection traitCollection) |
static UIImage |
imageNamedInBundleWithConfiguration(java.lang.String name,
NSBundle bundle,
UIImageConfiguration configuration) |
long |
imageOrientation()
this will affect how the image is composited
|
UIGraphicsImageRendererFormat |
imageRendererFormat()
Returns an optimal UIGraphicsImageRendererFormat instance for this image, maintaining pixel format and color space.
|
NSArray<? extends UIImage> |
images()
default is nil for non-animated images
|
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.
|
UIImage |
imageWithBaselineOffsetFromBottom(double baselineOffset) |
static UIImage |
imageWithCGImage(CGImageRef cgImage) |
static UIImage |
imageWithCGImageScaleOrientation(CGImageRef cgImage,
double scale,
long orientation) |
static UIImage |
imageWithCIImage(CIImage ciImage) |
static UIImage |
imageWithCIImageScaleOrientation(CIImage ciImage,
double scale,
long orientation) |
UIImage |
imageWithConfiguration(UIImageConfiguration configuration)
* Create a new image by replacing the existing configuration with a new one.
|
static UIImage |
imageWithContentsOfFile(java.lang.String path) |
static UIImage |
imageWithData(NSData data) |
static UIImage |
imageWithDataScale(NSData data,
double scale) |
UIImage |
imageWithHorizontallyFlippedOrientation()
Creates a version of this image with an imageOrientation property that is horizontally mirrored from this image’s.
|
UIImage |
imageWithoutBaseline() |
UIImage |
imageWithRenderingMode(long renderingMode)
Create a version of this image with the specified rendering mode.
|
UIImage |
imageWithTintColor(UIColor color) |
UIImage |
imageWithTintColorRenderingMode(UIColor color,
long renderingMode) |
UIImage |
init() |
UIImage |
initWithCGImage(CGImageRef cgImage) |
UIImage |
initWithCGImageScaleOrientation(CGImageRef cgImage,
double scale,
long orientation) |
UIImage |
initWithCIImage(CIImage ciImage) |
UIImage |
initWithCIImageScaleOrientation(CIImage ciImage,
double scale,
long orientation) |
UIImage |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
UIImage |
initWithContentsOfFile(java.lang.String path) |
UIImage |
initWithData(NSData data) |
UIImage |
initWithDataScale(NSData data,
double scale) |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isSymbolImage() |
static long |
itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier) |
long |
itemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
leftCapWidth()
default is 0.
|
NSProgress |
loadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier,
NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
One of writableTypeIdentifiersForItemProvider
|
static UIImage |
new_objc() |
static UIImage |
objectWithItemProviderDataTypeIdentifierError(NSData data,
java.lang.String typeIdentifier,
org.moe.natj.general.ptr.Ptr<NSError> outError) |
CGSize |
preferredPresentationSizeForItemProvider()
Implement this on an object which conforms to the NSItemProviderWriting protocol.
|
void |
prepareForDisplayWithCompletionHandler(UIImage.Block_prepareForDisplayWithCompletionHandler completionHandler)
Asynchronously prepares this image for displaying on the specified screen.
|
void |
prepareThumbnailOfSizeCompletionHandler(CGSize size,
UIImage.Block_prepareThumbnailOfSizeCompletionHandler completionHandler) |
static NSArray<java.lang.String> |
readableTypeIdentifiersForItemProvider() |
static UIImage |
removeImage()
currently: white - on red filled circle
|
long |
renderingMode() |
UIImage |
resizableImageWithCapInsets(UIEdgeInsets capInsets)
create a resizable version of this image.
|
UIImage |
resizableImageWithCapInsetsResizingMode(UIEdgeInsets capInsets,
long resizingMode)
the interior is resized according to the resizingMode
|
long |
resizingMode()
default is UIImageResizingModeTile
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
double |
scale() |
void |
setAccessibilityIdentifier(java.lang.String value)
A string that identifies the user interface element.
|
static void |
setVersion_static(long aVersion) |
CGSize |
size()
reflects orientation setting.
|
UIImage |
stretchableImageWithLeftCapWidthTopCapHeight(long leftCapWidth,
long topCapHeight)
use resizableImageWithCapInsets: and capInsets.
|
static UIImage |
strokedCheckmarkImage()
currently: white ✓ on tinted filled and white stroked circle
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
UIImageSymbolConfiguration |
symbolConfiguration()
Symbol configuration support
----------------------------
This describes the symbol configuration of a symbol image.
|
static UIImage |
systemImageNamed(java.lang.String name)
Retrieve a system-provided image with the specified name.
|
static UIImage |
systemImageNamedCompatibleWithTraitCollection(java.lang.String name,
UITraitCollection traitCollection) |
static UIImage |
systemImageNamedWithConfiguration(java.lang.String name,
UIImageConfiguration configuration) |
long |
topCapHeight()
default is 0.
|
UITraitCollection |
traitCollection()
describes the image in terms of its traits
|
static long |
version_static() |
static NSArray<java.lang.String> |
writableTypeIdentifiersForItemProvider_static() |
NSArray<java.lang.String> |
writableTypeIdentifiersForItemProvider() |
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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static UIImage alloc()
public static UIImage allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static UIImage animatedImageNamedDuration(java.lang.String name, double duration)
public static UIImage animatedImageWithImagesDuration(NSArray<? extends UIImage> images, double duration)
public static UIImage animatedResizableImageNamedCapInsetsDuration(java.lang.String name, UIEdgeInsets capInsets, double duration)
public static UIImage animatedResizableImageNamedCapInsetsResizingModeDuration(java.lang.String name, UIEdgeInsets capInsets, long resizingMode, double duration)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static UIImage imageNamed(java.lang.String name)
public static UIImage imageNamedInBundleCompatibleWithTraitCollection(java.lang.String name, NSBundle bundle, UITraitCollection traitCollection)
public static UIImage imageWithCGImage(CGImageRef cgImage)
public static UIImage imageWithCGImageScaleOrientation(CGImageRef cgImage, double scale, long orientation)
public static UIImage imageWithCIImageScaleOrientation(CIImage ciImage, double scale, long orientation)
public static UIImage imageWithContentsOfFile(java.lang.String path)
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static UIImage new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public CGImageRef CGImage()
public CIImage CIImage()
public java.lang.String accessibilityIdentifier()
UIAccessibilityIdentificationaccessibilityIdentifier in interface UIAccessibilityIdentificationpublic UIEdgeInsets alignmentRectInsets()
public UIEdgeInsets capInsets()
public void drawAsPatternInRect(CGRect rect)
public void drawAtPoint(CGPoint point)
public void drawAtPointBlendModeAlpha(CGPoint point, int blendMode, double alpha)
public void drawInRect(CGRect rect)
public void drawInRectBlendModeAlpha(CGRect rect, int blendMode, double alpha)
public double duration()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic boolean flipsForRightToLeftLayoutDirection()
public UIImageAsset imageAsset()
public UIImage imageFlippedForRightToLeftLayoutDirection()
public long imageOrientation()
public UIGraphicsImageRendererFormat imageRendererFormat()
public UIImage imageWithAlignmentRectInsets(UIEdgeInsets alignmentInsets)
public UIImage imageWithHorizontallyFlippedOrientation()
public UIImage imageWithRenderingMode(long renderingMode)
public UIImage initWithCGImage(CGImageRef cgImage)
public UIImage initWithCGImageScaleOrientation(CGImageRef cgImage, double scale, long orientation)
public UIImage initWithCIImageScaleOrientation(CIImage ciImage, double scale, long orientation)
public UIImage initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic UIImage initWithContentsOfFile(java.lang.String path)
public long leftCapWidth()
public long renderingMode()
public UIImage resizableImageWithCapInsets(UIEdgeInsets capInsets)
public UIImage resizableImageWithCapInsetsResizingMode(UIEdgeInsets capInsets, long resizingMode)
public long resizingMode()
public double scale()
public void setAccessibilityIdentifier(java.lang.String value)
UIAccessibilityIdentificationsetAccessibilityIdentifier in interface UIAccessibilityIdentificationpublic CGSize size()
public UIImage stretchableImageWithLeftCapWidthTopCapHeight(long leftCapWidth, long topCapHeight)
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic long topCapHeight()
public UITraitCollection traitCollection()
public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
public long _itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static in interface NSItemProviderWritingpublic long itemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier)
public NSProgress loadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
NSItemProviderWritingloadDataWithTypeIdentifierForItemProviderCompletionHandler in interface NSItemProviderWritingpublic static UIImage objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
public UIImage _objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
_objectWithItemProviderDataTypeIdentifierError in interface NSItemProviderReadingpublic CGSize preferredPresentationSizeForItemProvider()
UIItemProviderPresentationSizeProvidingpreferredPresentationSizeForItemProvider in interface UIItemProviderPresentationSizeProvidingpublic static NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
public NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
_readableTypeIdentifiersForItemProvider in interface NSItemProviderReadingpublic static NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
public NSArray<java.lang.String> _writableTypeIdentifiersForItemProvider_static()
_writableTypeIdentifiersForItemProvider_static in interface NSItemProviderWritingpublic NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
public static UIImage actionsImage()
public static UIImage addImage()
public double baselineOffsetFromBottom()
public static UIImage checkmarkImage()
public UIImageConfiguration configuration()
public boolean hasBaseline()
public UIImage imageByApplyingSymbolConfiguration(UIImageSymbolConfiguration configuration)
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.
public static UIImage imageNamedInBundleWithConfiguration(java.lang.String name, NSBundle bundle, UIImageConfiguration configuration)
public UIImage imageWithBaselineOffsetFromBottom(double baselineOffset)
public UIImage imageWithConfiguration(UIImageConfiguration configuration)
* 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`.
public UIImage imageWithTintColorRenderingMode(UIColor color, long renderingMode)
public UIImage imageWithoutBaseline()
public boolean isSymbolImage()
public static UIImage removeImage()
public static UIImage strokedCheckmarkImage()
public UIImageSymbolConfiguration symbolConfiguration()
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.
public static UIImage systemImageNamed(java.lang.String name)
UIKit applications on macOS may pass NSImageName values (defined in
Returns nil if an image with specified name doesn't exist.
public static UIImage systemImageNamedCompatibleWithTraitCollection(java.lang.String name, UITraitCollection traitCollection)
public static UIImage systemImageNamedWithConfiguration(java.lang.String name, UIImageConfiguration configuration)
public UIImage imageByPreparingForDisplay()
[@note] The prepared UIImage is not related to the original image. If the properties of the screen (such as its resolution or color gamut) change, or if the image is displayed on a different screen that the one it was prepared for, it may not render correctly.
public void prepareForDisplayWithCompletionHandler(UIImage.Block_prepareForDisplayWithCompletionHandler completionHandler)
The completion handler will be invoked on a private queue. Be sure to return to the main queue before assigning the prepared image to an image view.
[@note] The prepared UIImage is not related to the original image. If the properties of the screen (such as its resolution or color gamut) change, or if the image is displayed on a different screen that the one it was prepared for, it may not render correctly.
completionHandler - A block to invoke with the prepared image. If preparation failed (for example, beacuse the image data is corrupt), @c image will be nil.public void prepareThumbnailOfSizeCompletionHandler(CGSize size, UIImage.Block_prepareThumbnailOfSizeCompletionHandler completionHandler)