Documentation
¶
Index ¶
Constants ¶
View Source
const DescriptorIDragAndDrop = "com.android.wm.shell.draganddrop.IDragAndDrop"
View Source
const (
MethodIDragAndDropIsReadyToHandleDrag = "isReadyToHandleDrag"
)
View Source
const (
TransactionIDragAndDropIsReadyToHandleDrag = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DragAndDropProxy ¶
func NewDragAndDropProxy ¶
func NewDragAndDropProxy( remote binder.IBinder, ) *DragAndDropProxy
func (*DragAndDropProxy) AsBinder ¶
func (p *DragAndDropProxy) AsBinder() binder.IBinder
func (*DragAndDropProxy) IsReadyToHandleDrag ¶
func (p *DragAndDropProxy) IsReadyToHandleDrag( ctx context.Context, ) (bool, error)
type DragAndDropStub ¶
type DragAndDropStub struct {
Impl IDragAndDrop
Transport binder.VersionAwareTransport
}
DragAndDropStub dispatches incoming binder transactions to a typed IDragAndDrop implementation.
func (*DragAndDropStub) Descriptor ¶
func (s *DragAndDropStub) Descriptor() string
func (*DragAndDropStub) OnTransaction ¶
func (s *DragAndDropStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IDragAndDrop ¶
type IDragAndDrop interface {
AsBinder() binder.IBinder
IsReadyToHandleDrag(ctx context.Context) (bool, error)
}
func NewDragAndDropStub ¶
func NewDragAndDropStub( impl IDragAndDropServer, ) IDragAndDrop
NewDragAndDropStub creates a server-side IDragAndDrop wrapping the given server implementation. The returned value satisfies IDragAndDrop 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 IDragAndDropServer ¶
IDragAndDropServer is the server-side interface that user implementations provide to NewDragAndDropStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
Click to show internal directories.
Click to hide internal directories.