public static class

SpeakEasyProtocol.FindResult

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

Class Overview

The result of a find operation on SpeakEasy.

Summary

Fields
public final IBinder binder The IBinder which was found.
public final String error An error that caused the search to fail.
public final Boolean found Whether or not the IBinder was found.
Public Methods
static Bundle asBundle(boolean found, IBinder binder, String error)
Encodes the result of a find operation into a bundle.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final IBinder binder

The IBinder which was found.

public final String error

An error that caused the search to fail.

public final Boolean found

Whether or not the IBinder was found.

Public Methods

public static Bundle asBundle (boolean found, IBinder binder, String error)

Encodes the result of a find operation into a bundle.

Parameters
found boolean: whether or not the IBinder was found
binder IBinder: the located IBinder
error String: the problem finding the thing.
Returns
Bundle A bundle that can be converted into a SpeakEasyProtocol
Throws
NullPointerException if a IBinder is not provide for a successful find or an error is not provided on a failure.

public String toString ()

Returns
String