Share via


AppSearchBlobHandle.CreateWithSha256(Byte[], String, String, String) Method

Definition

Create a new AppSearch blob identifier with given digest, package, database and namespace.

[Android.Runtime.Register("createWithSha256", "([BLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/app/appsearch/AppSearchBlobHandle;", "", ApiSince=36)]
public static Android.App.AppSearch.AppSearchBlobHandle CreateWithSha256(byte[] digest, string packageName, string databaseName, string namespace);
[<Android.Runtime.Register("createWithSha256", "([BLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/app/appsearch/AppSearchBlobHandle;", "", ApiSince=36)>]
static member CreateWithSha256 : byte[] * string * string * string -> Android.App.AppSearch.AppSearchBlobHandle

Parameters

digest
Byte[]

The SHA-256 hash of the blob this is representing.

packageName
String

The package name of the owner of this Blob.

databaseName
String

The database name of this blob to stored into.

namespace
String

The namespace of this blob resides in.

Returns

a new instance of AppSearchBlobHandle object.

Attributes

Remarks

Create a new AppSearch blob identifier with given digest, package, database and namespace.

The package name and database name indicated where this blob will be stored. To write, commit or read this blob via AppSearchSession, it must match the package name and database name of AppSearchSession.

For two objects of AppSearchBlobHandle to be considered equal, the packageName, database, namespace and digest must be equal.

Java documentation for android.app.appsearch.AppSearchBlobHandle.createWithSha256(byte[], java.lang.String, java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to