Example #1
0
 @MarshalsPointer
 public static long toNative(List<CMVideoCodecType> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSMutableArray<NSString> array = new NSMutableArray<>();
   for (CMVideoCodecType i : l) {
     array.add(new NSString(i.asFourCharCode()));
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
Example #2
0
 @MarshalsPointer
 public static long toNative(List<CVPixelFormatType> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSMutableArray<NSNumber> array = new NSMutableArray<>();
   for (CVPixelFormatType i : l) {
     array.add(NSNumber.valueOf(i.value()));
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
Example #3
0
 @MarshalsPointer
 public static long toNative(List<SCNMatrix4> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSMutableArray<NSValue> array = new NSMutableArray<>();
   for (SCNMatrix4 i : l) {
     array.add(NSValue.valueOf(i));
   }
   return NSObject.Marshaler.toNative(array, flags);
 }