@MarshalsPointer public static List<UIImagePickerControllerEditingInfo> 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<UIImagePickerControllerEditingInfo> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new UIImagePickerControllerEditingInfo(o.get(i))); } return list; }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<CKErrorUserInfoKey> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<CKErrorUserInfoKey> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CKErrorUserInfoKey.valueOf(o.get(i))); } return list; }