public static final class

SpeakEasyProtocol.PublishResult

extends Object
java.lang.Object
   ↳ androidx.test.services.speakeasy.SpeakEasyProtocol.PublishResult

Class Overview

Represents a publish response from speakeasy.

Summary

Fields
public final String error An error message if publishing failed.
public final String key The key that this message is about.
public final boolean published Whether or not the IBinder was published.
Public Methods
static Bundle asBundle(String key, boolean published, String error)
Encodes a publish result into a bundle.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final String error

An error message if publishing failed.

public final String key

The key that this message is about.

public final boolean published

Whether or not the IBinder was published.

Public Methods

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

Encodes a publish result into a bundle.

Parameters
key String
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
NullPointerException if not published and error is null.

public String toString ()

Returns
String