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 ¶
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).