contentsuggestions

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIContentSuggestionsManagerProvideContextImage       = binder.FirstCallTransaction + 0
	TransactionIContentSuggestionsManagerProvideContextBitmap      = binder.FirstCallTransaction + 1
	TransactionIContentSuggestionsManagerSuggestContentSelections  = binder.FirstCallTransaction + 2
	TransactionIContentSuggestionsManagerClassifyContentSelections = binder.FirstCallTransaction + 3
	TransactionIContentSuggestionsManagerNotifyInteraction         = binder.FirstCallTransaction + 4
	TransactionIContentSuggestionsManagerIsEnabled                 = binder.FirstCallTransaction + 5
	TransactionIContentSuggestionsManagerResetTemporaryService     = binder.FirstCallTransaction + 6
	TransactionIContentSuggestionsManagerSetTemporaryService       = binder.FirstCallTransaction + 7
	TransactionIContentSuggestionsManagerSetDefaultServiceEnabled  = binder.FirstCallTransaction + 8
)
View Source
const (
	MethodIContentSuggestionsManagerProvideContextImage       = "provideContextImage"
	MethodIContentSuggestionsManagerProvideContextBitmap      = "provideContextBitmap"
	MethodIContentSuggestionsManagerSuggestContentSelections  = "suggestContentSelections"
	MethodIContentSuggestionsManagerClassifyContentSelections = "classifyContentSelections"
	MethodIContentSuggestionsManagerNotifyInteraction         = "notifyInteraction"
	MethodIContentSuggestionsManagerIsEnabled                 = "isEnabled"
	MethodIContentSuggestionsManagerResetTemporaryService     = "resetTemporaryService"
	MethodIContentSuggestionsManagerSetTemporaryService       = "setTemporaryService"
	MethodIContentSuggestionsManagerSetDefaultServiceEnabled  = "setDefaultServiceEnabled"
)
View Source
const DescriptorIClassificationsCallback = "android.app.contentsuggestions.IClassificationsCallback"
View Source
const DescriptorIContentSuggestionsManager = "android.app.contentsuggestions.IContentSuggestionsManager"
View Source
const DescriptorISelectionsCallback = "android.app.contentsuggestions.ISelectionsCallback"
View Source
const (
	MethodIClassificationsCallbackOnContentClassificationsAvailable = "onContentClassificationsAvailable"
)
View Source
const (
	MethodISelectionsCallbackOnContentSelectionsAvailable = "onContentSelectionsAvailable"
)
View Source
const (
	TransactionIClassificationsCallbackOnContentClassificationsAvailable = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionISelectionsCallbackOnContentSelectionsAvailable = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassificationsCallbackProxy

type ClassificationsCallbackProxy struct {
	Remote binder.IBinder
}

func NewClassificationsCallbackProxy

func NewClassificationsCallbackProxy(
	remote binder.IBinder,
) *ClassificationsCallbackProxy

func (*ClassificationsCallbackProxy) AsBinder

func (*ClassificationsCallbackProxy) OnContentClassificationsAvailable

func (p *ClassificationsCallbackProxy) OnContentClassificationsAvailable(
	ctx context.Context,
	statusCode int32,
	classifications []ContentClassification,
) error

type ClassificationsCallbackStub

type ClassificationsCallbackStub struct {
	Impl      IClassificationsCallback
	Transport binder.VersionAwareTransport
}

ClassificationsCallbackStub dispatches incoming binder transactions to a typed IClassificationsCallback implementation.

func (*ClassificationsCallbackStub) Descriptor

func (s *ClassificationsCallbackStub) Descriptor() string

func (*ClassificationsCallbackStub) OnTransaction

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

type ClassificationsRequest

type ClassificationsRequest struct {
}

func (*ClassificationsRequest) MarshalParcel

func (s *ClassificationsRequest) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ClassificationsRequest) UnmarshalParcel

func (s *ClassificationsRequest) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ContentClassification

type ContentClassification struct {
	ClassificationId string
}

func (*ContentClassification) MarshalParcel

func (s *ContentClassification) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ContentClassification) UnmarshalParcel

