Documentation
¶
Overview ¶
Package textservice provides Go bindings for android.view.textservice.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type SentenceSuggestionsInfo
- func (m *SentenceSuggestionsInfo) DescribeContents() (int32, error)
- func (m *SentenceSuggestionsInfo) GetLengthAt(arg0 int32) (int32, error)
- func (m *SentenceSuggestionsInfo) GetOffsetAt(arg0 int32) (int32, error)
- func (m *SentenceSuggestionsInfo) GetSuggestionsCount() (int32, error)
- func (m *SentenceSuggestionsInfo) GetSuggestionsInfoAt(arg0 int32) (*jni.Object, error)
- func (m *SentenceSuggestionsInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type SpellCheckerInfo
- func (m *SpellCheckerInfo) DescribeContents() (int32, error)
- func (m *SpellCheckerInfo) GetComponent() (*jni.Object, error)
- func (m *SpellCheckerInfo) GetId() (string, error)
- func (m *SpellCheckerInfo) GetPackageName() (string, error)
- func (m *SpellCheckerInfo) GetServiceInfo() (*jni.Object, error)
- func (m *SpellCheckerInfo) GetSettingsActivity() (string, error)
- func (m *SpellCheckerInfo) GetSubtypeAt(arg0 int32) (*jni.Object, error)
- func (m *SpellCheckerInfo) GetSubtypeCount() (int32, error)
- func (m *SpellCheckerInfo) LoadIcon(arg0 *jni.Object) (*jni.Object, error)
- func (m *SpellCheckerInfo) LoadLabel(arg0 *jni.Object) (*jni.Object, error)
- func (m *SpellCheckerInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type SpellCheckerSession
- func (m *SpellCheckerSession) Cancel() error
- func (m *SpellCheckerSession) Close() error
- func (m *SpellCheckerSession) GetSentenceSuggestions(arg0 *jni.Object, arg1 int32) error
- func (m *SpellCheckerSession) GetSpellChecker() (*jni.Object, error)
- func (m *SpellCheckerSession) GetSuggestions2(arg0 *jni.Object, arg1 int32) error
- func (m *SpellCheckerSession) GetSuggestions3_1(arg0 *jni.Object, arg1 int32, arg2 bool) error
- func (m *SpellCheckerSession) IsSessionDisconnected() (bool, error)
- type SpellCheckerSessionSpellCheckerSessionListener
- type SpellCheckerSessionSpellCheckerSessionParams
- func (m *SpellCheckerSessionSpellCheckerSessionParams) GetExtras() (*jni.Object, error)
- func (m *SpellCheckerSessionSpellCheckerSessionParams) GetLocale() (*jni.Object, error)
- func (m *SpellCheckerSessionSpellCheckerSessionParams) GetSupportedAttributes() (int32, error)
- func (m *SpellCheckerSessionSpellCheckerSessionParams) ShouldReferToSpellCheckerLanguageSettings() (bool, error)
- type SpellCheckerSubtype
- func (m *SpellCheckerSubtype) ContainsExtraValueKey(arg0 string) (bool, error)
- func (m *SpellCheckerSubtype) DescribeContents() (int32, error)
- func (m *SpellCheckerSubtype) Equals(arg0 *jni.Object) (bool, error)
- func (m *SpellCheckerSubtype) GetDisplayName(arg0 *jni.Object, arg1 string, arg2 *jni.Object) (*jni.Object, error)
- func (m *SpellCheckerSubtype) GetExtraValue() (string, error)
- func (m *SpellCheckerSubtype) GetExtraValueOf(arg0 string) (string, error)
- func (m *SpellCheckerSubtype) GetLanguageTag() (string, error)
- func (m *SpellCheckerSubtype) GetLocale() (string, error)
- func (m *SpellCheckerSubtype) GetNameResId() (int32, error)
- func (m *SpellCheckerSubtype) HashCode() (int32, error)
- func (m *SpellCheckerSubtype) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type SuggestionsInfo
- func (m *SuggestionsInfo) DescribeContents() (int32, error)
- func (m *SuggestionsInfo) GetCookie() (int32, error)
- func (m *SuggestionsInfo) GetSequence() (int32, error)
- func (m *SuggestionsInfo) GetSuggestionAt(arg0 int32) (string, error)
- func (m *SuggestionsInfo) GetSuggestionsAttributes() (int32, error)
- func (m *SuggestionsInfo) GetSuggestionsCount() (int32, error)
- func (m *SuggestionsInfo) SetCookieAndSequence(arg0 int32, arg1 int32) error
- func (m *SuggestionsInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type TextInfo
- func (m *TextInfo) DescribeContents() (int32, error)
- func (m *TextInfo) GetCharSequence() (*jni.Object, error)
- func (m *TextInfo) GetCookie() (int32, error)
- func (m *TextInfo) GetSequence() (int32, error)
- func (m *TextInfo) GetText() (string, error)
- func (m *TextInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type TextServicesManager
- func (m *TextServicesManager) Close()
- func (m *TextServicesManager) GetCurrentSpellCheckerInfo() (*jni.Object, error)
- func (m *TextServicesManager) IsSpellCheckerEnabled() (bool, error)
- func (m *TextServicesManager) NewSpellCheckerSession3_1(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) (*jni.Object, error)
- func (m *TextServicesManager) NewSpellCheckerSession4(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 bool) (*jni.Object, error)
Constants ¶
const ( Creator = consts.Creator ResultAttrDontShowUiForSuggestions = consts.ResultAttrDontShowUiForSuggestions ResultAttrHasRecommendedSuggestions = consts.ResultAttrHasRecommendedSuggestions ResultAttrInTheDictionary = consts.ResultAttrInTheDictionary ResultAttrLooksLikeGrammarError = consts.ResultAttrLooksLikeGrammarError ResultAttrLooksLikeTypo = consts.ResultAttrLooksLikeTypo )
const (
ServiceMetaData = consts.ServiceMetaData
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SentenceSuggestionsInfo ¶
SentenceSuggestionsInfo wraps android.view.textservice.SentenceSuggestionsInfo.
func NewSentenceSuggestionsInfo ¶
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 ¶
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 ¶
LoadIcon calls android.view.textservice.SpellCheckerInfo.loadIcon.
func (*SpellCheckerInfo) LoadLabel ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (m *SpellCheckerSessionSpellCheckerSessionListener) OnGetSuggestions(arg0 *jni.Object) error
OnGetSuggestions calls android.view.textservice.SpellCheckerSession$SpellCheckerSessionListener.onGetSuggestions.
type SpellCheckerSessionSpellCheckerSessionParams ¶
SpellCheckerSessionSpellCheckerSessionParams wraps android.view.textservice.SpellCheckerSession$SpellCheckerSessionParams.
func (*SpellCheckerSessionSpellCheckerSessionParams) GetExtras ¶
func (m *SpellCheckerSessionSpellCheckerSessionParams) GetExtras() (*jni.Object, error)
GetExtras calls android.view.textservice.SpellCheckerSession$SpellCheckerSessionParams.getExtras.
func (*SpellCheckerSessionSpellCheckerSessionParams) GetLocale ¶
func (m *SpellCheckerSessionSpellCheckerSessionParams) GetLocale() (*jni.Object, error)
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 ¶
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 ¶
SuggestionsInfo wraps android.view.textservice.SuggestionsInfo.
func NewSuggestionsInfo ¶
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 ¶
TextInfo wraps android.view.textservice.TextInfo.
func NewTextInfo ¶
NewTextInfo creates a new android.view.textservice.TextInfo instance.
func (*TextInfo) DescribeContents ¶
DescribeContents calls android.view.textservice.TextInfo.describeContents.
func (*TextInfo) GetCharSequence ¶
GetCharSequence calls android.view.textservice.TextInfo.getCharSequence.
func (*TextInfo) GetSequence ¶
GetSequence calls android.view.textservice.TextInfo.getSequence.
type TextServicesManager ¶
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.