public final class

SpeakEasyProtocol.PublishResult

extends java.lang.Object

 java.lang.Object

↳androidx.test.services.speakeasy.SpeakEasyProtocol.PublishResult

Overview

Represents a publish response from speakeasy.

Summary

Fields
public final java.lang.Stringerror

An error message if publishing failed.

public final java.lang.Stringkey

The key that this message is about.

public final booleanpublished

Whether or not the IBinder was published.

Methods
public static BundleasBundle(java.lang.String key, boolean published, java.lang.String error)

Encodes a publish result into a bundle.

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public final java.lang.String key

The key that this message is about.

public final boolean published

Whether or not the IBinder was published.

public final java.lang.String error

An error message if publishing failed.

Methods

public java.lang.String toString()

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

Encodes a publish result into a bundle.

Parameters:

published: if the IBinder has been published.
error: a message to tell the caller about how broken things are.

Returns:

a bundle