| 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. |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
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.
|