overrideConfiguration
abstract fun overrideConfiguration(action: PNConfigurationOverride.Builder.() -> Unit): Endpoint<OUTPUT>
Allows to override certain configuration options (see PNConfigurationOverride.Builder) for this request only.
Return
Returns the same instance for convenience, so sync or async can be called next.
Allows to override certain configuration options (see PNConfigurationOverride.Builder) for this request only.
PNConfigurationOverride.from should be used to obtain a PNConfigurationOverride.Builder. Only options present in PNConfigurationOverride.Builder will be used for the override.
Example:
val configOverride = PNConfigurationOverride.from(pubnub.configuration).apply {
userId = UserId("example")
}.build()
val result = endpoint.overrideConfiguration(configOverride).sync()Content copied to clipboard
Return
Returns the same instance for convenience, so sync or async can be called next.