{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

SpeakEasyProtocol.PublishResult

class SpeakEasyProtocol.PublishResult


Represents a publish response from speakeasy.

Summary

Public functions

Bundle
asBundle(key: String, published: Boolean, error: String)

Encodes a publish result into a bundle.

String

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.

Public functions

asBundle

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.

toString

fun toString(): String

Public properties

error

val errorString

An error message if publishing failed.

key

val keyString

The key that this message is about.

published

val publishedBoolean

Whether or not the IBinder was published.