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

transition

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIShellTransitionsRegisterRemote              = binder.FirstCallTransaction + 0
	TransactionIShellTransitionsUnregisterRemote            = binder.FirstCallTransaction + 1
	TransactionIShellTransitionsGetShellApplyToken          = binder.FirstCallTransaction + 2
	TransactionIShellTransitionsSetHomeTransitionListener   = binder.FirstCallTransaction + 3
	TransactionIShellTransitionsGetHomeTaskOverlayContainer = binder.FirstCallTransaction + 4
)
View Source
const (
	MethodIShellTransitionsRegisterRemote              = "registerRemote"
	MethodIShellTransitionsUnregisterRemote            = "unregisterRemote"
	MethodIShellTransitionsGetShellApplyToken          = "getShellApplyToken"
	MethodIShellTransitionsSetHomeTransitionListener   = "setHomeTransitionListener"
	MethodIShellTransitionsGetHomeTaskOverlayContainer = "getHomeTaskOverlayContainer"
)
View Source
const DescriptorIHomeTransitionListener = "com.android.wm.shell.transition.IHomeTransitionListener"
View Source
const DescriptorIShellTransitions = "com.android.wm.shell.transition.IShellTransitions"
View Source
const (
	MethodIHomeTransitionListenerOnHomeVisibilityChanged = "onHomeVisibilityChanged"
)
View Source
const (
	TransactionIHomeTransitionListenerOnHomeVisibilityChanged = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HomeTransitionListenerProxy

type HomeTransitionListenerProxy struct {
	Remote binder.IBinder
}

func NewHomeTransitionListenerProxy

func NewHomeTransitionListenerProxy(
	remote binder.IBinder,
) *HomeTransitionListenerProxy

func (*HomeTransitionListenerProxy) AsBinder

func (*HomeTransitionListenerProxy) OnHomeVisibilityChanged

func (p *HomeTransitionListenerProxy) OnHomeVisibilityChanged(
	ctx context.Context,
	isVisible bool,
) error

type HomeTransitionListenerStub

type HomeTransitionListenerStub struct {
	Impl      IHomeTransitionListener
	Transport binder.VersionAwareTransport
}

HomeTransitionListenerStub dispatches incoming binder transactions to a typed IHomeTransitionListener implementation.

func (*HomeTransitionListenerStub) Descriptor

func (s *HomeTransitionListenerStub) Descriptor() string

func (*HomeTransitionListenerStub) OnTransaction

func (s *HomeTransitionListenerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type IHomeTransitionListener

type IHomeTransitionListener interface {
	AsBinder() binder.IBinder
	OnHomeVisibilityChanged(ctx context.Context, isVisible bool) error
}

func NewHomeTransitionListenerStub

func NewHomeTransitionListenerStub(
	impl IHomeTransitionListenerServer,
) IHomeTransitionListener

NewHomeTransitionListenerStub creates a server-side IHomeTransitionListener wrapping the given server implementation. The returned value satisfies IHomeTransitionListener 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 IHomeTransitionListenerServer

type IHomeTransitionListenerServer interface {
	OnHomeVisibilityChanged(ctx context.Context, isVisible bool) error
}

IHomeTransitionListenerServer is the server-side interface that user implementations provide to NewHomeTransitionListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IShellTransitions

type IShellTransitions interface {
	AsBinder() binder.IBinder
	RegisterRemote(ctx context.Context, filter window.TransitionFilter, remoteTransition window.RemoteTransition) error
	UnregisterRemote(ctx context.Context, remoteTransition window.RemoteTransition) error
	GetShellApplyToken(ctx context.Context) (binder.IBinder, error)
	SetHomeTransitionListener(ctx context.Context, listener IHomeTransitionListener) error
	GetHomeTaskOverlayContainer(ctx context.Context) (view.SurfaceControl, error)
}

func NewShellTransitionsStub

func NewShellTransitionsStub(
	impl IShellTransitionsServer,
) IShellTransitions

NewShellTransitionsStub creates a server-side IShellTransitions wrapping the given server implementation. The returned value satisfies IShellTransitions 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 IShellTransitionsServer

type IShellTransitionsServer interface {
	RegisterRemote(ctx context.Context, filter window.TransitionFilter, remoteTransition window.RemoteTransition) error
	UnregisterRemote(ctx context.Context, remoteTransition window.RemoteTransition) error
	GetShellApplyToken(ctx context.Context) (binder.IBinder, error)
	SetHomeTransitionListener(ctx context.Context, listener IHomeTransitionListener) error
	GetHomeTaskOverlayContainer(ctx context.Context) (view.SurfaceControl, error)
}

IShellTransitionsServer is the server-side interface that user implementations provide to NewShellTransitionsStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type ShellTransitionsProxy

type ShellTransitionsProxy struct {
	Remote binder.IBinder
}

func NewShellTransitionsProxy

func NewShellTransitionsProxy(
	remote binder.IBinder,
) *ShellTransitionsProxy

func (*ShellTransitionsProxy) AsBinder

func (p *ShellTransitionsProxy) AsBinder() binder.IBinder

func (*ShellTransitionsProxy) GetHomeTaskOverlayContainer

func (p *ShellTransitionsProxy) GetHomeTaskOverlayContainer(
	ctx context.Context,
) (view.SurfaceControl, error)

func (*ShellTransitionsProxy) GetShellApplyToken

func (p *ShellTransitionsProxy) GetShellApplyToken(
	ctx context.Context,
) (binder.IBinder, error)

func (*ShellTransitionsProxy) RegisterRemote

func (p *ShellTransitionsProxy) RegisterRemote(
	ctx context.Context,
	filter window.TransitionFilter,
	remoteTransition window.RemoteTransition,
) error

func (*ShellTransitionsProxy) SetHomeTransitionListener

func (p *ShellTransitionsProxy) SetHomeTransitionListener(
	ctx context.Context,
	listener IHomeTransitionListener,
) error

func (*ShellTransitionsProxy) UnregisterRemote

func (p *ShellTransitionsProxy) UnregisterRemote(
	ctx context.Context,
	remoteTransition window.RemoteTransition,
) error

type ShellTransitionsStub

type ShellTransitionsStub struct {
	Impl      IShellTransitions
	Transport binder.VersionAwareTransport
}

ShellTransitionsStub dispatches incoming binder transactions to a typed IShellTransitions implementation.

func (*ShellTransitionsStub) Descriptor

func (s *ShellTransitionsStub) Descriptor() string

func (*ShellTransitionsStub) OnTransaction

func (s *ShellTransitionsStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

Jump to

Keyboard shortcuts

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