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

SpeakEasyProtocol.FindResult

class SpeakEasyProtocol.FindResult


The result of a find operation on SpeakEasy.

Summary

Public constructors

Public functions

java-static Bundle!
asBundle(found: Boolean, binder: IBinder!, error: String!)

Encodes the result of a find operation into a bundle.

String!

Public properties

IBinder!

The IBinder which was found.

String!

An error that caused the search to fail.

Boolean!

Whether or not the IBinder was found.

Public constructors

FindResult

FindResult()

Public functions

asBundle

java-static fun asBundle(found: Boolean, binder: IBinder!, error: String!): Bundle!

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
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.

toString

fun toString(): String!

Public properties

binder

val binder: IBinder!

The IBinder which was found.

error

val errorString!

An error that caused the search to fail.

found

val foundBoolean!

Whether or not the IBinder was found.