Documentation
¶
Index ¶
- Constants
- type ContentSuggestionsServiceProxy
- func (p *ContentSuggestionsServiceProxy) AsBinder() binder.IBinder
- func (p *ContentSuggestionsServiceProxy) ClassifyContentSelections(ctx context.Context, request appContentsuggestions.ClassificationsRequest, ...) error
- func (p *ContentSuggestionsServiceProxy) NotifyInteraction(ctx context.Context, requestId string, interaction os.Bundle) error
- func (p *ContentSuggestionsServiceProxy) ProvideContextImage(ctx context.Context, taskId int32, contextImage common.HardwareBuffer, ...) error
- func (p *ContentSuggestionsServiceProxy) SuggestContentSelections(ctx context.Context, request appContentsuggestions.SelectionsRequest, ...) error
- type ContentSuggestionsServiceStub
- type IContentSuggestionsService
- type IContentSuggestionsServiceServer
Constants ¶
const ( TransactionIContentSuggestionsServiceProvideContextImage = binder.FirstCallTransaction + 0 TransactionIContentSuggestionsServiceSuggestContentSelections = binder.FirstCallTransaction + 1 TransactionIContentSuggestionsServiceClassifyContentSelections = binder.FirstCallTransaction + 2 TransactionIContentSuggestionsServiceNotifyInteraction = binder.FirstCallTransaction + 3 )
const ( MethodIContentSuggestionsServiceProvideContextImage = "provideContextImage" MethodIContentSuggestionsServiceSuggestContentSelections = "suggestContentSelections" MethodIContentSuggestionsServiceClassifyContentSelections = "classifyContentSelections" MethodIContentSuggestionsServiceNotifyInteraction = "notifyInteraction" )
const DescriptorIContentSuggestionsService = "android.service.contentsuggestions.IContentSuggestionsService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentSuggestionsServiceProxy ¶
func NewContentSuggestionsServiceProxy ¶
func NewContentSuggestionsServiceProxy( remote binder.IBinder, ) *ContentSuggestionsServiceProxy
func (*ContentSuggestionsServiceProxy) AsBinder ¶
func (p *ContentSuggestionsServiceProxy) AsBinder() binder.IBinder
func (*ContentSuggestionsServiceProxy) ClassifyContentSelections ¶
func (p *ContentSuggestionsServiceProxy) ClassifyContentSelections( ctx context.Context, request appContentsuggestions.ClassificationsRequest, callback appContentsuggestions.IClassificationsCallback, ) error
func (*ContentSuggestionsServiceProxy) NotifyInteraction ¶
func (*ContentSuggestionsServiceProxy) ProvideContextImage ¶
func (p *ContentSuggestionsServiceProxy) ProvideContextImage( ctx context.Context, taskId int32, contextImage common.HardwareBuffer, colorSpaceId int32, imageContextRequestExtras os.Bundle, ) error
func (*ContentSuggestionsServiceProxy) SuggestContentSelections ¶
func (p *ContentSuggestionsServiceProxy) SuggestContentSelections( ctx context.Context, request appContentsuggestions.SelectionsRequest, callback appContentsuggestions.ISelectionsCallback, ) error
type ContentSuggestionsServiceStub ¶
type ContentSuggestionsServiceStub struct {
Impl IContentSuggestionsService
Transport binder.VersionAwareTransport
}
ContentSuggestionsServiceStub dispatches incoming binder transactions to a typed IContentSuggestionsService implementation.
func (*ContentSuggestionsServiceStub) Descriptor ¶
func (s *ContentSuggestionsServiceStub) Descriptor() string
func (*ContentSuggestionsServiceStub) OnTransaction ¶
func (s *ContentSuggestionsServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IContentSuggestionsService ¶
type IContentSuggestionsService interface {
AsBinder() binder.IBinder
ProvideContextImage(ctx context.Context, taskId int32, contextImage common.HardwareBuffer, colorSpaceId int32, imageContextRequestExtras os.Bundle) error
SuggestContentSelections(ctx context.Context, request appContentsuggestions.SelectionsRequest, callback appContentsuggestions.ISelectionsCallback) error
ClassifyContentSelections(ctx context.Context, request appContentsuggestions.ClassificationsRequest, callback appContentsuggestions.IClassificationsCallback) error
NotifyInteraction(ctx context.Context, requestId string, interaction os.Bundle) error
}
func NewContentSuggestionsServiceStub ¶
func NewContentSuggestionsServiceStub( impl IContentSuggestionsServiceServer, ) IContentSuggestionsService
NewContentSuggestionsServiceStub creates a server-side IContentSuggestionsService wrapping the given server implementation. The returned value satisfies IContentSuggestionsService 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 IContentSuggestionsServiceServer ¶
type IContentSuggestionsServiceServer interface {
ProvideContextImage(ctx context.Context, taskId int32, contextImage common.HardwareBuffer, colorSpaceId int32, imageContextRequestExtras os.Bundle) error
SuggestContentSelections(ctx context.Context, request appContentsuggestions.SelectionsRequest, callback appContentsuggestions.ISelectionsCallback) error
ClassifyContentSelections(ctx context.Context, request appContentsuggestions.ClassificationsRequest, callback appContentsuggestions.IClassificationsCallback) error
NotifyInteraction(ctx context.Context, requestId string, interaction os.Bundle) error
}
IContentSuggestionsServiceServer is the server-side interface that user implementations provide to NewContentSuggestionsServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).