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

SpeakEasyProtocol.Find

public class SpeakEasyProtocol.Find


Represents a Find request to SpeakEasy.

Summary

Public fields

final @NonNull String

The key to search for.

final @NonNull ResultReceiver

A ResultReceiver to be called with the search results.

Public methods

static @NonNull Bundle
asBundle(@NonNull String key, @NonNull ResultReceiver rr)

Encodes a find request into a bundle.

@NonNull String

Public fields

key

@NonNull
public final @NonNull String key

The key to search for.

resultReceiver

@NonNull
public final @NonNull ResultReceiver resultReceiver

A ResultReceiver to be called with the search results.

Public methods

asBundle

@NonNull
public static Bundle asBundle(@NonNull String key, @NonNull ResultReceiver rr)

Encodes a find request into a bundle.

Parameters
@NonNull String key

the key to search for.

@NonNull ResultReceiver rr

the ResultReceiver to send the results to.

Returns
Bundle

a bundle

Throws
java.lang.NullPointerException

if you do not provide the right parameters.

toString

@NonNull
public String toString()