QueryResult

public final class QueryResult implements Parcelable


The result of a camera feature combination query.

Summary

Nested types

@IntDef(value = [0, 1, 2])
@Retention(value = AnnotationRetention.SOURCE)
public annotation QueryResult.Result

Public fields

static final @NonNull Parcelable.Creator<@NonNull QueryResult>

Public constructors

QueryResult(@QueryResult.Result int result, long timestamp)

Public methods

final int
final int

The result of the query.

final long

The timestamp of the query result.

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

CREATOR

public static final @NonNull Parcelable.Creator<@NonNull QueryResultCREATOR

Public constructors

QueryResult

public QueryResult(@QueryResult.Result int result, long timestamp)

Public methods

describeContents

public final int describeContents()

getResult

public final int getResult()

The result of the query. Must be one of the values in Result.

getTimestamp

public final long getTimestamp()

The timestamp of the query result. This is the timestamp of the last update to the database, and only valid if the result is not Result.UNKNOWN.

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)