autofill

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 autofill provides Go bindings for android.view.autofill.

Index

Constants

View Source
const (
	ExtraAssistStructure                      = consts.ExtraAssistStructure
	ExtraAuthenticationResult                 = consts.ExtraAuthenticationResult
	ExtraAuthenticationResultEphemeralDataset = consts.ExtraAuthenticationResultEphemeralDataset
	ExtraClientState                          = consts.ExtraClientState
	ExtraInlineSuggestionsRequest             = consts.ExtraInlineSuggestionsRequest
)
View Source
const (
	EventInputHidden      = consts.EventInputHidden
	EventInputShown       = consts.EventInputShown
	EventInputUnavailable = consts.EventInputUnavailable
	Creator               = consts.Creator
)

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 Id

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

Id wraps android.view.autofill.AutofillId.

func (*Id) Create

func (m *Id) Create(arg0 *jni.Object, arg1 int32) (*jni.Object, error)

Create calls android.view.autofill.AutofillId.create.

func (*Id) DescribeContents

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

DescribeContents calls android.view.autofill.AutofillId.describeContents.

func (*Id) Equals

func (m *Id) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.view.autofill.AutofillId.equals.

func (*Id) GetAutofillVirtualId

func (m *Id) GetAutofillVirtualId() (int32, error)

GetAutofillVirtualId calls android.view.autofill.AutofillId.getAutofillVirtualId.

func (*Id) GetSessionId

func (m *Id) GetSessionId() (int32, error)

GetSessionId calls android.view.autofill.AutofillId.getSessionId.

func (*Id) GetViewId

func (m *Id) GetViewId() (int32, error)

GetViewId calls android.view.autofill.AutofillId.getViewId.

func (*Id) HashCode

func (m *Id) HashCode() (int32, error)

HashCode calls android.view.autofill.AutofillId.hashCode.

func (*Id) IsInAutofillSession

func (m *Id) IsInAutofillSession() (bool, error)

IsInAutofillSession calls android.view.autofill.AutofillId.isInAutofillSession.

func (*Id) IsVirtual

func (m *Id) IsVirtual() (bool, error)

IsVirtual calls android.view.autofill.AutofillId.isVirtual.

func (*Id) ToString

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

ToString calls android.view.autofill.AutofillId.toString.

func (*Id) WriteToParcel

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

WriteToParcel calls android.view.autofill.AutofillId.writeToParcel.

type Manager

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

Manager wraps android.view.autofill.AutofillManager.

func (*Manager) Cancel

func (m *Manager) Cancel() error

Cancel calls android.view.autofill.AutofillManager.cancel.

func (*Manager) Commit

func (m *Manager) Commit() error

Commit calls android.view.autofill.AutofillManager.commit.

func (*Manager) DisableAutofillServices

func (m *Manager) DisableAutofillServices() error

DisableAutofillServices calls android.view.autofill.AutofillManager.disableAutofillServices.

func (*Manager) GetAutofillServiceComponentName

func (m *Manager) GetAutofillServiceComponentName() (*jni.Object, error)

GetAutofillServiceComponentName calls android.view.autofill.AutofillManager.getAutofillServiceComponentName.

func (*Manager) GetAvailableFieldClassificationAlgorithms added in v0.0.8

func (m *Manager) GetAvailableFieldClassificationAlgorithms() (*jni.Object, error)

GetAvailableFieldClassificationAlgorithms calls android.view.autofill.AutofillManager.getAvailableFieldClassificationAlgorithms.

func (*Manager) GetDefaultFieldClassificationAlgorithm

func (m *Manager) GetDefaultFieldClassificationAlgorithm() (string, error)

GetDefaultFieldClassificationAlgorithm calls android.view.autofill.AutofillManager.getDefaultFieldClassificationAlgorithm.

func (*Manager) GetNextAutofillId

func (m *Manager) GetNextAutofillId() (*jni.Object, error)

GetNextAutofillId calls android.view.autofill.AutofillManager.getNextAutofillId.

func (*Manager) GetUserData

func (m *Manager) GetUserData() (*jni.Object, error)

GetUserData calls android.view.autofill.AutofillManager.getUserData.

func (*Manager) GetUserDataId

func (m *Manager) GetUserDataId() (string, error)

GetUserDataId calls android.view.autofill.AutofillManager.getUserDataId.

func (*Manager) HasEnabledAutofillServices

func (m *Manager) HasEnabledAutofillServices() (bool, error)

HasEnabledAutofillServices calls android.view.autofill.AutofillManager.hasEnabledAutofillServices.

func (*Manager) IsAutofillSupported

