Merge "Merge "Fix issue #29058724: Improve JobScheduler API demo" into nyc-dev am: 61721ee3d7 am: 56b70d51f4" into nyc-mr1-dev-plus-aosp

am: 1267b551f1

* commit '1267b551f14252beea0fb73d4e12b34277c26110':
  Fix issue #29058724: Improve JobScheduler API demo

Change-Id: I91adebd3656d0c2ad370ea92b947473a54ecced0
This commit is contained in:
Dianne Hackborn
2016-06-02 00:20:08 +00:00
committed by android-build-merger

View File

@@ -664,6 +664,13 @@ public class JobInfo implements Parcelable {
* <p>Because because setting this property is not compatible with periodic or
* persisted jobs, doing so will throw an {@link java.lang.IllegalArgumentException} when
* {@link android.app.job.JobInfo.Builder#build()} is called.</p>
*
* <p>The following example shows how this feature can be used to monitor for changes
* in the photos on a device.</p>
*
* {@sample development/samples/ApiDemos/src/com/example/android/apis/content/PhotosContentJob.java
* job}
*
* @param uri The content: URI to monitor.
*/
public Builder addTriggerContentUri(@NonNull TriggerContentUri uri) {