public final class RxCompoundButton
extends java.lang.Object
CompoundButton.| Modifier and Type | Method and Description |
|---|---|
static <any> |
checked(android.widget.CompoundButton view)
Deprecated.
Use view::setChecked method reference.
|
static InitialValueObservable<java.lang.Boolean> |
checkedChanges(android.widget.CompoundButton view)
Create an observable of booleans representing the checked state of
view. |
static <any> |
toggle(android.widget.CompoundButton view)
An action which sets the toggles property of
view with each value. |
public static InitialValueObservable<java.lang.Boolean> checkedChanges(android.widget.CompoundButton view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
Warning: The created observable uses CompoundButton.setOnCheckedChangeListener(android.widget.CompoundButton.OnCheckedChangeListener)
to observe checked changes. Only one observable can be used for a view at a time.
Note: A value will be emitted immediately on subscribe.
@Deprecated public static <any> checked(android.widget.CompoundButton view)
view.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.
public static <any> toggle(android.widget.CompoundButton view)
view with each value.
Warning: The created observable keeps a strong reference to view. Unsubscribe
to free this reference.