When scheduling unique work, you must tell WorkManager what action to take when there is a conflict. You do this by passing an enum when enquing the work. For one-time work, you provide an ExistingWorkPolicy , which supports some options for handling the conflict. (Choose four.)
A) REPLACE (existing work with the new work. This option cancels the existing work)
B) KEEP (existing work and ignore the new work)
C) APPEND (the new work to the end of the existing work. This policy will cause your new work to be chained to the existing work, running after the existing work finishes)
D) APPEND_OR_REPLACE (functions similarly to APPEND, except that it is not dependent on prerequisite work status. If the existing work is CANCELLED or FAILED, the new work still runs)
E) APPEND_OR_KEEP (functions similarly to APPEND, except that it is not dependent on prerequisite work status. If the existing work is CANCELLED or FAILED, the new work still not runs)
F) APPEND_AND_RUN (functions similarly to APPEND, except that it is not dependent on prerequisite work status. If the existing work is PAUSED, the new work still runs)
G) DESTROY (if any work exists, the new work will be ignored)
H) APPEND_OR_DESTROY (if no any work exists, the new work will be ignored)
Correct Answer:
Verified
Q16: To create a basic JUnit 4 test
Q17: Q18: What do you want from Room when Q19: To run your local unit tests, follow Q20: When your code execution reaches the breakpoint, Q22: The easiest way of adding menu items (to Q23: Building your app from the command line, Q24: Interface for a callback to be invoked Q25: What is the incorrect statement about Data Q26: What statements about InputStreamReader (java.io.InputStreamReader) are correct?
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents