Created
March 8, 2023 10:21
-
-
Save tunjid/934a9c80642a09fa45103250a6aef800 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2023 Google LLC. | |
// SPDX-License-Identifier: Apache-2.0 | |
fun startUpSyncWork() = OneTimeWorkRequestBuilder<DelegatingWorker>() | |
.setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDITED_WORK_REQUEST) | |
.setConstraints(SyncConstraints) | |
// You can add any other input data as necessary | |
.setInputData(SyncWorker::class.classNameData()) | |
.build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment