assist

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 assist provides Go bindings for android.app.assist.

Index

Constants

View Source
const (
	Creator             = consts.Creator
	TextColorUndefined  = consts.TextColorUndefined
	TextStyleBold       = consts.TextStyleBold
	TextStyleItalic     = consts.TextStyleItalic
	TextStyleStrikeThru = consts.TextStyleStrikeThru
	TextStyleUnderline  = consts.TextStyleUnderline
)
View Source
const (
	ExtraAppFunctionData = consts.ExtraAppFunctionData
)

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 Content

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

Content wraps android.app.assist.AssistContent.

func NewContent

func NewContent(vm *jni.VM) (*Content, error)

NewContent creates a new android.app.assist.AssistContent instance.

func (*Content) DescribeContents

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

DescribeContents calls android.app.assist.AssistContent.describeContents.

func (*Content) GetClipData

func (m *Content) GetClipData() (*jni.Object, error)

GetClipData calls android.app.assist.AssistContent.getClipData.

func (*Content) GetExtras

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

GetExtras calls android.app.assist.AssistContent.getExtras.

func (*Content) GetIntent

func (m *Content) GetIntent() (*jni.Object, error)

GetIntent calls android.app.assist.AssistContent.getIntent.

func (*Content) GetSessionTransferUri

func (m *Content) GetSessionTransferUri() (*jni.Object, error)

GetSessionTransferUri calls android.app.assist.AssistContent.getSessionTransferUri.

func (*Content) GetStructuredData

func (m *Content) GetStructuredData() (string, error)

GetStructuredData calls android.app.assist.AssistContent.getStructuredData.

func (*Content) GetWebUri

func (m *Content) GetWebUri() (*jni.Object, error)

GetWebUri calls android.app.assist.AssistContent.getWebUri.

func (*Content) IsAppProvidedIntent

func (m *Content) IsAppProvidedIntent() (bool, error)

IsAppProvidedIntent calls android.app.assist.AssistContent.isAppProvidedIntent.

func (*Content) IsAppProvidedWebUri

func (m *Content) IsAppProvidedWebUri() (bool, error)

IsAppProvidedWebUri calls android.app.assist.AssistContent.isAppProvidedWebUri.

func (*Content) SetClipData

func (m *Content) SetClipData(arg0 *jni.Object) error

SetClipData calls android.app.assist.AssistContent.setClipData.

func (*Content) SetIntent

func (m *Content) SetIntent(arg0 *jni.Object) error

SetIntent calls android.app.assist.AssistContent.setIntent.

func (*Content) SetSessionTransferUri

func (m *Content) SetSessionTransferUri(arg0 *jni.Object) error

SetSessionTransferUri calls android.app.assist.AssistContent.setSessionTransferUri.

func (*Content) SetStructuredData

func (m *Content) SetStructuredData(arg0 string) error

SetStructuredData calls android.app.assist.AssistContent.setStructuredData.

func (*Content) SetWebUri

func (m *Content) SetWebUri(arg0 *jni.Object) error

SetWebUri calls android.app.assist.AssistContent.setWebUri.

func (*Content) ToString added in v0.0.8

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

ToString calls android.app.assist.AssistContent.toString.

func (*Content) WriteToParcel

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

WriteToParcel calls android.app.assist.AssistContent.writeToParcel.

type Structure

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

Structure wraps android.app.assist.AssistStructure.

func NewStructure

func NewStructure(vm *jni.VM) (*Structure, error)

NewStructure creates a new android.app.assist.AssistStructure instance.

func (*Structure) DescribeContents

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

DescribeContents calls android.app.assist.AssistStructure.describeContents.

func (*Structure) GetAcquisitionEndTime

func (m *Structure) GetAcquisitionEndTime() (int64, error)

GetAcquisitionEndTime calls android.app.assist.AssistStructure.getAcquisitionEndTime.

func (*Structure) GetAcquisitionStartTime

func (m *Structure) GetAcquisitionStartTime() (int64, error)

GetAcquisitionStartTime calls android.app.assist.AssistStructure.getAcquisitionStartTime.

func (*Structure) GetActivityComponent

func (m *Structure) GetActivityComponent() (*jni.Object, error)

GetActivityComponent calls android.app.assist.AssistStructure.getActivityComponent.

func (*Structure) GetWindowNodeAt

func (m *Structure) GetWindowNodeAt(arg0 int32) (*jni.Object, error)

GetWindowNodeAt calls android.app.assist.AssistStructure.getWindowNodeAt.

func (*Structure) GetWindowNodeCount

func (m *Structure) GetWindowNodeCount() (int32, error)

GetWindowNodeCount calls android.app.assist.AssistStructure.getWindowNodeCount.

func (*Structure) IsHomeActivity

func (m *Structure) IsHomeActivity() (bool, error)

