Documentation
¶
Index ¶
- Constants
- type ClassificationsCallbackProxy
- type ClassificationsCallbackStub
- type ClassificationsRequest
- type ContentClassification
- type ContentSelection
- type ContentSuggestionsManagerProxy
- func (p *ContentSuggestionsManagerProxy) AsBinder() binder.IBinder
- func (p *ContentSuggestionsManagerProxy) ClassifyContentSelections(ctx context.Context, request ClassificationsRequest, ...) error
- func (p *ContentSuggestionsManagerProxy) IsEnabled(ctx context.Context, receiver internalOs.IResultReceiver) error
- func (p *ContentSuggestionsManagerProxy) NotifyInteraction(ctx context.Context, requestId string, interaction os.Bundle) error
- func (p *ContentSuggestionsManagerProxy) ProvideContextBitmap(ctx context.Context, bitmap graphics.Bitmap, ...) error
- func (p *ContentSuggestionsManagerProxy) ProvideContextImage(ctx context.Context, taskId int32, imageContextRequestExtras os.Bundle) error
- func (p *ContentSuggestionsManagerProxy) ResetTemporaryService(ctx context.Context) error
- func (p *ContentSuggestionsManagerProxy) SetDefaultServiceEnabled(ctx context.Context, enabled bool) error
- func (p *ContentSuggestionsManagerProxy) SetTemporaryService(ctx context.Context, serviceName string, duration int32) error
- func (p *ContentSuggestionsManagerProxy) SuggestContentSelections(ctx context.Context, request SelectionsRequest, callback ISelectionsCallback) error
- type ContentSuggestionsManagerStub
- type IClassificationsCallback
- type IClassificationsCallbackServer
- type IContentSuggestionsManager
- type IContentSuggestionsManagerServer
- type ISelectionsCallback
- type ISelectionsCallbackServer
- type SelectionsCallbackProxy
- type SelectionsCallbackStub
- type SelectionsRequest
Constants ¶
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 )
const ( MethodIContentSuggestionsManagerProvideContextImage = "provideContextImage" MethodIContentSuggestionsManagerProvideContextBitmap = "provideContextBitmap" MethodIContentSuggestionsManagerSuggestContentSelections = "suggestContentSelections" MethodIContentSuggestionsManagerClassifyContentSelections = "classifyContentSelections" MethodIContentSuggestionsManagerNotifyInteraction = "notifyInteraction" MethodIContentSuggestionsManagerIsEnabled = "isEnabled" MethodIContentSuggestionsManagerResetTemporaryService = "resetTemporaryService" MethodIContentSuggestionsManagerSetTemporaryService = "setTemporaryService" MethodIContentSuggestionsManagerSetDefaultServiceEnabled = "setDefaultServiceEnabled" )
const DescriptorIClassificationsCallback = "android.app.contentsuggestions.IClassificationsCallback"
const DescriptorIContentSuggestionsManager = "android.app.contentsuggestions.IContentSuggestionsManager"
const DescriptorISelectionsCallback = "android.app.contentsuggestions.ISelectionsCallback"
const (
MethodIClassificationsCallbackOnContentClassificationsAvailable = "onContentClassificationsAvailable"
)
const (
MethodISelectionsCallbackOnContentSelectionsAvailable = "onContentSelectionsAvailable"
)
const (
TransactionIClassificationsCallbackOnContentClassificationsAvailable = binder.FirstCallTransaction + 0
)
const (
TransactionISelectionsCallbackOnContentSelectionsAvailable = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassificationsCallbackProxy ¶
func NewClassificationsCallbackProxy ¶
func NewClassificationsCallbackProxy( remote binder.IBinder, ) *ClassificationsCallbackProxy
func (*ClassificationsCallbackProxy) AsBinder ¶
func (p *ClassificationsCallbackProxy) AsBinder() binder.IBinder
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 ¶
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 (p *ContentSuggestionsManagerProxy) AsBinder() binder.IBinder
func (*ContentSuggestionsManagerProxy) ClassifyContentSelections ¶
func (p *ContentSuggestionsManagerProxy) ClassifyContentSelections( ctx context.Context, request ClassificationsRequest, callback IClassificationsCallback, ) error
func (*ContentSuggestionsManagerProxy) IsEnabled ¶
func (p *ContentSuggestionsManagerProxy) IsEnabled( ctx context.Context, receiver internalOs.IResultReceiver, ) error
func (*ContentSuggestionsManagerProxy) NotifyInteraction ¶
func (*ContentSuggestionsManagerProxy) ProvideContextBitmap ¶
func (*ContentSuggestionsManagerProxy) ProvideContextImage ¶
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 (*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 ¶
func (s *ContentSuggestionsManagerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
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 ¶
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