{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class SpeakEasyProtocol.PublishResult
Represents a publish response from speakeasy.
Public properties |
|
|---|---|
String |
An error message if publishing failed. |
String |
The key that this message is about. |
Boolean |
Whether or not the IBinder was published. |
fun asBundle(key: String, published: Boolean, error: String): Bundle
Encodes a publish result into a bundle.
| Parameters | |
|---|---|
published: Boolean |
if the IBinder has been published. |
error: String |
a message to tell the caller about how broken things are. |
| Returns | |
|---|---|
Bundle |
a bundle |
| Throws | |
|---|---|
java.lang.NullPointerException |
if not published and error is null. |