textservice

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

Index

Constants

View Source
const (
	Creator                             = consts.Creator
	ResultAttrDontShowUiForSuggestions  = consts.ResultAttrDontShowUiForSuggestions
	ResultAttrHasRecommendedSuggestions = consts.ResultAttrHasRecommendedSuggestions
	ResultAttrInTheDictionary           = consts.ResultAttrInTheDictionary
	ResultAttrLooksLikeGrammarError     = consts.ResultAttrLooksLikeGrammarError
	ResultAttrLooksLikeTypo             = consts.ResultAttrLooksLikeTypo
)
View Source
const (
	ServiceMetaData = consts.ServiceMetaData
)

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 SentenceSuggestionsInfo

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

SentenceSuggestionsInfo wraps android.view.textservice.SentenceSuggestionsInfo.

func NewSentenceSuggestionsInfo

func NewSentenceSuggestionsInfo(vm *jni.VM, arg0 *jni.Object) (*SentenceSuggestionsInfo, error)

NewSentenceSuggestionsInfo creates a new android.view.textservice.SentenceSuggestionsInfo instance.

func (*SentenceSuggestionsInfo) DescribeContents

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

DescribeContents calls android.view.textservice.SentenceSuggestionsInfo.describeContents.

func (*SentenceSuggestionsInfo) GetLengthAt

func (m *SentenceSuggestionsInfo) GetLengthAt(arg0 int32) (int32, error)

GetLengthAt calls android.view.textservice.SentenceSuggestionsInfo.getLengthAt.

func (*SentenceSuggestionsInfo) GetOffsetAt

func (m *SentenceSuggestionsInfo) GetOffsetAt(arg0 int32) (int32, error)

GetOffsetAt calls android.view.textservice.SentenceSuggestionsInfo.getOffsetAt.

func (*SentenceSuggestionsInfo) GetSuggestionsCount

func (m *SentenceSuggestionsInfo) GetSuggestionsCount() (int32, error)

GetSuggestionsCount calls android.view.textservice.SentenceSuggestionsInfo.getSuggestionsCount.

func (*SentenceSuggestionsInfo) GetSuggestionsInfoAt

func (m *SentenceSuggestionsInfo) GetSuggestionsInfoAt(arg0 int32) (*jni.Object, error)

GetSuggestionsInfoAt calls android.view.textservice.SentenceSuggestionsInfo.getSuggestionsInfoAt.

func (*SentenceSuggestionsInfo) WriteToParcel

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

WriteToParcel calls android.view.textservice.SentenceSuggestionsInfo.writeToParcel.

type SpellCheckerInfo

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

SpellCheckerInfo wraps android.view.textservice.SpellCheckerInfo.

func (*SpellCheckerInfo) DescribeContents

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

DescribeContents calls android.view.textservice.SpellCheckerInfo.describeContents.

func (*SpellCheckerInfo) GetComponent

func (m *SpellCheckerInfo) GetComponent() (*jni.Object, error)

GetComponent calls android.view.textservice.SpellCheckerInfo.getComponent.

func (*SpellCheckerInfo) GetId

func (m *SpellCheckerInfo) GetId() (string, error)

GetId calls android.view.textservice.SpellCheckerInfo.getId.

func (*SpellCheckerInfo) GetPackageName

func (m *SpellCheckerInfo) GetPackageName() (string, error)

GetPackageName calls android.view.textservice.SpellCheckerInfo.getPackageName.

func (*SpellCheckerInfo) GetServiceInfo

func (m *SpellCheckerInfo) GetServiceInfo() (*jni.Object, error)

GetServiceInfo calls android.view.textservice.SpellCheckerInfo.getServiceInfo.

func (*SpellCheckerInfo) GetSettingsActivity

func (m *SpellCheckerInfo) GetSettingsActivity() (string, error)

GetSettingsActivity calls android.view.textservice.SpellCheckerInfo.getSettingsActivity.

func (*SpellCheckerInfo) GetSubtypeAt

func (m *SpellCheckerInfo) GetSubtypeAt(arg0 int32) (*jni.Object, error)

