Skip to content

AndroidObservableForWidgets.GetNotificationForProperty(object, Expression, string) method

Defined in

Type: AndroidObservableForWidgets Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll

Applies to

net10.0-android36.0

Overloads

  • 1. public IObservable<IObservedChange<object, object?>> GetNotificationForProperty(object sender, Expression expression, string propertyName)
  • 2. public IObservable<IObservedChange<object, object?>> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged)
  • 3. public IObservable<IObservedChange<object, object?>> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged, bool suppressWarnings)

1. Overload

Attributes: [RequiresUnreferencedCode("Uses reflection over runtime types which is not trim- or AOT-safe.")]

public IObservable<IObservedChange<object, object?>> GetNotificationForProperty(object sender, Expression expression, string propertyName)

View source

Inherited documentation

These docs were inherited from ICreatesObservableForProperty. The member doesn't override them on this type.

Summary: Subscribes to after-change notifications for the specified propertyName on sender.

Parameters

NameTypeDescription
senderobjectThe object to observe.
expressionExpressionThe expression describing the observed member.
propertyNamestringThe property name to observe.

Returns: IObservable> -- An observable that produces an IObservedChange whenever the observed property changes.

2. Overload

Attributes: [RequiresUnreferencedCode("Uses reflection over runtime types which is not trim- or AOT-safe.")]

public IObservable<IObservedChange<object, object?>> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged)

View source

Inherited documentation

These docs were inherited from ICreatesObservableForProperty. The member doesn't override them on this type.

Summary: Subscribes to change notifications for the specified propertyName on sender.

Parameters

NameTypeDescription
senderobjectThe object to observe.
expressionExpressionThe expression describing the observed member.
propertyNamestringThe property name to observe.
beforeChangedboolIf true, signal before the property value changes; otherwise signal after the change.

Returns: IObservable> -- An observable that produces an IObservedChange whenever the observed property changes.

3. Overload

Attributes: [RequiresUnreferencedCode("Uses reflection over runtime types which is not trim- or AOT-safe.")]

public IObservable<IObservedChange<object, object?>> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged, bool suppressWarnings)

View source

Inherited documentation

These docs were inherited from ICreatesObservableForProperty. The member doesn't override them on this type.

Summary: Subscribes to change notifications for the specified propertyName on sender.

Parameters

NameTypeDescription
senderobjectThe object to observe.
expressionExpressionThe expression describing the observed member. This is typically a MemberExpression or an IndexExpression.
propertyNamestringThe property name to observe.
beforeChangedboolIf true, signal before the property value changes; otherwise signal after the change.
suppressWarningsboolIf true, warnings should not be logged.

Returns: IObservable> -- An observable that produces an IObservedChange whenever the observed property changes. If observing is not possible for the specified beforeChanged value, implementations should return an observable that never produces values.

Remarks

        This implementation does not support before-change notifications.
        

Exceptions

TypeCondition
System.ArgumentNullExceptionThrown when sender, expression, or propertyName is null.
System.ArgumentExceptionThrown when sender is not compatible with the observing mechanism implemented by the instance.