@MarshalsPointer public static List<CMTimeCodeFormatDescriptionExtension> toObject( Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<CMTimeCodeFormatDescriptionExtension> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CMTimeCodeFormatDescriptionExtension(o.get(i, CFDictionary.class))); } return list; }
@MarshalsPointer public static List<CMImageDescriptionFlavor> toObject( Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<CMImageDescriptionFlavor> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CMImageDescriptionFlavor.valueOf(o.get(i, CFString.class))); } return list; }
@MarshalsPointer public static List<AVSampleRateConverterSettings> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<AVSampleRateConverterSettings> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new AVSampleRateConverterSettings(o.get(i))); } return list; }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<SCNLightingModel> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<SCNLightingModel> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(SCNLightingModel.valueOf(o.get(i))); } return list; }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<CMVideoCodecType> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<CMVideoCodecType> list = new ArrayList<>(); for (NSString str : o) { list.add(CMVideoCodecType.valueOf(str)); } return list; }
@MarshalsPointer public static List<UITextInputTextStyle> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<UITextInputTextStyle> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new UITextInputTextStyle(o.get(i))); } return list; }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<SCNMatrix4> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSValue> o = (NSArray<NSValue>) NSObject.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<SCNMatrix4> list = new ArrayList<>(); for (NSValue val : o) { list.add(val.SCNMatrix4Value()); } return list; }
@MarshalsPointer public static List<NSNetServiceErrorUserInfo> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary<NSString, NSObject>> o = (NSArray<NSDictionary<NSString, NSObject>>) NSObject.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<NSNetServiceErrorUserInfo> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new NSNetServiceErrorUserInfo(o.get(i))); } return list; }