Documentation
¶
Index ¶
- Constants
- type AmbientContextDetectionResult
- type AmbientContextDetectionServiceProxy
- func (p *AmbientContextDetectionServiceProxy) AsBinder() binder.IBinder
- func (p *AmbientContextDetectionServiceProxy) QueryServiceStatus(ctx context.Context, eventTypes []int32, packageName string, ...) error
- func (p *AmbientContextDetectionServiceProxy) StartDetection(ctx context.Context, request appAmbientcontext.AmbientContextEventRequest, ...) error
- func (p *AmbientContextDetectionServiceProxy) StopDetection(ctx context.Context, packageName string) error
- type AmbientContextDetectionServiceStatus
- type AmbientContextDetectionServiceStub
- type IAmbientContextDetectionService
- type IAmbientContextDetectionServiceServer
Constants ¶
const ( TransactionIAmbientContextDetectionServiceStartDetection = binder.FirstCallTransaction + 0 TransactionIAmbientContextDetectionServiceStopDetection = binder.FirstCallTransaction + 1 TransactionIAmbientContextDetectionServiceQueryServiceStatus = binder.FirstCallTransaction + 2 )
const ( MethodIAmbientContextDetectionServiceStartDetection = "startDetection" MethodIAmbientContextDetectionServiceStopDetection = "stopDetection" MethodIAmbientContextDetectionServiceQueryServiceStatus = "queryServiceStatus" )
const DescriptorIAmbientContextDetectionService = "android.service.ambientcontext.IAmbientContextDetectionService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmbientContextDetectionResult ¶
func (*AmbientContextDetectionResult) MarshalParcel ¶
func (s *AmbientContextDetectionResult) MarshalParcel( p *parcel.Parcel, ) error
func (*AmbientContextDetectionResult) UnmarshalParcel ¶
func (s *AmbientContextDetectionResult) UnmarshalParcel( p *parcel.Parcel, ) error
type AmbientContextDetectionServiceProxy ¶
func NewAmbientContextDetectionServiceProxy ¶
func NewAmbientContextDetectionServiceProxy( remote binder.IBinder, ) *AmbientContextDetectionServiceProxy
func (*AmbientContextDetectionServiceProxy) AsBinder ¶
func (p *AmbientContextDetectionServiceProxy) AsBinder() binder.IBinder
func (*AmbientContextDetectionServiceProxy) QueryServiceStatus ¶
func (p *AmbientContextDetectionServiceProxy) QueryServiceStatus( ctx context.Context, eventTypes []int32, packageName string, callback os.RemoteCallback, ) error
func (*AmbientContextDetectionServiceProxy) StartDetection ¶
func (p *AmbientContextDetectionServiceProxy) StartDetection( ctx context.Context, request appAmbientcontext.AmbientContextEventRequest, packageName string, detectionResultCallback os.RemoteCallback, statusCallback os.RemoteCallback, ) error
func (*AmbientContextDetectionServiceProxy) StopDetection ¶
func (p *AmbientContextDetectionServiceProxy) StopDetection( ctx context.Context, packageName string, ) error
type AmbientContextDetectionServiceStatus ¶
func (*AmbientContextDetectionServiceStatus) MarshalParcel ¶
func (s *AmbientContextDetectionServiceStatus) MarshalParcel( p *parcel.Parcel, ) error
func (*AmbientContextDetectionServiceStatus) UnmarshalParcel ¶
func (s *AmbientContextDetectionServiceStatus) UnmarshalParcel( p *parcel.Parcel, ) error
type AmbientContextDetectionServiceStub ¶
type AmbientContextDetectionServiceStub struct {
Impl IAmbientContextDetectionService
Transport binder.VersionAwareTransport
}
AmbientContextDetectionServiceStub dispatches incoming binder transactions to a typed IAmbientContextDetectionService implementation.
func (*AmbientContextDetectionServiceStub) Descriptor ¶
func (s *AmbientContextDetectionServiceStub) Descriptor() string
func (*AmbientContextDetectionServiceStub) OnTransaction ¶
func (s *AmbientContextDetectionServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IAmbientContextDetectionService ¶
type IAmbientContextDetectionService interface {
AsBinder() binder.IBinder
StartDetection(ctx context.Context, request appAmbientcontext.AmbientContextEventRequest, packageName string, detectionResultCallback os.RemoteCallback, statusCallback os.RemoteCallback) error
StopDetection(ctx context.Context, packageName string) error
QueryServiceStatus(ctx context.Context, eventTypes []int32, packageName string, callback os.RemoteCallback) error
}
func NewAmbientContextDetectionServiceStub ¶
func NewAmbientContextDetectionServiceStub( impl IAmbientContextDetectionServiceServer, ) IAmbientContextDetectionService
NewAmbientContextDetectionServiceStub creates a server-side IAmbientContextDetectionService wrapping the given server implementation. The returned value satisfies IAmbientContextDetectionService 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 IAmbientContextDetectionServiceServer ¶
type IAmbientContextDetectionServiceServer interface {
StartDetection(ctx context.Context, request appAmbientcontext.AmbientContextEventRequest, packageName string, detectionResultCallback os.RemoteCallback, statusCallback os.RemoteCallback) error
StopDetection(ctx context.Context, packageName string) error
QueryServiceStatus(ctx context.Context, eventTypes []int32, packageName string, callback os.RemoteCallback) error
}
IAmbientContextDetectionServiceServer is the server-side interface that user implementations provide to NewAmbientContextDetectionServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).