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