GetSubtypeAt calls android.view.textservice.SpellCheckerInfo.getSubtypeAt.

func (*SpellCheckerInfo) GetSubtypeCount

func (m *SpellCheckerInfo) GetSubtypeCount() (int32, error)

GetSubtypeCount calls android.view.textservice.SpellCheckerInfo.getSubtypeCount.

func (*SpellCheckerInfo) LoadIcon

func (m *SpellCheckerInfo) LoadIcon(arg0 *jni.Object) (*jni.Object, error)

LoadIcon calls android.view.textservice.SpellCheckerInfo.loadIcon.

func (*SpellCheckerInfo) LoadLabel

func (m *SpellCheckerInfo) LoadLabel(arg0 *jni.Object) (*jni.Object, error)

LoadLabel calls android.view.textservice.SpellCheckerInfo.loadLabel.

func (*SpellCheckerInfo) WriteToParcel

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

WriteToParcel calls android.view.textservice.SpellCheckerInfo.writeToParcel.

type SpellCheckerSession

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

SpellCheckerSession wraps android.view.textservice.SpellCheckerSession.

func (*SpellCheckerSession) Cancel

func (m *SpellCheckerSession) Cancel() error

Cancel calls android.view.textservice.SpellCheckerSession.cancel.

func (*SpellCheckerSession) Close

func (m *SpellCheckerSession) Close() error

Close calls android.view.textservice.SpellCheckerSession.close.

func (*SpellCheckerSession) GetSentenceSuggestions

func (m *SpellCheckerSession) GetSentenceSuggestions(arg0 *jni.Object, arg1 int32) error

GetSentenceSuggestions calls android.view.textservice.SpellCheckerSession.getSentenceSuggestions.

func (*SpellCheckerSession) GetSpellChecker

func (m *SpellCheckerSession) GetSpellChecker() (*jni.Object, error)

GetSpellChecker calls android.view.textservice.SpellCheckerSession.getSpellChecker.

func (*SpellCheckerSession) GetSuggestions2

func (m *SpellCheckerSession) GetSuggestions2(arg0 *jni.Object, arg1 int32) error

GetSuggestions2 calls android.view.textservice.SpellCheckerSession.getSuggestions.

func (*SpellCheckerSession) GetSuggestions3_1

func (m *SpellCheckerSession) GetSuggestions3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 bool,
) error

GetSuggestions3_1 calls android.view.textservice.SpellCheckerSession.getSuggestions.

func (*SpellCheckerSession) IsSessionDisconnected

func (m *SpellCheckerSession) IsSessionDisconnected() (bool, error)

IsSessionDisconnected calls android.view.textservice.SpellCheckerSession.isSessionDisconnected.

type SpellCheckerSessionSpellCheckerSessionListener

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

SpellCheckerSessionSpellCheckerSessionListener wraps android.view.textservice.SpellCheckerSession$SpellCheckerSessionListener.

func (*SpellCheckerSessionSpellCheckerSessionListener) OnGetSentenceSuggestions

func (m *SpellCheckerSessionSpellCheckerSessionListener) OnGetSentenceSuggestions(arg0 *jni.Object) error

OnGetSentenceSuggestions calls android.view.textservice.SpellCheckerSession$SpellCheckerSessionListener.onGetSentenceSuggestions.

func (*SpellCheckerSessionSpellCheckerSessionListener) OnGetSuggestions

OnGetSuggestions calls android.view.textservice.SpellCheckerSession$SpellCheckerSessionListener.onGetSuggestions.

type SpellCheckerSessionSpellCheckerSessionParams

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

SpellCheckerSessionSpellCheckerSessionParams wraps android.view.textservice.SpellCheckerSession$SpellCheckerSessionParams.

func (*SpellCheckerSessionSpellCheckerSessionParams) GetExtras

GetExtras calls android.view.textservice.SpellCheckerSession$SpellCheckerSessionParams.getExtras.

func (*SpellCheckerSessionSpellCheckerSessionParams) GetLocale

GetLocale calls android.view.textservice.SpellCheckerSession$SpellCheckerSessionParams.getLocale.

func (*SpellCheckerSessionSpellCheckerSessionParams) GetSupportedAttributes