IsHomeActivity calls android.app.assist.AssistStructure.isHomeActivity.

func (*Structure) ToString added in v0.0.8

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

ToString calls android.app.assist.AssistStructure.toString.

func (*Structure) WriteToParcel

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

WriteToParcel calls android.app.assist.AssistStructure.writeToParcel.

type StructureViewNode

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

StructureViewNode wraps android.app.assist.AssistStructure$ViewNode.

func (*StructureViewNode) GetAlpha

func (m *StructureViewNode) GetAlpha() (float32, error)

GetAlpha calls android.app.assist.AssistStructure$ViewNode.getAlpha.

func (*StructureViewNode) GetAutofillHints

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

GetAutofillHints calls android.app.assist.AssistStructure$ViewNode.getAutofillHints.

func (*StructureViewNode) GetAutofillId

func (m *StructureViewNode) GetAutofillId() (*jni.Object, error)

GetAutofillId calls android.app.assist.AssistStructure$ViewNode.getAutofillId.

func (*StructureViewNode) GetAutofillOptions

func (m *StructureViewNode) GetAutofillOptions() (*jni.Object, error)

GetAutofillOptions calls android.app.assist.AssistStructure$ViewNode.getAutofillOptions.

func (*StructureViewNode) GetAutofillType

func (m *StructureViewNode) GetAutofillType() (int32, error)

GetAutofillType calls android.app.assist.AssistStructure$ViewNode.getAutofillType.

func (*StructureViewNode) GetAutofillValue

func (m *StructureViewNode) GetAutofillValue() (*jni.Object, error)

GetAutofillValue calls android.app.assist.AssistStructure$ViewNode.getAutofillValue.

func (*StructureViewNode) GetChildAt

func (m *StructureViewNode) GetChildAt(arg0 int32) (*jni.Object, error)

GetChildAt calls android.app.assist.AssistStructure$ViewNode.getChildAt.

func (*StructureViewNode) GetChildCount

func (m *StructureViewNode) GetChildCount() (int32, error)

GetChildCount calls android.app.assist.AssistStructure$ViewNode.getChildCount.

func (*StructureViewNode) GetClassName

func (m *StructureViewNode) GetClassName() (string, error)

GetClassName calls android.app.assist.AssistStructure$ViewNode.getClassName.

func (*StructureViewNode) GetContentDescription

func (m *StructureViewNode) GetContentDescription() (*jni.Object, error)

GetContentDescription calls android.app.assist.AssistStructure$ViewNode.getContentDescription.

func (*StructureViewNode) GetElevation

func (m *StructureViewNode) GetElevation() (float32, error)

GetElevation calls android.app.assist.AssistStructure$ViewNode.getElevation.

func (*StructureViewNode) GetExtras

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

GetExtras calls android.app.assist.AssistStructure$ViewNode.getExtras.

func (*StructureViewNode) GetHeight

func (m *StructureViewNode) GetHeight() (int32, error)

GetHeight calls android.app.assist.AssistStructure$ViewNode.getHeight.

func (*StructureViewNode) GetHint

func (m *StructureViewNode) GetHint() (string, error)

GetHint calls android.app.assist.AssistStructure$ViewNode.getHint.

func (*StructureViewNode) GetHintIdEntry

func (m *StructureViewNode) GetHintIdEntry() (string, error)

GetHintIdEntry calls android.app.assist.AssistStructure$ViewNode.getHintIdEntry.

func (*StructureViewNode) GetHtmlInfo

func (m *StructureViewNode) GetHtmlInfo() (*jni.Object, error)

GetHtmlInfo calls android.app.assist.AssistStructure$ViewNode.getHtmlInfo.

func (*StructureViewNode) GetId

func (m *StructureViewNode) GetId() (int32, error)

GetId calls android.app.assist.AssistStructure$ViewNode.getId.

func (*StructureViewNode) GetIdEntry

func (m *StructureViewNode) GetIdEntry() (string, error)

GetIdEntry calls android.app.assist.AssistStructure$ViewNode.getIdEntry.

func (*StructureViewNode) GetIdPackage

func (m *StructureViewNode) GetIdPackage() (string, error)

GetIdPackage calls android.app.assist.AssistStructure$ViewNode.getIdPackage.

func (*StructureViewNode) GetIdType

func (m *StructureViewNode) GetIdType() (string, error)

GetIdType calls android.app.assist.AssistStructure$ViewNode.getIdType.

func (*StructureViewNode) GetImportantForAutofill

func (m *StructureViewNode) GetImportantForAutofill() (int32, error)

GetImportantForAutofill calls android.app.assist.AssistStructure$ViewNode.getImportantForAutofill.

func (*StructureViewNode) GetInputType

func (m *StructureViewNode) GetInputType() (int32, error)

GetInputType calls android.app.assist.AssistStructure$ViewNode.getInputType.

