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

webkit

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

Documentation

Index

Constants

View Source
const (
	TransactionIWebViewUpdateServiceNotifyRelroCreationCompleted = binder.FirstCallTransaction + 0
	TransactionIWebViewUpdateServiceWaitForAndGetProvider        = binder.FirstCallTransaction + 1
	TransactionIWebViewUpdateServiceChangeProviderAndSetting     = binder.FirstCallTransaction + 2
	TransactionIWebViewUpdateServiceGetValidWebViewPackages      = binder.FirstCallTransaction + 3
	TransactionIWebViewUpdateServiceGetAllWebViewPackages        = binder.FirstCallTransaction + 4
	TransactionIWebViewUpdateServiceGetCurrentWebViewPackageName = binder.FirstCallTransaction + 5
	TransactionIWebViewUpdateServiceGetCurrentWebViewPackage     = binder.FirstCallTransaction + 6
	TransactionIWebViewUpdateServiceIsMultiProcessEnabled        = binder.FirstCallTransaction + 7
	TransactionIWebViewUpdateServiceEnableMultiProcess           = binder.FirstCallTransaction + 8
	TransactionIWebViewUpdateServiceGetDefaultWebViewPackage     = binder.FirstCallTransaction + 9
)
View Source
const (
	MethodIWebViewUpdateServiceNotifyRelroCreationCompleted = "notifyRelroCreationCompleted"
	MethodIWebViewUpdateServiceWaitForAndGetProvider        = "waitForAndGetProvider"
	MethodIWebViewUpdateServiceChangeProviderAndSetting     = "changeProviderAndSetting"
	MethodIWebViewUpdateServiceGetValidWebViewPackages      = "getValidWebViewPackages"
	MethodIWebViewUpdateServiceGetAllWebViewPackages        = "getAllWebViewPackages"
	MethodIWebViewUpdateServiceGetCurrentWebViewPackageName = "getCurrentWebViewPackageName"
	MethodIWebViewUpdateServiceGetCurrentWebViewPackage     = "getCurrentWebViewPackage"
	MethodIWebViewUpdateServiceIsMultiProcessEnabled        = "isMultiProcessEnabled"
	MethodIWebViewUpdateServiceEnableMultiProcess           = "enableMultiProcess"
	MethodIWebViewUpdateServiceGetDefaultWebViewPackage     = "getDefaultWebViewPackage"
)
View Source
const DescriptorIWebViewUpdateService = "android.webkit.IWebViewUpdateService"

Variables

This section is empty.

Functions

This section is empty.

Types

type IWebViewUpdateService

type IWebViewUpdateService interface {
	AsBinder() binder.IBinder
	NotifyRelroCreationCompleted(ctx context.Context) error
	WaitForAndGetProvider(ctx context.Context) (WebViewProviderResponse, error)
	ChangeProviderAndSetting(ctx context.Context, newProvider string) (string, error)
	GetValidWebViewPackages(ctx context.Context) ([]WebViewProviderInfo, error)
	GetAllWebViewPackages(ctx context.Context) ([]WebViewProviderInfo, error)
	GetCurrentWebViewPackageName(ctx context.Context) (string, error)
	GetCurrentWebViewPackage(ctx context.Context) (pm.PackageInfo, error)
	IsMultiProcessEnabled(ctx context.Context) (bool, error)
	EnableMultiProcess(ctx context.Context, enable bool) error
	GetDefaultWebViewPackage(ctx context.Context) (WebViewProviderInfo, error)
}

func NewWebViewUpdateServiceStub

func NewWebViewUpdateServiceStub(
	impl IWebViewUpdateServiceServer,
) IWebViewUpdateService

NewWebViewUpdateServiceStub creates a server-side IWebViewUpdateService wrapping the given server implementation. The returned value satisfies IWebViewUpdateService 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 IWebViewUpdateServiceServer

type IWebViewUpdateServiceServer interface {
	NotifyRelroCreationCompleted(ctx context.Context) error
	WaitForAndGetProvider(ctx context.Context) (WebViewProviderResponse, error)
	ChangeProviderAndSetting(ctx context.Context, newProvider string) (string, error)
	GetValidWebViewPackages(ctx context.Context) ([]WebViewProviderInfo, error)
	GetAllWebViewPackages(ctx context.Context) ([]WebViewProviderInfo, error)
	GetCurrentWebViewPackageName(ctx context.Context) (string, error)
	GetCurrentWebViewPackage(ctx context.Context) (pm.PackageInfo, error)
	IsMultiProcessEnabled(ctx context.Context) (bool, error)
	EnableMultiProcess(ctx context.Context, enable bool) error
	GetDefaultWebViewPackage(ctx context.Context) (WebViewProviderInfo, error)
}

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

