Methods Summary |
---|
public int | describeContents()
return 0;
|
public boolean | equals(java.lang.Object otherObj)Comparison operator on two IntentSender objects, such that true
is returned then they both represent the same operation from the
same package.
if (otherObj instanceof WindowId) {
return mToken.asBinder().equals(((WindowId) otherObj)
.mToken.asBinder());
}
return false;
|
public IWindowId | getTarget()
return mToken;
|
public int | hashCode()
return mToken.asBinder().hashCode();
|
public boolean | isFocused()Retrieve the current focus state of the associated window.
try {
return mToken.isFocused();
} catch (RemoteException e) {
return false;
}
|
public void | registerFocusObserver(android.view.WindowId$FocusObserver observer)Start monitoring for changes in the focus state of the window.
synchronized (observer.mRegistrations) {
if (observer.mRegistrations.containsKey(mToken.asBinder())) {
throw new IllegalStateException(
"Focus observer already registered with input token");
}
observer.mRegistrations.put(mToken.asBinder(), this);
try {
mToken.registerFocusObserver(observer.mIObserver);
} catch (RemoteException e) {
}
}
|
public java.lang.String | toString()
StringBuilder sb = new StringBuilder(128);
sb.append("IntentSender{");
sb.append(Integer.toHexString(System.identityHashCode(this)));
sb.append(": ");
sb.append(mToken != null ? mToken.asBinder() : null);
sb.append('}");
return sb.toString();
|
public void | unregisterFocusObserver(android.view.WindowId$FocusObserver observer)Stop monitoring changes in the focus state of the window.
synchronized (observer.mRegistrations) {
if (observer.mRegistrations.remove(mToken.asBinder()) == null) {
throw new IllegalStateException("Focus observer not registered with input token");
}
try {
mToken.unregisterFocusObserver(observer.mIObserver);
} catch (RemoteException e) {
}
}
|
public void | writeToParcel(android.os.Parcel out, int flags)
out.writeStrongBinder(mToken.asBinder());
|