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).
type RequestCallbackProxy ¶
func NewRequestCallbackProxy ¶
func NewRequestCallbackProxy( remote binder.IBinder, ) *RequestCallbackProxy
func (*RequestCallbackProxy) AsBinder ¶
func (p *RequestCallbackProxy) AsBinder() binder.IBinder
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)
Click to show internal directories.
Click to hide internal directories.