Documentation
¶
Index ¶
- Constants
- type IPredictionService
- type IPredictionServiceServer
- type PredictionServiceProxy
- func (p *PredictionServiceProxy) AsBinder() binder.IBinder
- func (p *PredictionServiceProxy) NotifyAppTargetEvent(ctx context.Context, sessionId prediction.AppPredictionSessionId, ...) error
- func (p *PredictionServiceProxy) NotifyLaunchLocationShown(ctx context.Context, sessionId prediction.AppPredictionSessionId, ...) error
- func (p *PredictionServiceProxy) OnCreatePredictionSession(ctx context.Context, context_ prediction.AppPredictionContext, ...) error
- func (p *PredictionServiceProxy) OnDestroyPredictionSession(ctx context.Context, sessionId prediction.AppPredictionSessionId) error
- func (p *PredictionServiceProxy) RegisterPredictionUpdates(ctx context.Context, sessionId prediction.AppPredictionSessionId, ...) error
- func (p *PredictionServiceProxy) RequestPredictionUpdate(ctx context.Context, sessionId prediction.AppPredictionSessionId) error
- func (p *PredictionServiceProxy) RequestServiceFeatures(ctx context.Context, sessionId prediction.AppPredictionSessionId, ...) error
- func (p *PredictionServiceProxy) SortAppTargets(ctx context.Context, sessionId prediction.AppPredictionSessionId, ...) error
- func (p *PredictionServiceProxy) UnregisterPredictionUpdates(ctx context.Context, sessionId prediction.AppPredictionSessionId, ...) error
- type PredictionServiceStub
Constants ¶
View Source
const ( TransactionIPredictionServiceOnCreatePredictionSession = binder.FirstCallTransaction + 0 TransactionIPredictionServiceNotifyAppTargetEvent = binder.FirstCallTransaction + 1 TransactionIPredictionServiceNotifyLaunchLocationShown = binder.FirstCallTransaction + 2 TransactionIPredictionServiceSortAppTargets = binder.FirstCallTransaction + 3 TransactionIPredictionServiceRegisterPredictionUpdates = binder.FirstCallTransaction + 4 TransactionIPredictionServiceUnregisterPredictionUpdates = binder.FirstCallTransaction + 5 TransactionIPredictionServiceRequestPredictionUpdate = binder.FirstCallTransaction + 6 TransactionIPredictionServiceOnDestroyPredictionSession = binder.FirstCallTransaction + 7 TransactionIPredictionServiceRequestServiceFeatures = binder.FirstCallTransaction + 8 )
View Source
const ( MethodIPredictionServiceOnCreatePredictionSession = "onCreatePredictionSession" MethodIPredictionServiceNotifyAppTargetEvent = "notifyAppTargetEvent" MethodIPredictionServiceNotifyLaunchLocationShown = "notifyLaunchLocationShown" MethodIPredictionServiceSortAppTargets = "sortAppTargets" MethodIPredictionServiceRegisterPredictionUpdates = "registerPredictionUpdates" MethodIPredictionServiceUnregisterPredictionUpdates = "unregisterPredictionUpdates" MethodIPredictionServiceRequestPredictionUpdate = "requestPredictionUpdate" MethodIPredictionServiceOnDestroyPredictionSession = "onDestroyPredictionSession" MethodIPredictionServiceRequestServiceFeatures = "requestServiceFeatures" )
View Source
const DescriptorIPredictionService = "android.service.appprediction.IPredictionService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPredictionService ¶
type IPredictionService interface {
AsBinder() binder.IBinder
OnCreatePredictionSession(ctx context.Context, context_ prediction.AppPredictionContext, sessionId prediction.AppPredictionSessionId) error
NotifyAppTargetEvent(ctx context.Context, sessionId prediction.AppPredictionSessionId, event prediction.AppTargetEvent) error
NotifyLaunchLocationShown(ctx context.Context, sessionId prediction.AppPredictionSessionId, launchLocation string, targetIds pm.ParceledListSlice) error
SortAppTargets(ctx context.Context, sessionId prediction.AppPredictionSessionId, targets pm.ParceledListSlice, callback prediction.IPredictionCallback) error
RegisterPredictionUpdates(ctx context.Context, sessionId prediction.AppPredictionSessionId, callback prediction.IPredictionCallback) error
UnregisterPredictionUpdates(ctx context.Context, sessionId prediction.AppPredictionSessionId, callback prediction.IPredictionCallback) error
RequestPredictionUpdate(ctx context.Context, sessionId prediction.AppPredictionSessionId) error
OnDestroyPredictionSession(ctx context.Context, sessionId prediction.AppPredictionSessionId) error
RequestServiceFeatures(ctx context.Context, sessionId prediction.AppPredictionSessionId, callback os.IRemoteCallback) error
}
func NewPredictionServiceStub ¶
func NewPredictionServiceStub( impl IPredictionServiceServer, ) IPredictionService
NewPredictionServiceStub creates a server-side IPredictionService wrapping the given server implementation. The returned value satisfies IPredictionService 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 IPredictionServiceServer ¶
type IPredictionServiceServer interface {
OnCreatePredictionSession(ctx context.Context, context_ prediction.AppPredictionContext, sessionId prediction.AppPredictionSessionId) error
NotifyAppTargetEvent(ctx context.Context, sessionId prediction.AppPredictionSessionId, event prediction.AppTargetEvent) error
NotifyLaunchLocationShown(ctx context.Context, sessionId prediction.AppPredictionSessionId, launchLocation string, targetIds pm.ParceledListSlice) error
SortAppTargets(ctx context.Context, sessionId prediction.AppPredictionSessionId, targets pm.ParceledListSlice, callback prediction.IPredictionCallback) error
RegisterPredictionUpdates(ctx context.Context, sessionId prediction.AppPredictionSessionId, callback prediction.IPredictionCallback) error
UnregisterPredictionUpdates(ctx context.Context, sessionId prediction.AppPredictionSessionId, callback prediction.IPredictionCallback) error
RequestPredictionUpdate(ctx context.Context, sessionId prediction.AppPredictionSessionId) error
OnDestroyPredictionSession(ctx context.Context, sessionId prediction.AppPredictionSessionId) error
RequestServiceFeatures(ctx context.Context, sessionId prediction.AppPredictionSessionId, callback os.IRemoteCallback) error
}
IPredictionServiceServer is the server-side interface that user implementations provide to NewPredictionServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type PredictionServiceProxy ¶
func NewPredictionServiceProxy ¶
func NewPredictionServiceProxy( remote binder.IBinder, ) *PredictionServiceProxy
func (*PredictionServiceProxy) AsBinder ¶
func (p *PredictionServiceProxy) AsBinder() binder.IBinder
func (*PredictionServiceProxy) NotifyAppTargetEvent ¶
func (p *PredictionServiceProxy) NotifyAppTargetEvent( ctx context.Context, sessionId prediction.AppPredictionSessionId, event prediction.AppTargetEvent, ) error
func (*PredictionServiceProxy) NotifyLaunchLocationShown ¶
func (p *PredictionServiceProxy) NotifyLaunchLocationShown( ctx context.Context, sessionId prediction.AppPredictionSessionId, launchLocation string, targetIds pm.ParceledListSlice, ) error
func (*PredictionServiceProxy) OnCreatePredictionSession ¶
func (p *PredictionServiceProxy) OnCreatePredictionSession( ctx context.Context, context_ prediction.AppPredictionContext, sessionId prediction.AppPredictionSessionId, ) error
func (*PredictionServiceProxy) OnDestroyPredictionSession ¶
func (p *PredictionServiceProxy) OnDestroyPredictionSession( ctx context.Context, sessionId prediction.AppPredictionSessionId, ) error
func (*PredictionServiceProxy) RegisterPredictionUpdates ¶
func (p *PredictionServiceProxy) RegisterPredictionUpdates( ctx context.Context, sessionId prediction.AppPredictionSessionId, callback prediction.IPredictionCallback, ) error
func (*PredictionServiceProxy) RequestPredictionUpdate ¶
func (p *PredictionServiceProxy) RequestPredictionUpdate( ctx context.Context, sessionId prediction.AppPredictionSessionId, ) error
func (*PredictionServiceProxy) RequestServiceFeatures ¶
func (p *PredictionServiceProxy) RequestServiceFeatures( ctx context.Context, sessionId prediction.AppPredictionSessionId, callback os.IRemoteCallback, ) error
func (*PredictionServiceProxy) SortAppTargets ¶
func (p *PredictionServiceProxy) SortAppTargets( ctx context.Context, sessionId prediction.AppPredictionSessionId, targets pm.ParceledListSlice, callback prediction.IPredictionCallback, ) error
func (*PredictionServiceProxy) UnregisterPredictionUpdates ¶
func (p *PredictionServiceProxy) UnregisterPredictionUpdates( ctx context.Context, sessionId prediction.AppPredictionSessionId, callback prediction.IPredictionCallback, ) error
type PredictionServiceStub ¶
type PredictionServiceStub struct {
Impl IPredictionService
Transport binder.VersionAwareTransport
}
PredictionServiceStub dispatches incoming binder transactions to a typed IPredictionService implementation.
func (*PredictionServiceStub) Descriptor ¶
func (s *PredictionServiceStub) Descriptor() string
func (*PredictionServiceStub) OnTransaction ¶
func (s *PredictionServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Click to show internal directories.
Click to hide internal directories.