{% 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 @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
asBundle(
    @NonNull String key,
    @NonNull boolean published,
    @NonNull String error
)

Encodes a publish result into a bundle.

@NonNull String

Public fields

error

@NonNull
public final @NonNull String error

An error message if publishing failed.

key

@NonNull
public final @NonNull String key

The key that this message is about.

published

@NonNull
public final @NonNull boolean published

Whether or not the IBinder was published.

Public methods

asBundle

@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.

toString

@NonNull
public String toString()