/** @since Available in iOS 4.0 and later. */ @WeaklyLinked public CMVideoCodecType getCodec() { if (has(Keys.Codec())) { NSNumber val = (NSNumber) get(Keys.Codec()); return CMVideoCodecType.valueOf(val.longValue()); } return null; }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<CMVideoCodecType> 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<CMVideoCodecType> list = new ArrayList<>(); for (NSString str : o) { list.add(CMVideoCodecType.valueOf(str)); } return list; }