func (m *Manager) IsAutofillSupported() (bool, error)

IsAutofillSupported calls android.view.autofill.AutofillManager.isAutofillSupported.

func (*Manager) IsEnabled

func (m *Manager) IsEnabled() (bool, error)

IsEnabled calls android.view.autofill.AutofillManager.isEnabled.

func (*Manager) IsFieldClassificationEnabled

func (m *Manager) IsFieldClassificationEnabled() (bool, error)

IsFieldClassificationEnabled calls android.view.autofill.AutofillManager.isFieldClassificationEnabled.

func (*Manager) NotifyValueChanged1

func (m *Manager) NotifyValueChanged1(arg0 *jni.Object) error

NotifyValueChanged1 calls android.view.autofill.AutofillManager.notifyValueChanged.

func (*Manager) NotifyValueChanged3_1

func (m *Manager) NotifyValueChanged3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 *jni.Object,
) error

NotifyValueChanged3_1 calls android.view.autofill.AutofillManager.notifyValueChanged.

func (*Manager) NotifyViewClicked1

func (m *Manager) NotifyViewClicked1(arg0 *jni.Object) error

NotifyViewClicked1 calls android.view.autofill.AutofillManager.notifyViewClicked.

func (*Manager) NotifyViewClicked2_1

func (m *Manager) NotifyViewClicked2_1(arg0 *jni.Object, arg1 int32) error

NotifyViewClicked2_1 calls android.view.autofill.AutofillManager.notifyViewClicked.

func (*Manager) NotifyViewEntered1

func (m *Manager) NotifyViewEntered1(arg0 *jni.Object) error

NotifyViewEntered1 calls android.view.autofill.AutofillManager.notifyViewEntered.

func (*Manager) NotifyViewEntered3_1

func (m *Manager) NotifyViewEntered3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 *jni.Object,
) error

NotifyViewEntered3_1 calls android.view.autofill.AutofillManager.notifyViewEntered.

func (*Manager) NotifyViewExited1

func (m *Manager) NotifyViewExited1(arg0 *jni.Object) error

NotifyViewExited1 calls android.view.autofill.AutofillManager.notifyViewExited.

func (*Manager) NotifyViewExited2_1

func (m *Manager) NotifyViewExited2_1(arg0 *jni.Object, arg1 int32) error

NotifyViewExited2_1 calls android.view.autofill.AutofillManager.notifyViewExited.

func (*Manager) NotifyViewVisibilityChanged2

func (m *Manager) NotifyViewVisibilityChanged2(arg0 *jni.Object, arg1 bool) error

NotifyViewVisibilityChanged2 calls android.view.autofill.AutofillManager.notifyViewVisibilityChanged.

func (*Manager) NotifyViewVisibilityChanged3_1

func (m *Manager) NotifyViewVisibilityChanged3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 bool,
) error

NotifyViewVisibilityChanged3_1 calls android.view.autofill.AutofillManager.notifyViewVisibilityChanged.

func (*Manager) RegisterCallback

func (m *Manager) RegisterCallback(arg0 *jni.Object) error

RegisterCallback calls android.view.autofill.AutofillManager.registerCallback.

func (*Manager) RequestAutofill1

func (m *Manager) RequestAutofill1(arg0 *jni.Object) error

RequestAutofill1 calls android.view.autofill.AutofillManager.requestAutofill.

func (*Manager) RequestAutofill3_1

func (m *Manager) RequestAutofill3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 *jni.Object,
) error

RequestAutofill3_1 calls android.view.autofill.AutofillManager.requestAutofill.

func (*Manager) SetUserData

func (m *Manager) SetUserData(arg0 *jni.Object) error

SetUserData calls android.view.autofill.AutofillManager.setUserData.

func (*Manager) ShowAutofillDialog1

func (m *Manager) ShowAutofillDialog1(arg0 *jni.Object) (bool, error)

ShowAutofillDialog1 calls android.view.autofill.AutofillManager.showAutofillDialog.

func (*Manager) ShowAutofillDialog2_1

func (m *Manager) ShowAutofillDialog2_1(arg0 *jni.Object, arg1 int32) (bool, error)

ShowAutofillDialog2_1 calls android.view.autofill.AutofillManager.showAutofillDialog.

func (*Manager) ToString added in v0.0.8

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

ToString calls android.view.autofill.AutofillManager.toString.

func (*Manager) UnregisterCallback

func (m *Manager) UnregisterCallback(arg0 *jni.Object) error

UnregisterCallback calls android.view.autofill.AutofillManager.unregisterCallback.

type ManagerAutofillCallback

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

ManagerAutofillCallback wraps android.view.autofill.AutofillManager$AutofillCallback.

