appfunctions

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Overview

Package appfunctions provides Go bindings for android.app.appfunctions.

Index

Constants

View Source
const (
	Creator                         = consts.Creator
	AppFunctionStateDefault         = consts.AppFunctionStateDefault
	AppFunctionStateDisabled        = consts.AppFunctionStateDisabled
	AppFunctionStateEnabled         = consts.AppFunctionStateEnabled
	ErrorAppUnknownError            = consts.ErrorAppUnknownError
	ErrorCancelled                  = consts.ErrorCancelled
	ErrorCategoryApp                = consts.ErrorCategoryApp
	ErrorCategoryRequestError       = consts.ErrorCategoryRequestError
	ErrorCategorySystem             = consts.ErrorCategorySystem
	ErrorCategoryUnknown            = consts.ErrorCategoryUnknown
	ErrorDenied                     = consts.ErrorDenied
	ErrorDisabled                   = consts.ErrorDisabled
	ErrorEnterprisePolicyDisallowed = consts.ErrorEnterprisePolicyDisallowed
	ErrorFunctionNotFound           = consts.ErrorFunctionNotFound
	ErrorInvalidArgument            = consts.ErrorInvalidArgument
	ErrorSystemError                = consts.ErrorSystemError
)
View Source
const (
	PropertyReturnValue = consts.PropertyReturnValue
	ServiceInterface    = consts.ServiceInterface
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type AppFunctionException

type AppFunctionException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

AppFunctionException wraps android.app.appfunctions.AppFunctionException.

func NewAppFunctionException

func NewAppFunctionException(vm *jni.VM, arg0 int32, arg1 string) (*AppFunctionException, error)

NewAppFunctionException creates a new android.app.appfunctions.AppFunctionException instance.

func (*AppFunctionException) DescribeContents

func (m *AppFunctionException) DescribeContents() (int32, error)

DescribeContents calls android.app.appfunctions.AppFunctionException.describeContents.

func (*AppFunctionException) GetErrorCategory

func (m *AppFunctionException) GetErrorCategory() (int32, error)

GetErrorCategory calls android.app.appfunctions.AppFunctionException.getErrorCategory.

func (*AppFunctionException) GetErrorCode

func (m *AppFunctionException) GetErrorCode() (int32, error)

GetErrorCode calls android.app.appfunctions.AppFunctionException.getErrorCode.

func (*AppFunctionException) GetErrorMessage

func (m *AppFunctionException) GetErrorMessage() (string, error)

GetErrorMessage calls android.app.appfunctions.AppFunctionException.getErrorMessage.

func (*AppFunctionException) GetExtras

func (m *AppFunctionException) GetExtras() (*jni.Object, error)

GetExtras calls android.app.appfunctions.AppFunctionException.getExtras.

func (*AppFunctionException) WriteToParcel

func (m *AppFunctionException) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.app.appfunctions.AppFunctionException.writeToParcel.

type AppFunctionManager

type AppFunctionManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

AppFunctionManager wraps android.app.appfunctions.AppFunctionManager.

func NewAppFunctionManager

func NewAppFunctionManager(ctx *app.Context) (*AppFunctionManager, error)

NewAppFunctionManager obtains android.app.appfunctions.AppFunctionManager from the Android system service manager.

func (*AppFunctionManager) Close

func (m *AppFunctionManager) Close()

Close releases the global reference to the underlying Java object. After Close, the AppFunctionManager must not be used.

type AppFunctionService

type AppFunctionService struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

AppFunctionService wraps android.app.appfunctions.AppFunctionService.

func (*AppFunctionService) OnBind

func (m *AppFunctionService) OnBind(arg0 *jni.Object) (*jni.Object, error)

OnBind calls android.app.appfunctions.AppFunctionService.onBind.

type ExecuteAppFunctionRequest

type ExecuteAppFunctionRequest struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ExecuteAppFunctionRequest wraps android.app.appfunctions.ExecuteAppFunctionRequest.

func (*ExecuteAppFunctionRequest) DescribeContents

func (m *ExecuteAppFunctionRequest) DescribeContents() (int32, error)

DescribeContents calls android.app.appfunctions.ExecuteAppFunctionRequest.describeContents.

func (*ExecuteAppFunctionRequest) GetExtras

func (m *ExecuteAppFunctionRequest) GetExtras() (*jni.Object, error)

GetExtras calls android.app.appfunctions.ExecuteAppFunctionRequest.getExtras.

func (*ExecuteAppFunctionRequest) GetFunctionIdentifier

func (m *ExecuteAppFunctionRequest) GetFunctionIdentifier() (string, error)

GetFunctionIdentifier calls android.app.appfunctions.ExecuteAppFunctionRequest.getFunctionIdentifier.

func (*ExecuteAppFunctionRequest) GetParameters

func (m *ExecuteAppFunctionRequest) GetParameters() (*jni.Object, error)

GetParameters calls android.app.appfunctions.ExecuteAppFunctionRequest.getParameters.

func (*ExecuteAppFunctionRequest) GetTargetPackageName

func (m *ExecuteAppFunctionRequest) GetTargetPackageName() (string, error)

GetTargetPackageName calls android.app.appfunctions.ExecuteAppFunctionRequest.getTargetPackageName.

func (*ExecuteAppFunctionRequest) WriteToParcel

func (m *ExecuteAppFunctionRequest) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.app.appfunctions.ExecuteAppFunctionRequest.writeToParcel.

type ExecuteAppFunctionRequestBuilder

type ExecuteAppFunctionRequestBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ExecuteAppFunctionRequestBuilder wraps android.app.appfunctions.ExecuteAppFunctionRequest$Builder.

func (*ExecuteAppFunctionRequestBuilder) Build

Build calls android.app.appfunctions.ExecuteAppFunctionRequest$Builder.build.

func (*ExecuteAppFunctionRequestBuilder) SetExtras

func (m *ExecuteAppFunctionRequestBuilder) SetExtras(arg0 *jni.Object) (*jni.Object, error)

SetExtras calls android.app.appfunctions.ExecuteAppFunctionRequest$Builder.setExtras.

func (*ExecuteAppFunctionRequestBuilder) SetParameters

func (m *ExecuteAppFunctionRequestBuilder) SetParameters(arg0 *jni.Object) (*jni.Object, error)

SetParameters calls android.app.appfunctions.ExecuteAppFunctionRequest$Builder.setParameters.

type ExecuteAppFunctionResponse

type ExecuteAppFunctionResponse struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ExecuteAppFunctionResponse wraps android.app.appfunctions.ExecuteAppFunctionResponse.

func NewExecuteAppFunctionResponse

func NewExecuteAppFunctionResponse(vm *jni.VM, arg0 *jni.Object) (*ExecuteAppFunctionResponse, error)

NewExecuteAppFunctionResponse creates a new android.app.appfunctions.ExecuteAppFunctionResponse instance.

func (*ExecuteAppFunctionResponse) DescribeContents

func (m *ExecuteAppFunctionResponse) DescribeContents() (int32, error)

DescribeContents calls android.app.appfunctions.ExecuteAppFunctionResponse.describeContents.

func (*ExecuteAppFunctionResponse) GetExtras

func (m *ExecuteAppFunctionResponse) GetExtras() (*jni.Object, error)

GetExtras calls android.app.appfunctions.ExecuteAppFunctionResponse.getExtras.

func (*ExecuteAppFunctionResponse) GetResultDocument

func (m *ExecuteAppFunctionResponse) GetResultDocument() (*jni.Object, error)

GetResultDocument calls android.app.appfunctions.ExecuteAppFunctionResponse.getResultDocument.

func (*ExecuteAppFunctionResponse) WriteToParcel

func (m *ExecuteAppFunctionResponse) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.app.appfunctions.ExecuteAppFunctionResponse.writeToParcel.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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