Documentation
¶
Index ¶
- Constants
- type ISmartspaceService
- type ISmartspaceServiceServer
- type SmartspaceServiceProxy
- func (p *SmartspaceServiceProxy) AsBinder() binder.IBinder
- func (p *SmartspaceServiceProxy) NotifySmartspaceEvent(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, ...) error
- func (p *SmartspaceServiceProxy) OnCreateSmartspaceSession(ctx context.Context, context_ appSmartspace.SmartspaceConfig, ...) error
- func (p *SmartspaceServiceProxy) OnDestroySmartspaceSession(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId) error
- func (p *SmartspaceServiceProxy) RegisterSmartspaceUpdates(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, ...) error
- func (p *SmartspaceServiceProxy) RequestSmartspaceUpdate(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId) error
- func (p *SmartspaceServiceProxy) UnregisterSmartspaceUpdates(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, ...) error
- type SmartspaceServiceStub
Constants ¶
View Source
const ( TransactionISmartspaceServiceOnCreateSmartspaceSession = binder.FirstCallTransaction + 0 TransactionISmartspaceServiceNotifySmartspaceEvent = binder.FirstCallTransaction + 1 TransactionISmartspaceServiceRequestSmartspaceUpdate = binder.FirstCallTransaction + 2 TransactionISmartspaceServiceRegisterSmartspaceUpdates = binder.FirstCallTransaction + 3 TransactionISmartspaceServiceUnregisterSmartspaceUpdates = binder.FirstCallTransaction + 4 TransactionISmartspaceServiceOnDestroySmartspaceSession = binder.FirstCallTransaction + 5 )
View Source
const ( MethodISmartspaceServiceOnCreateSmartspaceSession = "onCreateSmartspaceSession" MethodISmartspaceServiceNotifySmartspaceEvent = "notifySmartspaceEvent" MethodISmartspaceServiceRequestSmartspaceUpdate = "requestSmartspaceUpdate" MethodISmartspaceServiceRegisterSmartspaceUpdates = "registerSmartspaceUpdates" MethodISmartspaceServiceUnregisterSmartspaceUpdates = "unregisterSmartspaceUpdates" MethodISmartspaceServiceOnDestroySmartspaceSession = "onDestroySmartspaceSession" )
View Source
const DescriptorISmartspaceService = "android.service.smartspace.ISmartspaceService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISmartspaceService ¶
type ISmartspaceService interface {
AsBinder() binder.IBinder
OnCreateSmartspaceSession(ctx context.Context, context_ appSmartspace.SmartspaceConfig, sessionId appSmartspace.SmartspaceSessionId) error
NotifySmartspaceEvent(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, event appSmartspace.SmartspaceTargetEvent) error
RequestSmartspaceUpdate(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId) error
RegisterSmartspaceUpdates(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, callback appSmartspace.ISmartspaceCallback) error
UnregisterSmartspaceUpdates(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, callback appSmartspace.ISmartspaceCallback) error
OnDestroySmartspaceSession(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId) error
}
func NewSmartspaceServiceStub ¶
func NewSmartspaceServiceStub( impl ISmartspaceServiceServer, ) ISmartspaceService
NewSmartspaceServiceStub creates a server-side ISmartspaceService wrapping the given server implementation. The returned value satisfies ISmartspaceService 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 ISmartspaceServiceServer ¶
type ISmartspaceServiceServer interface {
OnCreateSmartspaceSession(ctx context.Context, context_ appSmartspace.SmartspaceConfig, sessionId appSmartspace.SmartspaceSessionId) error
NotifySmartspaceEvent(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, event appSmartspace.SmartspaceTargetEvent) error
RequestSmartspaceUpdate(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId) error
RegisterSmartspaceUpdates(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, callback appSmartspace.ISmartspaceCallback) error
UnregisterSmartspaceUpdates(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, callback appSmartspace.ISmartspaceCallback) error
OnDestroySmartspaceSession(ctx context.Context, sessionId appSmartspace.SmartspaceSessionId) error
}
ISmartspaceServiceServer is the server-side interface that user implementations provide to NewSmartspaceServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type SmartspaceServiceProxy ¶
func NewSmartspaceServiceProxy ¶
func NewSmartspaceServiceProxy( remote binder.IBinder, ) *SmartspaceServiceProxy
func (*SmartspaceServiceProxy) AsBinder ¶
func (p *SmartspaceServiceProxy) AsBinder() binder.IBinder
func (*SmartspaceServiceProxy) NotifySmartspaceEvent ¶
func (p *SmartspaceServiceProxy) NotifySmartspaceEvent( ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, event appSmartspace.SmartspaceTargetEvent, ) error
func (*SmartspaceServiceProxy) OnCreateSmartspaceSession ¶
func (p *SmartspaceServiceProxy) OnCreateSmartspaceSession( ctx context.Context, context_ appSmartspace.SmartspaceConfig, sessionId appSmartspace.SmartspaceSessionId, ) error
func (*SmartspaceServiceProxy) OnDestroySmartspaceSession ¶
func (p *SmartspaceServiceProxy) OnDestroySmartspaceSession( ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, ) error
func (*SmartspaceServiceProxy) RegisterSmartspaceUpdates ¶
func (p *SmartspaceServiceProxy) RegisterSmartspaceUpdates( ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, callback appSmartspace.ISmartspaceCallback, ) error
func (*SmartspaceServiceProxy) RequestSmartspaceUpdate ¶
func (p *SmartspaceServiceProxy) RequestSmartspaceUpdate( ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, ) error
func (*SmartspaceServiceProxy) UnregisterSmartspaceUpdates ¶
func (p *SmartspaceServiceProxy) UnregisterSmartspaceUpdates( ctx context.Context, sessionId appSmartspace.SmartspaceSessionId, callback appSmartspace.ISmartspaceCallback, ) error
type SmartspaceServiceStub ¶
type SmartspaceServiceStub struct {
Impl ISmartspaceService
Transport binder.VersionAwareTransport
}
SmartspaceServiceStub dispatches incoming binder transactions to a typed ISmartspaceService implementation.
func (*SmartspaceServiceStub) Descriptor ¶
func (s *SmartspaceServiceStub) Descriptor() string
func (*SmartspaceServiceStub) OnTransaction ¶
func (s *SmartspaceServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Click to show internal directories.
Click to hide internal directories.