Documentation
¶
Index ¶
- Constants
- type ISearchUiService
- type ISearchUiServiceServer
- type SearchUiServiceProxy
- func (p *SearchUiServiceProxy) AsBinder() binder.IBinder
- func (p *SearchUiServiceProxy) OnCreateSearchSession(ctx context.Context, context_ appSearch.SearchContext, ...) error
- func (p *SearchUiServiceProxy) OnDestroy(ctx context.Context, sessionId appSearch.SearchSessionId) error
- func (p *SearchUiServiceProxy) OnNotifyEvent(ctx context.Context, sessionId appSearch.SearchSessionId, ...) error
- func (p *SearchUiServiceProxy) OnQuery(ctx context.Context, sessionId appSearch.SearchSessionId, ...) error
- func (p *SearchUiServiceProxy) OnRegisterEmptyQueryResultUpdateCallback(ctx context.Context, sessionId appSearch.SearchSessionId, ...) error
- func (p *SearchUiServiceProxy) OnUnregisterEmptyQueryResultUpdateCallback(ctx context.Context, sessionId appSearch.SearchSessionId, ...) error
- type SearchUiServiceStub
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 ¶
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 (p *SearchUiServiceProxy) OnNotifyEvent( ctx context.Context, sessionId appSearch.SearchSessionId, input appSearch.Query, event appSearch.SearchTargetEvent, ) error
func (*SearchUiServiceProxy) OnQuery ¶
func (p *SearchUiServiceProxy) OnQuery( ctx context.Context, sessionId appSearch.SearchSessionId, input appSearch.Query, callback appSearch.ISearchCallback, ) error
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)
Click to show internal directories.
Click to hide internal directories.