Skip to content

Instantly share code, notes, and snippets.

View kolanse's full-sized avatar

Tiste Andii kolanse

View GitHub Profile
@kolanse
kolanse / ScoresAverageWorker
Created December 6, 2022 09:15
A simple Workmanager class to demonstrate how to create one.
class ScoresAverageWorker(
context: Context,
workerParams: WorkerParameters
) : Worker(context, workerParams) {
override suspend fun doWork(): Result {
val results = Results.List
val average = results.average()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.