playback

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 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