public final class RxView
extends java.lang.Object
View.| Modifier and Type | Method and Description |
|---|---|
static <any> |
activated(android.view.View view)
An action which sets the activated property of
view. |
static <any> |
attaches(android.view.View view)
Create an observable which emits on
view attach events. |
static <any> |
attachEvents(android.view.View view)
Create an observable of attach and detach events on
view. |
static <any> |
clickable(android.view.View view)
An action which sets the clickable property of
view. |
static <any> |
clicks(android.view.View view)
Create an observable which emits on
view click events. |
static <any> |
detaches(android.view.View view)
Create an observable which emits on
view detach events. |
static <any> |
drags(android.view.View view)
Create an observable of
DragEvent for drags on view. |
static <any> |
drags(android.view.View view,
<any> handled)
Create an observable of
DragEvent for view. |
static <any> |
draws(android.view.View view)
Create an observable for draws on
view. |
static <any> |
enabled(android.view.View view)
An action which sets the enabled property of
view. |
static InitialValueObservable<java.lang.Boolean> |
focusChanges(android.view.View view)
Create an observable of booleans representing the focus of
view. |
static <any> |
globalLayouts(android.view.View view)
Create an observable which emits on
view globalLayout events. |
static <any> |
hovers(android.view.View view)
Create an observable of hover events for
view. |
static <any> |
hovers(android.view.View view,
<any> handled)
Create an observable of hover events for
view. |
static <any> |
keys(android.view.View view)
Create an observable of key events for
view. |
static <any> |
keys(android.view.View view,
<any> handled)
Create an observable of key events for
view. |
static <any> |
layoutChangeEvents(android.view.View view)
Create an observable of layout-change events for
view. |
static <any> |
layoutChanges(android.view.View view)
Create an observable which emits on
view layout changes. |
static <any> |
longClicks(android.view.View view)
Create an observable which emits on
view long-click events. |
static <any> |
longClicks(android.view.View view,
java.util.concurrent.Callable<java.lang.Boolean> handled)
Create an observable which emits on
view long-click events. |
static <any> |
preDraws(android.view.View view,
java.util.concurrent.Callable<java.lang.Boolean> proceedDrawingPass)
Create an observable for pre-draws on
view. |
static <any> |
pressed(android.view.View view)
An action which sets the pressed property of
view. |
static <any> |
scrollChangeEvents(android.view.View view)
Create an observable of scroll-change events for
view. |
static <any> |
selected(android.view.View view)
An action which sets the selected property of
view. |
static <any> |
systemUiVisibilityChanges(android.view.View view)
Create an observable of integers representing a new system UI visibility for
view. |
static <any> |
touches(android.view.View view)
Create an observable of touch events for
view. |
static <any> |
touches(android.view.View view,
<any> handled)
Create an observable of touch events for
view. |
static <any> |
visibility(android.view.View view)
An action which sets the visibility property of
view. |
static <any> |
visibility(android.view.View view,
int visibilityWhenFalse)
An action which sets the visibility property of
view. |
public static <any> attaches(android.view.View view)
view attach events. The emitted value is
unspecified and should only be used as notification.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> attachEvents(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> detaches(android.view.View view)
view detach events. The emitted value is
unspecified and should only be used as notification.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> clicks(android.view.View view)
view click events. The emitted value is
unspecified and should only be used as notification.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnClickListener(android.view.View.OnClickListener) to observe
clicks. Only one observable can be used for a view at a time.
public static <any> drags(android.view.View view)
DragEvent for drags on view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnDragListener(android.view.View.OnDragListener) to observe
drags. Only one observable can be used for a view at a time.
public static <any> drags(android.view.View view,
<any> handled)
DragEvent for view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnDragListener(android.view.View.OnDragListener) to observe
drags. Only one observable can be used for a view at a time.
handled - Predicate invoked with each value to determine the return value of the
underlying View.OnDragListener.public static <any> draws(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses ViewTreeObserver.addOnDrawListener(android.view.ViewTreeObserver.OnDrawListener) to
observe draws. Multiple observables can be used for a view at a time.
public static InitialValueObservable<java.lang.Boolean> focusChanges(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnFocusChangeListener(android.view.View.OnFocusChangeListener) to observe
focus change. Only one observable can be used for a view at a time.
Note: A value will be emitted immediately on subscribe.
public static <any> globalLayouts(android.view.View view)
view globalLayout events. The emitted value is
unspecified and should only be used as notification.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses ViewTreeObserver.addOnGlobalLayoutListener(android.view.ViewTreeObserver.OnGlobalLayoutListener) to observe global layouts. Multiple observables
can be used for a view at a time.
public static <any> hovers(android.view.View view)
view.
Warning: Values emitted by this observable are mutable and part of a shared
object pool and thus are not safe to cache or delay reading (such as by observing
on a different thread). If you want to cache or delay reading the items emitted then you must
map values through a function which calls MotionEvent.obtain(MotionEvent) or
MotionEvent.obtainNoHistory(MotionEvent) to create a copy.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnHoverListener(android.view.View.OnHoverListener) to observe
touches. Only one observable can be used for a view at a time.
public static <any> hovers(android.view.View view,
<any> handled)
view.
Warning: Values emitted by this observable are mutable and part of a shared
object pool and thus are not safe to cache or delay reading (such as by observing
on a different thread). If you want to cache or delay reading the items emitted then you must
map values through a function which calls MotionEvent.obtain(MotionEvent) or
MotionEvent.obtainNoHistory(MotionEvent) to create a copy.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnHoverListener(android.view.View.OnHoverListener) to observe
touches. Only one observable can be used for a view at a time.
handled - Predicate invoked with each value to determine the return value of the
underlying View.OnHoverListener.public static <any> layoutChanges(android.view.View view)
view layout changes. The emitted value is
unspecified and should only be used as notification.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> layoutChangeEvents(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> longClicks(android.view.View view)
view long-click events. The emitted value is
unspecified and should only be used as notification.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnLongClickListener(android.view.View.OnLongClickListener) to observe
long clicks. Only one observable can be used for a view at a time.
public static <any> longClicks(android.view.View view,
java.util.concurrent.Callable<java.lang.Boolean> handled)
view long-click events. The emitted value is
unspecified and should only be used as notification.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnLongClickListener(android.view.View.OnLongClickListener) to observe
long clicks. Only one observable can be used for a view at a time.
handled - Predicate invoked each occurrence to determine the return value of the
underlying View.OnLongClickListener.public static <any> preDraws(android.view.View view,
java.util.concurrent.Callable<java.lang.Boolean> proceedDrawingPass)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses ViewTreeObserver.addOnPreDrawListener(android.view.ViewTreeObserver.OnPreDrawListener) to
observe pre-draws. Multiple observables can be used for a view at a time.
public static <any> scrollChangeEvents(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> systemUiVisibilityChanges(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses
View.setOnSystemUiVisibilityChangeListener(android.view.View.OnSystemUiVisibilityChangeListener) to observe system UI visibility changes.
Only one observable can be used for a view at a time.
public static <any> touches(android.view.View view)
view.
Warning: Values emitted by this observable are mutable and part of a shared
object pool and thus are not safe to cache or delay reading (such as by observing
on a different thread). If you want to cache or delay reading the items emitted then you must
map values through a function which calls MotionEvent.obtain(MotionEvent) or
MotionEvent.obtainNoHistory(MotionEvent) to create a copy.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnTouchListener(android.view.View.OnTouchListener) to observe
touches. Only one observable can be used for a view at a time.
public static <any> touches(android.view.View view,
<any> handled)
view.
Warning: Values emitted by this observable are mutable and part of a shared
object pool and thus are not safe to cache or delay reading (such as by observing
on a different thread). If you want to cache or delay reading the items emitted then you must
map values through a function which calls MotionEvent.obtain(MotionEvent) or
MotionEvent.obtainNoHistory(MotionEvent) to create a copy.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnTouchListener(android.view.View.OnTouchListener) to observe
touches. Only one observable can be used for a view at a time.
handled - Predicate invoked with each value to determine the return value of the
underlying View.OnTouchListener.public static <any> keys(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnKeyListener(android.view.View.OnKeyListener) to observe
key events. Only one observable can be used for a view at a time.
public static <any> keys(android.view.View view,
<any> handled)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses View.setOnKeyListener(android.view.View.OnKeyListener) to observe
key events. Only one observable can be used for a view at a time.
handled - Predicate invoked each occurrence to determine the return value of the
underlying View.OnKeyListener.public static <any> activated(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> clickable(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> enabled(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> pressed(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> selected(android.view.View view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> visibility(android.view.View view)
view. false values use
View.GONE.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> visibility(android.view.View view,
int visibilityWhenFalse)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
visibilityWhenFalse - Visibility to set on a false value (View.INVISIBLE
or View.GONE).