AndroidObservableForWidgets.

GetAffinityForObject(Type, string, bool) Method

Summary

Returns a positive integer when this class supports GetNotificationForProperty for this particular Type. If the method isn't supported at all, return a non-positive integer. When multiple implementations return a positive value, the host will use the one which returns the highest value. When in doubt, return '2' or '0'.
Namespace
ReactiveUI
Containing Type
AndroidObservableForWidgets

Syntax

public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged = false)

Parameters

Name Type Description
type Type The type to query for.
propertyName string The property of the type to query for.
beforeChanged bool If true, returns whether GNFP is supported before a change occurs.

Return Value

Type Description
int A positive integer if GNFP is supported, zero or a negative value otherwise.