title: Xamarin Android - How to use JobInfo.TriggerContentUri when there's no constructor available?
body: <p>I want to convert a simple code provided by google for android, allowing me to create a jobservice which triggers when a new media is created (<a href="https://developer.android.com/topic/performance/background-optimization.html#media-broadcasts" rel="nofollow noreferrer">source</a>).</p>
  
  <p>I can convert almost all without any problem, but it seems impossible to create a new TriggerContentUri, because no constructor exists :</p>
  
  <pre class="lang-cs prettyprint-override"><code>JobInfo.Builder builder = new JobInfo.Builder(0, new ComponentName(context, serviceName));
  // Look for specific changes to images in the provider.
  // !!! Below no constructor exists : new JobInfo.TriggerContentUri(...)
  builder.AddTriggerContentUri(new JobInfo.TriggerContentUri(MediaStore.Images.Media.ExternalContentUri, TriggerContentUriFlags.NotifyForDescendants));
  // Also look for general reports of changes in the overall provider.
  //builder.addTriggerContentUri(new JobInfo.TriggerContentUri(MEDIA_URI, 0));
  var jobInfo = builder.Build();
  </code></pre>
  
  <p>Do someone has a solution for this kind of problem, or is this simply a bug in the xamarin implementation ?</p>
  
  <p>My solution references Mono.Android 7.1, and targets Android 6.0 at minimum.</p>
  
  <p>Thanks.</p>