{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public class SpeakEasyProtocol.FindResult
The result of a find operation on SpeakEasy.
Public fields |
|
|---|---|
final IBinder |
The IBinder which was found. |
final String |
An error that caused the search to fail. |
final Boolean |
Whether or not the IBinder was found. |
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
static Bundle |
Encodes the result of a find operation into a bundle. |
String |
toString() |
public static Bundle asBundle(boolean found, IBinder binder, String error)
Encodes the result of a find operation into a bundle.
| Parameters | |
|---|---|
boolean found |
whether or not the IBinder was found |
IBinder binder |
the located IBinder |
String error |
the problem finding the thing. |
| Returns | |
|---|---|
Bundle |
A bundle that can be converted into a SpeakEasyProtocol |
| Throws | |
|---|---|
java.lang.NullPointerException java.lang.NullPointerException |
if a IBinder is not provide for a successful find or an error is not provided on a failure. |