contentsuggestions

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionIContentSuggestionsServiceProvideContextImage       = binder.FirstCallTransaction + 0
	TransactionIContentSuggestionsServiceSuggestContentSelections  = binder.FirstCallTransaction + 1
	TransactionIContentSuggestionsServiceClassifyContentSelections = binder.FirstCallTransaction + 2
	TransactionIContentSuggestionsServiceNotifyInteraction         = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodIContentSuggestionsServiceProvideContextImage       = "provideContextImage"
	MethodIContentSuggestionsServiceSuggestContentSelections  = "suggestContentSelections"
	MethodIContentSuggestionsServiceClassifyContentSelections = "classifyContentSelections"
	MethodIContentSuggestionsServiceNotifyInteraction         = "notifyInteraction"
)
View Source
const DescriptorIContentSuggestionsService = "android.service.contentsuggestions.IContentSuggestionsService"

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentSuggestionsServiceProxy

type ContentSuggestionsServiceProxy struct {
	Remote binder.IBinder
}

func NewContentSuggestionsServiceProxy

func NewContentSuggestionsServiceProxy(
	remote binder.IBinder,
) *ContentSuggestionsServiceProxy

func (*ContentSuggestionsServiceProxy) AsBinder

func (*ContentSuggestionsServiceProxy) ClassifyContentSelections

func (*ContentSuggestionsServiceProxy) NotifyInteraction

func (p *ContentSuggestionsServiceProxy) NotifyInteraction(
	ctx context.Context,
	requestId string,
	interaction os.Bundle,
) error

func (*ContentSuggestionsServiceProxy) ProvideContextImage

func (p *ContentSuggestionsServiceProxy) ProvideContextImage(
	ctx context.Context,
	taskId int32,
	contextImage common.HardwareBuffer,
	colorSpaceId int32,
	imageContextRequestExtras os.Bundle,
) error

func (*ContentSuggestionsServiceProxy) SuggestContentSelections

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

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).

Jump to

Keyboard shortcuts

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