@MarshalsPointer public static CGImageDestinationCopySourceOptions toObject(Class<CGImageDestinationCopySourceOptions> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CGImageDestinationCopySourceOptions(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CGImageDestinationCopySourceOptions> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CGImageDestinationCopySourceOptions i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 7.0 and later. */ public CGImageDestinationCopySourceOptions setMetadata(CGImageMetadata metadata) { set(Keys.DestinationMetadata(), metadata); return this; } /**
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CGImageDestinationCopySourceOptions set(CFString key, NativeObject value) {
/** * @since Available in iOS 7.0 and later. */ public CGImageDestinationCopySourceOptions setDateTime(NSDate dateTime) { set(Keys.DestinationDateTime(), dateTime); return this; }
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CGImageDestinationCopySourceOptions set(CFString key, NativeObject value) {
/** * @since Available in iOS 7.0 and later. */ public CGImageDestinationCopySourceOptions setShouldExcludeXMP(boolean shouldExcludeXMP) { set(Keys.MetadataShouldExcludeXMP(), CFBoolean.valueOf(shouldExcludeXMP)); return this; } /**
@MarshalsPointer public static List<CGImageDestinationCopySourceOptions> 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<CGImageDestinationCopySourceOptions> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CGImageDestinationCopySourceOptions(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CGImageDestinationCopySourceOptions> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CGImageDestinationCopySourceOptions 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 CGImageDestinationCopySourceOptions set(CFString key, NativeObject value) {
/** * @since Available in iOS 8.0 and later. */ public CGImageDestinationCopySourceOptions setShouldExcludeGPS(boolean shouldExcludeGPS) { set(Keys.MetadataShouldExcludeGPS(), CFBoolean.valueOf(shouldExcludeGPS)); return this; } /**
@MarshalsPointer public static CGImageDestinationCopySourceOptions toObject(Class<CGImageDestinationCopySourceOptions> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CGImageDestinationCopySourceOptions(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CGImageDestinationCopySourceOptions> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CGImageDestinationCopySourceOptions i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 7.0 and later. */ public CGImageDestinationCopySourceOptions setMergesMetadata(boolean mergesMetadata) { set(Keys.DestinationMergeMetadata(), CFBoolean.valueOf(mergesMetadata)); return this; } /**
@MarshalsPointer public static CGImageDestinationCopySourceOptions toObject(Class<CGImageDestinationCopySourceOptions> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CGImageDestinationCopySourceOptions(o); } @MarshalsPointer