playback

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DescriptorIRequestCallback = "com.android.onemedia.playback.IRequestCallback"
View Source
const (
	MethodIRequestCallbackOnResult = "onResult"
)
View Source
const (
	TransactionIRequestCallbackOnResult = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IRequestCallback

type IRequestCallback interface {
	AsBinder() binder.IBinder
	OnResult(ctx context.Context, result os.Bundle) error
}

func NewRequestCallbackStub

func NewRequestCallbackStub(
	impl IRequestCallbackServer,
) IRequestCallback

NewRequestCallbackStub creates a server-side IRequestCallback wrapping the given server implementation. The returned value satisfies IRequestCallback 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 IRequestCallbackServer

type IRequestCallbackServer interface {
	OnResult(ctx context.Context, result os.Bundle) error
}

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

type RequestCallbackProxy

type RequestCallbackProxy struct {
	Remote binder.IBinder
}

func NewRequestCallbackProxy

func NewRequestCallbackProxy(
	remote binder.IBinder,
) *RequestCallbackProxy

func (*RequestCallbackProxy) AsBinder

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

func (*RequestCallbackProxy) OnResult

func (p *RequestCallbackProxy) OnResult(
	ctx context.Context,
	result os.Bundle,
) error

type RequestCallbackStub

type RequestCallbackStub struct {
	Impl      IRequestCallback
	Transport binder.VersionAwareTransport
}

RequestCallbackStub dispatches incoming binder transactions to a typed IRequestCallback implementation.

func (*RequestCallbackStub) Descriptor

func (s *RequestCallbackStub) Descriptor() string

func (*RequestCallbackStub) OnTransaction

func (s *RequestCallbackStub) 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