actions

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Overview

Package actions provides Go bindings for android.service.controls.actions.

Index

Constants

View Source
const (
	ResponseChallengeAck        = consts.ResponseChallengeAck
	ResponseChallengePassphrase = consts.ResponseChallengePassphrase
	ResponseChallengePin        = consts.ResponseChallengePin
	ResponseFail                = consts.ResponseFail
	ResponseOk                  = consts.ResponseOk
	ResponseUnknown             = consts.ResponseUnknown
	TypeBoolean                 = consts.TypeBoolean
	TypeCommand                 = consts.TypeCommand
	TypeError                   = consts.TypeError
	TypeFloat                   = consts.TypeFloat
	TypeMode                    = consts.TypeMode
)

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 BooleanAction

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

BooleanAction wraps android.service.controls.actions.BooleanAction.

func NewBooleanAction

func NewBooleanAction(vm *jni.VM, arg0 string, arg1 bool) (*BooleanAction, error)

NewBooleanAction creates a new android.service.controls.actions.BooleanAction instance.

func (*BooleanAction) GetActionType

func (m *BooleanAction) GetActionType() (int32, error)

GetActionType calls android.service.controls.actions.BooleanAction.getActionType.

func (*BooleanAction) GetNewState

func (m *BooleanAction) GetNewState() (bool, error)

GetNewState calls android.service.controls.actions.BooleanAction.getNewState.

func (*BooleanAction) ToString added in v0.0.8

func (m *BooleanAction) ToString() (string, error)

ToString calls android.service.controls.actions.BooleanAction.toString.

type CommandAction

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

CommandAction wraps android.service.controls.actions.CommandAction.

func NewCommandAction

func NewCommandAction(vm *jni.VM, arg0 string) (*CommandAction, error)

NewCommandAction creates a new android.service.controls.actions.CommandAction instance.

func (*CommandAction) GetActionType

func (m *CommandAction) GetActionType() (int32, error)

GetActionType calls android.service.controls.actions.CommandAction.getActionType.

func (*CommandAction) ToString added in v0.0.8

func (m *CommandAction) ToString() (string, error)

ToString calls android.service.controls.actions.CommandAction.toString.

type ControlAction

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

ControlAction wraps android.service.controls.actions.ControlAction.

func (*ControlAction) GetActionType

func (m *ControlAction) GetActionType() (int32, error)

GetActionType calls android.service.controls.actions.ControlAction.getActionType.

func (*ControlAction) GetChallengeValue

func (m *ControlAction) GetChallengeValue() (string, error)

GetChallengeValue calls android.service.controls.actions.ControlAction.getChallengeValue.

func (*ControlAction) GetErrorAction

func (m *ControlAction) GetErrorAction() (*jni.Object, error)

GetErrorAction calls android.service.controls.actions.ControlAction.getErrorAction.

func (*ControlAction) GetTemplateId

func (m *ControlAction) GetTemplateId() (string, error)

GetTemplateId calls android.service.controls.actions.ControlAction.getTemplateId.

func (*ControlAction) IsValidResponse

func (m *ControlAction) IsValidResponse(arg0 int32) (bool, error)

IsValidResponse calls android.service.controls.actions.ControlAction.isValidResponse.

func (*ControlAction) ToString added in v0.0.8

func (m *ControlAction) ToString() (string, error)

ToString calls android.service.controls.actions.ControlAction.toString.

type FloatAction

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

FloatAction wraps android.service.controls.actions.FloatAction.

func NewFloatAction

func NewFloatAction(vm *jni.VM, arg0 string, arg1 float32) (*FloatAction, error)

NewFloatAction creates a new android.service.controls.actions.FloatAction instance.

func (*FloatAction) GetActionType

func (m *FloatAction) GetActionType() (int32, error)

GetActionType calls android.service.controls.actions.FloatAction.getActionType.

func (*FloatAction) GetNewValue

func (m *FloatAction) GetNewValue() (float32, error)

GetNewValue calls android.service.controls.actions.FloatAction.getNewValue.

func (*FloatAction) ToString added in v0.0.8

func (m *FloatAction) ToString() (string, error)

ToString calls android.service.controls.actions.FloatAction.toString.

type ModeAction

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

ModeAction wraps android.service.controls.actions.ModeAction.

func NewModeAction

func NewModeAction(vm *jni.VM, arg0 string, arg1 int32) (*ModeAction, error)

NewModeAction creates a new android.service.controls.actions.ModeAction instance.

func (*ModeAction) GetActionType

func (m *ModeAction) GetActionType() (int32, error)

GetActionType calls android.service.controls.actions.ModeAction.getActionType.

func (*ModeAction) GetNewMode

func (m *ModeAction) GetNewMode() (int32, error)

GetNewMode calls android.service.controls.actions.ModeAction.getNewMode.

func (*ModeAction) ToString added in v0.0.8

func (m *ModeAction) ToString() (string, error)

ToString calls android.service.controls.actions.ModeAction.toString.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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