@MarshalsPointer public static CGImagePropertyIPTCData toObject(Class<CGImagePropertyIPTCData> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CGImagePropertyIPTCData(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public CGImageProperties setIPTCData(CGImagePropertyIPTCData iPTCData) { set(Keys.IPTCDictionary(), iPTCData.getDictionary()); return this; } /**
public CGImagePropertyIPTCData set(CGImagePropertyIPTC property, String value) { set(property, new CFString(value)); return this; } public CGImagePropertyIPTCData set(CGImagePropertyIPTC property, double value) {
public <T extends NativeObject> T get(CGImagePropertyIPTC key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CGImagePropertyIPTCData set(CGImagePropertyIPTC key, NativeObject value) {
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyIPTCData setCreatorContactInfo(CGImagePropertyIPTCContactInfoData creatorContactInfo) { set(CGImagePropertyIPTC.CreatorContactInfo, creatorContactInfo.getDictionary()); return this; } /*</methods>*/
public <T extends NativeObject> T get(CGImagePropertyIPTC key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CGImagePropertyIPTCData set(CGImagePropertyIPTC key, NativeObject value) {
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyIPTCContactInfoData getCreatorContactInfo() { if (has(CGImagePropertyIPTC.CreatorContactInfo)) { CFDictionary val = get(CGImagePropertyIPTC.CreatorContactInfo, CFDictionary.class); return new CGImagePropertyIPTCContactInfoData(val); } return null; } /**
@MarshalsPointer public static List<CGImagePropertyIPTCData> 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<CGImagePropertyIPTCData> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CGImagePropertyIPTCData(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
public CGImagePropertyIPTCData set(CGImagePropertyIPTC property, double value) { set(property, CFNumber.valueOf(value)); return this; }
@MarshalsPointer public static long toNative(List<CGImagePropertyIPTCData> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CGImagePropertyIPTCData i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
public <T extends NativeObject> T get(CGImagePropertyIPTC key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CGImagePropertyIPTCData set(CGImagePropertyIPTC key, NativeObject value) {
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyIPTCData getIPTCData() { if (has(Keys.IPTCDictionary())) { CFDictionary val = get(Keys.IPTCDictionary(), CFDictionary.class); return new CGImagePropertyIPTCData(val); } return null; } /**
public CGImagePropertyIPTCData set(CGImagePropertyIPTC property, String value) { set(property, new CFString(value)); return this; } public CGImagePropertyIPTCData set(CGImagePropertyIPTC property, double value) {
/** * @since Available in iOS 4.0 and later. */ public CGImageProperties setIPTCData(CGImagePropertyIPTCData iPTCData) { set(Keys.IPTCDictionary(), iPTCData.getDictionary()); return this; } /**
@MarshalsPointer public static CGImagePropertyIPTCData toObject(Class<CGImagePropertyIPTCData> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CGImagePropertyIPTCData(o); } @MarshalsPointer
public CGImagePropertyIPTCData set(CGImagePropertyIPTC property, String value) { set(property, new CFString(value)); return this; } public CGImagePropertyIPTCData set(CGImagePropertyIPTC property, double value) {
/** * @since Available in iOS 4.0 and later. */ public CGImageProperties setIPTCData(CGImagePropertyIPTCData iPTCData) { set(Keys.IPTCDictionary(), iPTCData.getDictionary()); return this; } /**