NSFileProviderExtension.SetFavoriteRank(NSNumber, String, Action<INSFileProviderItem,NSError>) NSFileProviderExtension.SetFavoriteRank(NSNumber, String, Action<INSFileProviderItem,NSError>) Method

Definition

When implemented by the developer, sets the favorite rank of the identified directory.

[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

Parameters

favoriteRank
NSNumber NSNumber

The new favorite rank for the item.

This parameter can be null.

itemIdentifier
String String

The persistent identifier for the item.

completionHandler
Action<INSFileProviderItem,NSError>

A handler to run after the operation completes.

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to