Documentation
¶
Index ¶
Constants ¶
const DescriptorIRuntimePermissionPresenter = "android.content.pm.permission.IRuntimePermissionPresenter"
const (
MethodIRuntimePermissionPresenterGetAppPermissions = "getAppPermissions"
)
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 ¶
func NewRuntimePermissionPresenterProxy ¶
func NewRuntimePermissionPresenterProxy( remote binder.IBinder, ) *RuntimePermissionPresenterProxy
func (*RuntimePermissionPresenterProxy) AsBinder ¶
func (p *RuntimePermissionPresenterProxy) AsBinder() binder.IBinder
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 ¶
func (s *RuntimePermissionPresenterStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type SplitPermissionInfoParcelable ¶
func (*SplitPermissionInfoParcelable) MarshalParcel ¶
func (s *SplitPermissionInfoParcelable) MarshalParcel( p *parcel.Parcel, ) error
func (*SplitPermissionInfoParcelable) UnmarshalParcel ¶
func (s *SplitPermissionInfoParcelable) UnmarshalParcel( p *parcel.Parcel, ) error