,UIKit.UICollectionView,Foundation.NSString)} ,UIKit.UICollectionView,Foundation.NSString,System.Action{--1})} ,UIKit.UICollectionView,Foundation.NSString,System.Action{--1},System.Func{ReactiveUI.Reactive.ReactiveCollectionViewSource{--0},System.IDisposable})} ,UIKit.UICollectionView)} ,UIKit.UICollectionView,System.Action{--1})} ,UIKit.UICollectionView,System.Action{--1},System.Func{ReactiveUI.Reactive.ReactiveCollectionViewSource{--0},System.IDisposable})} }},UIKit.UICollectionView)} }},UIKit.UICollectionView,System.Func{ReactiveUI.Reactive.ReactiveCollectionViewSource{--0},System.IDisposable})}
ReactiveCollectionViewSourceExtensions.BindTo(IObservable, UICollectionView, NSString) method¶
Defined in
Type: ReactiveCollectionViewSourceExtensions
Namespace: ReactiveUI.Reactive
Assembly: ReactiveUI.Reactive.dll
Applies to
net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0
Overloads¶
- 1.
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, NSString cellKey) where TSource : notnull where TCell : notnull, UICollectionViewCell - 2.
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, NSString cellKey, Action<TCell>? initializeCellAction) where TSource : notnull where TCell : notnull, UICollectionViewCell - 3.
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, NSString cellKey, Action<TCell>? initializeCellAction, Func<ReactiveCollectionViewSource<TSource>, IDisposable>? initSource) where TSource : notnull where TCell : notnull, UICollectionViewCell - 4.
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView) where TSource : notnull where TCell : notnull, UICollectionViewCell - 5.
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, Action<TCell>? initializeCellAction) where TSource : notnull where TCell : notnull, UICollectionViewCell - 6.
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, Action<TCell>? initializeCellAction, Func<ReactiveCollectionViewSource<TSource>, IDisposable>? initSource) where TSource : notnull where TCell : notnull, UICollectionViewCell - 7.
public static IDisposable BindTo<TSource, TCell>(this IObservable<IReadOnlyList<CollectionViewSectionInformation<TSource, TCell>>> sectionsObservable, UICollectionView collectionView) where TSource : notnull where TCell : notnull, UICollectionViewCell - 8.
public static IDisposable BindTo<TSource, TCell>(this IObservable<IReadOnlyList<CollectionViewSectionInformation<TSource, TCell>>> sectionsObservable, UICollectionView collectionView, Func<ReactiveCollectionViewSource<TSource>, IDisposable>? initSource) where TSource : notnull where TCell : notnull, UICollectionViewCell
1. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")] [RequiresDynamicCode("Uses dynamic binding paths which may require runtime code generation or reflection-based invocation.")]
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, NSString cellKey) where TSource : notnull where TCell : notnull, UICollectionViewCell
Type parameters
| Name | Description |
|---|---|
TSource | -- |
TCell | -- |
Parameters
| Name | Type | Description |
|---|---|---|
sourceObservable | IObservable | -- |
collectionView | UICollectionView | -- |
cellKey | NSString | -- |
Returns: IDisposable
2. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")] [RequiresDynamicCode("Uses dynamic binding paths which may require runtime code generation or reflection-based invocation.")]
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, NSString cellKey, Action<TCell>? initializeCellAction) where TSource : notnull where TCell : notnull, UICollectionViewCell
Type parameters
| Name | Description |
|---|---|
TSource | -- |
TCell | -- |
Parameters
| Name | Type | Description |
|---|---|---|
sourceObservable | IObservable | -- |
collectionView | UICollectionView | -- |
cellKey | NSString | -- |
initializeCellAction | Action | -- |
Returns: IDisposable
3. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")] [RequiresDynamicCode("Uses dynamic binding paths which may require runtime code generation or reflection-based invocation.")]
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, NSString cellKey, Action<TCell>? initializeCellAction, Func<ReactiveCollectionViewSource<TSource>, IDisposable>? initSource) where TSource : notnull where TCell : notnull, UICollectionViewCell
Type parameters
| Name | Description |
|---|---|
TSource | -- |
TCell | -- |
Parameters
| Name | Type | Description |
|---|---|---|
sourceObservable | IObservable | -- |
collectionView | UICollectionView | -- |
cellKey | NSString | -- |
initializeCellAction | Action | -- |
initSource | Func | -- |
Returns: IDisposable
4. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")] [RequiresDynamicCode("Uses dynamic binding paths which may require runtime code generation or reflection-based invocation.")]
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView) where TSource : notnull where TCell : notnull, UICollectionViewCell
Type parameters
| Name | Description |
|---|---|
TSource | -- |
TCell | -- |
Parameters
| Name | Type | Description |
|---|---|---|
sourceObservable | IObservable | -- |
collectionView | UICollectionView | -- |
Returns: IDisposable
5. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")] [RequiresDynamicCode("Uses dynamic binding paths which may require runtime code generation or reflection-based invocation.")]
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, Action<TCell>? initializeCellAction) where TSource : notnull where TCell : notnull, UICollectionViewCell
Type parameters
| Name | Description |
|---|---|
TSource | -- |
TCell | -- |
Parameters
| Name | Type | Description |
|---|---|---|
sourceObservable | IObservable | -- |
collectionView | UICollectionView | -- |
initializeCellAction | Action | -- |
Returns: IDisposable
6. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")] [RequiresDynamicCode("Uses dynamic binding paths which may require runtime code generation or reflection-based invocation.")]
public static IDisposable BindTo<TSource, TCell>(this IObservable<INotifyCollectionChanged> sourceObservable, UICollectionView collectionView, Action<TCell>? initializeCellAction, Func<ReactiveCollectionViewSource<TSource>, IDisposable>? initSource) where TSource : notnull where TCell : notnull, UICollectionViewCell
Type parameters
| Name | Description |
|---|---|
TSource | -- |
TCell | -- |
Parameters
| Name | Type | Description |
|---|---|---|
sourceObservable | IObservable | -- |
collectionView | UICollectionView | -- |
initializeCellAction | Action | -- |
initSource | Func | -- |
Returns: IDisposable
7. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")] [RequiresDynamicCode("Uses dynamic binding paths which may require runtime code generation or reflection-based invocation.")]
public static IDisposable BindTo<TSource, TCell>(this IObservable<IReadOnlyList<CollectionViewSectionInformation<TSource, TCell>>> sectionsObservable, UICollectionView collectionView) where TSource : notnull where TCell : notnull, UICollectionViewCell
Type parameters
| Name | Description |
|---|---|
TSource | -- |
TCell | -- |
Parameters
| Name | Type | Description |
|---|---|---|
sectionsObservable | IObservable | -- |
collectionView | UICollectionView | -- |
Returns: IDisposable
8. Overload¶
Attributes: [RequiresUnreferencedCode("Evaluates expression-based member chains via reflection; members may be trimmed.")] [RequiresDynamicCode("Uses dynamic binding paths which may require runtime code generation or reflection-based invocation.")]
public static IDisposable BindTo<TSource, TCell>(this IObservable<IReadOnlyList<CollectionViewSectionInformation<TSource, TCell>>> sectionsObservable, UICollectionView collectionView, Func<ReactiveCollectionViewSource<TSource>, IDisposable>? initSource) where TSource : notnull where TCell : notnull, UICollectionViewCell
Type parameters
| Name | Description |
|---|---|
TSource | -- |
TCell | -- |
Parameters
| Name | Type | Description |
|---|---|---|
sectionsObservable | IObservable | -- |
collectionView | UICollectionView | -- |
initSource | Func | -- |
Returns: IDisposable