func (m *SpellCheckerSessionSpellCheckerSessionParams) GetSupportedAttributes() (int32, error)

GetSupportedAttributes calls android.view.textservice.SpellCheckerSession$SpellCheckerSessionParams.getSupportedAttributes.

func (*SpellCheckerSessionSpellCheckerSessionParams) ShouldReferToSpellCheckerLanguageSettings

func (m *SpellCheckerSessionSpellCheckerSessionParams) ShouldReferToSpellCheckerLanguageSettings() (bool, error)

ShouldReferToSpellCheckerLanguageSettings calls android.view.textservice.SpellCheckerSession$SpellCheckerSessionParams.shouldReferToSpellCheckerLanguageSettings.

type SpellCheckerSubtype

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

SpellCheckerSubtype wraps android.view.textservice.SpellCheckerSubtype.

func NewSpellCheckerSubtype

func NewSpellCheckerSubtype(vm *jni.VM, arg0 int32, arg1 string, arg2 string) (*SpellCheckerSubtype, error)

NewSpellCheckerSubtype creates a new android.view.textservice.SpellCheckerSubtype instance.

func (*SpellCheckerSubtype) ContainsExtraValueKey

func (m *SpellCheckerSubtype) ContainsExtraValueKey(arg0 string) (bool, error)

ContainsExtraValueKey calls android.view.textservice.SpellCheckerSubtype.containsExtraValueKey.

func (*SpellCheckerSubtype) DescribeContents

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

DescribeContents calls android.view.textservice.SpellCheckerSubtype.describeContents.

func (*SpellCheckerSubtype) Equals

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

Equals calls android.view.textservice.SpellCheckerSubtype.equals.

func (*SpellCheckerSubtype) GetDisplayName

func (m *SpellCheckerSubtype) GetDisplayName(
	arg0 *jni.Object,
	arg1 string,
	arg2 *jni.Object,
) (*jni.Object, error)

GetDisplayName calls android.view.textservice.SpellCheckerSubtype.getDisplayName.

func (*SpellCheckerSubtype) GetExtraValue

func (m *SpellCheckerSubtype) GetExtraValue() (string, error)

GetExtraValue calls android.view.textservice.SpellCheckerSubtype.getExtraValue.

func (*SpellCheckerSubtype) GetExtraValueOf

func (m *SpellCheckerSubtype) GetExtraValueOf(arg0 string) (string, error)

GetExtraValueOf calls android.view.textservice.SpellCheckerSubtype.getExtraValueOf.

func (*SpellCheckerSubtype) GetLanguageTag

func (m *SpellCheckerSubtype) GetLanguageTag() (string, error)

GetLanguageTag calls android.view.textservice.SpellCheckerSubtype.getLanguageTag.

func (*SpellCheckerSubtype) GetLocale

func (m *SpellCheckerSubtype) GetLocale() (string, error)

GetLocale calls android.view.textservice.SpellCheckerSubtype.getLocale.

func (*SpellCheckerSubtype) GetNameResId

func (m *SpellCheckerSubtype) GetNameResId() (int32, error)

GetNameResId calls android.view.textservice.SpellCheckerSubtype.getNameResId.

func (*SpellCheckerSubtype) HashCode

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

HashCode calls android.view.textservice.SpellCheckerSubtype.hashCode.

func (*SpellCheckerSubtype) WriteToParcel

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

WriteToParcel calls android.view.textservice.SpellCheckerSubtype.writeToParcel.

type SuggestionsInfo

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

SuggestionsInfo wraps android.view.textservice.SuggestionsInfo.

func NewSuggestionsInfo

func NewSuggestionsInfo(vm *jni.VM, arg0 *jni.Object) (*SuggestionsInfo, error)

NewSuggestionsInfo creates a new android.view.textservice.SuggestionsInfo instance.

func (*SuggestionsInfo) DescribeContents

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

DescribeContents calls android.view.textservice.SuggestionsInfo.describeContents.

func (*SuggestionsInfo) GetCookie

func (m *SuggestionsInfo) GetCookie() (int32, error)

