permission

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DescriptorIRuntimePermissionPresenter = "android.content.pm.permission.IRuntimePermissionPresenter"
View Source
const (
	MethodIRuntimePermissionPresenterGetAppPermissions = "getAppPermissions"
)
View Source
const (
	TransactionIRuntimePermissionPresenterGetAppPermissions = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IRuntimePermissionPresenter

type IRuntimePermissionPresenter interface {
	AsBinder() binder.IBinder
	GetAppPermissions(ctx context.Context, packageName string, callback os.RemoteCallback) error
}

func NewRuntimePermissionPresenterStub

func NewRuntimePermissionPresenterStub(
	impl IRuntimePermissionPresenterServer,
) IRuntimePermissionPresenter

NewRuntimePermissionPresenterStub creates a server-side IRuntimePermissionPresenter wrapping the given server implementation. The returned value satisfies IRuntimePermissionPresenter 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 IRuntimePermissionPresenterServer

type IRuntimePermissionPresenterServer interface {
	GetAppPermissions(ctx context.Context, packageName string, callback os.RemoteCallback) error
}

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

type RuntimePermissionPresenterProxy

type RuntimePermissionPresenterProxy struct {
	Remote binder.IBinder
}

func NewRuntimePermissionPresenterProxy

func NewRuntimePermissionPresenterProxy(
	remote binder.IBinder,
) *RuntimePermissionPresenterProxy

func (*RuntimePermissionPresenterProxy) AsBinder

func (*RuntimePermissionPresenterProxy) GetAppPermissions

func (p *RuntimePermissionPresenterProxy) GetAppPermissions(
	ctx context.Context,
	packageName string,
	callback os.RemoteCallback,
) error

type RuntimePermissionPresenterStub

type RuntimePermissionPresenterStub struct {
	Impl      IRuntimePermissionPresenter
	Transport binder.VersionAwareTransport
}

RuntimePermissionPresenterStub dispatches incoming binder transactions to a typed IRuntimePermissionPresenter implementation.

func (*RuntimePermissionPresenterStub) Descriptor

func (s *RuntimePermissionPresenterStub) Descriptor() string

func (*RuntimePermissionPresenterStub) OnTransaction

type SplitPermissionInfoParcelable

type SplitPermissionInfoParcelable struct {
	SplitPermission string
	TargetSdk       int32
}

func (*SplitPermissionInfoParcelable) MarshalParcel

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

func (*SplitPermissionInfoParcelable) UnmarshalParcel

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

Jump to

Keyboard shortcuts

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