/** * Remove any pending posts of Runnable r that are in the message queue. */ public final void removeCallbacks(Runnable r) { final WeakRunnable runnable = mRunnables.remove(r); if (runnable != null) { mExec.removeCallbacks(runnable); } }
/** * Sends a Message containing only the what value, to be delivered * after the specified amount of time elapses. * @see #sendMessageDelayed(Message, long) * * @return Returns true if the message was successfully placed in to the * message queue. Returns false on failure, usually because the * looper processing the message queue is exiting. */ public final boolean sendEmptyMessageDelayed(int what, long delayMillis) { return mExec.sendEmptyMessageDelayed(what, delayMillis); }
/** * Remove any pending posts of callbacks and sent messages whose * <var>obj</var> is <var>token</var>. If <var>token</var> is null, * all callbacks and messages will be removed. */ public final void removeCallbacksAndMessages(Object token) { mExec.removeCallbacksAndMessages(token); }
public void setTitlePaddingDp(int titlePaddingDp) { this.titlePadding = RxBannerUtil.dp2px(titlePaddingDp); }
/** * Remove any pending posts of messages with code 'what' and whose obj is * 'object' that are in the message queue. If <var>object</var> is null, * all messages will be removed. */ public final void removeMessages(int what, Object object) { mExec.removeMessages(what, object); }
/** * Check if there are any pending posts of messages with code 'what' and * whose obj is 'object' in the message queue. */ public final boolean hasMessages(int what, Object object) { return mExec.hasMessages(what, object); }
/** * Sends a Message containing only the what value, to be delivered * at a specific time. * @see #sendMessageAtTime(Message, long) * * @return Returns true if the message was successfully placed in to the * message queue. Returns false on failure, usually because the * looper processing the message queue is exiting. */ public final boolean sendEmptyMessageAtTime(int what, long uptimeMillis) { return mExec.sendEmptyMessageAtTime(what, uptimeMillis); }
void start() { if (!runnableAdded && handler !=null && autoPlayRunnable!=null) { handler.postDelayed(autoPlayRunnable, timeInterval); runnableAdded = true; } }
public void setRxBannerGuideFinishedListener(RxBannerGuideFinishedListener rxBannerGuideFinishedListener) { RxBannerLogger.i(" setRxBannerGuideFinishedListener "); this.rxBannerGuideFinishedListener = rxBannerGuideFinishedListener; }
/** * Default constructor associates this handler with the {@link Looper} for the * current thread. * * If this thread does not have a looper, this handler won't be able to receive messages * so an exception is thrown. */ public WeakHandler() { mCallback = null; mExec = new ExecHandler(); }
/** * Pushes a message onto the end of the message queue after all pending messages * before the current time. It will be received in callback, * in the thread attached to this handler. * * @return Returns true if the message was successfully placed in to the * message queue. Returns false on failure, usually because the * looper processing the message queue is exiting. */ public final boolean sendMessage(Message msg) { return mExec.sendMessage(msg); }
void pause() { if (runnableAdded && handler !=null && autoPlayRunnable!=null) { handler.removeCallbacks(autoPlayRunnable); runnableAdded = false; } }
/** * Sends a Message containing only the what value. * * @return Returns true if the message was successfully placed in to the * message queue. Returns false on failure, usually because the * looper processing the message queue is exiting. */ public final boolean sendEmptyMessage(int what) { return mExec.sendEmptyMessage(what); }
public void setTitleMarginBottomDp(int titleMarginBottomDp) { this.titleMarginBottom = RxBannerUtil.dp2px(titleMarginBottomDp); }
/** * Remove any pending posts of Runnable <var>r</var> with Object * <var>token</var> that are in the message queue. If <var>token</var> is null, * all callbacks will be removed. */ public final void removeCallbacks(Runnable r, Object token) { final WeakRunnable runnable = mRunnables.remove(r); if (runnable != null) { mExec.removeCallbacks(runnable, token); } }
/** * Remove any pending posts of messages with code 'what' that are in the * message queue. */ public final void removeMessages(int what) { mExec.removeMessages(what); }
/** * Check if there are any pending posts of messages with code 'what' in * the message queue. */ public final boolean hasMessages(int what) { return mExec.hasMessages(what); }
public void setTitleMarginStartDp(int titleMarginStartDp) { this.titleMarginStart = RxBannerUtil.dp2px(titleMarginStartDp); }
public void setTitleWidthDp(int titleWidthDp) { this.titleWidth = titleWidthDp > 0 ? RxBannerUtil.dp2px(titleWidthDp) : titleWidthDp; }
public void setTitleMarginTopDp(int titleMarginTopDp) { this.titleMarginTop = RxBannerUtil.dp2px(titleMarginTopDp); }