public abstract void revokeSession([email protected] arg1 );
public abstract void setSessionEnabled([email protected] arg1, bool arg2);
public virtual void setSessionEnabled([email protected] session, bool enabled) { throw new System.NotImplementedException(); }
public virtual void revokeSession([email protected] session ) { throw new System.NotImplementedException(); }
public override void sessionCreated([email protected] session ) { throw new System.NotImplementedException(); }
/// <summary>Reset all of the state associated with being bound to an input method.</summary> /// <remarks>Reset all of the state associated with being bound to an input method.</remarks> internal void clearBindingLocked() { clearConnectionLocked(); mBindSequence = -1; mCurId = null; mCurMethod = null; }
internal void startInputInner() { android.view.View view; lock (mH) { view = mServedView; // Make sure we have a window token for the served view. if (view == null) { return; } } // Now we need to get an input connection from the served view. // This is complicated in a couple ways: we can't be holding our lock // when calling out to the view, and we need to make sure we call into // the view on the same thread that is driving its view hierarchy. android.os.Handler vh = view.getHandler(); if (vh == null) { // If the view doesn't have a handler, something has changed out // from under us, so just bail. return; } if (vh.getLooper() != android.os.Looper.myLooper()) { // The view is running on a different thread than our own, so // we need to reschedule our work for over there. vh.post(new _Runnable_976()); return; } // Okay we are now ready to call into the served view and have it // do its stuff. // Life is good: let's hook everything up! android.view.inputmethod.EditorInfo tba = new android.view.inputmethod.EditorInfo (); tba.packageName = view.getContext().getPackageName(); tba.fieldId = view.getId(); android.view.inputmethod.InputConnection ic = view.onCreateInputConnection(tba); lock (mH) { // Now that we are locked again, validate that our state hasn't // changed. if (mServedView != view || !mServedConnecting) { // Something else happened, so abort. return; } // If we already have a text box, then this view is already // connected so we want to restart it. bool initial = mCurrentTextBoxAttribute == null; // Hook 'em up and let 'er rip. mCurrentTextBoxAttribute = tba; mServedConnecting = false; mServedInputConnection = ic; [email protected] servedContext; if (ic != null) { mCursorSelStart = tba.initialSelStart; mCursorSelEnd = tba.initialSelEnd; mCursorCandStart = -1; mCursorCandEnd = -1; mCursorRect.setEmpty(); servedContext = new android.view.inputmethod.InputMethodManager.ControlledInputConnectionWrapper (this, vh.getLooper(), ic); } else { servedContext = null; } try { [email protected] res = mService.startInput(mClient, servedContext , tba, initial, true); if (res != null) { if (res.id != null) { mBindSequence = res.sequence; mCurMethod = res.method; } else { if (mCurMethod == null) { // This means there is no input method available. return; } } } if (mCurMethod != null && mCompletions != null) { try { mCurMethod.displayCompletions(mCompletions); } catch (android.os.RemoteException) { } } } catch (android.os.RemoteException e) { android.util.Log.w(TAG, "IME died: " + mCurId, e); } } }