Ejemplo n.º 1
0
 public void SetAttachments(NSDictionary theAttachments, CVAttachmentMode attachmentMode)
 {
     if (theAttachments is null)
     {
         throw new ArgumentNullException(nameof(theAttachments));
     }
     CVBufferSetAttachments(Handle, theAttachments.Handle, attachmentMode);
 }
Ejemplo n.º 2
0
 public NSObject GetAttachment(NSString key, out CVAttachmentMode attachmentMode)
 {
     if (key == null)
     {
         throw new ArgumentNullException("key");
     }
     return(Runtime.GetNSObject(CVBufferGetAttachment(handle, key.Handle, out attachmentMode)));
 }
Ejemplo n.º 3
0
// 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));
        }
Ejemplo n.º 4
0
 public void SetAttachments(NSDictionary theAttachments, CVAttachmentMode attachmentMode)
 {
     if (theAttachments == null)
     {
         throw new ArgumentNullException("theAttachments");
     }
     CVBufferSetAttachments(handle, theAttachments.Handle, attachmentMode);
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
        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));
        }
Ejemplo n.º 7
0
 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);
 }
Ejemplo n.º 8
0
        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));
        }
Ejemplo n.º 9
0
        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));
        }
Ejemplo n.º 10
0
        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));
        }
Ejemplo n.º 11
0
 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));
     }
 }
Ejemplo n.º 12
0
 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));
     }
 }
Ejemplo n.º 13
0
		extern static void CVBufferSetAttachment (IntPtr buffer, IntPtr key, IntPtr @value, CVAttachmentMode attachmentMode);
Ejemplo n.º 14
0
 extern static void CVBufferSetAttachments(/* CVBufferRef */ IntPtr buffer, /* CFDictionaryRef */ IntPtr theAttachments, CVAttachmentMode attachmentMode);
Ejemplo n.º 15
0
 extern static void CVBufferSetAttachment(/* CVBufferRef */ IntPtr buffer, /* CFStringRef */ IntPtr key, /* CFTypeRef */ IntPtr @value, CVAttachmentMode attachmentMode);
Ejemplo n.º 16
0
 // 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)));
 }
Ejemplo n.º 17
0
 extern static /* CFDictionaryRef */ IntPtr CVBufferGetAttachments(/* CVBufferRef */ IntPtr buffer, CVAttachmentMode attachmentMode);
Ejemplo n.º 18
0
		extern static IntPtr CVBufferGetAttachment (IntPtr buffer, IntPtr key, out CVAttachmentMode attachmentMode);
Ejemplo n.º 19
0
		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);
Ejemplo n.º 24
0
		public NSDictionary GetAttachments (CVAttachmentMode attachmentMode)
		{
			return (NSDictionary) Runtime.GetNSObject (CVBufferGetAttachments (handle, attachmentMode));
		}
Ejemplo n.º 25
0
		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)));
 }
Ejemplo n.º 27
0
		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)));
 }
Ejemplo n.º 29
0
		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);
 }
Ejemplo n.º 31
0
		public void SetAttachments (NSDictionary theAttachments, CVAttachmentMode attachmentMode)
		{
			CVBufferSetAttachments (handle, theAttachments.Handle, attachmentMode);
		}
 public void SetAttachments(NSDictionary theAttachments, CVAttachmentMode attachmentMode)
 {
     CVBufferSetAttachments(handle, theAttachments.Handle, attachmentMode);
 }
Ejemplo n.º 33
0
 extern static /* CFTypeRef */ IntPtr CVBufferGetAttachment(/* CVBufferRef */ IntPtr buffer, /* CFStringRef */ IntPtr key, out CVAttachmentMode attachmentMode);