func (s *ContentClassification) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ContentSelection

type ContentSelection struct {
	SelectionId string
}

func (*ContentSelection) MarshalParcel

func (s *ContentSelection) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ContentSelection) UnmarshalParcel

func (s *ContentSelection) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ContentSuggestionsManagerProxy

type ContentSuggestionsManagerProxy struct {
	Remote binder.IBinder
}

func GetContentSuggestionsManager

func GetContentSuggestionsManager(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*ContentSuggestionsManagerProxy, error)

GetContentSuggestionsManager retrieves the ContentSuggestionsService service and returns a typed proxy.

func NewContentSuggestionsManagerProxy

func NewContentSuggestionsManagerProxy(
	remote binder.IBinder,
) *ContentSuggestionsManagerProxy

func (*ContentSuggestionsManagerProxy) AsBinder

func (*ContentSuggestionsManagerProxy) ClassifyContentSelections

func (p *ContentSuggestionsManagerProxy) ClassifyContentSelections(
	ctx context.Context,
	request ClassificationsRequest,
	callback IClassificationsCallback,
) error

func (*ContentSuggestionsManagerProxy) IsEnabled

func (*ContentSuggestionsManagerProxy) NotifyInteraction

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

func (*ContentSuggestionsManagerProxy) ProvideContextBitmap

func (p *ContentSuggestionsManagerProxy) ProvideContextBitmap(
	ctx context.Context,
	bitmap graphics.Bitmap,
	imageContextRequestExtras os.Bundle,
) error

func (*ContentSuggestionsManagerProxy) ProvideContextImage

func (p *ContentSuggestionsManagerProxy) ProvideContextImage(
	ctx context.Context,
	taskId int32,
	imageContextRequestExtras os.Bundle,
) error

func (*ContentSuggestionsManagerProxy) ResetTemporaryService

func (p *ContentSuggestionsManagerProxy) ResetTemporaryService(
	ctx context.Context,
) error

func (*ContentSuggestionsManagerProxy) SetDefaultServiceEnabled

func (p *ContentSuggestionsManagerProxy) SetDefaultServiceEnabled(
	ctx context.Context,
	enabled bool,
) error

func (*ContentSuggestionsManagerProxy) SetTemporaryService

func (p *ContentSuggestionsManagerProxy) SetTemporaryService(
	ctx context.Context,
	serviceName string,
	duration int32,
) error

func (*ContentSuggestionsManagerProxy) SuggestContentSelections

func (p *ContentSuggestionsManagerProxy) SuggestContentSelections(
	ctx context.Context,
	request SelectionsRequest,
	callback ISelectionsCallback,
) error

type ContentSuggestionsManagerStub

type ContentSuggestionsManagerStub struct {
	Impl      IContentSuggestionsManager
	Transport binder.VersionAwareTransport
}

ContentSuggestionsManagerStub dispatches incoming binder transactions to a typed IContentSuggestionsManager implementation.

func (*ContentSuggestionsManagerStub) Descriptor

func (s *ContentSuggestionsManagerStub) Descriptor() string

func (*ContentSuggestionsManagerStub) OnTransaction

type IClassificationsCallback

type IClassificationsCallback interface {
	AsBinder() binder.IBinder
	OnContentClassificationsAvailable(ctx context.Context, statusCode int32, classifications []ContentClassification) error
}

func NewClassificationsCallbackStub

func NewClassificationsCallbackStub(
	impl IClassificationsCallbackServer,
) IClassificationsCallback

NewClassificationsCallbackStub creates a server-side IClassificationsCallback wrapping the given server implementation. The returned value satisfies IClassificationsCallback 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 IClassificationsCallbackServer

type IClassificationsCallbackServer interface {
	OnContentClassificationsAvailable(ctx context.Context, statusCode int32, classifications []ContentClassification) error
}

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

type IContentSuggestionsManager

