Documentation
¶
Overview ¶
Package inputmethod provides Go bindings for android.view.inputmethod.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type InputMethodManager
- func (m *InputMethodManager) AcceptStylusHandwritingDelegation1(arg0 *jni.Object) (bool, error)
- func (m *InputMethodManager) AcceptStylusHandwritingDelegation2_1(arg0 *jni.Object, arg1 string) (bool, error)
- func (m *InputMethodManager) AcceptStylusHandwritingDelegation4_3(arg0 *jni.Object, arg1 string, arg2 *jni.Object, arg3 *jni.Object) error
- func (m *InputMethodManager) AcceptStylusHandwritingDelegation5_2(arg0 *jni.Object, arg1 string, arg2 int32, arg3 *jni.Object, arg4 *jni.Object) error
- func (m *InputMethodManager) Close()
- func (m *InputMethodManager) DispatchKeyEventFromInputMethod(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *InputMethodManager) DisplayCompletions(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *InputMethodManager) GetCurrentInputMethodInfo() (*jni.Object, error)
- func (m *InputMethodManager) GetCurrentInputMethodSubtype() (*jni.Object, error)
- func (m *InputMethodManager) GetEnabledInputMethodList() (*jni.Object, error)
- func (m *InputMethodManager) GetEnabledInputMethodSubtypeList(arg0 *jni.Object, arg1 bool) (*jni.Object, error)
- func (m *InputMethodManager) GetInputMethodList() (*jni.Object, error)
- func (m *InputMethodManager) GetLastInputMethodSubtype() (*jni.Object, error)
- func (m *InputMethodManager) HideSoftInputFromInputMethod(arg0 *jni.Object, arg1 int32) error
- func (m *InputMethodManager) HideSoftInputFromWindow2(arg0 *jni.Object, arg1 int32) (bool, error)
- func (m *InputMethodManager) HideSoftInputFromWindow3_1(arg0 *jni.Object, arg1 int32, arg2 *jni.Object) (bool, error)
- func (m *InputMethodManager) HideStatusIcon(arg0 *jni.Object) error
- func (m *InputMethodManager) InvalidateInput(arg0 *jni.Object) error
- func (m *InputMethodManager) IsAcceptingText() (bool, error)
- func (m *InputMethodManager) IsActive0() (bool, error)
- func (m *InputMethodManager) IsActive1_1(arg0 *jni.Object) (bool, error)
- func (m *InputMethodManager) IsConnectionlessStylusHandwritingAvailable() (bool, error)
- func (m *InputMethodManager) IsFullscreenMode() (bool, error)
- func (m *InputMethodManager) IsInputMethodSuppressingSpellChecker() (bool, error)
- func (m *InputMethodManager) IsStylusHandwritingAvailable() (bool, error)
- func (m *InputMethodManager) IsWatchingCursor(arg0 *jni.Object) (bool, error)
- func (m *InputMethodManager) PrepareStylusHandwritingDelegation1(arg0 *jni.Object) error
- func (m *InputMethodManager) PrepareStylusHandwritingDelegation2_1(arg0 *jni.Object, arg1 string) error
- func (m *InputMethodManager) RestartInput(arg0 *jni.Object) error
- func (m *InputMethodManager) SendAppPrivateCommand(arg0 *jni.Object, arg1 string, arg2 *jni.Object) error
- func (m *InputMethodManager) SetAdditionalInputMethodSubtypes(arg0 string, arg1 *jni.Object) error
- func (m *InputMethodManager) SetCurrentInputMethodSubtype(arg0 *jni.Object) (bool, error)
- func (m *InputMethodManager) SetExplicitlyEnabledInputMethodSubtypes(arg0 string, arg1 *jni.Object) error
- func (m *InputMethodManager) SetInputMethod(arg0 *jni.Object, arg1 string) error
- func (m *InputMethodManager) SetInputMethodAndSubtype(arg0 *jni.Object, arg1 string, arg2 *jni.Object) error
- func (m *InputMethodManager) ShouldOfferSwitchingToNextInputMethod(arg0 *jni.Object) (bool, error)
- func (m *InputMethodManager) ShowInputMethodAndSubtypeEnabler(arg0 string) error
- func (m *InputMethodManager) ShowInputMethodPicker() error
- func (m *InputMethodManager) ShowSoftInput2(arg0 *jni.Object, arg1 int32) (bool, error)
- func (m *InputMethodManager) ShowSoftInput3_1(arg0 *jni.Object, arg1 int32, arg2 *jni.Object) (bool, error)
- func (m *InputMethodManager) ShowSoftInputFromInputMethod(arg0 *jni.Object, arg1 int32) error
- func (m *InputMethodManager) ShowStatusIcon(arg0 *jni.Object, arg1 string, arg2 int32) error
- func (m *InputMethodManager) StartConnectionlessStylusHandwriting(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 *jni.Object) error
- func (m *InputMethodManager) StartConnectionlessStylusHandwritingForDelegation4_1(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 *jni.Object) error
- func (m *InputMethodManager) StartConnectionlessStylusHandwritingForDelegation5(arg0 *jni.Object, arg1 *jni.Object, arg2 string, arg3 *jni.Object, ...) error
- func (m *InputMethodManager) StartStylusHandwriting(arg0 *jni.Object) error
- func (m *InputMethodManager) SwitchToLastInputMethod(arg0 *jni.Object) (bool, error)
- func (m *InputMethodManager) SwitchToNextInputMethod(arg0 *jni.Object, arg1 bool) (bool, error)
- func (m *InputMethodManager) ToggleSoftInput(arg0 int32, arg1 int32) error
- func (m *InputMethodManager) ToggleSoftInputFromWindow(arg0 *jni.Object, arg1 int32, arg2 int32) error
- func (m *InputMethodManager) UpdateCursor(arg0 *jni.Object, arg1 int32, arg2 int32, arg3 int32, arg4 int32) error
- func (m *InputMethodManager) UpdateCursorAnchorInfo(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *InputMethodManager) UpdateExtractedText(arg0 *jni.Object, arg1 int32, arg2 *jni.Object) error
- func (m *InputMethodManager) UpdateSelection(arg0 *jni.Object, arg1 int32, arg2 int32, arg3 int32, arg4 int32) error
- func (m *InputMethodManager) ViewClicked(arg0 *jni.Object) error
Constants ¶
const ( HandwritingDelegateFlagHomeDelegatorAllowed = consts.HandwritingDelegateFlagHomeDelegatorAllowed HideImplicitOnly = consts.HideImplicitOnly HideNotAlways = consts.HideNotAlways ResultHidden = consts.ResultHidden ResultShown = consts.ResultShown ResultUnchangedHidden = consts.ResultUnchangedHidden ResultUnchangedShown = consts.ResultUnchangedShown ShowForced = consts.ShowForced ShowImplicit = consts.ShowImplicit )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InputMethodManager ¶ added in v0.0.4
InputMethodManager wraps android.view.inputmethod.InputMethodManager.
func NewInputMethodManager ¶ added in v0.0.4
func NewInputMethodManager(ctx *app.Context) (*InputMethodManager, error)
NewInputMethodManager obtains android.view.inputmethod.InputMethodManager from the Android system service manager.
func (*InputMethodManager) AcceptStylusHandwritingDelegation1 ¶ added in v0.0.4
func (m *InputMethodManager) AcceptStylusHandwritingDelegation1(arg0 *jni.Object) (bool, error)
AcceptStylusHandwritingDelegation1 calls android.view.inputmethod.InputMethodManager.acceptStylusHandwritingDelegation.
func (*InputMethodManager) AcceptStylusHandwritingDelegation2_1 ¶ added in v0.0.4
func (m *InputMethodManager) AcceptStylusHandwritingDelegation2_1(arg0 *jni.Object, arg1 string) (bool, error)
AcceptStylusHandwritingDelegation2_1 calls android.view.inputmethod.InputMethodManager.acceptStylusHandwritingDelegation.
func (*InputMethodManager) AcceptStylusHandwritingDelegation4_3 ¶ added in v0.0.4
func (m *InputMethodManager) AcceptStylusHandwritingDelegation4_3( arg0 *jni.Object, arg1 string, arg2 *jni.Object, arg3 *jni.Object, ) error
AcceptStylusHandwritingDelegation4_3 calls android.view.inputmethod.InputMethodManager.acceptStylusHandwritingDelegation.
func (*InputMethodManager) AcceptStylusHandwritingDelegation5_2 ¶ added in v0.0.4
func (m *InputMethodManager) AcceptStylusHandwritingDelegation5_2( arg0 *jni.Object, arg1 string, arg2 int32, arg3 *jni.Object, arg4 *jni.Object, ) error
AcceptStylusHandwritingDelegation5_2 calls android.view.inputmethod.InputMethodManager.acceptStylusHandwritingDelegation.
func (*InputMethodManager) Close ¶ added in v0.0.4
func (m *InputMethodManager) Close()
Close releases the global reference to the underlying Java object. After Close, the InputMethodManager must not be used.
func (*InputMethodManager) DispatchKeyEventFromInputMethod ¶ added in v0.0.4
func (m *InputMethodManager) DispatchKeyEventFromInputMethod(arg0 *jni.Object, arg1 *jni.Object) error
DispatchKeyEventFromInputMethod calls android.view.inputmethod.InputMethodManager.dispatchKeyEventFromInputMethod.
func (*InputMethodManager) DisplayCompletions ¶ added in v0.0.4
DisplayCompletions calls android.view.inputmethod.InputMethodManager.displayCompletions.
func (*InputMethodManager) GetCurrentInputMethodInfo ¶ added in v0.0.4
func (m *InputMethodManager) GetCurrentInputMethodInfo() (*jni.Object, error)
GetCurrentInputMethodInfo calls android.view.inputmethod.InputMethodManager.getCurrentInputMethodInfo.
func (*InputMethodManager) GetCurrentInputMethodSubtype ¶ added in v0.0.4
func (m *InputMethodManager) GetCurrentInputMethodSubtype() (*jni.Object, error)
GetCurrentInputMethodSubtype calls android.view.inputmethod.InputMethodManager.getCurrentInputMethodSubtype.
func (*InputMethodManager) GetEnabledInputMethodList ¶ added in v0.0.4
func (m *InputMethodManager) GetEnabledInputMethodList() (*jni.Object, error)
GetEnabledInputMethodList calls android.view.inputmethod.InputMethodManager.getEnabledInputMethodList.
func (*InputMethodManager) GetEnabledInputMethodSubtypeList ¶ added in v0.0.4
func (m *InputMethodManager) GetEnabledInputMethodSubtypeList(arg0 *jni.Object, arg1 bool) (*jni.Object, error)
GetEnabledInputMethodSubtypeList calls android.view.inputmethod.InputMethodManager.getEnabledInputMethodSubtypeList.
func (*InputMethodManager) GetInputMethodList ¶ added in v0.0.4
func (m *InputMethodManager) GetInputMethodList() (*jni.Object, error)
GetInputMethodList calls android.view.inputmethod.InputMethodManager.getInputMethodList.
func (*InputMethodManager) GetLastInputMethodSubtype ¶ added in v0.0.4
func (m *InputMethodManager) GetLastInputMethodSubtype() (*jni.Object, error)
GetLastInputMethodSubtype calls android.view.inputmethod.InputMethodManager.getLastInputMethodSubtype.
func (*InputMethodManager) HideSoftInputFromInputMethod ¶ added in v0.0.4
func (m *InputMethodManager) HideSoftInputFromInputMethod(arg0 *jni.Object, arg1 int32) error
HideSoftInputFromInputMethod calls android.view.inputmethod.InputMethodManager.hideSoftInputFromInputMethod.
func (*InputMethodManager) HideSoftInputFromWindow2 ¶ added in v0.0.4
HideSoftInputFromWindow2 calls android.view.inputmethod.InputMethodManager.hideSoftInputFromWindow.
func (*InputMethodManager) HideSoftInputFromWindow3_1 ¶ added in v0.0.4
func (m *InputMethodManager) HideSoftInputFromWindow3_1( arg0 *jni.Object, arg1 int32, arg2 *jni.Object, ) (bool, error)
HideSoftInputFromWindow3_1 calls android.view.inputmethod.InputMethodManager.hideSoftInputFromWindow.
func (*InputMethodManager) HideStatusIcon ¶ added in v0.0.4
func (m *InputMethodManager) HideStatusIcon(arg0 *jni.Object) error
HideStatusIcon calls android.view.inputmethod.InputMethodManager.hideStatusIcon.
func (*InputMethodManager) InvalidateInput ¶ added in v0.0.4
func (m *InputMethodManager) InvalidateInput(arg0 *jni.Object) error
InvalidateInput calls android.view.inputmethod.InputMethodManager.invalidateInput.
func (*InputMethodManager) IsAcceptingText ¶ added in v0.0.4
func (m *InputMethodManager) IsAcceptingText() (bool, error)
IsAcceptingText calls android.view.inputmethod.InputMethodManager.isAcceptingText.
func (*InputMethodManager) IsActive0 ¶ added in v0.0.4
func (m *InputMethodManager) IsActive0() (bool, error)
IsActive0 calls android.view.inputmethod.InputMethodManager.isActive.
func (*InputMethodManager) IsActive1_1 ¶ added in v0.0.4
func (m *InputMethodManager) IsActive1_1(arg0 *jni.Object) (bool, error)
IsActive1_1 calls android.view.inputmethod.InputMethodManager.isActive.
func (*InputMethodManager) IsConnectionlessStylusHandwritingAvailable ¶ added in v0.0.4
func (m *InputMethodManager) IsConnectionlessStylusHandwritingAvailable() (bool, error)
IsConnectionlessStylusHandwritingAvailable calls android.view.inputmethod.InputMethodManager.isConnectionlessStylusHandwritingAvailable.
func (*InputMethodManager) IsFullscreenMode ¶ added in v0.0.4
func (m *InputMethodManager) IsFullscreenMode() (bool, error)
IsFullscreenMode calls android.view.inputmethod.InputMethodManager.isFullscreenMode.
func (*InputMethodManager) IsInputMethodSuppressingSpellChecker ¶ added in v0.0.4
func (m *InputMethodManager) IsInputMethodSuppressingSpellChecker() (bool, error)
IsInputMethodSuppressingSpellChecker calls android.view.inputmethod.InputMethodManager.isInputMethodSuppressingSpellChecker.
func (*InputMethodManager) IsStylusHandwritingAvailable ¶ added in v0.0.4
func (m *InputMethodManager) IsStylusHandwritingAvailable() (bool, error)
IsStylusHandwritingAvailable calls android.view.inputmethod.InputMethodManager.isStylusHandwritingAvailable.
func (*InputMethodManager) IsWatchingCursor ¶ added in v0.0.4
func (m *InputMethodManager) IsWatchingCursor(arg0 *jni.Object) (bool, error)
IsWatchingCursor calls android.view.inputmethod.InputMethodManager.isWatchingCursor.
func (*InputMethodManager) PrepareStylusHandwritingDelegation1 ¶ added in v0.0.4
func (m *InputMethodManager) PrepareStylusHandwritingDelegation1(arg0 *jni.Object) error
PrepareStylusHandwritingDelegation1 calls android.view.inputmethod.InputMethodManager.prepareStylusHandwritingDelegation.
func (*InputMethodManager) PrepareStylusHandwritingDelegation2_1 ¶ added in v0.0.4
func (m *InputMethodManager) PrepareStylusHandwritingDelegation2_1(arg0 *jni.Object, arg1 string) error
PrepareStylusHandwritingDelegation2_1 calls android.view.inputmethod.InputMethodManager.prepareStylusHandwritingDelegation.
func (*InputMethodManager) RestartInput ¶ added in v0.0.4
func (m *InputMethodManager) RestartInput(arg0 *jni.Object) error
RestartInput calls android.view.inputmethod.InputMethodManager.restartInput.
func (*InputMethodManager) SendAppPrivateCommand ¶ added in v0.0.4
func (m *InputMethodManager) SendAppPrivateCommand( arg0 *jni.Object, arg1 string, arg2 *jni.Object, ) error
SendAppPrivateCommand calls android.view.inputmethod.InputMethodManager.sendAppPrivateCommand.
func (*InputMethodManager) SetAdditionalInputMethodSubtypes ¶ added in v0.0.4
func (m *InputMethodManager) SetAdditionalInputMethodSubtypes(arg0 string, arg1 *jni.Object) error
SetAdditionalInputMethodSubtypes calls android.view.inputmethod.InputMethodManager.setAdditionalInputMethodSubtypes.
func (*InputMethodManager) SetCurrentInputMethodSubtype ¶ added in v0.0.4
func (m *InputMethodManager) SetCurrentInputMethodSubtype(arg0 *jni.Object) (bool, error)
SetCurrentInputMethodSubtype calls android.view.inputmethod.InputMethodManager.setCurrentInputMethodSubtype.
func (*InputMethodManager) SetExplicitlyEnabledInputMethodSubtypes ¶ added in v0.0.4
func (m *InputMethodManager) SetExplicitlyEnabledInputMethodSubtypes(arg0 string, arg1 *jni.Object) error
SetExplicitlyEnabledInputMethodSubtypes calls android.view.inputmethod.InputMethodManager.setExplicitlyEnabledInputMethodSubtypes.
func (*InputMethodManager) SetInputMethod ¶ added in v0.0.4
func (m *InputMethodManager) SetInputMethod(arg0 *jni.Object, arg1 string) error
SetInputMethod calls android.view.inputmethod.InputMethodManager.setInputMethod.
func (*InputMethodManager) SetInputMethodAndSubtype ¶ added in v0.0.4
func (m *InputMethodManager) SetInputMethodAndSubtype( arg0 *jni.Object, arg1 string, arg2 *jni.Object, ) error
SetInputMethodAndSubtype calls android.view.inputmethod.InputMethodManager.setInputMethodAndSubtype.
func (*InputMethodManager) ShouldOfferSwitchingToNextInputMethod ¶ added in v0.0.4
func (m *InputMethodManager) ShouldOfferSwitchingToNextInputMethod(arg0 *jni.Object) (bool, error)
ShouldOfferSwitchingToNextInputMethod calls android.view.inputmethod.InputMethodManager.shouldOfferSwitchingToNextInputMethod.
func (*InputMethodManager) ShowInputMethodAndSubtypeEnabler ¶ added in v0.0.4
func (m *InputMethodManager) ShowInputMethodAndSubtypeEnabler(arg0 string) error
ShowInputMethodAndSubtypeEnabler calls android.view.inputmethod.InputMethodManager.showInputMethodAndSubtypeEnabler.
func (*InputMethodManager) ShowInputMethodPicker ¶ added in v0.0.4
func (m *InputMethodManager) ShowInputMethodPicker() error
ShowInputMethodPicker calls android.view.inputmethod.InputMethodManager.showInputMethodPicker.
func (*InputMethodManager) ShowSoftInput2 ¶ added in v0.0.4
ShowSoftInput2 calls android.view.inputmethod.InputMethodManager.showSoftInput.
func (*InputMethodManager) ShowSoftInput3_1 ¶ added in v0.0.4
func (m *InputMethodManager) ShowSoftInput3_1( arg0 *jni.Object, arg1 int32, arg2 *jni.Object, ) (bool, error)
ShowSoftInput3_1 calls android.view.inputmethod.InputMethodManager.showSoftInput.
func (*InputMethodManager) ShowSoftInputFromInputMethod ¶ added in v0.0.4
func (m *InputMethodManager) ShowSoftInputFromInputMethod(arg0 *jni.Object, arg1 int32) error
ShowSoftInputFromInputMethod calls android.view.inputmethod.InputMethodManager.showSoftInputFromInputMethod.
func (*InputMethodManager) ShowStatusIcon ¶ added in v0.0.4
ShowStatusIcon calls android.view.inputmethod.InputMethodManager.showStatusIcon.
func (*InputMethodManager) StartConnectionlessStylusHandwriting ¶ added in v0.0.4
func (m *InputMethodManager) StartConnectionlessStylusHandwriting( arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 *jni.Object, ) error
StartConnectionlessStylusHandwriting calls android.view.inputmethod.InputMethodManager.startConnectionlessStylusHandwriting.
func (*InputMethodManager) StartConnectionlessStylusHandwritingForDelegation4_1 ¶ added in v0.0.4
func (m *InputMethodManager) StartConnectionlessStylusHandwritingForDelegation4_1( arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 *jni.Object, ) error
StartConnectionlessStylusHandwritingForDelegation4_1 calls android.view.inputmethod.InputMethodManager.startConnectionlessStylusHandwritingForDelegation.
func (*InputMethodManager) StartConnectionlessStylusHandwritingForDelegation5 ¶ added in v0.0.4
func (m *InputMethodManager) StartConnectionlessStylusHandwritingForDelegation5( arg0 *jni.Object, arg1 *jni.Object, arg2 string, arg3 *jni.Object, arg4 *jni.Object, ) error
StartConnectionlessStylusHandwritingForDelegation5 calls android.view.inputmethod.InputMethodManager.startConnectionlessStylusHandwritingForDelegation.
func (*InputMethodManager) StartStylusHandwriting ¶ added in v0.0.4
func (m *InputMethodManager) StartStylusHandwriting(arg0 *jni.Object) error
StartStylusHandwriting calls android.view.inputmethod.InputMethodManager.startStylusHandwriting.
func (*InputMethodManager) SwitchToLastInputMethod ¶ added in v0.0.4
func (m *InputMethodManager) SwitchToLastInputMethod(arg0 *jni.Object) (bool, error)
SwitchToLastInputMethod calls android.view.inputmethod.InputMethodManager.switchToLastInputMethod.
func (*InputMethodManager) SwitchToNextInputMethod ¶ added in v0.0.4
SwitchToNextInputMethod calls android.view.inputmethod.InputMethodManager.switchToNextInputMethod.
func (*InputMethodManager) ToggleSoftInput ¶ added in v0.0.4
func (m *InputMethodManager) ToggleSoftInput(arg0 int32, arg1 int32) error
ToggleSoftInput calls android.view.inputmethod.InputMethodManager.toggleSoftInput.
func (*InputMethodManager) ToggleSoftInputFromWindow ¶ added in v0.0.4
func (m *InputMethodManager) ToggleSoftInputFromWindow( arg0 *jni.Object, arg1 int32, arg2 int32, ) error
ToggleSoftInputFromWindow calls android.view.inputmethod.InputMethodManager.toggleSoftInputFromWindow.
func (*InputMethodManager) UpdateCursor ¶ added in v0.0.4
func (m *InputMethodManager) UpdateCursor( arg0 *jni.Object, arg1 int32, arg2 int32, arg3 int32, arg4 int32, ) error
UpdateCursor calls android.view.inputmethod.InputMethodManager.updateCursor.
func (*InputMethodManager) UpdateCursorAnchorInfo ¶ added in v0.0.4
UpdateCursorAnchorInfo calls android.view.inputmethod.InputMethodManager.updateCursorAnchorInfo.
func (*InputMethodManager) UpdateExtractedText ¶ added in v0.0.4
func (m *InputMethodManager) UpdateExtractedText( arg0 *jni.Object, arg1 int32, arg2 *jni.Object, ) error
UpdateExtractedText calls android.view.inputmethod.InputMethodManager.updateExtractedText.
func (*InputMethodManager) UpdateSelection ¶ added in v0.0.4
func (m *InputMethodManager) UpdateSelection( arg0 *jni.Object, arg1 int32, arg2 int32, arg3 int32, arg4 int32, ) error
UpdateSelection calls android.view.inputmethod.InputMethodManager.updateSelection.
func (*InputMethodManager) ViewClicked ¶ added in v0.0.4
func (m *InputMethodManager) ViewClicked(arg0 *jni.Object) error
ViewClicked calls android.view.inputmethod.InputMethodManager.viewClicked.