func (*StructureViewNode) GetLeft

func (m *StructureViewNode) GetLeft() (int32, error)

GetLeft calls android.app.assist.AssistStructure$ViewNode.getLeft.

func (*StructureViewNode) GetLocaleList

func (m *StructureViewNode) GetLocaleList() (*jni.Object, error)

GetLocaleList calls android.app.assist.AssistStructure$ViewNode.getLocaleList.

func (*StructureViewNode) GetMaxTextEms

func (m *StructureViewNode) GetMaxTextEms() (int32, error)

GetMaxTextEms calls android.app.assist.AssistStructure$ViewNode.getMaxTextEms.

func (*StructureViewNode) GetMaxTextLength

func (m *StructureViewNode) GetMaxTextLength() (int32, error)

GetMaxTextLength calls android.app.assist.AssistStructure$ViewNode.getMaxTextLength.

func (*StructureViewNode) GetMinTextEms

func (m *StructureViewNode) GetMinTextEms() (int32, error)

GetMinTextEms calls android.app.assist.AssistStructure$ViewNode.getMinTextEms.

func (*StructureViewNode) GetReceiveContentMimeTypes

func (m *StructureViewNode) GetReceiveContentMimeTypes() (*jni.Object, error)

GetReceiveContentMimeTypes calls android.app.assist.AssistStructure$ViewNode.getReceiveContentMimeTypes.

func (*StructureViewNode) GetScrollX

func (m *StructureViewNode) GetScrollX() (int32, error)

GetScrollX calls android.app.assist.AssistStructure$ViewNode.getScrollX.

func (*StructureViewNode) GetScrollY

func (m *StructureViewNode) GetScrollY() (int32, error)

GetScrollY calls android.app.assist.AssistStructure$ViewNode.getScrollY.

func (*StructureViewNode) GetText

func (m *StructureViewNode) GetText() (*jni.Object, error)

GetText calls android.app.assist.AssistStructure$ViewNode.getText.

func (*StructureViewNode) GetTextBackgroundColor

func (m *StructureViewNode) GetTextBackgroundColor() (int32, error)

GetTextBackgroundColor calls android.app.assist.AssistStructure$ViewNode.getTextBackgroundColor.

func (*StructureViewNode) GetTextColor

func (m *StructureViewNode) GetTextColor() (int32, error)

GetTextColor calls android.app.assist.AssistStructure$ViewNode.getTextColor.

func (*StructureViewNode) GetTextIdEntry

func (m *StructureViewNode) GetTextIdEntry() (string, error)

GetTextIdEntry calls android.app.assist.AssistStructure$ViewNode.getTextIdEntry.

func (*StructureViewNode) GetTextLineBaselines

func (m *StructureViewNode) GetTextLineBaselines() (*jni.Object, error)

GetTextLineBaselines calls android.app.assist.AssistStructure$ViewNode.getTextLineBaselines.

func (*StructureViewNode) GetTextLineCharOffsets

func (m *StructureViewNode) GetTextLineCharOffsets() (*jni.Object, error)

GetTextLineCharOffsets calls android.app.assist.AssistStructure$ViewNode.getTextLineCharOffsets.

func (*StructureViewNode) GetTextSelectionEnd

func (m *StructureViewNode) GetTextSelectionEnd() (int32, error)

GetTextSelectionEnd calls android.app.assist.AssistStructure$ViewNode.getTextSelectionEnd.

func (*StructureViewNode) GetTextSelectionStart

func (m *StructureViewNode) GetTextSelectionStart() (int32, error)

GetTextSelectionStart calls android.app.assist.AssistStructure$ViewNode.getTextSelectionStart.

func (*StructureViewNode) GetTextSize

func (m *StructureViewNode) GetTextSize() (float32, error)

GetTextSize calls android.app.assist.AssistStructure$ViewNode.getTextSize.

func (*StructureViewNode) GetTextStyle

func (m *StructureViewNode) GetTextStyle() (int32, error)

GetTextStyle calls android.app.assist.AssistStructure$ViewNode.getTextStyle.

func (*StructureViewNode) GetTop

func (m *StructureViewNode) GetTop() (int32, error)

GetTop calls android.app.assist.AssistStructure$ViewNode.getTop.

func (*StructureViewNode) GetTransformation

func (m *StructureViewNode) GetTransformation() (*jni.Object, error)

GetTransformation calls android.app.assist.AssistStructure$ViewNode.getTransformation.

func (*StructureViewNode) GetVisibility

func (m *StructureViewNode) GetVisibility() (int32, error)

GetVisibility calls android.app.assist.AssistStructure$ViewNode.getVisibility.

func (*StructureViewNode) GetWebDomain

func (m *StructureViewNode) GetWebDomain() (string, error)

GetWebDomain calls android.app.assist.AssistStructure$ViewNode.getWebDomain.