type WebViewProviderInfo

type WebViewProviderInfo struct {
	PackageName        string
	Description        string
	AvailableByDefault bool
	IsFallback         bool
}

func (*WebViewProviderInfo) MarshalParcel

func (s *WebViewProviderInfo) MarshalParcel(
	p *parcel.Parcel,
) error

func (*WebViewProviderInfo) UnmarshalParcel

func (s *WebViewProviderInfo) UnmarshalParcel(
	p *parcel.Parcel,
) error

type WebViewProviderResponse

type WebViewProviderResponse struct {
	Status      int32
	PackageInfo *pm.PackageInfo
}

func (*WebViewProviderResponse) MarshalParcel

func (s *WebViewProviderResponse) MarshalParcel(
	p *parcel.Parcel,
) error

func (*WebViewProviderResponse) UnmarshalParcel

func (s *WebViewProviderResponse) UnmarshalParcel(
	p *parcel.Parcel,
) error

type WebViewUpdateServiceProxy

type WebViewUpdateServiceProxy struct {
	Remote binder.IBinder
}

func NewWebViewUpdateServiceProxy

func NewWebViewUpdateServiceProxy(
	remote binder.IBinder,
) *WebViewUpdateServiceProxy

func (*WebViewUpdateServiceProxy) AsBinder

func (*WebViewUpdateServiceProxy) ChangeProviderAndSetting

func (p *WebViewUpdateServiceProxy) ChangeProviderAndSetting(
	ctx context.Context,
	newProvider string,
) (string, error)

func (*WebViewUpdateServiceProxy) EnableMultiProcess

func (p *WebViewUpdateServiceProxy) EnableMultiProcess(
	ctx context.Context,
	enable bool,
) error

func (*WebViewUpdateServiceProxy) GetAllWebViewPackages

func (p *WebViewUpdateServiceProxy) GetAllWebViewPackages(
	ctx context.Context,
) ([]WebViewProviderInfo, error)

func (*WebViewUpdateServiceProxy) GetCurrentWebViewPackage

func (p *WebViewUpdateServiceProxy) GetCurrentWebViewPackage(
	ctx context.Context,
) (pm.PackageInfo, error)

func (*WebViewUpdateServiceProxy) GetCurrentWebViewPackageName

func (p *WebViewUpdateServiceProxy) GetCurrentWebViewPackageName(
	ctx context.Context,
) (string, error)

func (*WebViewUpdateServiceProxy) GetDefaultWebViewPackage

func (p *WebViewUpdateServiceProxy) GetDefaultWebViewPackage(
	ctx context.Context,
) (WebViewProviderInfo, error)

func (*WebViewUpdateServiceProxy) GetValidWebViewPackages

func (p *WebViewUpdateServiceProxy) GetValidWebViewPackages(
	ctx context.Context,
) ([]WebViewProviderInfo, error)

func (*WebViewUpdateServiceProxy) IsMultiProcessEnabled

func (p *WebViewUpdateServiceProxy) IsMultiProcessEnabled(
	ctx context.Context,
) (bool, error)

func (*WebViewUpdateServiceProxy) NotifyRelroCreationCompleted

func (p *WebViewUpdateServiceProxy) NotifyRelroCreationCompleted(
	ctx context.Context,
) error

func (*WebViewUpdateServiceProxy) WaitForAndGetProvider

func (p *WebViewUpdateServiceProxy) WaitForAndGetProvider(
	ctx context.Context,
) (WebViewProviderResponse, error)

type WebViewUpdateServiceStub

type WebViewUpdateServiceStub struct {
	Impl      IWebViewUpdateService
	Transport binder.VersionAwareTransport
}

WebViewUpdateServiceStub dispatches incoming binder transactions to a typed IWebViewUpdateService implementation.

func (*WebViewUpdateServiceStub) Descriptor

func (s *WebViewUpdateServiceStub) Descriptor() string

func (*WebViewUpdateServiceStub) OnTransaction

func (s *WebViewUpdateServiceStub) 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