public final class RxTextView
extends java.lang.Object
TextView.| Modifier and Type | Method and Description |
|---|---|
static InitialValueObservable<TextViewAfterTextChangeEvent> |
afterTextChangeEvents(android.widget.TextView view)
Create an observable of after text change events for
view. |
static InitialValueObservable<TextViewBeforeTextChangeEvent> |
beforeTextChangeEvents(android.widget.TextView view)
Create an observable of before text change events for
view. |
static <any> |
color(android.widget.TextView view)
An action which sets the color property of
view with color integer. |
static <any> |
editorActionEvents(android.widget.TextView view)
Create an observable of editor action events on
view. |
static <any> |
editorActionEvents(android.widget.TextView view,
<any> handled)
Create an observable of editor action events on
view. |
static <any> |
editorActions(android.widget.TextView view)
Create an observable of editor actions on
view. |
static <any> |
editorActions(android.widget.TextView view,
<any> handled)
Create an observable of editor actions on
view. |
static <any> |
error(android.widget.TextView view)
An action which sets the error property of
view with character sequences. |
static <any> |
errorRes(android.widget.TextView view)
An action which sets the error property of
view string resource IDs. |
static <any> |
hint(android.widget.TextView view)
An action which sets the hint property of
view with character sequences. |
static <any> |
hintRes(android.widget.TextView view)
An action which sets the hint property of
view string resource IDs. |
static <any> |
text(android.widget.TextView view)
An action which sets the text property of
view with character sequences. |
static InitialValueObservable<TextViewTextChangeEvent> |
textChangeEvents(android.widget.TextView view)
Create an observable of text change events for
view. |
static InitialValueObservable<java.lang.CharSequence> |
textChanges(android.widget.TextView view)
Create an observable of character sequences for text changes on
view. |
static <any> |
textRes(android.widget.TextView view)
An action which sets the text property of
view string resource IDs. |
public static <any> editorActions(android.widget.TextView view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses TextView.OnEditorActionListener to
observe actions. Only one observable can be used for a view at a time.
public static <any> editorActions(android.widget.TextView view,
<any> handled)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses TextView.OnEditorActionListener to
observe actions. 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 TextView.OnEditorActionListener.public static <any> editorActionEvents(android.widget.TextView view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses TextView.OnEditorActionListener to
observe actions. Only one observable can be used for a view at a time.
public static <any> editorActionEvents(android.widget.TextView view,
<any> handled)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses TextView.OnEditorActionListener to
observe actions. 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 TextView.OnEditorActionListener.public static InitialValueObservable<java.lang.CharSequence> textChanges(android.widget.TextView view)
view.
Warning: Values emitted by this observable are mutable and owned by the host
TextView 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 String.valueOf(java.lang.Object) or
.toString() to create a copy.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Note: A value will be emitted immediately on subscribe.
public static InitialValueObservable<TextViewTextChangeEvent> textChangeEvents(android.widget.TextView view)
view.
Warning: Values emitted by this observable contain a mutable
CharSequence owned by the host TextView 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
String.valueOf(java.lang.Object) or .toString() to create a copy.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Note: A value will be emitted immediately on subscribe.
public static InitialValueObservable<TextViewBeforeTextChangeEvent> beforeTextChangeEvents(android.widget.TextView view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Note: A value will be emitted immediately on subscribe.
public static InitialValueObservable<TextViewAfterTextChangeEvent> afterTextChangeEvents(android.widget.TextView view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Note: A value will be emitted immediately on subscribe using
TextView.getEditableText().
public static <any> text(android.widget.TextView view)
view with character sequences.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> textRes(android.widget.TextView view)
view string resource IDs.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> error(android.widget.TextView view)
view with character sequences.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> errorRes(android.widget.TextView view)
view string resource IDs.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> hint(android.widget.TextView view)
view with character sequences.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> hintRes(android.widget.TextView view)
view string resource IDs.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> color(android.widget.TextView view)
view with color integer.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.