GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Why Go
  • Case Studies
  • Use Cases
  • Security
  • Learn
  • Effective Go
  • Go User Manual
  • Standard library
  • Release Notes
  • API
  • Packages
  • Recorded Talks
  • Meetups
  • Conferences

This view

  • Original page
  • New address

GeezerVison is showing pkg.go.dev — database package - github.com/AndroidGoLab/binder/android/database - Go Packages

Details

  • checked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • unchecked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/AndroidGoLab/binder

Links

  • Open Source Insights Logo Open Source Insights

Documentation ¶

Index ¶

  • Constants
  • type ContentObserverProxy
    • func NewContentObserverProxy(remote binder.IBinder) *ContentObserverProxy
    • func (p *ContentObserverProxy) AsBinder() binder.IBinder
    • func (p *ContentObserverProxy) OnChange(ctx context.Context, selfUpdate bool, uri net.Uri) error
    • func (p *ContentObserverProxy) OnChangeEtc(ctx context.Context, selfUpdate bool, uri []net.Uri, flags int32) error
  • type ContentObserverStub
    • func (s *ContentObserverStub) Descriptor() string
    • func (s *ContentObserverStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type CursorWindow
    • func (s *CursorWindow) MarshalParcel(p *parcel.Parcel) error
    • func (s *CursorWindow) UnmarshalParcel(p *parcel.Parcel) error
  • type IContentObserver
    • func NewContentObserverStub(impl IContentObserverServer) IContentObserver
  • type IContentObserverServer

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 {
	StartPos int32
}

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

Source Files ¶

View all Source files
  • cursorwindow.go
  • icontentobserver.go

Directories ¶

Path Synopsis
types
Click to show internal directories.
Click to hide internal directories.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.