public void SetAttachments(NSDictionary theAttachments, CVAttachmentMode attachmentMode) { if (theAttachments is null) { throw new ArgumentNullException(nameof(theAttachments)); } CVBufferSetAttachments(Handle, theAttachments.Handle, attachmentMode); }
public NSObject GetAttachment(NSString key, out CVAttachmentMode attachmentMode) { if (key == null) { throw new ArgumentNullException("key"); } return(Runtime.GetNSObject(CVBufferGetAttachment(handle, key.Handle, out attachmentMode))); }
// FIXME: we need to bring the new API to xamcore #if XAMCORE_2_0 && !MONOMAC // any CF object can be attached public T GetAttachment <T> (NSString key, out CVAttachmentMode attachmentMode) where T : class, INativeObject { if (key == null) { throw new ArgumentNullException("key"); } return(Runtime.GetINativeObject <T> (CVBufferGetAttachment(handle, key.Handle, out attachmentMode), false)); }
public void SetAttachments(NSDictionary theAttachments, CVAttachmentMode attachmentMode) { if (theAttachments == null) { throw new ArgumentNullException("theAttachments"); } CVBufferSetAttachments(handle, theAttachments.Handle, attachmentMode); }
public void SetAttachment(NSString key, INativeObject @value, CVAttachmentMode attachmentMode) { if (key is null) { throw new ArgumentNullException(nameof(key)); } if (@value is null) { throw new ArgumentNullException(nameof(value)); } CVBufferSetAttachment(Handle, key.Handle, @value.Handle, attachmentMode); }
public NSDictionary?GetAttachments(CVAttachmentMode attachmentMode) { #if IOS || __MACCATALYST__ || TVOS if (SystemVersion.CheckiOS(15, 0)) #elif WATCH if (SystemVersion.CheckwatchOS(8, 0)) #elif MONOMAC if (SystemVersion.CheckmacOS(12, 0)) #endif { return(Runtime.GetINativeObject <NSDictionary> (CVBufferCopyAttachments(Handle, attachmentMode), true)); } return(Runtime.GetNSObject <NSDictionary> (CVBufferGetAttachments(Handle, attachmentMode), false)); }
public void SetAttachment(NSString key, NSObject @value, CVAttachmentMode attachmentMode) { if (key == null) { throw new ArgumentNullException("key"); } if (@value == null) { throw new ArgumentNullException("value"); } CVBufferSetAttachment(handle, key.Handle, @value.Handle, attachmentMode); }
public NSDictionary GetAttachments(CVAttachmentMode attachmentMode) { #if IOS || __MACCATALYST__ || TVOS if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(15, 0)) #elif WATCH if (WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(8, 0)) #elif MONOMAC if (PlatformHelper.CheckSystemVersion(12, 0)) #endif { return(Runtime.GetINativeObject <NSDictionary> (CVBufferCopyAttachments(handle, attachmentMode), true)); } return(Runtime.GetNSObject <NSDictionary> (CVBufferGetAttachments(handle, attachmentMode), false)); }
public T?GetAttachment <T> (NSString key, out CVAttachmentMode attachmentMode) where T : class, INativeObject { if (key is null) { throw new ArgumentNullException(nameof(key)); } #if IOS || __MACCATALYST__ || TVOS if (SystemVersion.CheckiOS(15, 0)) #elif WATCH if (SystemVersion.CheckwatchOS(8, 0)) #endif { return(Runtime.GetINativeObject <T> (CVBufferCopyAttachment(Handle, key.Handle, out attachmentMode), true)); } return(Runtime.GetINativeObject <T> (CVBufferGetAttachment(Handle, key.Handle, out attachmentMode), false)); }
public T GetAttachment <T> (NSString key, out CVAttachmentMode attachmentMode) where T : class, INativeObject { if (key == null) { throw new ArgumentNullException("key"); } #if IOS || __MACCATALYST__ || TVOS if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(15, 0)) #elif WATCH if (WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(8, 0)) #endif { return(Runtime.GetINativeObject <T> (CVBufferCopyAttachment(handle, key.Handle, out attachmentMode), true)); } return(Runtime.GetINativeObject <T> (CVBufferGetAttachment(handle, key.Handle, out attachmentMode), false)); }
public NSObject GetAttachment(NSString key, out CVAttachmentMode attachmentMode) { if (key == null) { throw new ArgumentNullException("key"); } if (PlatformHelper.CheckSystemVersion(12, 0)) { return(Runtime.GetNSObject <NSObject> (CVBufferCopyAttachment(handle, key.Handle, out attachmentMode), true)); } else { return(Runtime.GetNSObject <NSObject> (CVBufferGetAttachment(handle, key.Handle, out attachmentMode), false)); } }
public NSObject?GetAttachment(NSString key, out CVAttachmentMode attachmentMode) { if (key is null) { throw new ArgumentNullException(nameof(key)); } if (SystemVersion.CheckmacOS(12, 0)) { return(Runtime.GetNSObject <NSObject> (CVBufferCopyAttachment(Handle, key.Handle, out attachmentMode), true)); } else { return(Runtime.GetNSObject <NSObject> (CVBufferGetAttachment(Handle, key.Handle, out attachmentMode), false)); } }
extern static void CVBufferSetAttachment (IntPtr buffer, IntPtr key, IntPtr @value, CVAttachmentMode attachmentMode);
extern static void CVBufferSetAttachments(/* CVBufferRef */ IntPtr buffer, /* CFDictionaryRef */ IntPtr theAttachments, CVAttachmentMode attachmentMode);
extern static void CVBufferSetAttachment(/* CVBufferRef */ IntPtr buffer, /* CFStringRef */ IntPtr key, /* CFTypeRef */ IntPtr @value, CVAttachmentMode attachmentMode);
// There is some API that needs a more strongly typed version of a NSDictionary // and there is no easy way to downcast from NSDictionary to NSDictionary<TKey, TValue> public NSDictionary <TKey, TValue> GetAttachments <TKey, TValue> (CVAttachmentMode attachmentMode) where TKey : class, INativeObject where TValue : class, INativeObject { return(Runtime.GetNSObject <NSDictionary <TKey, TValue> > (CVBufferGetAttachments(handle, attachmentMode))); }
extern static /* CFDictionaryRef */ IntPtr CVBufferGetAttachments(/* CVBufferRef */ IntPtr buffer, CVAttachmentMode attachmentMode);
extern static IntPtr CVBufferGetAttachment (IntPtr buffer, IntPtr key, out CVAttachmentMode attachmentMode);
public NSObject GetAttachment (NSString key, out CVAttachmentMode attachmentMode) { return Runtime.GetNSObject (CVBufferGetAttachment (handle, key.Handle, out attachmentMode)); }
extern static void CVBufferSetAttachments(IntPtr buffer, IntPtr theAttachments, CVAttachmentMode attachmentMode);
extern static void CVBufferSetAttachment(IntPtr buffer, IntPtr key, IntPtr @value, CVAttachmentMode attachmentMode);
extern static IntPtr CVBufferGetAttachments(IntPtr buffer, CVAttachmentMode attachmentMode);
extern static IntPtr CVBufferGetAttachment(IntPtr buffer, IntPtr key, out CVAttachmentMode attachmentMode);
public NSDictionary GetAttachments (CVAttachmentMode attachmentMode) { return (NSDictionary) Runtime.GetNSObject (CVBufferGetAttachments (handle, attachmentMode)); }
extern static IntPtr CVBufferGetAttachments (IntPtr buffer, CVAttachmentMode attachmentMode);
public NSObject GetAttachment(NSString key, out CVAttachmentMode attachmentMode) { return(Runtime.GetNSObject(CVBufferGetAttachment(handle, key.Handle, out attachmentMode))); }
public void SetAttachment (NSString key, NSObject @value, CVAttachmentMode attachmentMode) { CVBufferSetAttachment (handle, key.Handle, @value.Handle, attachmentMode); }
public NSDictionary GetAttachments(CVAttachmentMode attachmentMode) { return((NSDictionary)Runtime.GetNSObject(CVBufferGetAttachments(handle, attachmentMode))); }
extern static void CVBufferSetAttachments (IntPtr buffer, IntPtr theAttachments, CVAttachmentMode attachmentMode);
public void SetAttachment(NSString key, NSObject @value, CVAttachmentMode attachmentMode) { CVBufferSetAttachment(handle, key.Handle, @value.Handle, attachmentMode); }
public void SetAttachments (NSDictionary theAttachments, CVAttachmentMode attachmentMode) { CVBufferSetAttachments (handle, theAttachments.Handle, attachmentMode); }
public void SetAttachments(NSDictionary theAttachments, CVAttachmentMode attachmentMode) { CVBufferSetAttachments(handle, theAttachments.Handle, attachmentMode); }
extern static /* CFTypeRef */ IntPtr CVBufferGetAttachment(/* CVBufferRef */ IntPtr buffer, /* CFStringRef */ IntPtr key, out CVAttachmentMode attachmentMode);