func (*ManagerAutofillCallback) OnAutofillEvent2

func (m *ManagerAutofillCallback) OnAutofillEvent2(arg0 *jni.Object, arg1 int32) error

OnAutofillEvent2 calls android.view.autofill.AutofillManager$AutofillCallback.onAutofillEvent.

func (*ManagerAutofillCallback) OnAutofillEvent3_1

func (m *ManagerAutofillCallback) OnAutofillEvent3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

OnAutofillEvent3_1 calls android.view.autofill.AutofillManager$AutofillCallback.onAutofillEvent.

func (*ManagerAutofillCallback) ToString added in v0.0.8

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

ToString calls android.view.autofill.AutofillManager$AutofillCallback.toString.

type Value

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

Value wraps android.view.autofill.AutofillValue.

func (*Value) DescribeContents

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

DescribeContents calls android.view.autofill.AutofillValue.describeContents.

func (*Value) Equals

func (m *Value) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.view.autofill.AutofillValue.equals.

func (*Value) ForDate

func (m *Value) ForDate(arg0 int64) (*jni.Object, error)

ForDate calls android.view.autofill.AutofillValue.forDate.

func (*Value) ForList

func (m *Value) ForList(arg0 int32) (*jni.Object, error)

ForList calls android.view.autofill.AutofillValue.forList.

func (*Value) ForText

func (m *Value) ForText(arg0 string) (*jni.Object, error)

ForText calls android.view.autofill.AutofillValue.forText.

func (*Value) ForToggle

func (m *Value) ForToggle(arg0 bool) (*jni.Object, error)

ForToggle calls android.view.autofill.AutofillValue.forToggle.

func (*Value) GetDateValue

func (m *Value) GetDateValue() (int64, error)

GetDateValue calls android.view.autofill.AutofillValue.getDateValue.

func (*Value) GetListValue

func (m *Value) GetListValue() (int32, error)

GetListValue calls android.view.autofill.AutofillValue.getListValue.

func (*Value) GetTextValue

func (m *Value) GetTextValue() (*jni.Object, error)

GetTextValue calls android.view.autofill.AutofillValue.getTextValue.

func (*Value) GetToggleValue

func (m *Value) GetToggleValue() (bool, error)

GetToggleValue calls android.view.autofill.AutofillValue.getToggleValue.

func (*Value) HashCode

func (m *Value) HashCode() (int32, error)

HashCode calls android.view.autofill.AutofillValue.hashCode.

func (*Value) IsDate

func (m *Value) IsDate() (bool, error)

IsDate calls android.view.autofill.AutofillValue.isDate.

func (*Value) IsList

func (m *Value) IsList() (bool, error)

IsList calls android.view.autofill.AutofillValue.isList.

func (*Value) IsText

func (m *Value) IsText() (bool, error)

IsText calls android.view.autofill.AutofillValue.isText.

func (*Value) IsToggle

func (m *Value) IsToggle() (bool, error)

IsToggle calls android.view.autofill.AutofillValue.isToggle.

func (*Value) ToString

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

ToString calls android.view.autofill.AutofillValue.toString.

func (*Value) WriteToParcel

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

WriteToParcel calls android.view.autofill.AutofillValue.writeToParcel.

type VirtualViewFillInfo

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

VirtualViewFillInfo wraps android.view.autofill.VirtualViewFillInfo.

func (*VirtualViewFillInfo) GetAutofillHints

func (m *VirtualViewFillInfo) GetAutofillHints() (*jni.Object, error)

GetAutofillHints calls android.view.autofill.VirtualViewFillInfo.getAutofillHints.

func (*VirtualViewFillInfo) ToString added in v0.0.8

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

ToString calls android.view.autofill.VirtualViewFillInfo.toString.

type VirtualViewFillInfoBuilder

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

VirtualViewFillInfoBuilder wraps android.view.autofill.VirtualViewFillInfo$Builder.

func (*VirtualViewFillInfoBuilder) Build

func (m *VirtualViewFillInfoBuilder) Build() (*jni.Object, error)

Build calls android.view.autofill.VirtualViewFillInfo$Builder.build.

func (*VirtualViewFillInfoBuilder) SetAutofillHints

func (m *VirtualViewFillInfoBuilder) SetAutofillHints(arg0 *jni.Object) (*jni.Object, error)

SetAutofillHints calls android.view.autofill.VirtualViewFillInfo$Builder.setAutofillHints.

func (*VirtualViewFillInfoBuilder) ToString added in v0.0.8

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

ToString calls android.view.autofill.VirtualViewFillInfo$Builder.toString.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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