UICollectionView.SetCollectionViewLayoutAsync 方法

定义

设置此 UICollectionView使用的布局。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<bool> SetCollectionViewLayoutAsync (UIKit.UICollectionViewLayout layout, bool animated);
abstract member SetCollectionViewLayoutAsync : UIKit.UICollectionViewLayout * bool -> System.Threading.Tasks.Task<bool>
override this.SetCollectionViewLayoutAsync : UIKit.UICollectionViewLayout * bool -> System.Threading.Tasks.Task<bool>

参数

layout
UICollectionViewLayout

新的 。

animated
Boolean

如果要对过渡到新布局进行动画处理,则为 。

返回

表示异步 SetCollectionViewLayout 操作的任务。 TResult 参数 UICompletionHandler的值为 。

属性

注解

SetCollectionViewLayoutAsync 方法适合用于 C# 异步,方法是将控件返回到具有表示操作的 Task 的调用方。

内容待定。

适用于