Example #1
0
        public void EnumerateTags(NSString rootPath, CGImageMetadataEnumerateOptions options, CGImageMetadataTagBlock block)
        {
            IntPtr       r = rootPath == null ? IntPtr.Zero : rootPath.Handle;
            NSDictionary o = null;

            if (options != null)
            {
                o = options.ToDictionary();
            }
            CGImageMetadataEnumerateTagsUsingBlock(Handle, r, o == null ? IntPtr.Zero : o.Handle, block);
            if (options != null)
            {
                o.Dispose();
            }
        }
Example #2
0
 extern static void CGImageMetadataEnumerateTagsUsingBlock(/* CGImageMetadataRef __nonnull */ IntPtr metadata,
                                                           /* CFStringRef __nullable */ IntPtr rootPath, /* CFDictionaryRef __nullable */ IntPtr options,
                                                           /* __nonnull */ CGImageMetadataTagBlock block);
Example #3
0
 public void EnumerateTags(NSString rootPath, CGImageMetadataEnumerateOptions options, CGImageMetadataTagBlock block)
 {
     IntPtr r = rootPath == null ? IntPtr.Zero : rootPath.Handle;
     NSDictionary o = null;
     if (options != null)
         o = options.ToDictionary ();
     CGImageMetadataEnumerateTagsUsingBlock (Handle, r, o == null ? IntPtr.Zero : o.Handle, block);
     if (options != null)
         o.Dispose ();
 }
 public void EnumerateTags(NSString?rootPath, CGImageMetadataEnumerateOptions?options, CGImageMetadataTagBlock block)
 {
     using var o = options?.ToDictionary();
     CGImageMetadataEnumerateTagsUsingBlock(Handle, rootPath.GetHandle(), o.GetHandle(), block);
 }
Example #5
0
 static extern void CGImageMetadataEnumerateTagsUsingBlock(/* CGImageMetadataRef __nonnull */ IntPtr metadata,
     /* CFStringRef __nullable */ IntPtr rootPath, /* CFDictionaryRef __nullable */ IntPtr options,
     /* __nonnull */ CGImageMetadataTagBlock block);