{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

SpeakEasyProtocol.FindResult

public class SpeakEasyProtocol.FindResult


The result of a find operation on SpeakEasy.

Summary

Public fields

final @NonNull IBinder

The IBinder which was found.

final @NonNull String

An error that caused the search to fail.

final @NonNull Boolean

Whether or not the IBinder was found.

Public methods

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

Encodes the result of a find operation into a bundle.

@NonNull String

Public fields

binder

@NonNull
public final @NonNull IBinder binder

The IBinder which was found.

error

@NonNull
public final @NonNull String error

An error that caused the search to fail.

found

@NonNull
public final @NonNull Boolean found

Whether or not the IBinder was found.

Public methods

asBundle

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

Encodes the result of a find operation into a bundle.

Parameters
@NonNull boolean found

whether or not the IBinder was found

@NonNull IBinder binder

the located IBinder

@NonNull String error

the problem finding the thing.

Returns
Bundle

A bundle that can be converted into a SpeakEasyProtocol

Throws
java.lang.NullPointerException

if a IBinder is not provide for a successful find or an error is not provided on a failure.

toString

@NonNull
public String toString()