Help us shape the future of Go! Take the 2026 Go Developer Survey

back

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

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

type BackAnimationProxy struct {
	Remote binder.IBinder
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL