@SuppressWarnings("unchecked") @MarshalsPointer public static List<CAEmitterMode> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<CAEmitterMode> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CAEmitterMode.valueOf(o.get(i))); } return list; }
@MarshalsPointer public static List<AVSampleRateConverterSettings> 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<AVSampleRateConverterSettings> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new AVSampleRateConverterSettings(o.get(i))); } return list; }
@MarshalsPointer public static List<UITextInputTextStyle> 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<UITextInputTextStyle> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new UITextInputTextStyle(o.get(i))); } return list; }