Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ data class ForegroundServiceTypes(val value: Int) {
10 -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) ServiceInfo.FOREGROUND_SERVICE_TYPE_SHORT_SERVICE else null
11 -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE else null
12 -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) ServiceInfo.FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED else null
13 -> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROCESSING else null
else -> null
}
}
Expand Down
3 changes: 3 additions & 0 deletions lib/models/foreground_service_types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ class ForegroundServiceTypes {
/// Reserved for system applications and specific system integrations, to continue to use foreground services.
static const systemExempted = ForegroundServiceTypes(12);

/// Service for performing time-consuming operations on media assets, like converting media to different formats.
static const mediaProcessing = ForegroundServiceTypes(13);

/// The raw value of [ForegroundServiceTypes].
final int rawValue;
}