database

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIContentObserverOnChange    = binder.FirstCallTransaction + 0
	TransactionIContentObserverOnChangeEtc = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIContentObserverOnChange    = "onChange"
	MethodIContentObserverOnChangeEtc = "onChangeEtc"
)
View Source
const DescriptorIContentObserver = "android.database.IContentObserver"

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentObserverProxy

type ContentObserverProxy struct {
	Remote binder.IBinder
}

func NewContentObserverProxy

func NewContentObserverProxy(
	remote binder.IBinder,
) *ContentObserverProxy

func (*ContentObserverProxy) AsBinder

func (p *ContentObserverProxy) AsBinder() binder.IBinder

func (*ContentObserverProxy) OnChange

func (p *ContentObserverProxy) OnChange(
	ctx context.Context,
	selfUpdate bool,
	uri net.Uri,
) error

func (*ContentObserverProxy) OnChangeEtc

func (p *ContentObserverProxy) OnChangeEtc(
	ctx context.Context,
	selfUpdate bool,
	uri []net.Uri,
	flags int32,
) error

type ContentObserverStub

type ContentObserverStub struct {
	Impl      IContentObserver
	Transport binder.VersionAwareTransport
}

ContentObserverStub dispatches incoming binder transactions to a typed IContentObserver implementation.

func (*ContentObserverStub) Descriptor

func (s *ContentObserverStub) Descriptor() string

func (*ContentObserverStub) OnTransaction

func (s *ContentObserverStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type CursorWindow

type CursorWindow struct {
}

func (*CursorWindow) MarshalParcel

func (s *CursorWindow) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CursorWindow) UnmarshalParcel

func (s *CursorWindow) UnmarshalParcel(
	p *parcel.Parcel,
) error

type IContentObserver

type IContentObserver interface {
	AsBinder() binder.IBinder
	OnChange(ctx context.Context, selfUpdate bool, uri net.Uri) error
	OnChangeEtc(ctx context.Context, selfUpdate bool, uri []net.Uri, flags int32) error
}

func NewContentObserverStub

func NewContentObserverStub(
	impl IContentObserverServer,
) IContentObserver

NewContentObserverStub creates a server-side IContentObserver wrapping the given server implementation. The returned value satisfies IContentObserver 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 IContentObserverServer

type IContentObserverServer interface {
	OnChange(ctx context.Context, selfUpdate bool, uri net.Uri) error
	OnChangeEtc(ctx context.Context, selfUpdate bool, uri []net.Uri, flags int32) error
}

IContentObserverServer is the server-side interface that user implementations provide to NewContentObserverStub. 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