type IContentSuggestionsManager interface {
	AsBinder() binder.IBinder
	ProvideContextImage(ctx context.Context, taskId int32, imageContextRequestExtras os.Bundle) error
	ProvideContextBitmap(ctx context.Context, bitmap graphics.Bitmap, imageContextRequestExtras os.Bundle) error
	SuggestContentSelections(ctx context.Context, request SelectionsRequest, callback ISelectionsCallback) error
	ClassifyContentSelections(ctx context.Context, request ClassificationsRequest, callback IClassificationsCallback) error
	NotifyInteraction(ctx context.Context, requestId string, interaction os.Bundle) error
	IsEnabled(ctx context.Context, receiver internalOs.IResultReceiver) error
	ResetTemporaryService(ctx context.Context) error
	SetTemporaryService(ctx context.Context, serviceName string, duration int32) error
	SetDefaultServiceEnabled(ctx context.Context, enabled bool) error
}

func NewContentSuggestionsManagerStub

func NewContentSuggestionsManagerStub(
	impl IContentSuggestionsManagerServer,
) IContentSuggestionsManager

NewContentSuggestionsManagerStub creates a server-side IContentSuggestionsManager wrapping the given server implementation. The returned value satisfies IContentSuggestionsManager 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 IContentSuggestionsManagerServer

type IContentSuggestionsManagerServer interface {
	ProvideContextImage(ctx context.Context, taskId int32, imageContextRequestExtras os.Bundle) error
	ProvideContextBitmap(ctx context.Context, bitmap graphics.Bitmap, imageContextRequestExtras os.Bundle) error
	SuggestContentSelections(ctx context.Context, request SelectionsRequest, callback ISelectionsCallback) error
	ClassifyContentSelections(ctx context.Context, request ClassificationsRequest, callback IClassificationsCallback) error
	NotifyInteraction(ctx context.Context, requestId string, interaction os.Bundle) error
	IsEnabled(ctx context.Context, receiver internalOs.IResultReceiver) error
	ResetTemporaryService(ctx context.Context) error
	SetTemporaryService(ctx context.Context, serviceName string, duration int32) error
	SetDefaultServiceEnabled(ctx context.Context, enabled bool) error
}

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

type ISelectionsCallback

type ISelectionsCallback interface {
	AsBinder() binder.IBinder
	OnContentSelectionsAvailable(ctx context.Context, statusCode int32, selections []ContentSelection) error
}

func NewSelectionsCallbackStub

func NewSelectionsCallbackStub(
	impl ISelectionsCallbackServer,
) ISelectionsCallback

NewSelectionsCallbackStub creates a server-side ISelectionsCallback wrapping the given server implementation. The returned value satisfies ISelectionsCallback 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 ISelectionsCallbackServer

type ISelectionsCallbackServer interface {
	OnContentSelectionsAvailable(ctx context.Context, statusCode int32, selections []ContentSelection) error
}

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

type SelectionsCallbackProxy

type SelectionsCallbackProxy struct {
	Remote binder.IBinder
}

func NewSelectionsCallbackProxy

func NewSelectionsCallbackProxy(
	remote binder.IBinder,
) *SelectionsCallbackProxy

func (*SelectionsCallbackProxy) AsBinder

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

func (*SelectionsCallbackProxy) OnContentSelectionsAvailable

func (p *SelectionsCallbackProxy) OnContentSelectionsAvailable(
	ctx context.Context,
	statusCode int32,
	selections []ContentSelection,
) error

type SelectionsCallbackStub

type SelectionsCallbackStub struct {
	Impl      ISelectionsCallback
	Transport binder.VersionAwareTransport
}

SelectionsCallbackStub dispatches incoming binder transactions to a typed ISelectionsCallback implementation.

func (*SelectionsCallbackStub) Descriptor

func (s *SelectionsCallbackStub) Descriptor() string

func (*SelectionsCallbackStub) OnTransaction

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

type SelectionsRequest

type SelectionsRequest struct {
	TaskId int32
}

func (*SelectionsRequest) MarshalParcel

func (s *SelectionsRequest) MarshalParcel(
	p *parcel.Parcel,
) error

func (*SelectionsRequest) UnmarshalParcel

func (s *SelectionsRequest) UnmarshalParcel(
	p *parcel.Parcel,
) error

Jump to

Keyboard shortcuts

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