예제 #1
0
 @MarshalsPointer
 public static AVMetadataFormat toObject(Class<AVMetadataFormat> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVMetadataFormat.valueOf(o);
 }
예제 #2
0
 @MarshalsPointer
 public static CKErrorUserInfoKey toObject(
     Class<CKErrorUserInfoKey> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CKErrorUserInfoKey.valueOf(o);
 }
예제 #3
0
 @MarshalsPointer
 public static HMPredicateKeyPath toObject(
     Class<HMPredicateKeyPath> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return HMPredicateKeyPath.valueOf(o);
 }
 @MarshalsPointer
 public static MPMoviePlayerThumbnailRequest toObject(
     Class<MPMoviePlayerThumbnailRequest> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new MPMoviePlayerThumbnailRequest(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<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;
 }
예제 #8
0
 @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;
 }