Companion

object Companion

Properties

Link copied to clipboard
const val MAX_SERIALIZED_BYTES: Int = 10240

Hard cap on the serialized size of a WorkInput, in bytes. Matches Android's androidx.work.Data cap so cross-platform payloads never exceed the Android limit.

Functions

Link copied to clipboard

Returns an empty WorkInput with no key/value pairs.

Link copied to clipboard

Build a WorkInput from key/value pairs. Kotlin-only (the Pair vararg form doesn't translate cleanly to Swift; Swift consumers should use ofMap or compose entries via a Map).

Link copied to clipboard

Build a WorkInput from a Map. Preferred for Swift consumers (the Pair vararg form of of doesn't bridge cleanly to Swift).