NSFileProviderExtension.SetFavoriteRank 方法

定义

由开发人员实现时,设置已标识目录的收藏排名。

[Foundation.Export("setFavoriteRank:forItemIdentifier:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetFavoriteRank (Foundation.NSNumber favoriteRank, string itemIdentifier, Action<FileProvider.INSFileProviderItem,Foundation.NSError> completionHandler);
abstract member SetFavoriteRank : Foundation.NSNumber * string * Action<FileProvider.INSFileProviderItem, Foundation.NSError> -> unit
override this.SetFavoriteRank : Foundation.NSNumber * string * Action<FileProvider.INSFileProviderItem, Foundation.NSError> -> unit

参数

favoriteRank
NSNumber

项的新收藏夹排名。

此参数可以为 null

itemIdentifier
String

项的持久标识符。

completionHandler
Action<INSFileProviderItem,NSError>

操作完成后要运行的处理程序。

属性

注解

(此节点的更多文档即将)

这可以从后台线程使用。

适用于