Table of Contents

Class GlobalSearchSession

Namespace
Android.App.Appsearch
Assembly
MASES.Netdroid.dll
public class GlobalSearchSession : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, ICloseable, IAutoCloseable
Inheritance
GlobalSearchSession
Implements
Extension Methods

Constructors

GlobalSearchSession(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public GlobalSearchSession(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Close()

public void Close()

GetByDocumentId(String, String, GetByDocumentIdRequest, Executor, BatchResultCallback<String, GenericDocument>)

public void GetByDocumentId(String arg0, String arg1, GetByDocumentIdRequest arg2, Executor arg3, BatchResultCallback<String, GenericDocument> arg4)

Parameters

arg0 String

String

arg1 String

String

arg2 GetByDocumentIdRequest

GetByDocumentIdRequest

arg3 Executor

Executor

arg4 BatchResultCallback<String, GenericDocument>

BatchResultCallback

GetSchema(String, String, Executor, Consumer<AppSearchResult<GetSchemaResponse>>)

public void GetSchema(String arg0, String arg1, Executor arg2, Consumer<AppSearchResult<GetSchemaResponse>> arg3)

Parameters

arg0 String

String

arg1 String

String

arg2 Executor

Executor

arg3 Consumer<AppSearchResult<GetSchemaResponse>>

Consumer

OpenBlobForRead(Set<AppSearchBlobHandle>, Executor, Consumer<AppSearchResult<OpenBlobForReadResponse>>)

public void OpenBlobForRead(Set<AppSearchBlobHandle> arg0, Executor arg1, Consumer<AppSearchResult<OpenBlobForReadResponse>> arg2)

Parameters

arg0 Set<AppSearchBlobHandle>

Set

arg1 Executor

Executor

arg2 Consumer<AppSearchResult<OpenBlobForReadResponse>>

Consumer

RegisterObserverCallback(String, ObserverSpec, Executor, ObserverCallback)

public void RegisterObserverCallback(String arg0, ObserverSpec arg1, Executor arg2, ObserverCallback arg3)

Parameters

arg0 String

String

arg1 ObserverSpec

ObserverSpec

arg2 Executor

Executor

arg3 ObserverCallback

ObserverCallback

Exceptions

AppSearchException

ReportSystemUsage(ReportSystemUsageRequest, Executor, Consumer<AppSearchResult<Void>>)

public void ReportSystemUsage(ReportSystemUsageRequest arg0, Executor arg1, Consumer<AppSearchResult<Void>> arg2)

Parameters

arg0 ReportSystemUsageRequest

ReportSystemUsageRequest

arg1 Executor

Executor

arg2 Consumer<AppSearchResult<Void>>

Consumer

Search(String, SearchSpec)

public SearchResults Search(String arg0, SearchSpec arg1)

Parameters

arg0 String

String

arg1 SearchSpec

SearchSpec

Returns

SearchResults

SearchResults

UnregisterObserverCallback(String, ObserverCallback)

public void UnregisterObserverCallback(String arg0, ObserverCallback arg1)

Parameters

arg0 String

String

arg1 ObserverCallback

ObserverCallback

Exceptions

AppSearchException