Help us shape the future of Go! Take the 2026 Go Developer Survey

draganddrop

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: 4 Imported by: 0

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

type DragAndDropProxy struct {
	Remote binder.IBinder
}

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

type IDragAndDropServer interface {
	IsReadyToHandleDrag(ctx context.Context) (bool, error)
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL