smartspace

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

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

type SmartspaceServiceProxy struct {
	Remote binder.IBinder
}

func NewSmartspaceServiceProxy

func NewSmartspaceServiceProxy(
	remote binder.IBinder,
) *SmartspaceServiceProxy

func (*SmartspaceServiceProxy) AsBinder

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

func (*SmartspaceServiceProxy) NotifySmartspaceEvent

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)

Jump to

Keyboard shortcuts

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