Пример #1
0
 @MarshalsPointer
 public static NSProgressKind toObject(Class<NSProgressKind> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return NSProgressKind.valueOf(o);
 }
 @MarshalsPointer
 public static UIImagePickerControllerEditingInfo toObject(
     Class<UIImagePickerControllerEditingInfo> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new UIImagePickerControllerEditingInfo(o);
 }
 @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;
 }
Пример #4
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<NSProgressKind> 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<NSProgressKind> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(NSProgressKind.valueOf(o.get(i)));
   }
   return list;
 }