Esempio n. 1
0
 @MarshalsPointer
 public static List<CVBufferAttributes> 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<CVBufferAttributes> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new CVBufferAttributes(o.get(i, CFDictionary.class)));
   }
   return list;
 }
Esempio n. 2
0
 @MarshalsPointer
 public static List<CGImagePropertyGIF> 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<CGImagePropertyGIF> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(CGImagePropertyGIF.valueOf(o.get(i, CFString.class)));
   }
   return list;
 }
 @MarshalsPointer
 public static List<MPMoviePlayerThumbnailRequest> 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<MPMoviePlayerThumbnailRequest> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new MPMoviePlayerThumbnailRequest(o.get(i)));
   }
   return list;
 }
 @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;
 }
Esempio n. 5
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<AVMetadataFormat> 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<AVMetadataFormat> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(AVMetadataFormat.valueOf(o.get(i)));
   }
   return list;
 }