GetCookie calls android.view.textservice.SuggestionsInfo.getCookie.

func (*SuggestionsInfo) GetSequence

func (m *SuggestionsInfo) GetSequence() (int32, error)

GetSequence calls android.view.textservice.SuggestionsInfo.getSequence.

func (*SuggestionsInfo) GetSuggestionAt

func (m *SuggestionsInfo) GetSuggestionAt(arg0 int32) (string, error)

GetSuggestionAt calls android.view.textservice.SuggestionsInfo.getSuggestionAt.

func (*SuggestionsInfo) GetSuggestionsAttributes

func (m *SuggestionsInfo) GetSuggestionsAttributes() (int32, error)

GetSuggestionsAttributes calls android.view.textservice.SuggestionsInfo.getSuggestionsAttributes.

func (*SuggestionsInfo) GetSuggestionsCount

func (m *SuggestionsInfo) GetSuggestionsCount() (int32, error)

GetSuggestionsCount calls android.view.textservice.SuggestionsInfo.getSuggestionsCount.

func (*SuggestionsInfo) SetCookieAndSequence

func (m *SuggestionsInfo) SetCookieAndSequence(arg0 int32, arg1 int32) error

SetCookieAndSequence calls android.view.textservice.SuggestionsInfo.setCookieAndSequence.

func (*SuggestionsInfo) WriteToParcel

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

WriteToParcel calls android.view.textservice.SuggestionsInfo.writeToParcel.

type TextInfo

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

TextInfo wraps android.view.textservice.TextInfo.

func NewTextInfo

func NewTextInfo(vm *jni.VM, arg0 *jni.Object) (*TextInfo, error)

NewTextInfo creates a new android.view.textservice.TextInfo instance.

func (*TextInfo) DescribeContents

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

DescribeContents calls android.view.textservice.TextInfo.describeContents.

func (*TextInfo) GetCharSequence

func (m *TextInfo) GetCharSequence() (*jni.Object, error)

GetCharSequence calls android.view.textservice.TextInfo.getCharSequence.

func (*TextInfo) GetCookie

func (m *TextInfo) GetCookie() (int32, error)

GetCookie calls android.view.textservice.TextInfo.getCookie.

func (*TextInfo) GetSequence

func (m *TextInfo) GetSequence() (int32, error)

GetSequence calls android.view.textservice.TextInfo.getSequence.

func (*TextInfo) GetText

func (m *TextInfo) GetText() (string, error)

GetText calls android.view.textservice.TextInfo.getText.

func (*TextInfo) WriteToParcel

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

WriteToParcel calls android.view.textservice.TextInfo.writeToParcel.

type TextServicesManager

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

TextServicesManager wraps android.view.textservice.TextServicesManager.

func NewTextServicesManager

func NewTextServicesManager(ctx *app.Context) (*TextServicesManager, error)

NewTextServicesManager obtains android.view.textservice.TextServicesManager from the Android system service manager.

func (*TextServicesManager) Close

func (m *TextServicesManager) Close()

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

func (*TextServicesManager) GetCurrentSpellCheckerInfo

func (m *TextServicesManager) GetCurrentSpellCheckerInfo() (*jni.Object, error)

GetCurrentSpellCheckerInfo calls android.view.textservice.TextServicesManager.getCurrentSpellCheckerInfo.

func (*TextServicesManager) IsSpellCheckerEnabled

func (m *TextServicesManager) IsSpellCheckerEnabled() (bool, error)

IsSpellCheckerEnabled calls android.view.textservice.TextServicesManager.isSpellCheckerEnabled.

func (*TextServicesManager) NewSpellCheckerSession3_1

func (m *TextServicesManager) NewSpellCheckerSession3_1(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
) (*jni.Object, error)

NewSpellCheckerSession3_1 calls android.view.textservice.TextServicesManager.newSpellCheckerSession.

func (*TextServicesManager) NewSpellCheckerSession4

func (m *TextServicesManager) NewSpellCheckerSession4(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 bool,
) (*jni.Object, error)

NewSpellCheckerSession4 calls android.view.textservice.TextServicesManager.newSpellCheckerSession.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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