@MarshalsPointer public static CGImageDestinationProperties toObject(Class<CGImageDestinationProperties> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CGImageDestinationProperties(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CGImageDestinationProperties> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CGImageDestinationProperties i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.0 and later. */ public CGImageDestinationProperties setBackgroundColor(CGColor backgroundColor) { set(Keys.BackgroundColor(), backgroundColor); return this; } /**
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CGImageDestinationProperties set(CFString key, NativeObject value) {
/** * @since Available in iOS 8.0 and later. */ public CGImageDestinationProperties setMaxPixelSize(long maxPixelSize) { set(Keys.ImageMaxPixelSize(), CFNumber.valueOf(maxPixelSize)); return this; } /**
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CGImageDestinationProperties set(CFString key, NativeObject value) {
/** * @since Available in iOS 8.0 and later. */ public CGImageDestinationProperties setEmbedsThumbnail(boolean embedsThumbnail) { set(Keys.EmbedThumbnail(), CFBoolean.valueOf(embedsThumbnail)); return this; } /*</methods>*/
@MarshalsPointer public static List<CGImageDestinationProperties> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CGImageDestinationProperties> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CGImageDestinationProperties(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CGImageDestinationProperties> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CGImageDestinationProperties i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CGImageDestinationProperties set(CFString key, NativeObject value) {
/** * @since Available in iOS 4.0 and later. */ public CGImageDestinationProperties setLossyCompressionQuality(double lossyCompressionQuality) { set(Keys.LossyCompressionQuality(), CFNumber.valueOf(lossyCompressionQuality)); return this; } /**
@MarshalsPointer public static CGImageDestinationProperties toObject(Class<CGImageDestinationProperties> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CGImageDestinationProperties(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CGImageDestinationProperties> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CGImageDestinationProperties i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.0 and later. */ public CGImageDestinationProperties setBackgroundColor(CGColor backgroundColor) { set(Keys.BackgroundColor(), backgroundColor); return this; } /**
@MarshalsPointer public static CGImageDestinationProperties toObject(Class<CGImageDestinationProperties> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CGImageDestinationProperties(o); } @MarshalsPointer