Upravit

Sdílet prostřednictvím


NSFileProviderExtension.SetFavoriteRankAsync(NSNumber, String) Method

Definition

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

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<FileProvider.INSFileProviderItem> SetFavoriteRankAsync (Foundation.NSNumber favoriteRank, string itemIdentifier);
abstract member SetFavoriteRankAsync : Foundation.NSNumber * string -> System.Threading.Tasks.Task<FileProvider.INSFileProviderItem>
override this.SetFavoriteRankAsync : Foundation.NSNumber * string -> System.Threading.Tasks.Task<FileProvider.INSFileProviderItem>

Parameters

favoriteRank
NSNumber

The new favorite rank for the item.

itemIdentifier
String

The persistent identifier for the item.

Returns

A task that represents the asynchronous SetFavoriteRank operation. The value of the TResult parameter is of type System.Action<FileProvider.INSFileProviderItem,Foundation.NSError>.

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to