Documentation
¶
Index ¶
Constants ¶
const ( TransactionIContentObserverOnChange = binder.FirstCallTransaction + 0 TransactionIContentObserverOnChangeEtc = binder.FirstCallTransaction + 1 )
const ( MethodIContentObserverOnChange = "onChange" MethodIContentObserverOnChangeEtc = "onChangeEtc" )
const DescriptorIContentObserver = "android.database.IContentObserver"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentObserverProxy ¶
func NewContentObserverProxy ¶
func NewContentObserverProxy( remote binder.IBinder, ) *ContentObserverProxy
func (*ContentObserverProxy) AsBinder ¶
func (p *ContentObserverProxy) AsBinder() binder.IBinder
func (*ContentObserverProxy) OnChangeEtc ¶
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).