Documentation
¶
Index ¶
- Constants
- type BackAnimationProxy
- func (p *BackAnimationProxy) AsBinder() binder.IBinder
- func (p *BackAnimationProxy) ClearBackToLauncherCallback(ctx context.Context) error
- func (p *BackAnimationProxy) CustomizeStatusBarAppearance(ctx context.Context, appearance internalView.AppearanceRegion) error
- func (p *BackAnimationProxy) SetBackToLauncherCallback(ctx context.Context, callback window.IOnBackInvokedCallback, ...) error
- type BackAnimationStub
- type IBackAnimation
- type IBackAnimationServer
Constants ¶
View Source
const ( TransactionIBackAnimationSetBackToLauncherCallback = binder.FirstCallTransaction + 0 TransactionIBackAnimationClearBackToLauncherCallback = binder.FirstCallTransaction + 1 TransactionIBackAnimationCustomizeStatusBarAppearance = binder.FirstCallTransaction + 2 )
View Source
const ( MethodIBackAnimationSetBackToLauncherCallback = "setBackToLauncherCallback" MethodIBackAnimationClearBackToLauncherCallback = "clearBackToLauncherCallback" MethodIBackAnimationCustomizeStatusBarAppearance = "customizeStatusBarAppearance" )
View Source
const DescriptorIBackAnimation = "com.android.wm.shell.back.IBackAnimation"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackAnimationProxy ¶
func NewBackAnimationProxy ¶
func NewBackAnimationProxy( remote binder.IBinder, ) *BackAnimationProxy
func (*BackAnimationProxy) AsBinder ¶
func (p *BackAnimationProxy) AsBinder() binder.IBinder
func (*BackAnimationProxy) ClearBackToLauncherCallback ¶
func (p *BackAnimationProxy) ClearBackToLauncherCallback( ctx context.Context, ) error
func (*BackAnimationProxy) CustomizeStatusBarAppearance ¶
func (p *BackAnimationProxy) CustomizeStatusBarAppearance( ctx context.Context, appearance internalView.AppearanceRegion, ) error
func (*BackAnimationProxy) SetBackToLauncherCallback ¶
func (p *BackAnimationProxy) SetBackToLauncherCallback( ctx context.Context, callback window.IOnBackInvokedCallback, runner view.IRemoteAnimationRunner, ) error
type BackAnimationStub ¶
type BackAnimationStub struct {
Impl IBackAnimation
Transport binder.VersionAwareTransport
}
BackAnimationStub dispatches incoming binder transactions to a typed IBackAnimation implementation.
func (*BackAnimationStub) Descriptor ¶
func (s *BackAnimationStub) Descriptor() string
func (*BackAnimationStub) OnTransaction ¶
func (s *BackAnimationStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IBackAnimation ¶
type IBackAnimation interface {
AsBinder() binder.IBinder
SetBackToLauncherCallback(ctx context.Context, callback window.IOnBackInvokedCallback, runner view.IRemoteAnimationRunner) error
ClearBackToLauncherCallback(ctx context.Context) error
CustomizeStatusBarAppearance(ctx context.Context, appearance internalView.AppearanceRegion) error
}
func NewBackAnimationStub ¶
func NewBackAnimationStub( impl IBackAnimationServer, ) IBackAnimation
NewBackAnimationStub creates a server-side IBackAnimation wrapping the given server implementation. The returned value satisfies IBackAnimation 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 IBackAnimationServer ¶
type IBackAnimationServer interface {
SetBackToLauncherCallback(ctx context.Context, callback window.IOnBackInvokedCallback, runner view.IRemoteAnimationRunner) error
ClearBackToLauncherCallback(ctx context.Context) error
CustomizeStatusBarAppearance(ctx context.Context, appearance internalView.AppearanceRegion) error
}
IBackAnimationServer is the server-side interface that user implementations provide to NewBackAnimationStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
Click to show internal directories.
Click to hide internal directories.