public class

SpeakEasyProtocol.FindResult

extends java.lang.Object

 java.lang.Object

↳androidx.test.services.speakeasy.SpeakEasyProtocol.FindResult

Overview

The result of a find operation on SpeakEasy.

Summary

Fields
public final IBinderbinder

The IBinder which was found.

public final java.lang.Stringerror

An error that caused the search to fail.

public final java.lang.Booleanfound

Whether or not the IBinder was found.

Methods
public static BundleasBundle(boolean found, IBinder binder, java.lang.String error)

Encodes the result of a find operation 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.Boolean found

Whether or not the IBinder was found.

public final IBinder binder

The IBinder which was found.

public final java.lang.String error

An error that caused the search to fail.

Methods

public java.lang.String toString()

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

Encodes the result of a find operation into a bundle.

Parameters:

found: whether or not the IBinder was found
binder: the located IBinder
error: the problem finding the thing.

Returns:

A bundle that can be converted into a SpeakEasyProtocol