Documentation
¶
Index ¶
- Constants
- type IRemoteLockscreenValidationCallback
- type IRemoteLockscreenValidationCallbackServer
- type IRemoteLockscreenValidationService
- type IRemoteLockscreenValidationServiceServer
- type RemoteLockscreenValidationCallbackProxy
- func (p *RemoteLockscreenValidationCallbackProxy) AsBinder() binder.IBinder
- func (p *RemoteLockscreenValidationCallbackProxy) OnFailure(ctx context.Context, message string) error
- func (p *RemoteLockscreenValidationCallbackProxy) OnSuccess(ctx context.Context, result app.RemoteLockscreenValidationResult) error
- type RemoteLockscreenValidationCallbackStub
- type RemoteLockscreenValidationServiceProxy
- type RemoteLockscreenValidationServiceStub
Constants ¶
const ( TransactionIRemoteLockscreenValidationCallbackOnSuccess = binder.FirstCallTransaction + 0 TransactionIRemoteLockscreenValidationCallbackOnFailure = binder.FirstCallTransaction + 1 )
const ( MethodIRemoteLockscreenValidationCallbackOnSuccess = "onSuccess" MethodIRemoteLockscreenValidationCallbackOnFailure = "onFailure" )
const DescriptorIRemoteLockscreenValidationCallback = "android.service.remotelockscreenvalidation.IRemoteLockscreenValidationCallback"
const DescriptorIRemoteLockscreenValidationService = "android.service.remotelockscreenvalidation.IRemoteLockscreenValidationService"
const (
MethodIRemoteLockscreenValidationServiceValidateLockscreenGuess = "validateLockscreenGuess"
)
const (
TransactionIRemoteLockscreenValidationServiceValidateLockscreenGuess = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRemoteLockscreenValidationCallback ¶
type IRemoteLockscreenValidationCallback interface {
AsBinder() binder.IBinder
OnSuccess(ctx context.Context, result app.RemoteLockscreenValidationResult) error
OnFailure(ctx context.Context, message string) error
}
func NewRemoteLockscreenValidationCallbackStub ¶
func NewRemoteLockscreenValidationCallbackStub( impl IRemoteLockscreenValidationCallbackServer, ) IRemoteLockscreenValidationCallback
NewRemoteLockscreenValidationCallbackStub creates a server-side IRemoteLockscreenValidationCallback wrapping the given server implementation. The returned value satisfies IRemoteLockscreenValidationCallback 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 IRemoteLockscreenValidationCallbackServer ¶
type IRemoteLockscreenValidationCallbackServer interface {
OnSuccess(ctx context.Context, result app.RemoteLockscreenValidationResult) error
OnFailure(ctx context.Context, message string) error
}
IRemoteLockscreenValidationCallbackServer is the server-side interface that user implementations provide to NewRemoteLockscreenValidationCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IRemoteLockscreenValidationService ¶
type IRemoteLockscreenValidationService interface {
AsBinder() binder.IBinder
ValidateLockscreenGuess(ctx context.Context, guess []byte, callback IRemoteLockscreenValidationCallback) error
}
func NewRemoteLockscreenValidationServiceStub ¶
func NewRemoteLockscreenValidationServiceStub( impl IRemoteLockscreenValidationServiceServer, ) IRemoteLockscreenValidationService
NewRemoteLockscreenValidationServiceStub creates a server-side IRemoteLockscreenValidationService wrapping the given server implementation. The returned value satisfies IRemoteLockscreenValidationService 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 IRemoteLockscreenValidationServiceServer ¶
type IRemoteLockscreenValidationServiceServer interface {
ValidateLockscreenGuess(ctx context.Context, guess []byte, callback IRemoteLockscreenValidationCallback) error
}
IRemoteLockscreenValidationServiceServer is the server-side interface that user implementations provide to NewRemoteLockscreenValidationServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type RemoteLockscreenValidationCallbackProxy ¶
func NewRemoteLockscreenValidationCallbackProxy ¶
func NewRemoteLockscreenValidationCallbackProxy( remote binder.IBinder, ) *RemoteLockscreenValidationCallbackProxy
func (*RemoteLockscreenValidationCallbackProxy) AsBinder ¶
func (p *RemoteLockscreenValidationCallbackProxy) AsBinder() binder.IBinder
func (*RemoteLockscreenValidationCallbackProxy) OnFailure ¶
func (p *RemoteLockscreenValidationCallbackProxy) OnFailure( ctx context.Context, message string, ) error
func (*RemoteLockscreenValidationCallbackProxy) OnSuccess ¶
func (p *RemoteLockscreenValidationCallbackProxy) OnSuccess( ctx context.Context, result app.RemoteLockscreenValidationResult, ) error
type RemoteLockscreenValidationCallbackStub ¶
type RemoteLockscreenValidationCallbackStub struct {
Impl IRemoteLockscreenValidationCallback
Transport binder.VersionAwareTransport
}
RemoteLockscreenValidationCallbackStub dispatches incoming binder transactions to a typed IRemoteLockscreenValidationCallback implementation.
func (*RemoteLockscreenValidationCallbackStub) Descriptor ¶
func (s *RemoteLockscreenValidationCallbackStub) Descriptor() string
func (*RemoteLockscreenValidationCallbackStub) OnTransaction ¶
func (s *RemoteLockscreenValidationCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type RemoteLockscreenValidationServiceProxy ¶
func NewRemoteLockscreenValidationServiceProxy ¶
func NewRemoteLockscreenValidationServiceProxy( remote binder.IBinder, ) *RemoteLockscreenValidationServiceProxy
func (*RemoteLockscreenValidationServiceProxy) AsBinder ¶
func (p *RemoteLockscreenValidationServiceProxy) AsBinder() binder.IBinder
func (*RemoteLockscreenValidationServiceProxy) ValidateLockscreenGuess ¶
func (p *RemoteLockscreenValidationServiceProxy) ValidateLockscreenGuess( ctx context.Context, guess []byte, callback IRemoteLockscreenValidationCallback, ) error
type RemoteLockscreenValidationServiceStub ¶
type RemoteLockscreenValidationServiceStub struct {
Impl IRemoteLockscreenValidationService
Transport binder.VersionAwareTransport
}
RemoteLockscreenValidationServiceStub dispatches incoming binder transactions to a typed IRemoteLockscreenValidationService implementation.
func (*RemoteLockscreenValidationServiceStub) Descriptor ¶
func (s *RemoteLockscreenValidationServiceStub) Descriptor() string
func (*RemoteLockscreenValidationServiceStub) OnTransaction ¶
func (s *RemoteLockscreenValidationServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)