Builder
class Builder
kotlin.Any | |
↳ | android.adservices.adselection.PerBuyerConfiguration.Builder |
Builder for PerBuyerConfiguration
objects.
Summary
Public constructors | |
---|---|
Builder() Creates a new |
Public methods | |
---|---|
PerBuyerConfiguration |
build() Builds a |
PerBuyerConfiguration.Builder |
setBuyer(buyer: AdTechIdentifier) Sets the buyer for this configuration. |
PerBuyerConfiguration.Builder |
setTargetInputSizeBytes(targetInputSizeB: Int) Sets the target input size in bytes for this configuration. |
Public constructors
Public methods
build
fun build(): PerBuyerConfiguration
Builds a PerBuyerConfiguration
instance.
Return | |
---|---|
PerBuyerConfiguration |
This value cannot be null . |
setBuyer
fun setBuyer(buyer: AdTechIdentifier): PerBuyerConfiguration.Builder
Sets the buyer for this configuration. See getBuyer()
for more details.
Parameters | |
---|---|
buyer |
AdTechIdentifier: This value cannot be null . |
Return | |
---|---|
PerBuyerConfiguration.Builder |
This value cannot be null . |
setTargetInputSizeBytes
fun setTargetInputSizeBytes(targetInputSizeB: Int): PerBuyerConfiguration.Builder
Sets the target input size in bytes for this configuration.
If this is not explicitly set, this buyer will share remaining space after other buyers' target sizes are respected. See getTargetInputSizeBytes()
for more details.
Parameters | |
---|---|
targetInputSizeB |
Int: Value is between 0 and Integer.MAX_VALUE inclusive |
Return | |
---|---|
PerBuyerConfiguration.Builder |
This value cannot be null . |