PersistableBundleKt

public final class PersistableBundleKt


Summary

Public methods

static final @RequiresApi(value = "21") @NonNull PersistableBundle

Returns a new PersistableBundle with the given key/value pairs as elements.

Public methods

persistableBundleOf

@RequiresApi(value = "21")
@NonNull
public static final @RequiresApi(value = "21") PersistableBundle persistableBundleOf(@NonNull Pair<@NonNull String, @NonNull Object> pairs)

Returns a new PersistableBundle with the given key/value pairs as elements.

Throws
kotlin.IllegalArgumentException

When a value is not a supported type of PersistableBundle.