func (*StructureViewNode) GetWebScheme

func (m *StructureViewNode) GetWebScheme() (string, error)

GetWebScheme calls android.app.assist.AssistStructure$ViewNode.getWebScheme.

func (*StructureViewNode) GetWidth

func (m *StructureViewNode) GetWidth() (int32, error)

GetWidth calls android.app.assist.AssistStructure$ViewNode.getWidth.

func (*StructureViewNode) IsAccessibilityFocused

func (m *StructureViewNode) IsAccessibilityFocused() (bool, error)

IsAccessibilityFocused calls android.app.assist.AssistStructure$ViewNode.isAccessibilityFocused.

func (*StructureViewNode) IsActivated

func (m *StructureViewNode) IsActivated() (bool, error)

IsActivated calls android.app.assist.AssistStructure$ViewNode.isActivated.

func (*StructureViewNode) IsAssistBlocked

func (m *StructureViewNode) IsAssistBlocked() (bool, error)

IsAssistBlocked calls android.app.assist.AssistStructure$ViewNode.isAssistBlocked.

func (*StructureViewNode) IsCheckable

func (m *StructureViewNode) IsCheckable() (bool, error)

IsCheckable calls android.app.assist.AssistStructure$ViewNode.isCheckable.

func (*StructureViewNode) IsChecked

func (m *StructureViewNode) IsChecked() (bool, error)

IsChecked calls android.app.assist.AssistStructure$ViewNode.isChecked.

func (*StructureViewNode) IsClickable

func (m *StructureViewNode) IsClickable() (bool, error)

IsClickable calls android.app.assist.AssistStructure$ViewNode.isClickable.

func (*StructureViewNode) IsContextClickable

func (m *StructureViewNode) IsContextClickable() (bool, error)

IsContextClickable calls android.app.assist.AssistStructure$ViewNode.isContextClickable.

func (*StructureViewNode) IsEnabled

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

IsEnabled calls android.app.assist.AssistStructure$ViewNode.isEnabled.

func (*StructureViewNode) IsFocusable

func (m *StructureViewNode) IsFocusable() (bool, error)

IsFocusable calls android.app.assist.AssistStructure$ViewNode.isFocusable.

func (*StructureViewNode) IsFocused

func (m *StructureViewNode) IsFocused() (bool, error)

IsFocused calls android.app.assist.AssistStructure$ViewNode.isFocused.

func (*StructureViewNode) IsLongClickable

func (m *StructureViewNode) IsLongClickable() (bool, error)

IsLongClickable calls android.app.assist.AssistStructure$ViewNode.isLongClickable.

func (*StructureViewNode) IsOpaque

func (m *StructureViewNode) IsOpaque() (bool, error)

IsOpaque calls android.app.assist.AssistStructure$ViewNode.isOpaque.

func (*StructureViewNode) IsSelected

func (m *StructureViewNode) IsSelected() (bool, error)

IsSelected calls android.app.assist.AssistStructure$ViewNode.isSelected.

func (*StructureViewNode) ToString added in v0.0.8

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

ToString calls android.app.assist.AssistStructure$ViewNode.toString.

type StructureWindowNode

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

StructureWindowNode wraps android.app.assist.AssistStructure$WindowNode.

func (*StructureWindowNode) GetDisplayId

func (m *StructureWindowNode) GetDisplayId() (int32, error)

GetDisplayId calls android.app.assist.AssistStructure$WindowNode.getDisplayId.

func (*StructureWindowNode) GetHeight

func (m *StructureWindowNode) GetHeight() (int32, error)

GetHeight calls android.app.assist.AssistStructure$WindowNode.getHeight.

func (*StructureWindowNode) GetLeft

func (m *StructureWindowNode) GetLeft() (int32, error)

GetLeft calls android.app.assist.AssistStructure$WindowNode.getLeft.

func (*StructureWindowNode) GetRootViewNode

func (m *StructureWindowNode) GetRootViewNode() (*jni.Object, error)

GetRootViewNode calls android.app.assist.AssistStructure$WindowNode.getRootViewNode.

func (*StructureWindowNode) GetTitle

func (m *StructureWindowNode) GetTitle() (*jni.Object, error)

GetTitle calls android.app.assist.AssistStructure$WindowNode.getTitle.

func (*StructureWindowNode) GetTop

func (m *StructureWindowNode) GetTop() (int32, error)

GetTop calls android.app.assist.AssistStructure$WindowNode.getTop.

func (*StructureWindowNode) GetWidth

func (m *StructureWindowNode) GetWidth() (int32, error)

GetWidth calls android.app.assist.AssistStructure$WindowNode.getWidth.

func (*StructureWindowNode) ToString added in v0.0.8

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

ToString calls android.app.assist.AssistStructure$WindowNode.toString.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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