{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class SpeakEasyProtocol.PublishResult
Represents a publish response from speakeasy.
Public fields |
|
|---|---|
final @NonNull String |
An error message if publishing failed. |
final @NonNull String |
The key that this message is about. |
final @NonNull boolean |
Whether or not the IBinder was published. |
Public methods |
|
|---|---|
static @NonNull Bundle |
Encodes a publish result into a bundle. |
@NonNull String |
toString() |
@NonNull
public static Bundle asBundle(
@NonNull String key,
@NonNull boolean published,
@NonNull String error
)
Encodes a publish result into a bundle.
| Parameters | |
|---|---|
@NonNull boolean published |
if the IBinder has been published. |
@NonNull String error |
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. |