{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class InteractionResponse.Builder
Builder for InteractionResponse
Public constructors |
|
|---|---|
Builder() |
|
Public functions |
|
|---|---|
InteractionResponse! |
build()Builds an |
InteractionResponse.Builder! |
setRemoteError(remoteError: InteractionResponse.RemoteError?)Set the |
InteractionResponse.Builder! |
setResultProto(protoByteArray: ByteArray)Set the result proto as a byte array. |
InteractionResponse.Builder! |
setStatus(status: InteractionResponse.Status) |
fun build(): InteractionResponse!
Builds an InteractionResponse object.
| Returns | |
|---|---|
InteractionResponse! |
an |
| Throws | |
|---|---|
androidx.test.espresso.remote.RemoteProtocolException: androidx.test.espresso.remote.RemoteProtocolException |
when conflicting properties are set. You can either set an |
androidx.test.espresso.remote.RemoteProtocolException: androidx.test.espresso.remote.RemoteProtocolException |
when the provided proto byte array cannot be parsed into a protocol buffer of type InteractionResultProto |
fun setRemoteError(remoteError: InteractionResponse.RemoteError?): InteractionResponse.Builder!
Set the RemoteError for this InteractionResponse
| Parameters | |
|---|---|
remoteError: InteractionResponse.RemoteError? |
the remote error to set |
| Returns | |
|---|---|
InteractionResponse.Builder! |
fluent interface |
fun setResultProto(protoByteArray: ByteArray): InteractionResponse.Builder!
Set the result proto as a byte array. This byte array will be parsed into an . Providing an invalid byte byte array will result in a when the build method is called!
| Parameters | |
|---|---|
protoByteArray: ByteArray |
the proto byte array to set |
| Returns | |
|---|---|
InteractionResponse.Builder! |
fluent interface |