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

SpeakEasyProtocol.PublishResult

public final class SpeakEasyProtocol.PublishResult


Represents a publish response from speakeasy.

Summary

Public fields

final String

An error message if publishing failed.

final String

The key that this message is about.

final boolean

Whether or not the IBinder was published.

Public constructors

Public methods

static Bundle
asBundle(String key, boolean published, String error)

Encodes a publish result into a bundle.

String

Public fields

error

public final String error

An error message if publishing failed.

key

public final String key

The key that this message is about.

published

public final boolean published

Whether or not the IBinder was published.

Public constructors

PublishResult

public final PublishResult()

Public methods

asBundle

public static Bundle asBundle(String key, boolean published, String error)

Encodes a publish result into a bundle.

Parameters
boolean published

if the IBinder has been published.

String error

a message to tell the caller about how broken things are.

Returns
Bundle

a bundle

Throws
java.lang.NullPointerException java.lang.NullPointerException

if not published and error is null.

toString

public String toString()