search

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionISearchUiServiceOnCreateSearchSession                      = binder.FirstCallTransaction + 0
	TransactionISearchUiServiceOnQuery                                    = binder.FirstCallTransaction + 1
	TransactionISearchUiServiceOnNotifyEvent                              = binder.FirstCallTransaction + 2
	TransactionISearchUiServiceOnRegisterEmptyQueryResultUpdateCallback   = binder.FirstCallTransaction + 3
	TransactionISearchUiServiceOnUnregisterEmptyQueryResultUpdateCallback = binder.FirstCallTransaction + 4
	TransactionISearchUiServiceOnDestroy                                  = binder.FirstCallTransaction + 5
)
View Source
const (
	MethodISearchUiServiceOnCreateSearchSession                      = "onCreateSearchSession"
	MethodISearchUiServiceOnQuery                                    = "onQuery"
	MethodISearchUiServiceOnNotifyEvent                              = "onNotifyEvent"
	MethodISearchUiServiceOnRegisterEmptyQueryResultUpdateCallback   = "onRegisterEmptyQueryResultUpdateCallback"
	MethodISearchUiServiceOnUnregisterEmptyQueryResultUpdateCallback = "onUnregisterEmptyQueryResultUpdateCallback"
	MethodISearchUiServiceOnDestroy                                  = "onDestroy"
)
View Source
const DescriptorISearchUiService = "android.service.search.ISearchUiService"

Variables

This section is empty.

Functions

This section is empty.

Types

type ISearchUiService

type ISearchUiService interface {
	AsBinder() binder.IBinder
	OnCreateSearchSession(ctx context.Context, context_ appSearch.SearchContext, sessionId appSearch.SearchSessionId) error
	OnQuery(ctx context.Context, sessionId appSearch.SearchSessionId, input appSearch.Query, callback appSearch.ISearchCallback) error
	OnNotifyEvent(ctx context.Context, sessionId appSearch.SearchSessionId, input appSearch.Query, event appSearch.SearchTargetEvent) error
	OnRegisterEmptyQueryResultUpdateCallback(ctx context.Context, sessionId appSearch.SearchSessionId, callback appSearch.ISearchCallback) error
	OnUnregisterEmptyQueryResultUpdateCallback(ctx context.Context, sessionId appSearch.SearchSessionId, callback appSearch.ISearchCallback) error
	OnDestroy(ctx context.Context, sessionId appSearch.SearchSessionId) error
}

func NewSearchUiServiceStub

func NewSearchUiServiceStub(
	impl ISearchUiServiceServer,
) ISearchUiService

NewSearchUiServiceStub creates a server-side ISearchUiService wrapping the given server implementation. The returned value satisfies ISearchUiService and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type ISearchUiServiceServer

type ISearchUiServiceServer interface {
	OnCreateSearchSession(ctx context.Context, context_ appSearch.SearchContext, sessionId appSearch.SearchSessionId) error
	OnQuery(ctx context.Context, sessionId appSearch.SearchSessionId, input appSearch.Query, callback appSearch.ISearchCallback) error
	OnNotifyEvent(ctx context.Context, sessionId appSearch.SearchSessionId, input appSearch.Query, event appSearch.SearchTargetEvent) error
	OnRegisterEmptyQueryResultUpdateCallback(ctx context.Context, sessionId appSearch.SearchSessionId, callback appSearch.ISearchCallback) error
	OnUnregisterEmptyQueryResultUpdateCallback(ctx context.Context, sessionId appSearch.SearchSessionId, callback appSearch.ISearchCallback) error
	OnDestroy(ctx context.Context, sessionId appSearch.SearchSessionId) error
}

ISearchUiServiceServer is the server-side interface that user implementations provide to NewSearchUiServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type SearchUiServiceProxy

type SearchUiServiceProxy struct {
	Remote binder.IBinder
}

func NewSearchUiServiceProxy

func NewSearchUiServiceProxy(
	remote binder.IBinder,
) *SearchUiServiceProxy

func (*SearchUiServiceProxy) AsBinder

func (p *SearchUiServiceProxy) AsBinder() binder.IBinder

func (*SearchUiServiceProxy) OnCreateSearchSession

func (p *SearchUiServiceProxy) OnCreateSearchSession(
	ctx context.Context,
	context_ appSearch.SearchContext,
	sessionId appSearch.SearchSessionId,
) error

func (*SearchUiServiceProxy) OnDestroy

func (p *SearchUiServiceProxy) OnDestroy(
	ctx context.Context,
	sessionId appSearch.SearchSessionId,
) error

func (*SearchUiServiceProxy) OnNotifyEvent

func (*SearchUiServiceProxy) OnQuery

func (*SearchUiServiceProxy) OnRegisterEmptyQueryResultUpdateCallback

func (p *SearchUiServiceProxy) OnRegisterEmptyQueryResultUpdateCallback(
	ctx context.Context,
	sessionId appSearch.SearchSessionId,
	callback appSearch.ISearchCallback,
) error

func (*SearchUiServiceProxy) OnUnregisterEmptyQueryResultUpdateCallback

func (p *SearchUiServiceProxy) OnUnregisterEmptyQueryResultUpdateCallback(
	ctx context.Context,
	sessionId appSearch.SearchSessionId,
	callback appSearch.ISearchCallback,
) error

type SearchUiServiceStub

type SearchUiServiceStub struct {
	Impl      ISearchUiService
	Transport binder.VersionAwareTransport
}

SearchUiServiceStub dispatches incoming binder transactions to a typed ISearchUiService implementation.

func (*SearchUiServiceStub) Descriptor

func (s *SearchUiServiceStub) Descriptor() string

func (*SearchUiServiceStub) OnTransaction

func (s *SearchUiServiceStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL